]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Introduce win32_target_ops::decr_pc_after_break
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
e54e5929
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
4 field.
5 * win32-i386-low.c (the_low_target): Update.
6 * win32-arm-low.c (the_low_target): Update.
7
d6225aff
TT
82020-04-08 Tom Tromey <tromey@adacore.com>
9
10 * win32-low.h (win32_process_target::read_pc)
11 (win32_process_target::write_pc): Declare.
12 * win32-low.c (win32_process_target::read_pc)
13 (win32_process_target::write_pc): New methods.
14 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
15 functions.
16 (the_low_target): Update.
17 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
18 functions.
19 (the_low_target): Update.
20
2c1d95e8
TT
212020-04-08 Tom Tromey <tromey@adacore.com>
22
23 * win32-low.c (win32_kill, get_child_debug_event): Use
24 wait_for_debug_event.
25
e758e19c
TT
262020-04-08 Tom Tromey <tromey@adacore.com>
27
28 * win32-low.c (child_continue): Call continue_last_debug_event.
29
8d30e395
TT
302020-04-08 Tom Tromey <tromey@adacore.com>
31
32 * win32-low.c (handle_exception): Remove.
33 (windows_nat::handle_ms_vc_exception): New function.
34 (get_child_debug_event): Add "continue_status" parameter.
35 Update.
36 (win32_wait): Update.
37
a816ba18
TT
382020-04-08 Tom Tromey <tromey@adacore.com>
39
40 * win32-low.c (windows_nat::handle_load_dll): Rename from
41 handle_load_dll. No longer static.
42 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
43 No longer static.
44
d41b524f
TT
452020-04-08 Tom Tromey <tromey@adacore.com>
46
47 * win32-low.c (handle_output_debug_string): Add parameter. Change
48 return type.
49 (win32_kill, get_child_debug_event): Update.
50
3c76026d
TT
512020-04-08 Tom Tromey <tromey@adacore.com>
52
53 * win32-low.c (current_process_handle, current_process_id)
54 (main_thread_id, last_sig, current_event, siginfo_er): Move to
55 nat/windows-nat.c.
56
9d8679cc
TT
572020-04-08 Tom Tromey <tromey@adacore.com>
58
59 * win32-low.c (get_image_name): Remove.
60 (handle_load_dll): Update.
61
28688adf
TT
622020-04-08 Tom Tromey <tromey@adacore.com>
63
64 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
65 No longer static. Change parameters.
66 (child_add_thread, child_fetch_inferior_registers)
67 (child_store_inferior_registers, win32_resume)
68 (win32_get_tib_address): Update.
69
4834dad0
TT
702020-04-08 Tom Tromey <tromey@adacore.com>
71
72 * win32-low.h (struct win32_target_ops): Use qualified names where
73 needed.
74 * win32-i386-low.c: Add "using namespace".
75 * win32-low.c: Add "using namespace".
76 * win32-arm-low.c: Add "using namespace".
77
65bafd5b
TT
782020-04-08 Tom Tromey <tromey@adacore.com>
79
80 * win32-low.c (delete_thread_info): Don't call CloseHandle.
81
98a03287
TT
822020-04-08 Tom Tromey <tromey@adacore.com>
83
84 * win32-low.c (win32_require_context, suspend_one_thread): Use
85 windows_thread_info::suspend.
86 (continue_one_thread): Use windows_thread_info::resume.
87 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
88
62fe396b
TT
892020-04-08 Tom Tromey <tromey@adacore.com>
90
91 * win32-i386-low.c (update_debug_registers)
92 (i386_prepare_to_resume, i386_thread_added): Update.
93
e9534bd2
TT
942020-04-08 Tom Tromey <tromey@adacore.com>
95
96 * win32-low.c (child_add_thread): Use new.
97 (delete_thread_info): Use delete.
98
ae1f8880
TT
992020-04-08 Tom Tromey <tromey@adacore.com>
100
101 * win32-low.h (struct windows_thread_info): Remove.
102
e56f8ccb
TT
1032020-04-08 Tom Tromey <tromey@adacore.com>
104
105 * win32-low.h (struct windows_thread_info): Rename from
106 win32_thread_info. Remove typedef.
107 (struct win32_target_ops, win32_require_context): Update.
108 * win32-low.c (win32_get_thread_context)
109 (win32_set_thread_context, win32_prepare_to_resume)
110 (win32_require_context, thread_rec, child_add_thread)
111 (delete_thread_info, continue_one_thread)
112 (child_fetch_inferior_registers, child_store_inferior_registers)
113 (win32_resume, suspend_one_thread, win32_get_tib_address):
114 Update.
115 * win32-i386-low.c (update_debug_registers)
116 (win32_get_current_dr, i386_get_thread_context)
117 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
118 (i386_fetch_inferior_register, i386_store_inferior_register):
119 Update.
120 * win32-arm-low.c (arm_get_thread_context)
121 (arm_fetch_inferior_register, arm_store_inferior_register):
122 Update.
123
0dd7b52e
TBA
1242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125
126 * linux-low.h (struct linux_target_ops): Remove.
127 (the_low_target): Remove.
128 * linux-x86-low.cc (the_low_target): Remove.
129 * linux-aarch64-low.cc (the_low_target): Ditto.
130 * linux-arm-low.cc (the_low_target): Ditto.
131 * linux-bfin-low.cc (the_low_target): Ditto.
132 * linux-cris-low.cc (the_low_target): Ditto.
133 * linux-crisv32-low.cc (the_low_target): Ditto.
134 * linux-ia64-low.cc (the_low_target): Ditto.
135 * linux-m32r-low.cc (the_low_target): Ditto.
136 * linux-m68k-low.cc (the_low_target): Ditto.
137 * linux-mips-low.cc (the_low_target): Ditto.
138 * linux-nios2-low.cc (the_low_target): Ditto.
139 * linux-ppc-low.cc (the_low_target): Ditto.
140 * linux-riscv-low.cc (the_low_target): Ditto.
141 * linux-s390-low.cc (the_low_target): Ditto.
142 * linux-sh-low.cc (the_low_target): Ditto.
143 * linux-sparc-low.cc (the_low_target): Ditto.
144 * linux-tic6x-low.cc (the_low_target): Ditto.
145 * linux-tile-low.cc (the_low_target): Ditto.
146 * linux-xtensa-low.cc (the_low_target): Ditto.
147
fc5ecdb6
TBA
1482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
149
150 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
151 linux target define the op by overriding the declaration in
152 process_stratum_target.
153
154 * linux-low.h (struct linux_target_ops): Remove the op.
155 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
156 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
157 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
158 (x86_get_ipa_tdesc_idx): Turn into...
159 (x86_target::get_ipa_tdesc_idx): ...this.
160 (the_low_target): Remove the op field.
161 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
162 (ppc_get_ipa_tdesc_idx): Turn into...
163 (ppc_target::get_ipa_tdesc_idx): ...this.
164 (the_low_target): Remove the op field.
165 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
166 (s390_get_ipa_tdesc_idx): Turn into...
167 (s390_target::get_ipa_tdesc_idx): ...this.
168 (the_low_target): Remove the op field.
169
9eedd27d
TBA
1702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
171
172 Turn the 'get_syscall_trapinfo' linux target op into a method
173 of process_stratum_target.
174
175 * linux-low.h (struct linux_target_ops): Remove the op.
176 (class linux_process_target) <get_syscall_trapinfo>
177 <gdb_catch_this_syscall>
178 <low_supports_catch_syscall>
179 <low_get_syscall_trapinfo>: Declare.
180 * linux-low.cc (get_syscall_trapinfo): Turn into...
181 (linux_process_target::get_syscall_trapinfo): ...this.
182 (linux_process_target::low_get_syscall_trapinfo): Define.
183 (gdb_catch_this_syscall_p): Turn into...
184 (linux_process_target::gdb_catch_this_syscall): ...this.
185 (linux_process_target::low_supports_catch_syscall): Define.
186
187 Update the callers below.
188
189 (linux_process_target::wait_1)
190 (linux_process_target::supports_catch_syscall)
191
192 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
193 <low_get_syscall_trapinfo>: Declare.
194 (x86_target::low_supports_catch_syscall): Define.
195 (x86_get_syscall_trapinfo): Turn into...
196 (x86_target::low_get_syscall_trapinfo): ...this.
197 (the_low_target): Remove the op field.
198 * linux-aarch64-low.cc (class aarch64_target)
199 <low_supports_catch_syscall>
200 <low_get_syscall_trapinfo>: Declare.
201 (aarch64_target::low_supports_catch_syscall): Define.
202 (aarch64_get_syscall_trapinfo): Turn into...
203 (aarch64_target::low_get_syscall_trapinfo): ...this.
204 (the_low_target): Remove the op field.
205 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
206 <low_get_syscall_trapinfo>: Declare.
207 (arm_target::low_supports_catch_syscall): Define.
208 (arm_get_syscall_trapinfo): Turn into...
209 (arm_target::low_get_syscall_trapinfo): ...this.
210 (the_low_target): Remove the op field.
211 * linux-ppc-low.cc (the_low_target): Remove the op field.
212 * linux-s390-low.cc (the_low_target): Remove the op field.
213
b31cdfa6
TBA
2142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215
216 Remove the 'supports_hardware_single_step' linux target op and
217 override the process_stratum_target's op definition in
218 linux_process_target to return true.
219
220 * linux-low.h (struct linux_target_ops): Remove the op.
221 (class linux_process_target) <finish_step_over>
222 <maybe_hw_step>: Declare.
223 * linux-low.cc (can_hardware_single_step): Remove.
224 (maybe_hw_step): Turn into...
225 (linux_process_target::maybe_hw_step): ...this.
226 (finish_step_over): Turn into...
227 (linux_process_target::finish_step_over): ...this.
228 (linux_process_target::supports_hardware_single_step): Update
229 to return true.
230
231 Update the callers below.
232
233 (linux_process_target::single_step)
234 (linux_process_target::resume_one_lwp_throw)
235
236 * linux-arm-low.cc (class arm_target)
237 <supports_hardware_single_step>: Declare.
238 (arm_supports_hardware_single_step): Turn into...
239 (arm_target::supports_hardware_single_step): ...this.
240 (the_low_target): Remove the op field.
241 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
242 (the_low_target): Remove the op field.
243 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
244 Remove.
245 (the_low_target): Remove the op field.
246 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
247 (the_low_target): Remove the op field.
248 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
249 (the_low_target): Remove the op field.
250 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
251 (the_low_target): Remove the op field.
252 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
253 (the_low_target): Remove the op field.
254 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
255 (the_low_target): Remove the op field.
256 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
257 (the_low_target): Remove the op field.
258 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
259 (the_low_target): Remove the op field.
260 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
261 (the_low_target): Remove the op field.
262 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
263 (the_low_target): Remove the op field.
264 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
265 Remove.
266 (the_low_target): Remove the op field.
267
9cfd8715
TBA
2682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
269
270 Turn the 'supports_range_stepping' linux target op into a method
271 of linux_process_target.
272
273 * linux-low.h (struct linux_target_ops): Remove the op.
274 (class linux_process_target) <low_supports_range_stepping>: Declare.
275 * linux-low.cc (linux_process_target::low_supports_range_stepping):
276 Define.
277 (linux_process_target::supports_range_stepping): Update the call
278 site.
279 * linux-x86-low.cc (class x86_target)
280 <low_supports_range_stepping>: Declare.
281 (x86_supports_range_stepping): Turn into...
282 (x86_target::low_supports_range_stepping): ...this.
283 (the_low_target): Remove the op field.
284 * linux-aarch64-low.cc (class aarch64_target)
285 <low_supports_range_stepping>: Declare.
286 (aarch64_supports_range_stepping): Turn into...
287 (aarch64_target::low_supports_range_stepping): ...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-ppc-low.cc (the_low_target): Ditto.
295 * linux-s390-low.cc (the_low_target): Ditto.
296 * linux-sh-low.cc (the_low_target): Ditto.
297 * linux-tic6x-low.cc (the_low_target): Ditto.
298 * linux-tile-low.cc (the_low_target): Ditto.
299 * linux-xtensa-low.cc (the_low_target): Ditto.
300
ab64c999
TBA
3012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
302
303 Remove the 'emit_ops' linux target ops and let the concrete
304 linux target define the op by overriding the declaration of
305 process_stratum_target.
306
307 * linux-low.h (struct linux_target_ops): Remove the op.
308 (class linux_process_target) <emit_ops>: Remove.
309 * linux-low.cc (linux_process_target::emit_ops): Remove.
310 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
311 (x86_emit_ops): Turn into...
312 (x86_target::emit_ops): ...this.
313 (the_low_target): Remove the op field.
314 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
315 (aarch64_emit_ops): Turn into...
316 (aarch64_target::emit_ops): ...this.
317 (the_low_target): Remove the op field.
318 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
319 (ppc_emit_ops): Turn into...
320 (ppc_target::emit_ops): ...this.
321 (the_low_target): Remove the op field.
322 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
323 (s390_emit_ops): Turn into...
324 (s390_target::emit_ops): ...this.
325 (the_low_target): Remove the op field.
326 * linux-arm-low.cc (the_low_target): Remove the op field.
327 * linux-bfin-low.cc (the_low_target): Ditto.
328 * linux-crisv32-low.cc (the_low_target): Ditto.
329 * linux-m32r-low.cc (the_low_target): Ditto.
330 * linux-m68k-low.cc (the_low_target): Ditto.
331 * linux-sh-low.cc (the_low_target): Ditto.
332 * linux-tic6x-low.cc (the_low_target): Ditto.
333 * linux-tile-low.cc (the_low_target): Ditto.
334 * linux-xtensa-low.cc (the_low_target): Ditto.
335
809a0c35
TBA
3362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
337
338 Remove the 'install_fast_tracepoint_jump_pad' and
339 'get_min_fast_tracepoint_insn_len' linux target ops to let the
340 concrete linux target define the ops by overriding the declarations
341 of process_stratum_target.
342
343 * linux-low.h (struct linux_target_ops): Remove the ops.
344 (class linux_process_target) <supports_fast_tracepoints>
345 <install_fast_tracepoint_jump_pad>
346 <get_min_fast_tracepoint_insn_len>: Remove.
347 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
348 (linux_process_target::install_fast_tracepoint_jump_pad)
349 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
350 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
351 <install_fast_tracepoint_jump_pad>
352 <get_min_fast_tracepoint_insn_len>: Declare.
353 (x86_target::supports_fast_tracepoints): Define.
354 (x86_install_fast_tracepoint_jump_pad): Turn into...
355 (x86_target::install_fast_tracepoint_jump_pad): ...this.
356 (x86_get_min_fast_tracepoint_insn_len): Turn into...
357 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
358 (the_low_target): Remove the op fields.
359 * linux-aarch64-low.cc (class aarch64_target)
360 <supports_fast_tracepoints>
361 <install_fast_tracepoint_jump_pad>
362 <get_min_fast_tracepoint_insn_len>: Declare.
363 (aarch64_target::supports_fast_tracepoints): Define.
364 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
365 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
366 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
367 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
368 (the_low_target): Remove the op fields.
369 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
370 <install_fast_tracepoint_jump_pad>
371 <get_min_fast_tracepoint_insn_len>: Declare.
372 (ppc_target::supports_fast_tracepoints): Define.
373 (ppc_install_fast_tracepoint_jump_pad): Turn into...
374 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
375 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
376 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
377 (the_low_target): Remove the op fields.
378 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
379 <install_fast_tracepoint_jump_pad>
380 <get_min_fast_tracepoint_insn_len>: Declare.
381 (s390_target::supports_fast_tracepoints): Define.
382 (s390_install_fast_tracepoint_jump_pad): Turn into...
383 (s390_target::install_fast_tracepoint_jump_pad): ...this.
384 (s390_get_min_fast_tracepoint_insn_len): Turn into...
385 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
386 (the_low_target): Remove the op fields.
387 * linux-arm-low.cc (the_low_target): Remove the op fields.
388 * linux-bfin-low.cc (the_low_target): Ditto.
389 * linux-crisv32-low.cc (the_low_target): Ditto.
390 * linux-m32r-low.cc (the_low_target): Ditto.
391 * linux-m68k-low.cc (the_low_target): Ditto.
392 * linux-sh-low.cc (the_low_target): Ditto.
393 * linux-tic6x-low.cc (the_low_target): Ditto.
394 * linux-tile-low.cc (the_low_target): Ditto.
395 * linux-xtensa-low.cc (the_low_target): Ditto.
396
13e567af
TBA
3972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
398
399 Turn the 'get_thread_area' linux target op into a method of
400 process_stratum_target.
401
402 * linux-low.h (struct linux_target_ops): Remove the op.
403 (class linux_process_target) <stuck_in_jump_pad>
404 <linux_fast_tracepoint_collecting>
405 <low_get_thread_area>: Declare.
406 * linux-low.cc (supports_fast_tracepoints): Remove.
407 (linux_fast_tracepoint_collecting): Turn into...
408 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
409 (linux_process_target::low_get_thread_area): Define.
410 (stuck_in_jump_pad_callback): Turn into...
411 (linux_process_target::stuck_in_jump_pad): ...this.
412
413 Update the caller below.
414
415 (linux_process_target::stabilize_threads)
416
417 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
418 Declare.
419 (x86_get_thread_area): Turn into...
420 (x86_target::low_get_thread_area): ...this.
421 (the_low_target): Remove the op field.
422 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
423 Declare.
424 (aarch64_get_thread_area): Turn into...
425 (aarch64_target::low_get_thread_area): ...this.
426 (the_low_target): Remove the op field.
427 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
428 Declare.
429 (ppc_get_thread_area): Turn into...
430 (ppc_target::low_get_thread_area): ...this.
431 (the_low_target): Remove the op field.
432 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
433 Declare.
434 (s390_get_thread_area): Turn into...
435 (s390_target::low_get_thread_area): ...this.
436 (the_low_target): Remove the op field.
437 * linux-arm-low.cc (the_low_target): Remove the op field.
438 * linux-bfin-low.cc (the_low_target): Ditto.
439 * linux-crisv32-low.cc (the_low_target): Ditto.
440 * linux-m32r-low.cc (the_low_target): Ditto.
441 * linux-m68k-low.cc (the_low_target): Ditto.
442 * linux-sh-low.cc (the_low_target): Ditto.
443 * linux-tic6x-low.cc (the_low_target): Ditto.
444 * linux-tile-low.cc (the_low_target): Ditto.
445 * linux-xtensa-low.cc (the_low_target): Ditto.
446
47f70aa7
TBA
4472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
448
449 Remote the 'supports_tracepoints' linux target op and let the
450 concrete linux target define it by overriding the op declared in
451 process_stratum_target.
452
453 * linux-low.h (struct linux_target_ops): Remove the op.
454 (class linux_process_target) <supports_tracepoints>: Remove.
455 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
456 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
457 Declare.
458 (x86_supports_tracepoints): Turn into...
459 (x86_target::supports_tracepoints): ...this.
460 (the_low_target): Remove the op field.
461 * linux-aarch64-low.cc (class aarch64_target)
462 <supports_tracepoints>: Declare.
463 (aarch64_supports_tracepoints): Turn into...
464 (aarch64_target::supports_tracepoints): ...this.
465 (the_low_target): Remove the op field.
466 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
467 Declare.
468 (ppc_supports_tracepoints): Turn into...
469 (ppc_target::supports_tracepoints): ...this.
470 (the_low_target): Remove the op field.
471 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
472 Declare.
473 (s390_supports_tracepoints): Turn into...
474 (s390_target::supports_tracepoints): ...this.
475 (the_low_target): Remove the op field.
476 * linux-arm-low.cc (the_low_target): Remove the op field.
477 * linux-bfin-low.cc (the_low_target): Ditto.
478 * linux-crisv32-low.cc (the_low_target): Ditto.
479 * linux-m32r-low.cc (the_low_target): Ditto.
480 * linux-m68k-low.cc (the_low_target): Ditto.
481 * linux-sh-low.cc (the_low_target): Ditto.
482 * linux-tic6x-low.cc (the_low_target): Ditto.
483 * linux-tile-low.cc (the_low_target): Ditto.
484 * linux-xtensa-low.cc (the_low_target): Ditto.
485
a5b5da92
TBA
4862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
487
488 Remove the 'process_qsupported' linux target op and let a concrete
489 linux target define the op by overriding the op declaration in
490 process_stratum_target.
491
492 * linux-low.h (struct linux_target_ops): Remove the op.
493 (class linux_process_target) <process_qsupported>: Remove.
494 * linux-low.cc (linux_process_target::process_qsupported): Remove.
495 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
496 (x86_linux_process_qsupported): Turn into...
497 (x86_target::process_qsupported): ...this.
498 (the_low_target): Remove the op field.
499 * linux-aarch64-low.cc (the_low_target): Remove the op
500 field.
501 * linux-arm-low.cc (the_low_target): Ditto.
502 * linux-bfin-low.cc (the_low_target): Ditto.
503 * linux-crisv32-low.cc (the_low_target): Ditto.
504 * linux-m32r-low.cc (the_low_target): Ditto.
505 * linux-m68k-low.cc (the_low_target): Ditto.
506 * linux-ppc-low.cc (the_low_target): Ditto.
507 * linux-s390-low.cc (the_low_target): Ditto.
508 * linux-sh-low.cc (the_low_target): Ditto.
509 * linux-tic6x-low.cc (the_low_target): Ditto.
510 * linux-tile-low.cc (the_low_target): Ditto.
511 * linux-xtensa-low.cc (the_low_target): Ditto.
512
d7599cc0
TBA
5132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 Turn the 'prepare_to_resume' linux target op into a method of
516 linux_process_target.
517
518 * linux-low.h (struct linux_target_ops): Remove the op.
519 (class linux_process_target) <low_prepare_to_resume>: Declare.
520 * linux-low.cc (linux_process_target::low_prepare_to_resume):
521 Define.
522
523 Update the callers below:
524
525 (linux_process_target::resume_one_lwp_throw)
526 (linux_process_target::low_prepare_to_resume)
527
528 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
529 Declare.
530 (x86_target::low_prepare_to_resume): Define.
531 (the_low_target): Remove the op field.
532 * linux-aarch64-low.cc (class aarch64_target)
533 <low_prepare_to_resume>: Declare.
534 (aarch64_target::low_prepare_to_resume): Define.
535 (the_low_target): Remove the op field.
536 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
537 Declare.
538 (arm_prepare_to_resume): Turn into...
539 (arm_target::low_prepare_to_resume): ...this.
540 (the_low_target): Remove the op field.
541 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
542 Declare.
543 (mips_linux_prepare_to_resume): Turn into...
544 (mips_target::low_prepare_to_resume): ...this.
545 (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (the_low_target): Remove the op field.
547 * linux-crisv32-low.cc (the_low_target): Ditto.
548 * linux-m32r-low.cc (the_low_target): Ditto.
549 * linux-m68k-low.cc (the_low_target): Ditto.
550 * linux-ppc-low.cc (the_low_target): Ditto.
551 * linux-s390-low.cc (the_low_target): Ditto.
552 * linux-sh-low.cc (the_low_target): Ditto.
553 * linux-tic6x-low.cc (the_low_target): Ditto.
554 * linux-tile-low.cc (the_low_target): Ditto.
555 * linux-xtensa-low.cc (the_low_target): Ditto.
556
fd000fb3
TBA
5572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
558
559 Turn the 'new_process', 'delete_process', 'new_thread',
560 'delete_thread', and 'new_fork' linux target ops into methods
561 of linux_process_target.
562
563 * linux-low.h (struct linux_target_ops): Remove the ops.
564 (class linux_process_target) <add_linux_process>
565 <add_lwp>
566 <delete_lwp>
567 <attach_lwp>
568 <detach_one_lwp>
569 <check_zombie_leaders>
570 <filter_exit_event>
571 <low_new_process>
572 <low_delete_process>
573 <low_new_thread>
574 <low_delete_thread>
575 <low_new_fork>: Declare.
576 * linux-low.cc (delete_lwp): Turn into...
577 (linux_process_target::delete_lwp): ...this.
578 (linux_process_target::low_delete_thread): Define.
579 (linux_add_process): Turn into...
580 (linux_process_target::add_linux_process): ...this.
581 (linux_process_target::low_new_process): Define.
582 (linux_process_target::low_delete_process): Define.
583 (linux_process_target::low_new_fork): Define.
584 (add_lwp): Turn into...
585 (linux_process_target::add_lwp): ...this.
586 (linux_process_target::low_new_thread): Define.
587 (linux_attach_lwp): Turn into...
588 (linux_process_target::attach_lwp): ...this.
589 (linux_detach_one_lwp): Turn into...
590 (linux_process_target::detach_one_lwp): ...this.
591 (linux_detach_lwp_callback): Remove and inline...
592 (linux_process_target::detach): ...here.
593 (check_zombie_leaders): Turn into...
594 (linux_process_target::check_zombie_leaders): ...this.
595 (filter_exit_event): Turn into...
596 (linux_process_target::filter_exit_event): ...this.
597
598 Update the callers below.
599
600 (linux_process_target::handle_extended_wait)
601 (linux_process_target::create_inferior)
602 (attach_proc_task_lwp_callback)
603 (linux_process_target::attach)
604 (linux_process_target::detach)
605 (linux_process_target::mourn)
606 * thread-db.cc (attach_thread)
607
608 * linux-x86-low.cc (class x86_target) <low_new_process>
609 <low_delete_process>
610 <low_new_thread>
611 <low_delete_thread>
612 <low_new_fork>: Declare.
613 (x86_linux_new_process): Turn into...
614 (x86_target::low_new_process): ...this.
615 (x86_linux_delete_process): Turn into...
616 (x86_target::low_delete_process): ...this.
617 (x86_target::low_new_thread): Define.
618 (x86_target::low_delete_thread): Define.
619 (x86_linux_new_fork): Turn into...
620 (x86_target::low_new_fork): ...this.
621 (the_low_target): Remove the op fields.
622 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
623 <low_delete_process>
624 <low_new_thread>
625 <low_delete_thread>
626 <low_new_fork>: Declare.
627 (aarch64_linux_new_process): Turn into...
628 (aarch64_target::low_new_process): ...this.
629 (aarch64_linux_delete_process): Turn into...
630 (aarch64_target::low_delete_process): ...this.
631 (aarch64_target::low_new_thread): Define.
632 (aarch64_target::low_delete_thread): Define.
633 (aarch64_linux_new_fork): Turn into...
634 (aarch64_target::low_new_fork): ...this.
635 (the_low_target): Remove the op fields.
636 * linux-arm-low.cc (class arm_target) <low_new_process>
637 <low_delete_process>
638 <low_new_thread>
639 <low_delete_thread>
640 <low_new_fork>: Declare.
641 (arm_new_process): Turn into...
642 (arm_target::low_new_process): ...this.
643 (arm_delete_process): Turn into...
644 (arm_target::low_delete_process): ...this.
645 (arm_new_thread): Turn into...
646 (arm_target::low_new_thread): ...this.
647 (arm_delete_thread): Turn into...
648 (arm_target::low_delete_thread): ...this.
649 (arm_new_fork): Turn into...
650 (arm_target::low_new_fork): ...this.
651 (the_low_target): Remove the op fields.
652 * linux-mips-low.cc (class mips_target) <low_new_process>
653 <low_delete_process>
654 <low_new_thread>
655 <low_delete_thread>
656 <low_new_fork>: Declare.
657 (mips_linux_new_process): Turn into...
658 (mips_target::low_new_process): ...this.
659 (mips_linux_delete_process): Turn into...
660 (mips_target::low_delete_process): ...this.
661 (mips_linux_new_thread): Turn into...
662 (mips_target::low_new_thread): ...this.
663 (mips_linux_delete_thread): Turn into...
664 (mips_target::low_delete_thread): ...this.
665 (mips_linux_new_fork): Turn into...
666 (mips_target::low_new_fork): ...this.
667 (the_low_target): Remove the op fields.
668 * linux-bfin-low.cc (the_low_target): Remove the op fields.
669 * linux-crisv32-low.cc (the_low_target): Ditto.
670 * linux-m32r-low.cc (the_low_target): Ditto.
671 * linux-m68k-low.cc (the_low_target): Ditto.
672 * linux-ppc-low.cc (the_low_target): Ditto.
673 * linux-s390-low.cc (the_low_target): Ditto.
674 * linux-sh-low.cc (the_low_target): Ditto.
675 * linux-tic6x-low.cc (the_low_target): Ditto.
676 * linux-tile-low.cc (the_low_target): Ditto.
677 * linux-xtensa-low.cc (the_low_target): Ditto.
678
cb63de7c
TBA
6792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
680
681 Turn the 'siginfo_fixup' linux target op into a method of
682 linux_process_target.
683
684 * linux-low.h (struct linux_target_ops): Remove the op.
685 (class linux_process_target) <siginfo_fixup>
686 <low_siginfo_fixup>: Declare.
687 * linux-low.cc (siginfo_fixup): Turn into...
688 (linux_process_target::siginfo_fixup): ...this.
689 (linux_process_target::low_siginfo_fixup): Define.
690 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
691 (x86_siginfo_fixup): Turn into...
692 (x86_target::low_siginfo_fixup): ...this.
693 (the_low_target): Remove the op field.
694 * linux-aarch64-low.cc (class aarch64_target):
695 <low_siginfo_fixup>: Declare.
696 (aarch64_linux_siginfo_fixup): Turn into...
697 (aarch64_target::low_siginfo_fixup): ...this.
698 (the_low_target): Remove the op field.
699 * linux-arm-low.cc (the_low_target): Remove the op field.
700 * linux-bfin-low.cc (the_low_target): Ditto.
701 * linux-crisv32-low.cc (the_low_target): Ditto.
702 * linux-m32r-low.cc (the_low_target): Ditto.
703 * linux-m68k-low.cc (the_low_target): Ditto.
704 * linux-mips-low.cc (the_low_target): Ditto.
705 * linux-ppc-low.cc (the_low_target): Ditto.
706 * linux-s390-low.cc (the_low_target): Ditto.
707 * linux-sh-low.cc (the_low_target): Ditto.
708 * linux-tic6x-low.cc (the_low_target): Ditto.
709 * linux-tile-low.cc (the_low_target): Ditto.
710 * linux-xtensa-low.cc (the_low_target): Ditto.
711
b35db733
TBA
7122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
713
714 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
715 linux target ops into methods of linux_process_target.
716
717 * linux-low.h (struct linux_target_ops): Remove the ops.
718 (class linux_process_target) <low_collect_ptrace_register>
719 <low_store_ptrace_register>: Declare.
720 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
721 (linux_process_target::low_supply_ptrace_register): Define.
722
723 Update the callers below.
724
725 (linux_process_target::fetch_register)
726 (linux_process_target::store_register)
727
728 * linux-x86-low.cc (the_low_target): Remove the op fields.
729 * linux-aarch64-low.cc (the_low_target): Ditto.
730 * linux-arm-low.cc (the_low_target): Ditto.
731 * linux-bfin-low.cc (the_low_target): Ditto.
732 * linux-crisv32-low.cc (the_low_target): Ditto.
733 * linux-m32r-low.cc (the_low_target): Ditto.
734 * linux-m68k-low.cc (the_low_target): Ditto.
735 * linux-sh-low.cc (the_low_target): Ditto.
736 * linux-sparc-low.cc (the_low_target): Ditto.
737 * linux-tic6x-low.cc (the_low_target): Ditto.
738 * linux-tile-low.cc (the_low_target): Ditto.
739 * linux-xtensa-low.cc (the_low_target): Ditto.
740 * linux-mips-low.cc (class mips_target)
741 <low_collect_ptrace_register>
742 <low_supply_ptrace_register>: Declare.
743 (mips_collect_ptrace_register): Turn into ...
744 (mips_target::low_collect_ptrace_register): ...this.
745 (mips_supply_ptrace_register): Turn into...
746 (mips_target::low_supply_ptrace_register): ...this.
747 (the_low_target): Remove the op fields.
748 * linux-ppc-low.cc (class ppc_target)
749 <low_collect_ptrace_register>
750 <low_supply_ptrace_register>: Declare.
751 (ppc_collect_ptrace_register): Turn into ...
752 (ppc_target::low_collect_ptrace_register): ...this.
753 (ppc_supply_ptrace_register): Turn into ...
754 (ppc_target::low_supply_ptrace_register): ...this.
755 (ppc_fill_gregset): Update for the calls to
756 low_collect_ptrace_register.
757 (the_low_target): Remove the op fields.
758 * linux-s390-low.cc (class s390_target)
759 <low_collect_ptrace_register>
760 <low_supply_ptrace_register>: Declare.
761 (s390_collect_ptrace_register): Turn into ...
762 (s390_target::low_collect_ptrace_register): ...this.
763 (s390_supply_ptrace_register): Turn into ...
764 (s390_target::low_supply_ptrace_register): ...this.
765 (s390_fill_gregset): Update for the calls to
766 low_collect_ptrace_register.
767 (the_low_target): Remove the op fields.
768
ac1bbaca
TBA
7692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770
771 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
772 target ops into methods of linux_process_target.
773
774 * linux-low.h (struct linux_target_ops): Remove the ops.
775 (class linux_process_target) <check_stopped_by_watchpoint>
776 <low_stopped_by_watchpoint>
777 <low_stopped_data_address>: Declare.
778 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
779 (linux_process_target::check_stopped_by_watchpoint): ...this.
780 (linux_process_target::low_stopped_by_watchpoint): Define.
781 (linux_process_target::low_stopped_data_address): Define.
782 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
783 <low_stopped_data_address>: Declare.
784 (x86_stopped_by_watchpoint): Turn into...
785 (x86_target::low_stopped_by_watchpoint): ...this.
786 (x86_stopped_data_address): Turn into...
787 (x86_target::low_stopped_data_address): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-aarch64-low.cc (class aarch64_target)
790 <low_stopped_by_watchpoint>
791 <low_stopped_data_address>: Declare.
792 (aarch64_stopped_by_watchpoint): Turn into...
793 (aarch64_target::low_stopped_by_watchpoint): ...this.
794 (aarch64_stopped_data_address): Turn into...
795 (aarch64_target::low_stopped_data_address): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
798 <low_stopped_data_address>: Declare.
799 (arm_stopped_by_watchpoint): Turn into...
800 (arm_target::low_stopped_by_watchpoint): ...this.
801 (arm_stopped_data_address): Turn into...
802 (arm_target::low_stopped_data_address): ...this.
803 (the_low_target): Remove the op fields.
804 * linux-crisv32-low.cc (class crisv32_target)
805 <low_stopped_by_watchpoint>
806 <low_stopped_data_address>: Declare.
807 (cris_stopped_by_watchpoint): Turn into...
808 (crisv32_target::low_stopped_by_watchpoint): ...this.
809 (cris_stopped_data_address): Turn into...
810 (crisv32_target::low_stopped_data_address): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
813 <low_stopped_data_address>: Declare.
814 (mips_stopped_by_watchpoint): Turn into...
815 (mips_target::low_stopped_by_watchpoint): ...this.
816 (mips_stopped_data_address): Turn into...
817 (mips_target::low_stopped_data_address): ...this.
818 (the_low_target): Remove the op fields.
819 * linux-bfin-low.cc (the_low_target): Remove the op fields.
820 * linux-m32r-low.cc (the_low_target): Ditto.
821 * linux-m68k-low.cc (the_low_target): Ditto.
822 * linux-ppc-low.cc (the_low_target): Ditto.
823 * linux-s390-low.cc (the_low_target): Ditto.
824 * linux-sh-low.cc (the_low_target): Ditto.
825 * linux-sparc-low.cc (the_low_target): Ditto.
826 * linux-tic6x-low.cc (the_low_target): Ditto.
827 * linux-tile-low.cc (the_low_target): Ditto.
828 * linux-xtensa-low.cc (the_low_target): Ditto.
829
9db9aa23
TBA
8302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831
832 Turn the 'insert_point' and 'remove_point' linux target ops into
833 methods of linux_process_target.
834
835 * linux-low.h (struct linux_target_ops): Remove the ops.
836 (class linux_process_target) <low_insert_point>
837 <low_remove_point>: Declare.
838 * linux-low.cc (linux_process_target::low_insert_point)
839 (linux_process_target::low_remove_point): Define.
840 (linux_process_target::insert_point)
841 (linux_process_target::remove_point): Update for calls to
842 low_insert_point and low_remove_point.
843 * linux-x86-low.cc (class x86_target) <low_insert_point>
844 <low_remove_point>: Declare.
845 (x86_insert_point): Turn into...
846 (x86_target::low_insert_point): ...this.
847 (x86_remove_point): Turn into...
848 (x86_target::low_remove_point): ...this.
849 (the_low_target): Remove the op fields.
850 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
851 <low_remove_point>: Declare.
852 (aarch64_insert_point): Turn into...
853 (aarch64_target::low_insert_point): ...this.
854 (aarch64_remove_point): Turn into...
855 (aarch64_target::low_remove_point): ...this.
856 (the_low_target): Remove the op fields.
857 * linux-arm-low.cc (class arm_target) <low_insert_point>
858 <low_remove_point>: Declare.
859 (arm_insert_point): Turn into...
860 (arm_target::low_insert_point): ...this.
861 (arm_remove_point): Turn into...
862 (arm_target::low_remove_point): ...this.
863 (the_low_target): Remove the op fields.
864 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
865 <low_remove_point>: Declare.
866 (crisv32_insert_point): Turn into...
867 (crisv32_target::low_insert_point): ...this.
868 (crisv32_remove_point): Turn into...
869 (crisv32_target::low_remove_point): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-mips-low.cc (class mips_target) <low_insert_point>
872 <low_remove_point>: Declare.
873 (mips_insert_point): Turn into...
874 (mips_target::low_insert_point): ...this.
875 (mips_remove_point): Turn into...
876 (mips_target::low_remove_point): ...this.
877 (the_low_target): Remove the op fields.
878 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
879 <low_remove_point>: Declare.
880 (ppc_insert_point): Turn into...
881 (ppc_target::low_insert_point): ...this.
882 (ppc_remove_point): Turn into...
883 (ppc_target::low_remove_point): ...this.
884 (the_low_target): Remove the op fields.
885 * linux-bfin-low.cc (the_low_target): Remove the op fields.
886 * linux-m32r-low.cc (the_low_target): Ditto.
887 * linux-m68k-low.cc (the_low_target): Ditto.
888 * linux-s390-low.cc (the_low_target): Ditto.
889 * linux-sh-low.cc (the_low_target): Ditto.
890 * linux-sparc-low.cc (the_low_target): Ditto.
891 * linux-tic6x-low.cc (the_low_target): Ditto.
892 * linux-tile-low.cc (the_low_target): Ditto.
893 * linux-xtensa-low.cc (the_low_target): Ditto.
894
007c9b97
TBA
8952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
896
897 Remove the 'supports_z_point_type' linux target op and let the
898 concrete linux target define it by overriding the op declared in
899 process_stratum_target.
900
901 * linux-low.cc (linux_process_target::supports_z_point_type):
902 Remove.
903 * linux-low.h (struct linux_target_ops): Remove the op.
904 (class linux_process_target) <supports_z_point_type>: Remove.
905 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
906 Declare.
907 (x86_supports_z_point_type): Turn into...
908 (x86_target::supports_z_point_type): ...this.
909 (the_low_target): Remove the op field.
910 * linux-aarch64-low.cc (class aarch64_target)
911 <supports_z_point_type>: Declare.
912 (aarch64_supports_z_point_type): Turn into...
913 (aarch64_target::supports_z_point_type): ...this.
914 (the_low_target): Remove the op field.
915 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
916 Declare.
917 (arm_supports_z_point_type): Turn into...
918 (arm_target::supports_z_point_type): ...this.
919 (the_low_target): Remove the op field.
920 * linux-crisv32-low.cc (class crisv32_target)
921 <supports_z_point_type>: Declare.
922 (cris_supports_z_point_type): Turn into...
923 (crisv32_target::supports_z_point_type): ...this.
924 (the_low_target): Remove the op field.
925 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
926 Declare.
927 (mips_supports_z_point_type): Turn into...
928 (mips_target::supports_z_point_type): ...this.
929 (the_low_target): Remove the op field.
930 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
931 Declare.
932 (ppc_supports_z_point_type): Turn into...
933 (ppc_target::supports_z_point_type): ...this.
934 (the_low_target): Remove the op field.
935 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
936 Declare.
937 (s390_supports_z_point_type): Turn into...
938 (s390_target::supports_z_point_type): ...this.
939 (the_low_target): Remove the op field.
940 * linux-bfin-low.cc (the_low_target): Remove the op field.
941 * linux-m32r-low.cc (the_low_target): Ditto.
942 * linux-m68k-low.cc (the_low_target): Ditto.
943 * linux-sh-low.cc (the_low_target): Ditto.
944 * linux-sparc-low.cc (the_low_target): Ditto.
945 * linux-tic6x-low.cc (the_low_target): Ditto.
946 * linux-tile-low.cc (the_low_target): Ditto.
947 * linux-xtensa-low.cc (the_low_target): Ditto.
948
d7146cda
TBA
9492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
950
951 Turn the 'breakpoint_at' linux target op into a method of
952 linux_process_target.
953
954 * linux-low.h (struct linux_target_ops): Remove the op.
955 (class linux_process_target) <low_breakpoint_at>: Declare.
956
957 Update the callers below:
958
959 * linux-low.cc (linux_process_target::save_stop_reason)
960 (linux_process_target::thread_still_has_status_pending)
961 (linux_process_target::wait_1)
962
963 * linux-x86-low.cc (class x86_target)
964 <low_breakpoint_at>: Declare.
965 (x86_breakpoint_at): Turn into...
966 (x86_target::low_breakpoint_at): ...this.
967 (the_low_target): Remove the op field.
968 * linux-aarch64-low.cc (class aarch64_target)
969 <low_breakpoint_at>: Declare.
970 (aarch64_breakpoint_at): Turn into...
971 (aarch64_target::low_breakpoint_at): ...this.
972 (the_low_target): Remove the op field.
973 * linux-arm-low.cc (class arm_target)
974 <low_breakpoint_at>: Declare.
975 (arm_target::low_breakpoint_at): Define.
976 (the_low_target): Remove the op field.
977 * linux-bfin-low.cc (class bfin_target)
978 <low_breakpoint_at>: Declare.
979 (bfin_breakpoint_at): Turn into...
980 (bfin_target::low_breakpoint_at): ...this.
981 (the_low_target): Remove the op field.
982 * linux-cris-low.cc (class cris_target)
983 <low_breakpoint_at>: Declare.
984 (cris_breakpoint_at): Turn into...
985 (cris_target::low_breakpoint_at): ...this.
986 (the_low_target): Remove the op field.
987 * linux-crisv32-low.cc (class crisv32_target)
988 <low_breakpoint_at>: Declare.
989 (crisv32_breakpoint_at): Turn into...
990 (crisv32_target::low_breakpoint_at): ...this.
991 (the_low_target): Remove the op field.
992 * linux-ia64-low.cc (class ia64_target)
993 <low_breakpoint_at>: Declare.
994 (ia64_target::low_breakpoint_at): Define.
995 * linux-m32r-low.cc (class m32r_target)
996 <low_breakpoint_at>: Declare.
997 (m32r_breakpoint_at): Turn into...
998 (m32r_target::low_breakpoint_at): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-m68k-low.cc (class m68k_target)
1001 <low_breakpoint_at>: Declare.
1002 (m68k_breakpoint_at): Turn into...
1003 (m68k_target::low_breakpoint_at): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-mips-low.cc (class mips_target)
1006 <low_breakpoint_at>: Declare.
1007 (mips_breakpoint_at): Turn into...
1008 (mips_target::low_breakpoint_at): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-nios2-low.cc (class nios2_target)
1011 <low_breakpoint_at>: Declare.
1012 (nios2_breakpoint_at): Turn into...
1013 (nios2_target::low_breakpoint_at): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-ppc-low.cc (class ppc_target)
1016 <low_breakpoint_at>: Declare.
1017 (ppc_breakpoint_at): Turn into...
1018 (ppc_target::low_breakpoint_at): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-riscv-low.cc (class riscv_target)
1021 <low_breakpoint_at>: Declare.
1022 (riscv_breakpoint_at): Turn into...
1023 (riscv_target::low_breakpoint_at): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-s390-low.cc (class s390_target)
1026 <low_breakpoint_at>: Declare.
1027 (s390_breakpoint_at): Turn into...
1028 (s390_target::low_breakpoint_at): ...this.
1029 (the_low_target): Remove the op field.
1030 * linux-sh-low.cc (class sh_target)
1031 <low_breakpoint_at>: Declare.
1032 (sh_breakpoint_at): Turn into...
1033 (sh_target::low_breakpoint_at): ...this.
1034 (the_low_target): Remove the op field.
1035 * linux-sparc-low.cc (class sparc_target)
1036 <low_breakpoint_at>: Declare.
1037 (sparc_breakpoint_at): Turn into...
1038 (sparc_target::low_breakpoint_at): ...this.
1039 (the_low_target): Remove the op field.
1040 * linux-tic6x-low.cc (class tic6x_target)
1041 <low_breakpoint_at>: Declare.
1042 (tic6x_breakpoint_at): Turn into...
1043 (tic6x_target::low_breakpoint_at): ...this.
1044 (the_low_target): Remove the op field.
1045 * linux-tile-low.cc (class tile_target)
1046 <low_breakpoint_at>: Declare.
1047 (tile_breakpoint_at): Turn into...
1048 (tile_target::low_breakpoint_at): ...this.
1049 (the_low_target): Remove the op field.
1050 * linux-xtensa-low.cc (class xtensa_target)
1051 <low_breakpoint_at>: Declare.
1052 (xtensa_breakpoint_at): Turn into...
1053 (xtensa_target::low_breakpoint_at): ...this.
1054 (the_low_target): Remove the op field.
1055
d4807ea2
TBA
10562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1057
1058 Turn the 'decr_pc_after_break' linux_target_ops field into
1059 a method of linux_process_target.
1060
1061 * linux-low.h (struct linux_target_ops)
1062 <decr_pc_after_break>: Remove.
1063 (class linux_process_target) <low_decr_pc_after_break>: New method
1064 declaration.
1065 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1066 New method implementation.
1067
1068 Update the users below.
1069
1070 (linux_process_target::save_stop_reason)
1071 (linux_process_target::wait_1)
1072 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1073 New declaration.
1074 (x86_target::low_decr_pc_after_break): New method implementation.
1075 (the_low_target): Remove the field.
1076 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1077 New declaration.
1078 (bfin_target::low_decr_pc_after_break): New method implementation.
1079 (the_low_target): Remove the field.
1080 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1081 New declaration.
1082 (m68k_target::low_decr_pc_after_break): New method implementation.
1083 (the_low_target): Remove the field.
1084 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1085 New declaration.
1086 (s390_target::low_decr_pc_after_break): New method implementation.
1087 (the_low_target): Remove the field.
1088 * linux-aarch64-low.cc (the_low_target): Remove the field.
1089 * linux-arm-low.cc (the_low_target): Remove the field.
1090 * linux-cris-low.cc (the_low_target): Remove the field.
1091 * linux-crisv32-low.cc (the_low_target): Remove the field.
1092 * linux-m32r-low.cc (the_low_target): Remove the field.
1093 * linux-mips-low.cc (the_low_target): Remove the field.
1094 * linux-nios2-low.cc (the_low_target): Remove the field.
1095 * linux-ppc-low.cc (the_low_target): Remove the field.
1096 * linux-riscv-low.cc (the_low_target): Remove the field.
1097 * linux-sh-low.cc (the_low_target): Remove the field.
1098 * linux-sparc-low.cc (the_low_target): Remove the field.
1099 * linux-tic6x-low.cc (the_low_target): Remove the field.
1100 * linux-tile-low.cc (the_low_target): Remove the field.
1101 * linux-xtensa-low.cc (the_low_target): Remove the field.
1102
7582c77c
TBA
11032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1104
1105 Remove the 'supports_software_single_step' linux target op and let
1106 the concrete linux target define it by overriding the op in
1107 process_stratum_target.
1108 Turn the 'get_next_pcs' linux target op into a method of
1109 linux_process_target.
1110
1111 * linux-low.h (struct linux_target_ops): Remove the ops.
1112 (class linux_process_target) <supports_software_single_step>:
1113 Remove.
1114 <low_get_next_pcs>: Declare.
1115 * linux-low.cc (can_software_single_step): Remove.
1116 (linux_process_target::low_get_next_pcs): Define.
1117 (linux_process_target::supports_software_single_step): Remove.
1118
1119 Update the callers below.
1120
1121 (linux_process_target::handle_extended_wait)
1122 (linux_process_target::wait_1)
1123 (linux_process_target::install_software_single_step_breakpoints)
1124 (linux_process_target::single_step)
1125 (linux_process_target::thread_needs_step_over)
1126 (linux_process_target::proceed_one_lwp)
1127 (linux_process_target::supports_range_stepping)
1128
1129 * linux-x86-low.cc (the_low_target): Remove the op field.
1130 * linux-aarch64-low.cc (the_low_target): Ditto.
1131 * linux-bfin-low.cc (the_low_target): Ditto.
1132 * linux-cris-low.cc (the_low_target): Ditto.
1133 * linux-crisv32-low.cc (the_low_target): Ditto.
1134 * linux-m32r-low.cc (the_low_target): Ditto.
1135 * linux-m68k-low.cc (the_low_target): Ditto.
1136 * linux-mips-low.cc (the_low_target): Ditto.
1137 * linux-nios2-low.cc (the_low_target): Ditto.
1138 * linux-ppc-low.cc (the_low_target): Ditto.
1139 * linux-riscv-low.cc (the_low_target): Ditto.
1140 * linux-s390-low.cc (the_low_target): Ditto.
1141 * linux-sh-low.cc (the_low_target): Ditto.
1142 * linux-sparc-low.cc (the_low_target): Ditto.
1143 * linux-tic6x-low.cc (the_low_target): Ditto.
1144 * linux-tile-low.cc (the_low_target): Ditto.
1145 * linux-xtensa-low.cc (the_low_target): Ditto.
1146 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1147 <supports_software_single_step>: Declare.
1148 (arm_target::supports_software_single_step): Define.
1149 (arm_gdbserver_get_next_pcs): Turn into...
1150 (arm_target::low_get_next_pcs): ...this.
1151 (the_low_target): Remove the op field.
1152
3ca4edb6
TBA
11532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1154
1155 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1156 the concrete linux target define it by overriding the op
1157 in process_stratum_target.
1158
1159 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1160 Remove.
1161 * linux-low.h (struct linux_target_ops): Remove the op.
1162 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1163 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1164 Declare.
1165 (x86_sw_breakpoint_from_kind): Turn into...
1166 (x86_target::sw_breakpoint_from_kind): ...this.
1167 (the_low_target): Remove the op field.
1168 * linux-aarch64-low.cc (class aarch64_target)
1169 <sw_breakpoint_from_kind>: Declare.
1170 (aarch64_sw_breakpoint_from_kind): Turn into...
1171 (aarch64_target::sw_breakpoint_from_kind): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1174 Declare.
1175 (arm_target::sw_breakpoint_from_kind): Define.
1176 (the_low_target): Remove the op field.
1177 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1178 Declare.
1179 (bfin_sw_breakpoint_from_kind): Turn into...
1180 (bfin_target::sw_breakpoint_from_kind): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1183 Declare.
1184 (cris_sw_breakpoint_from_kind): Turn into...
1185 (cris_target::sw_breakpoint_from_kind): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-crisv32-low.cc (class crisv32_target)
1188 <sw_breakpoint_from_kind>: Declare.
1189 (cris_sw_breakpoint_from_kind): Turn into...
1190 (crisv32_target::sw_breakpoint_from_kind): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1193 Declare.
1194 (ia64_target::sw_breakpoint_from_kind): Define.
1195 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1196 Declare.
1197 (m32r_sw_breakpoint_from_kind): Turn into...
1198 (m32r_target::sw_breakpoint_from_kind): ...this.
1199 (the_low_target): Remove the op field.
1200 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1201 Declare.
1202 (m68k_sw_breakpoint_from_kind): Turn into...
1203 (m68k_target::sw_breakpoint_from_kind): ...this.
1204 (the_low_target): Remove the op field.
1205 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1206 Declare.
1207 (mips_sw_breakpoint_from_kind): Turn into...
1208 (mips_target::sw_breakpoint_from_kind): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1211 Declare.
1212 (nios2_sw_breakpoint_from_kind): Turn into...
1213 (nios2_target::sw_breakpoint_from_kind): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1216 Declare.
1217 (ppc_sw_breakpoint_from_kind): Turn into...
1218 (ppc_target::sw_breakpoint_from_kind): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1221 Declare.
1222 (riscv_sw_breakpoint_from_kind): Turn into...
1223 (riscv_target::sw_breakpoint_from_kind): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1226 Declare.
1227 (s390_sw_breakpoint_from_kind): Turn into...
1228 (s390_target::sw_breakpoint_from_kind): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1231 Declare.
1232 (sh_sw_breakpoint_from_kind): Turn into...
1233 (sh_target::sw_breakpoint_from_kind): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1236 Declare.
1237 (sparc_sw_breakpoint_from_kind): Turn into...
1238 (sparc_target::sw_breakpoint_from_kind): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1241 Declare.
1242 (tic6x_sw_breakpoint_from_kind): Turn into...
1243 (tic6x_target::sw_breakpoint_from_kind): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1246 Declare.
1247 (tile_sw_breakpoint_from_kind): Turn into...
1248 (tile_target::sw_breakpoint_from_kind): ...this.
1249 (the_low_target): Remove the op field.
1250 * linux-xtensa-low.cc (class xtensa_target)
1251 <sw_breakpoint_from_kind>: Declare.
1252 (xtensa_sw_breakpoint_from_kind): Turn into...
1253 (xtensa_target::sw_breakpoint_from_kind): ...this.
1254 (the_low_target): Remove the op field.
1255
06250e4e
TBA
12562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 Remove the 'breakpoint_kind_from_pc' and
1259 'breakpoint_kind_from_current_state' linux target ops, and let the
1260 concrete linux target define them by overriding the ops of
1261 process_stratum_target.
1262
1263 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1264 Remove.
1265 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1266 * linux-low.h (struct linux_target_ops): Remove ops.
1267 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1268 <breakpoint_kind_from_current_state>: Remove.
1269 * linux-x86-low.cc (the_low_target): Remove the op fields.
1270 * linux-bfin-low.cc (the_low_target): Ditto.
1271 * linux-cris-low.cc (the_low_target): Ditto.
1272 * linux-crisv32-low.cc (the_low_target): Ditto.
1273 * linux-m32r-low.cc (the_low_target): Ditto.
1274 * linux-m68k-low.cc (the_low_target): Ditto.
1275 * linux-mips-low.cc (the_low_target): Ditto.
1276 * linux-nios2-low.cc (the_low_target): Ditto.
1277 * linux-ppc-low.cc (the_low_target): Ditto.
1278 * linux-s390-low.cc (the_low_target): Ditto.
1279 * linux-sh-low.cc (the_low_target): Ditto.
1280 * linux-sparc-low.cc (the_low_target): Ditto.
1281 * linux-tic6x-low.cc (the_low_target): Ditto.
1282 * linux-tile-low.cc (the_low_target): Ditto.
1283 * linux-xtensa-low.cc (the_low_target): Ditto.
1284 * linux-aarch64-low.cc (class aarch64_target)
1285 <breakpoint_kind_from_pc>
1286 <breakpoint_kind_from_current_state>: Declare.
1287 (aarch64_breakpoint_kind_from_pc): Turn into...
1288 (aarch64_target::breakpoint_kind_from_pc): ...this.
1289 (aarch64_breakpoint_kind_from_current_state): Turn into...
1290 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1291 (the_low_target): Remove the op fields.
1292 * linux-arm-low.cc (class arm_target):
1293 <breakpoint_kind_from_pc>
1294 <breakpoint_kind_from_current_state>: Declare.
1295 (arm_target::breakpoint_kind_from_pc): Define.
1296 (arm_target::breakpoint_kind_from_current_state): Define.
1297 (the_low_target): Remove the op fields.
1298 * linux-riscv-low.cc (class riscv_target):
1299 <breakpoint_kind_from_pc>: Declare.
1300 (riscv_breakpoint_kind_from_pc): Turn into...
1301 (riscv_target::breakpoint_kind_from_pc): ...this.
1302 (the_low_target): Remove the op fields.
1303
bf9ae9d8
TBA
13042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1307 of linux_process_target.
1308
1309 * linux-low.h (struct linux_target_ops): Remove the ops.
1310 (class linux_process_target) <low_supports_breakpoints>
1311 <low_get_pc>
1312 <low_set_pc>: Declare.
1313 * linux-low.cc (supports_breakpoints): Turn into...
1314 (linux_process_target::low_supports_breakpoints): ...this.
1315 (linux_process_target::low_get_pc): Define.
1316 (linux_process_target::low_set_pc): Define.
1317
1318 Update the callers below.
1319
1320 (linux_process_target::get_pc)
1321 (linux_process_target::save_stop_reason)
1322 (linux_process_target::maybe_move_out_of_jump_pad)
1323 (linux_process_target::wait_1)
1324 (linux_process_target::resume_one_lwp_throw)
1325 (linux_process_target::resume)
1326 (linux_process_target::proceed_all_lwps)
1327 (linux_process_target::read_pc)
1328 (linux_process_target::write_pc)
1329
1330 * linux-x86-low.cc (class linux_process_target)
1331 <low_supports_breakpoints>
1332 <low_get_pc>
1333 <low_set_pc>: Declare.
1334 (x86_target::low_supports_breakpoints): Define.
1335 (x86_get_pc): Turn into...
1336 (x86_target::low_get_pc): ...this.
1337 (x86_set_pc): Turn into...
1338 (x86_target::low_set_pc): ...this.
1339 (the_low_target): Remove the op fields.
1340 * linux-arm-low.cc (class arm_target)
1341 <low_supports_breakpoints>
1342 <low_get_pc>
1343 <low_set_pc>: Declare.
1344 (arm_target::low_supports_breakpoints)
1345 (arm_target::low_get_pc)
1346 (arm_target::low_set_pc): Define.
1347 (the_low_target): Remove the op fields.
1348 * linux-bfin-low.cc (class bfin_target)
1349 <low_supports_breakpoints>
1350 <low_get_pc>
1351 <low_set_pc>: Declare.
1352 (bfin_target::low_supports_breakpoints)
1353 (bfin_target::low_get_pc)
1354 (bfin_target::low_set_pc): Define.
1355 (the_low_target): Remove the op fields.
1356 * linux-cris-low.cc (class cris_target)
1357 <low_supports_breakpoints>
1358 <low_get_pc>
1359 <low_set_pc>: Declare.
1360 (cris_target::low_supports_breakpoints)
1361 (cris_target::low_get_pc)
1362 (cris_target::low_set_pc): Define.
1363 (the_low_target): Remove the op fields.
1364 * linux-crisv32-low.cc (class crisv32_target)
1365 <low_supports_breakpoints>
1366 <low_get_pc>
1367 <low_set_pc>: Declare.
1368 (crisv32_target::low_supports_breakpoints)
1369 (crisv32_target::low_get_pc)
1370 (crisv32_target::low_set_pc): Define.
1371 (the_low_target): Remove the op fields.
1372 * linux-m32r-low.cc (class m32r_target)
1373 <low_supports_breakpoints>
1374 <low_get_pc>
1375 <low_set_pc>: Declare.
1376 (m32r_target::low_supports_breakpoints)
1377 (m32r_target::low_get_pc)
1378 (m32r_target::low_set_pc): Define.
1379 (the_low_target): Remove the op fields.
1380 * linux-m68k-low.cc (class m68k_target)
1381 <low_supports_breakpoints>
1382 <low_get_pc>
1383 <low_set_pc>: Declare.
1384 (m68k_target::low_supports_breakpoints)
1385 (m68k_target::low_get_pc)
1386 (m68k_target::low_set_pc): Define.
1387 (the_low_target): Remove the op fields.
1388 * linux-nios2-low.cc (class nios2_target)
1389 <low_supports_breakpoints>
1390 <low_get_pc>
1391 <low_set_pc>: Declare.
1392 (nios2_target::low_supports_breakpoints)
1393 (nios2_target::low_get_pc)
1394 (nios2_target::low_set_pc): Define.
1395 (the_low_target): Remove the op fields.
1396 * linux-sh-low.cc (class sh_target)
1397 <low_supports_breakpoints>
1398 <low_get_pc>
1399 <low_set_pc>: Declare.
1400 (sh_target::low_supports_breakpoints)
1401 (sh_target::low_get_pc)
1402 (sh_target::low_set_pc): Define.
1403 (the_low_target): Remove the op fields.
1404 * linux-xtensa-low.cc (class xtensa_target)
1405 <low_supports_breakpoints>
1406 <low_get_pc>
1407 <low_set_pc>: Declare.
1408 (xtensa_target::low_supports_breakpoints)
1409 (xtensa_target::low_get_pc)
1410 (xtensa_target::low_set_pc): Define.
1411 (the_low_target): Remove the op fields.
1412 * linux-sparc-low.cc (class sparc_target)
1413 <low_supports_breakpoints>
1414 <low_get_pc>: Declare.
1415 (sparc_target::low_supports_breakpoints)
1416 (sparc_target::low_get_pc): Define.
1417 (the_low_target): Remove the op fields.
1418 * linux-tile-low.cc (class tile_target)
1419 <low_supports_breakpoints>
1420 <low_get_pc>
1421 <low_set_pc>: Declare.
1422 (tile_target::low_supports_breakpoints)
1423 (tile_target::low_get_pc)
1424 (tile_target::low_set_pc): Define.
1425 (the_low_target): Remove the op fields.
1426 * linux-aarch64-low.cc (class aarch64_target)
1427 <low_supports_breakpoints>
1428 <low_get_pc>
1429 <low_set_pc>: Declare.
1430 (aarch64_target::low_supports_breakpoints): Define.
1431 (aarch64_get_pc): Turn into...
1432 (aarch64_target::low_get_pc): ...this.
1433 (aarch64_set_pc): Turn into...
1434 (aarch64_target::low_set_pc): ...this.
1435 (the_low_target): Remove the op fields.
1436 * linux-mips-low.cc (class mips_target)
1437 <low_supports_breakpoints>
1438 <low_get_pc>
1439 <low_set_pc>: Declare.
1440 (mips_target::low_supports_breakpoints): Define.
1441 (mips_get_pc): Turn into...
1442 (mips_target::low_get_pc): ...this.
1443 (mips_set_pc): Turn into...
1444 (mips_target::low_set_pc): ...this.
1445 (the_low_target): Remove the op fields.
1446 * linux-ppc-low.cc (class ppc_target)
1447 <low_supports_breakpoints>
1448 <low_get_pc>
1449 <low_set_pc>: Declare.
1450 (ppc_target::low_supports_breakpoints): Define.
1451 (ppc_get_pc): Turn into...
1452 (ppc_target::low_get_pc): ...this.
1453 (ppc_set_pc): Turn into...
1454 (ppc_target::low_set_pc): ...this.
1455 (the_low_target): Remove the op fields.
1456 * linux-riscv-low.cc (class riscv_target)
1457 <low_supports_breakpoints>
1458 <low_get_pc>
1459 <low_set_pc>: Declare.
1460 (riscv_target::low_supports_breakpoints): Define.
1461 (riscv_get_pc): Turn into...
1462 (riscv_target::low_get_pc): ...this.
1463 (riscv_set_pc): Turn into...
1464 (riscv_target::low_set_pc): ...this.
1465 (the_low_target): Remove the op fields.
1466 * linux-s390-low.cc (class s390_target)
1467 <low_supports_breakpoints>
1468 <low_get_pc>
1469 <low_set_pc>: Declare.
1470 (s390_target::low_supports_breakpoints): Define.
1471 (s390_get_pc): Turn into...
1472 (s390_target::low_get_pc): ...this.
1473 (s390_set_pc): Turn into...
1474 (s390_target::low_set_pc): ...this.
1475 (the_low_target): Remove the op fields.
1476 * linux-tic6x-low.cc (class tic6x_target)
1477 <low_supports_breakpoints>
1478 <low_get_pc>
1479 <low_set_pc>: Declare.
1480 (tic6x_target::low_supports_breakpoints): Define.
1481 (tic6x_get_pc): Turn into...
1482 (tic6x_target::low_get_pc): ...this.
1483 (tic6x_set_pc): Turn into...
1484 (tic6x_target::low_set_pc): ...this.
1485 (the_low_target): Remove the op fields.
1486
df95181f
TBA
14872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1488
1489 Turn some more static methods in linux-low into private methods
1490 of linux_process_target.
1491
1492 * linux-low.cc (get_pc): Turn into...
1493 (linux_process_target::get_pc): ...this.
1494 (save_stop_reason): Turn into...
1495 (linux_process_target::save_stop_reason): ...this.
1496 (thread_still_has_status_pending_p): Turn into...
1497 (linux_process_target::thread_still_has_status_pending): ...this.
1498 (status_pending_p_callback): Turn into...
1499 (linux_process_target::status_pending_p_callback): ...this.
1500 (resume_stopped_resumed_lwps): Turn into...
1501 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1502 (install_software_single_step_breakpoints): Turn into...
1503 (linux_process_target::install_software_single_step_breakpoints):
1504 ...this.
1505 (single_step): Turn into...
1506 (linux_process_target::single_step): ...this.
1507 (linux_resume_one_lwp_throw): Turn into...
1508 (linux_process_target::resume_one_lwp_throw): ...this.
1509 (linux_resume_one_lwp): Turn into...
1510 (linux_process_target::resume_one_lwp): ...this.
1511 (resume_status_pending_p): Turn into...
1512 (linux_process_target::resume_status_pending): ...this.
1513 (need_step_over_p): Turn into...
1514 (linux_process_target::thread_needs_step_over): ...this.
1515 (linux_resume_one_thread): Turn into...
1516 (linux_process_target::resume_one_thread): ...this.
1517 (proceed_one_lwp): Turn into...
1518 (linux_process_target::proceed_one_lwp): ...this.
1519 (unsuspend_and_proceed_one_lwp): Turn into...
1520 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1521
1522 Update the calls/references to the above functions below.
1523
1524 (linux_process_target::handle_extended_wait)
1525 (linux_process_target::filter_event)
1526 (linux_process_target::wait_for_event_filtered)
1527 (linux_process_target::wait_1)
1528 (linux_process_target::move_out_of_jump_pad)
1529 (linux_process_target::start_step_over)
1530 (linux_process_target::resume)
1531 (linux_process_target::proceed_all_lwps)
1532 (regsets_store_inferior_registers)
1533 (linux_process_target::store_register)
1534
1535 * linux-low.h (class linux_process_target)
1536 <get_pc>
1537 <save_stop_reason>
1538 <thread_still_has_status_pending>
1539 <status_pending_p_callback>
1540 <resume_stopped_resumed_lwps>
1541 <install_software_single_step_breakpoints>
1542 <single_step>
1543 <resume_one_lwp_throw>
1544 <resume_one_lwp>
1545 <resume_status_pending>
1546 <thread_needs_step_over>
1547 <resume_one_thread>
1548 <proceed_one_lwp>
1549 <unsuspend_and_proceed_one_lwp>: Declare.
1550
bd70b1f2
TBA
15512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1552
1553 Turn the 'fetch_register' linux target op into a method of
1554 linux_process_target.
1555
1556 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1557 (class linux_process_target) <low_fetch_register>: Declare.
1558 * linux-x86-low.cc (the_low_target)
1559 * linux-aarch64-low.cc (the_low_target)
1560 * linux-arm-low.cc (the_low_target)
1561 * linux-bfin-low.cc (the_low_target)
1562 * linux-cris-low.cc (the_low_target)
1563 * linux-crisv32-low.cc (the_low_target)
1564 * linux-m32r-low.cc (the_low_target)
1565 * linux-m68k-low.cc (the_low_target)
1566 * linux-nios2-low.cc (the_low_target)
1567 * linux-ppc-low.cc (the_low_target)
1568 * linux-s390-low.cc (the_low_target)
1569 * linux-sh-low.cc (the_low_target)
1570 * linux-sparc-low.cc (the_low_target)
1571 * linux-tic6x-low.cc (the_low_target)
1572 * linux-tile-low.cc (the_low_target)
1573 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1574 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1575 Declare.
1576 (ia64_fetch_register): Turn into...
1577 (ia64_target::low_fetch_register): ...this.
1578 (the_low_target): Remove the op field.
1579 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1580 Declare.
1581 (mips_fetch_register): Turn into...
1582 (mips_target::low_fetch_register): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1585 Declare.
1586 (riscv_fetch_register): Turn into...
1587 (riscv_target::low_fetch_register): ...this.
1588 (the_low_target): Remove the op field.
1589
1590 Update the callers below.
1591
1592 * linux-low.cc (linux_process_target::fetch_registers)
1593 (linux_process_target::low_fetch_register)
1594
daca57a7
TBA
15952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1598 linux target ops into methods of linux_process_target.
1599
1600 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1601 (class linux_process_target) <fetch_register>
1602 <store_register>
1603 <usr_fetch_inferior_registers>
1604 <usr_store_inferior_registers>
1605 <low_cannot_fetch_register>
1606 <low_cannot_fetch_register> Declare.
1607 * linux-low.cc (fetch_register): Turn into...
1608 (linux_process_target::fetch_register): ...this.
1609 (store_register): Turn into ...
1610 (linux_process_target::store_register): ...this.
1611 (usr_fetch_inferior_registers): Turn into...
1612 (linux_process_target::usr_fetch_inferior_registers): ...this.
1613 (usr_store_inferior_registers): Turn into...
1614 (linux_process_target::usr_store_inferior_registers): ...this.
1615 * linux-x86-low.cc (class x86_target)
1616 <low_cannot_fetch_register>
1617 <low_cannot_store_register>: Declare.
1618 (x86_cannot_store_register): Turn into...
1619 (x86_target::low_cannot_store_register): ...this.
1620 (x86_cannot_fetch_register): Turn into...
1621 (x86_target::low_cannot_fetch_register): ...this.
1622 (the_low_target): Remove the target op fields.
1623 * linux-aarch64-low.cc (class aarch64_target)
1624 <low_cannot_fetch_register>
1625 <low_cannot_store_register>: Declare.
1626 (aarch64_target::low_cannot_fetch_register)
1627 (aarch64_target::low_cannot_store_register): Define.
1628 (the_low_target): Remove the op fields.
1629 * linux-arm-low.cc (class arm_target)
1630 <low_cannot_fetch_register>
1631 <low_cannot_store_register>: Declare.
1632 (arm_cannot_fetch_register): Turn into...
1633 (arm_target::low_cannot_fetch_register): ...this.
1634 (arm_cannot_store_register): Turn into...
1635 (arm_target::low_cannot_store_register): ...this.
1636 (the_low_target): Remove the op fields.
1637 * linux-bfin-low.cc (class bfin_target)
1638 <low_cannot_fetch_register>
1639 <low_cannot_store_register>: Declare.
1640 (bfin_cannot_fetch_register): Turn into...
1641 (bfin_target::low_cannot_fetch_register): ...this.
1642 (bfin_cannot_store_register): Turn into...
1643 (bfin_target::low_cannot_store_register): ...this.
1644 (the_low_target): Remove the op fields.
1645 * linux-cris-low.cc (class cris_target)
1646 <low_cannot_fetch_register>
1647 <low_cannot_store_register>: Declare.
1648 (cris_cannot_fetch_register): Turn into...
1649 (cris_target::low_cannot_fetch_register): ...this.
1650 (cris_cannot_store_register): Turn into...
1651 (cris_target::low_cannot_store_register): ...this.
1652 (the_low_target): Remove the op fields.
1653 * linux-crisv32-low.cc (class crisv32_target)
1654 <low_cannot_fetch_register>
1655 <low_cannot_store_register>: Declare.
1656 (crisv32_target::low_cannot_fetch_register)
1657 (crisv32_target::low_cannot_store_register): Define.
1658 (the_low_target): Remove the op fields.
1659 * linux-ia64-low.cc (class ia64_target)
1660 <low_cannot_fetch_register>
1661 <low_cannot_store_register>: Declare.
1662 (ia64_cannot_fetch_register): Turn into...
1663 (ia64_target::low_cannot_fetch_register): ...this.
1664 (ia64_cannot_store_register): Turn into...
1665 (ia64_target::low_cannot_store_register): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-m32r-low.cc (class m32r_target)
1668 <low_cannot_fetch_register>
1669 <low_cannot_store_register>: Declare.
1670 (m32r_cannot_fetch_register): Turn into...
1671 (m32r_target::low_cannot_fetch_register): ...this.
1672 (m32r_cannot_store_register): Turn into...
1673 (m32r_target::low_cannot_store_register): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-m68k-low.cc (class m68k_target)
1676 <low_cannot_fetch_register>
1677 <low_cannot_store_register>: Declare.
1678 (m68k_cannot_fetch_register): Turn into...
1679 (m68k_target::low_cannot_fetch_register): ...this.
1680 (m68k_cannot_store_register): Turn into...
1681 (m68k_target::low_cannot_store_register): ...this.
1682 (the_low_target): Remove the op fields.
1683 * linux-mips-low.cc (class mips_target)
1684 <low_cannot_fetch_register>
1685 <low_cannot_store_register>: Declare.
1686 (mips_cannot_fetch_register): Turn into...
1687 (mips_target::low_cannot_fetch_register): ...this.
1688 (mips_cannot_store_register): Turn into...
1689 (mips_target::low_cannot_store_register): ...this.
1690 (get_usrregs_info): Inline at the call sites in
1691 low_cannot_fetch_register and low_cannot_store_register,
1692 and remove.
1693 (the_low_target): Remove the op fields.
1694 * linux-nios2-low.cc (class nios2_target)
1695 <low_cannot_fetch_register>
1696 <low_cannot_store_register>: Declare.
1697 (nios2_cannot_fetch_register): Turn into...
1698 (nios2_target::low_cannot_fetch_register): ...this.
1699 (nios2_cannot_store_register): Turn into...
1700 (nios2_target::low_cannot_store_register): ...this.
1701 (the_low_target): Remove the op fields.
1702 * linux-ppc-low.cc (class ppc_target)
1703 <low_cannot_fetch_register>
1704 <low_cannot_store_register>: Declare.
1705 (ppc_cannot_fetch_register): Turn into...
1706 (ppc_target::low_cannot_fetch_register): ...this.
1707 (ppc_cannot_store_register): Turn into...
1708 (ppc_target::low_cannot_store_register): ...this.
1709 (the_low_target): Remove the op fields.
1710 * linux-riscv-low.cc (class riscv_target)
1711 <low_cannot_fetch_register>
1712 <low_cannot_store_register>: Declare.
1713 (riscv_target::low_cannot_fetch_register)
1714 (riscv_target::low_cannot_store_register): Define.
1715 (the_low_target): Remove the op fields.
1716 * linux-s390-low.cc (class s390_target)
1717 <low_cannot_fetch_register>
1718 <low_cannot_store_register>: Declare.
1719 (s390_cannot_fetch_register): Turn into...
1720 (s390_target::low_cannot_fetch_register): ...this.
1721 (s390_cannot_store_register): Turn into...
1722 (s390_target::low_cannot_store_register): ...this.
1723 (the_low_target): Remove the op fields.
1724 * linux-sh-low.cc (class sh_target)
1725 <low_cannot_fetch_register>
1726 <low_cannot_store_register>: Declare.
1727 (sh_cannot_fetch_register): Turn into...
1728 (sh_target::low_cannot_fetch_register): ...this.
1729 (sh_cannot_store_register): Turn into...
1730 (sh_target::low_cannot_store_register): ...this.
1731 (the_low_target): Remove the op fields.
1732 * linux-sparc-low.cc (class sparc_target)
1733 <low_cannot_fetch_register>
1734 <low_cannot_store_register>: Declare.
1735 (sparc_cannot_fetch_register): Turn into...
1736 (sparc_target::low_cannot_fetch_register): ...this.
1737 (sparc_cannot_store_register): Turn into...
1738 (sparc_target::low_cannot_store_register): ...this.
1739 (the_low_target): Remove the op fields.
1740 * linux-tic6x-low.cc (class tic6x_target)
1741 <low_cannot_fetch_register>
1742 <low_cannot_store_register>: Declare.
1743 (tic6x_cannot_fetch_register): Turn into...
1744 (tic6x_target::low_cannot_fetch_register): ...this.
1745 (tic6x_cannot_store_register): Turn into...
1746 (tic6x_target::low_cannot_store_register): ...this.
1747 (the_low_target): Remove the op fields.
1748 * linux-tile-low.cc (class tile_target)
1749 <low_cannot_fetch_register>
1750 <low_cannot_store_register>: Declare.
1751 (tile_cannot_fetch_register): Turn into...
1752 (tile_target::low_cannot_fetch_register): ...this.
1753 (tile_cannot_store_register): Turn into...
1754 (tile_target::low_cannot_store_register): ...this.
1755 (the_low_target): Remove the op fields.
1756 * linux-xtensa-low.cc (class xtensa_target)
1757 <low_cannot_fetch_register>
1758 <low_cannot_store_register>: Declare.
1759 (xtensa_target::low_cannot_fetch_register)
1760 (xtensa_target::low_cannot_store_register): Define.
1761 (the_low_target): Remove the op fields.
1762
aa8d21c9
TBA
17632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1764
1765 Turn the 'regs_info' linux target op into a method of
1766 linux_process_target.
1767
1768 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1769 (class linux_process_target) <get_regs_info>: Define.
1770
1771 Update the callers below.
1772
1773 * linux-low.cc (linux_process_target::fetch_registers)
1774 (linux_process_target::store_registers)
1775 * proc-service.cc (gregset_info)
1776
1777 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1778 (x86_linux_regs_info): Turn into ...
1779 (x86_target::get_regs_info): ...this.
1780 (the_low_target): Remove the op field.
1781 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1782 Declare.
1783 (aarch64_regs_info): Turn into ...
1784 (aarch64_target::get_regs_info): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1787 (arm_regs_info): Turn into ...
1788 (arm_target::get_regs_info): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1791 (bfin_regs_info): Turn into ...
1792 (bfin_target::get_regs_info): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1795 (cris_regs_info): Turn into ...
1796 (cris_target::get_regs_info): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1799 Declare.
1800 (crisv32_regs_info): Turn into ...
1801 (crisv32_target::get_regs_info): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1804 (ia64_regs_info): Turn into ...
1805 (ia64_target::get_regs_info): ...this.
1806 (the_low_target): Remove the op field.
1807 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1808 (m32r_regs_info): Turn into ...
1809 (m32r_target::get_regs_info): ...this.
1810 (the_low_target): Remove the op field.
1811 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1812 (m68k_regs_info): Turn into ...
1813 (m68k_target::get_regs_info): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1816 (mips_regs_info): Turn into ...
1817 (mips_target::get_regs_info): ...this.
1818 (the_low_target): Remove the op field.
1819 (get_usrregs_info): Update the call to the op.
1820 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1821 (nios2_regs_info): Turn into ...
1822 (nios2_target::get_regs_info): ...this.
1823 (the_low_target): Remove the op field.
1824 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1825 (ppc_regs_info): Turn into ...
1826 (ppc_target::get_regs_info): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1829 (riscv_regs_info): Turn into ...
1830 (riscv_target::get_regs_info): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1833 (s390_regs_info): Turn into ...
1834 (s390_target::get_regs_info): ...this.
1835 (the_low_target): Remove the op field.
1836 (s390_collect_ptrace_register)
1837 (s390_supply_ptrace_register)
1838 (s390_fill_gregset): Update the call to the op.
1839 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1840 (sh_regs_info): Turn into ...
1841 (sh_target::get_regs_info): ...this.
1842 (the_low_target): Remove the op field.
1843 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1844 (sparc_regs_info): Turn into ...
1845 (sparc_target::get_regs_info): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1848 (tic6x_regs_info): Turn into ...
1849 (tic6x_target::get_regs_info): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1852 (tile_regs_info): Turn into ...
1853 (tile_target::get_regs_info): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1856 Declare.
1857 (xtensa_regs_info): Turn into ...
1858 (xtensa_target::get_regs_info): ...this.
1859 (the_low_target): Remove the op field.
1860
797bcff5
TBA
18612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 Turn the 'arch_setup' linux target op into a method of
1864 linux_process_target.
1865
1866 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1867 (class linux_process_target) <arch_setup_thread>
1868 <low_arch_setup>: New declarations.
1869 * linux-low.cc (linux_arch_setup): Delete.
1870 (linux_arch_setup_thread): Turn into...
1871 (linux_process_target::arch_setup_thread): ... this.
1872
1873 Update the callers below.
1874
1875 (linux_process_target::handle_extended_wait)
1876 (linux_process_target::post_create_inferior)
1877 (linux_process_target::filter_event)
1878
1879 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1880 declaration.
1881 (x86_linux_update_xmltarget): Turn into...
1882 (x86_target::update_xmltarget): ...this.
1883 (x86_linux_process_qsupported): Update the call to
1884 x86_linux_update_xmltarget.
1885 (x86_arch_setup): Turn into ...
1886 (x86_target::low_arch_setup): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1889 declaration.
1890 (aarch64_arch_setup): Turn into ...
1891 (aarch64_target::low_arch_setup): ...this.
1892 (the_low_target): Remove the op field.
1893 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1894 declaration.
1895 (arm_arch_setup): Turn into ...
1896 (arm_target::low_arch_setup): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1899 declaration.
1900 (bfin_arch_setup): Turn into ...
1901 (bfin_target::low_arch_setup): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1904 declaration.
1905 (cris_arch_setup): Turn into ...
1906 (cris_target::low_arch_setup): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1909 declaration.
1910 (crisv32_arch_setup): Turn into ...
1911 (crisv32_target::low_arch_setup): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1914 declaration.
1915 (ia64_arch_setup): Turn into ...
1916 (ia64_target::low_arch_setup): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1919 declaration.
1920 (m32r_arch_setup): Turn into ...
1921 (m32r_target::low_arch_setup): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1924 declaration.
1925 (m68k_arch_setup): Turn into ...
1926 (m68k_target::low_arch_setup): ...this.
1927 (the_low_target): Remove the op field.
1928 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1929 declaration.
1930 (mips_arch_setup): Turn into ...
1931 (mips_target::low_arch_setup): ...this.
1932 (the_low_target): Remove the op field.
1933 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1934 declaration.
1935 (nios2_arch_setup): Turn into ...
1936 (nios2_target::low_arch_setup): ...this.
1937 (the_low_target): Remove the op field.
1938 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1939 declaration.
1940 (ppc_arch_setup): Turn into ...
1941 (ppc_target::low_arch_setup): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1944 declaration.
1945 (riscv_arch_setup): Turn into ...
1946 (riscv_target::low_arch_setup): ...this.
1947 (the_low_target): Remove the op field.
1948 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1949 declaration.
1950 (s390_arch_setup): Turn into ...
1951 (s390_target::low_arch_setup): ...this.
1952 (the_low_target): Remove the op field.
1953 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1954 declaration.
1955 (sh_arch_setup): Turn into ...
1956 (sh_target::low_arch_setup): ...this.
1957 (the_low_target): Remove the op field.
1958 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1959 declaration.
1960 (sparc_arch_setup): Turn into ...
1961 (sparc_target::low_arch_setup): ...this.
1962 (the_low_target): Remove the op field.
1963 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1964 declaration.
1965 (tic6x_arch_setup): Turn into ...
1966 (tic6x_target::low_arch_setup): ...this.
1967 (the_low_target): Remove the op field.
1968 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1969 declaration.
1970 (tile_arch_setup): Turn into ...
1971 (tile_target::low_arch_setup): ...this.
1972 (the_low_target): Remove the op field.
1973 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1974 declaration.
1975 (xtensa_arch_setup): Turn into ...
1976 (xtensa_target::low_arch_setup): ...this.
1977 (the_low_target): Remove the op field.
1978
ef0478f6
TBA
19792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1980
1981 * linux-low.h (the_linux_target): New extern declaration.
1982 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1983 'the_target'.
1984 (the_linux_target): Remove.
1985 * linux-x86-low.cc (class x86_target): New class.
1986 (the_x86_target): New static object.
1987 (the_linux_target): Define as pointer to the_x86_target.
1988 * linux-aarch64-low.cc (class aarch64_target): New class.
1989 (the_aarch64_target): New static object.
1990 (the_linux_target): Define as pointer to the_aarch64_target.
1991 * linux-arm-low.cc (class arm_target): New class.
1992 (the_arm_target): New static object.
1993 (the_linux_target): Define as pointer to the_arm_target.
1994 * linux-bfin-low.cc (class bfin_target): New class.
1995 (the_bfin_target): New static object.
1996 (the_linux_target): Define as pointer to the_bfin_target.
1997 * linux-cris-low.cc (class cris_target): New class.
1998 (the_cris_target): New static object.
1999 (the_linux_target): Define as pointer to the_cris_target.
2000 * linux-crisv32-low.cc (class crisv32_target): New class.
2001 (the_crisv32_target): New static object.
2002 (the_linux_target): Define as pointer to the_crisv32_target.
2003 * linux-ia64-low.cc (class ia64_target): New class.
2004 (the_ia64_target): New static object.
2005 (the_linux_target): Define as pointer to the_ia64_target.
2006 * linux-m32r-low.cc (class m32r_target): New class.
2007 (the_m32r_target): New static object.
2008 (the_linux_target): Define as pointer to the_m32r_target.
2009 * linux-m68k-low.cc (class m68k_target): New class.
2010 (the_m68k_target): New static object.
2011 (the_linux_target): Define as pointer to the_m68k_target.
2012 * linux-mips-low.cc (class mips_target): New class.
2013 (the_mips_target): New static object.
2014 (the_linux_target): Define as pointer to the_mips_target.
2015 * linux-nios2-low.cc (class nios2_target): New class.
2016 (the_nios2_target): New static object.
2017 (the_linux_target): Define as pointer to the_nios2_target.
2018 * linux-ppc-low.cc (class ppc_target): New class.
2019 (the_ppc_target): New static object.
2020 (the_linux_target): Define as pointer to the_ppc_target.
2021 * linux-riscv-low.cc (class riscv_target): New class.
2022 (the_riscv_target): New static object.
2023 (the_linux_target): Define as pointer to the_riscv_target.
2024 * linux-s390-low.cc (class s390_target): New class.
2025 (the_s390_target): New static object.
2026 (the_linux_target): Define as pointer to the_s390_target.
2027 * linux-sh-low.cc (class sh_target): New class.
2028 (the_sh_target): New static object.
2029 (the_linux_target): Define as pointer to the_sh_target.
2030 * linux-sparc-low.cc (class sparc_target): New class.
2031 (the_sparc_target): New static object.
2032 (the_linux_target): Define as pointer to the_sparc_target.
2033 * linux-tic6x-low.cc (class tic6x_target): New class.
2034 (the_tic6x_target): New static object.
2035 (the_linux_target): Define as pointer to the_tic6x_target.
2036 * linux-tile-low.cc (class tile_target): New class.
2037 (the_tile_target): New static object.
2038 (the_linux_target): Define as pointer to the_tile_target.
2039 * linux-xtensa-low.cc (class xtensa_target): New class.
2040 (the_xtensa_target): New static object.
2041 (the_linux_target): Define as pointer to the_xtensa_target.
2042
d16f3f6c
TBA
20432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2044
2045 Turn some static functions in linux-low.cc into private methods of
2046 linux_process_target.
2047
2048 * linux-low.cc (handle_extended_wait): Turn into ...
2049 (linux_process_target::handle_extended_wait): ...this. Call
2050 'mourn' on 'this' object instead of 'the_target'.
2051 (maybe_move_out_of_jump_pad): Turn into...
2052 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2053 (linux_low_filter_event): Turn into...
2054 (linux_process_target::filter_event): ...this.
2055 (linux_wait_for_event_filtered): Turn into...
2056 (linux_process_target::wait_for_event_filtered): ...this.
2057 (linux_wait_for_event): Turn into...
2058 (linux_process_target::wait_for_event): ...this.
2059 (linux_wait_1): Turn into...
2060 (linux_process_target::wait_1): ...this.
2061 (wait_for_sigstop): Turn into...
2062 (linux_process_target::wait_for_sigstop): ...this.
2063 (move_out_of_jump_pad_callback): Turn into...
2064 (linux_process_target::move_out_of_jump_pad): ...this.
2065 (stop_all_lwps): Turn into...
2066 (linux_process_target::stop_all_lwps): ...this.
2067 (start_step_over): Turn into...
2068 (linux_process_target::start_step_over): ...this.
2069 (complete_ongoing_step_over): Turn into...
2070 (linux_process_target::complete_ongoing_step_over): ...this.
2071 (proceed_all_lwps): Turn into...
2072 (linux_process_target::proceed_all_lwps): ...this.
2073 (unstop_all_lwps): Turn into...
2074 (linux_process_target::unstop_all_lwps): ...this.
2075
2076 * linux-low.h (class linux_process_target)
2077 <handle_extended_wait>
2078 <maybe_move_out_of_jump_pad>
2079 filter_event>
2080 <wait_for_event_filtered>
2081 <wait_for_event>
2082 <wait_1>
2083 <wait_for_sigstop>
2084 <move_out_of_jump_pad>
2085 <stop_all_lwps>
2086 <start_step_over>
2087 <complete_ongoing_step_over>
2088 <proceed_all_lwps>
2089 <unstop_all_lwps>: Declare.
2090
2091 Update the callers below.
2092
2093 * linux-low.cc (linux_process_target::attach): Update.
2094 (linux_process_target::stabilize_threads): Ditto.
2095 (linux_process_target::wait): Ditto.
2096
a5863204
TBA
20972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2098
2099 * linux-low.h (struct linux_target_ops): Update the comment for
2100 'cannot_store_register' to return 0 or 1.
2101 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2102 of 2.
2103
c884cc46
SM
21042020-03-20 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * config.in: Re-generate.
2107 * configure: Re-generate.
2108
5a82b8a1
KR
21092020-03-17 Kamil Rytarowski <n54@gmx.com>
2110
2111 * regcache.cc (find_register_by_number): Update.
2112 * tdesc.cc (init_target_desc): Likewise.
2113 * tdesc.h (target_desc::reg_defs): Likewise.
2114
4635ff97
TT
21152020-03-12 Tom Tromey <tom@tromey.com>
2116
2117 * configure: Rebuild.
2118 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2119 (WIN32APILIBS): New subst.
2120 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2121 gdbsupport files.
2122 (gdbsupport/%.o): Remove target.
2123 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2124 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2125 (WIN32APILIBS): New variable.
2126 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2127 (gdbreplay$(EXEEXT)): Likewise.
2128
9a665d62
TT
21292020-03-12 Tom Tromey <tom@tromey.com>
2130
2131 * config.in, configure: Rebuild.
2132 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2133 * acinclude.m4: Include gettext-sister.m4.
2134 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2135 variables.
2136 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2137 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2138
272cd5a3
SM
21392020-03-12 Simon Marchi <simon.marchi@efficios.com>
2140
2141 * acinclude.m4: Update path to selftest.m4.
2142
db6878ac
SM
21432020-03-12 Simon Marchi <simon.marchi@efficios.com>
2144
2145 * configure.ac: Don't source bfd/development.sh, move
2146 GDB_AC_COMMON higher.
2147 * configure: Re-generate.
2148
4d696a5c
SM
21492020-03-12 Simon Marchi <simon.marchi@efficios.com>
2150
2151 * configure: Re-generate.
2152
a0761e34
SM
21532020-03-11 Simon Marchi <simon.marchi@efficios.com>
2154
2155 * configure: Re-generate.
2156
20ea4a60
AB
21572020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * .dir-locals.el: New file.
2160
842806cb
TBA
21612020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162
2163 * .gitattributes: New file.
2164
442131c1
AB
21652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2168 reply into an S reply.
2169 * server.cc (disable_packet_T): New global.
2170 (captured_main): Set new global when appropriate.
2171 * server.h (disable_packet_T): Declare.
2172
dda42c0b
TT
21732020-02-21 Tom Tromey <tom@tromey.com>
2174
2175 * Makefile.in (mostlyclean): New target.
2176
52405d85
TBA
21772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178
2179 * target.h (struct process_stratum_target): Remove.
2180 (class process_target): Rename to ...
2181 (class process_stratum_target): ... this.
2182 * linux-low.h (class linux_process_target): Derive from
2183 'process_stratum_target'.
2184 * linux-low.cc (linux_target_ops): Remove.
2185 (initialize_low): Set the_target to the singleton instance of
2186 linux_process_target.
2187 * lynx-low.h (class lynx_process_target): Derive from
2188 'process_stratum_target'.
2189 * lynx-low.cc (lynx_target_ops): Remove.
2190 (initialize_low): Set the_target to the singleton instance of
2191 lynx_process_target.
2192 * nto-low.h (class nto_process_target): Derive from
2193 'process_stratum_target'.
2194 * nto-low.cc (nto_target_ops): Remove.
2195 (initialize_low): Set the_target to the singleton instance of
2196 nto_process_target.
2197 * win32-low.h (class win32_process_target): Derive from
2198 'process_stratum_target'.
2199 * win32-low.cc (win32_target_ops): Remove.
2200 (initialize_low): Set the_target to the singleton instance of
2201 win32_process_target.
2202
2203 Replace 'the_target->pt' with 'the_target' in the uses below.
2204
2205 * hostio.cc (hostio_error)
2206 (handle_setfs)
2207 (handle_open)
2208 (handle_unlink)
2209 (handle_readlink)
2210 * linux-aarch32-low.cc (arm_breakpoint_at)
2211 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2212 * linux-arm-low.cc (arm_sigreturn_next_pc)
2213 (arm_get_hwcap)
2214 (arm_get_syscall_trapinfo)
2215 * linux-cris-low.cc (cris_breakpoint_at)
2216 * linux-crisv32-low.cc (cris_breakpoint_at)
2217 * linux-low.cc (handle_extended_wait)
2218 (linux_wait_1)
2219 (linux_read_memory)
2220 (linux_process_target::breakpoint_kind_from_pc)
2221 (linux_get_auxv)
2222 * linux-m32r-low.cc (m32r_breakpoint_at)
2223 * linux-mips-low.cc (mips_breakpoint_at)
2224 * linux-nios2-low.cc (nios2_breakpoint_at)
2225 * linux-ppc-low.cc (ppc_breakpoint_at)
2226 * linux-s390-low.cc (s390_get_hwcap)
2227 * linux-sh-low.cc (sh_breakpoint_at)
2228 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2229 (sparc_store_gregset_from_stack)
2230 (sparc_breakpoint_at)
2231 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2232 * linux-tile-low.cc (tile_breakpoint_at)
2233 * linux-x86-low.cc (x86_breakpoint_at)
2234 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2235 * mem-break.cc (bp_size)
2236 (bp_opcode)
2237 (insert_memory_breakpoint)
2238 (set_raw_breakpoint_at)
2239 (delete_raw_breakpoint)
2240 (z_type_supported)
2241 (uninsert_raw_breakpoint)
2242 (reinsert_raw_breakpoint)
2243 (validate_inserted_breakpoint)
2244 * regcache.cc (regcache_read_pc)
2245 (regcache_write_pc)
2246 * remote-utils.cc (putpkt_binary_1)
2247 (input_interrupt)
2248 (getpkt)
2249 (prepare_resume_reply)
2250 * server.cc (handle_general_set)
2251 (handle_detach)
2252 (handle_qxfer_auxv)
2253 (handle_qxfer_exec_file)
2254 (handle_qxfer_libraries_svr4)
2255 (handle_qxfer_osdata)
2256 (handle_qxfer_siginfo)
2257 (handle_qxfer_fdpic)
2258 (handle_query)
2259 (resume)
2260 (handle_v_requests)
2261 (queue_stop_reply_callback)
2262 (captured_main)
2263 * target.cc (prepare_to_access_memory)
2264 (done_accessing_memory)
2265 (read_inferior_memory)
2266 (target_write_memory)
2267 (target_stop_and_wait)
2268 (target_wait)
2269 (target_mourn_inferior)
2270 (target_continue_no_signal)
2271 (target_continue)
2272 (target_supports_multi_process)
2273 (kill_inferior)
2274 * target.h
2275 (target_create_inferior)
2276 (target_post_create_inferior)
2277 (myattach)
2278 (target_supports_fork_events)
2279 (target_supports_vfork_events)
2280 (target_supports_exec_events)
2281 (target_handle_new_gdb_connection)
2282 (detach_inferior)
2283 (mythread_alive)
2284 (fetch_inferior_registers)
2285 (store_inferior_registers)
2286 (join_inferior)
2287 (target_supports_non_stop)
2288 (target_async)
2289 (target_process_qsupported)
2290 (target_supports_catch_syscall)
2291 (target_get_ipa_tdesc_idx)
2292 (target_supports_tracepoints)
2293 (target_supports_fast_tracepoints)
2294 (target_get_min_fast_tracepoint_insn_len)
2295 (target_thread_stopped)
2296 (target_pause_all)
2297 (target_unpause_all)
2298 (target_stabilize_threads)
2299 (target_install_fast_tracepoint_jump_pad)
2300 (target_emit_ops)
2301 (target_supports_disable_randomization)
2302 (target_supports_agent)
2303 (target_enable_btrace)
2304 (target_disable_btrace)
2305 (target_read_btrace)
2306 (target_read_btrace_conf)
2307 (target_supports_range_stepping)
2308 (target_supports_stopped_by_sw_breakpoint)
2309 (target_stopped_by_sw_breakpoint)
2310 (target_supports_stopped_by_hw_breakpoint)
2311 (target_supports_hardware_single_step)
2312 (target_stopped_by_hw_breakpoint)
2313 (target_breakpoint_kind_from_pc)
2314 (target_breakpoint_kind_from_current_state)
2315 (target_supports_software_single_step)
2316 (target_core_of_thread)
2317 (target_thread_name)
2318 (target_thread_handle)
2319 * win32-low.cc (do_initial_child_stuff)
2320
2321 Rename target op default definitions listed below.
2322
2323 * target.cc (process_target::post_create_inferior): Rename as ...
2324 (process_stratum_target::post_create_inferior): ... this.
2325 (process_target::prepare_to_access_memory): Rename as ...
2326 (process_stratum_target::prepare_to_access_memory): ... this.
2327 (process_target::done_accessing_memory): Rename as ...
2328 (process_stratum_target::done_accessing_memory): ... this.
2329 (process_target::look_up_symbols): Rename as ...
2330 (process_stratum_target::look_up_symbols): ... this.
2331 (process_target::supports_read_auxv): Rename as ...
2332 (process_stratum_target::supports_read_auxv): ... this.
2333 (process_target::read_auxv): Rename as ...
2334 (process_stratum_target::read_auxv): ... this.
2335 (process_target::supports_z_point_type): Rename as ...
2336 (process_stratum_target::supports_z_point_type): ... this.
2337 (process_target::insert_point): Rename as ...
2338 (process_stratum_target::insert_point): ... this.
2339 (process_target::remove_point): Rename as ...
2340 (process_stratum_target::remove_point): ... this.
2341 (process_target::stopped_by_sw_breakpoint): Rename as ...
2342 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2343 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2344 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2345 (process_target::stopped_by_hw_breakpoint): Rename as ...
2346 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2347 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2348 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2349 (process_target::supports_hardware_single_step): Rename as ...
2350 (process_stratum_target::supports_hardware_single_step): ... this.
2351 (process_target::stopped_by_watchpoint): Rename as ...
2352 (process_stratum_target::stopped_by_watchpoint): ... this.
2353 (process_target::stopped_data_address): Rename as ...
2354 (process_stratum_target::stopped_data_address): ... this.
2355 (process_target::supports_read_offsets): Rename as ...
2356 (process_stratum_target::supports_read_offsets): ... this.
2357 (process_target::read_offsets): Rename as ...
2358 (process_stratum_target::read_offsets): ... this.
2359 (process_target::supports_get_tls_address): Rename as ...
2360 (process_stratum_target::supports_get_tls_address): ... this.
2361 (process_target::get_tls_address): Rename as ...
2362 (process_stratum_target::get_tls_address): ... this.
2363 (process_target::hostio_last_error): Rename as ...
2364 (process_stratum_target::hostio_last_error): ... this.
2365 (process_target::supports_qxfer_osdata): Rename as ...
2366 (process_stratum_target::supports_qxfer_osdata): ... this.
2367 (process_target::qxfer_osdata): Rename as ...
2368 (process_stratum_target::qxfer_osdata): ... this.
2369 (process_target::supports_qxfer_siginfo): Rename as ...
2370 (process_stratum_target::supports_qxfer_siginfo): ... this.
2371 (process_target::qxfer_siginfo): Rename as ...
2372 (process_stratum_target::qxfer_siginfo): ... this.
2373 (process_target::supports_non_stop): Rename as ...
2374 (process_stratum_target::supports_non_stop): ... this.
2375 (process_target::async): Rename as ...
2376 (process_stratum_target::async): ... this.
2377 (process_target::start_non_stop): Rename as ...
2378 (process_stratum_target::start_non_stop): ... this.
2379 (process_target::supports_multi_process): Rename as ...
2380 (process_stratum_target::supports_multi_process): ... this.
2381 (process_target::supports_fork_events): Rename as ...
2382 (process_stratum_target::supports_fork_events): ... this.
2383 (process_target::supports_vfork_events): Rename as ...
2384 (process_stratum_target::supports_vfork_events): ... this.
2385 (process_target::supports_exec_events): Rename as ...
2386 (process_stratum_target::supports_exec_events): ... this.
2387 (process_target::handle_new_gdb_connection): Rename as ...
2388 (process_stratum_target::handle_new_gdb_connection): ... this.
2389 (process_target::handle_monitor_command): Rename as ...
2390 (process_stratum_target::handle_monitor_command): ... this.
2391 (process_target::core_of_thread): Rename as ...
2392 (process_stratum_target::core_of_thread): ... this.
2393 (process_target::supports_read_loadmap): Rename as ...
2394 (process_stratum_target::supports_read_loadmap): ... this.
2395 (process_target::read_loadmap): Rename as ...
2396 (process_stratum_target::read_loadmap): ... this.
2397 (process_target::process_qsupported): Rename as ...
2398 (process_stratum_target::process_qsupported): ... this.
2399 (process_target::supports_tracepoints): Rename as ...
2400 (process_stratum_target::supports_tracepoints): ... this.
2401 (process_target::read_pc): Rename as ...
2402 (process_stratum_target::read_pc): ... this.
2403 (process_target::write_pc): Rename as ...
2404 (process_stratum_target::write_pc): ... this.
2405 (process_target::supports_thread_stopped): Rename as ...
2406 (process_stratum_target::supports_thread_stopped): ... this.
2407 (process_target::thread_stopped): Rename as ...
2408 (process_stratum_target::thread_stopped): ... this.
2409 (process_target::supports_get_tib_address): Rename as ...
2410 (process_stratum_target::supports_get_tib_address): ... this.
2411 (process_target::get_tib_address): Rename as ...
2412 (process_stratum_target::get_tib_address): ... this.
2413 (process_target::pause_all): Rename as ...
2414 (process_stratum_target::pause_all): ... this.
2415 (process_target::unpause_all): Rename as ...
2416 (process_stratum_target::unpause_all): ... this.
2417 (process_target::stabilize_threads): Rename as ...
2418 (process_stratum_target::stabilize_threads): ... this.
2419 (process_target::supports_fast_tracepoints): Rename as ...
2420 (process_stratum_target::supports_fast_tracepoints): ... this.
2421 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2422 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2423 (process_target::emit_ops): Rename as ...
2424 (process_stratum_target::emit_ops): ... this.
2425 (process_target::supports_disable_randomization): Rename as ...
2426 (process_stratum_target::supports_disable_randomization): ... this.
2427 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2428 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2429 (process_target::qxfer_libraries_svr4): Rename as ...
2430 (process_stratum_target::qxfer_libraries_svr4): ... this.
2431 (process_target::supports_agent): Rename as ...
2432 (process_stratum_target::supports_agent): ... this.
2433 (process_target::enable_btrace): Rename as ...
2434 (process_stratum_target::enable_btrace): ... this.
2435 (process_target::disable_btrace): Rename as ...
2436 (process_stratum_target::disable_btrace): ... this.
2437 (process_target::read_btrace): Rename as ...
2438 (process_stratum_target::read_btrace): ... this.
2439 (process_target::read_btrace_conf): Rename as ...
2440 (process_stratum_target::read_btrace_conf): ... this.
2441 (process_target::supports_range_stepping): Rename as ...
2442 (process_stratum_target::supports_range_stepping): ... this.
2443 (process_target::supports_pid_to_exec_file): Rename as ...
2444 (process_stratum_target::supports_pid_to_exec_file): ... this.
2445 (process_target::pid_to_exec_file): Rename as ...
2446 (process_stratum_target::pid_to_exec_file): ... this.
2447 (process_target::supports_multifs): Rename as ...
2448 (process_stratum_target::supports_multifs): ... this.
2449 (process_target::multifs_open): Rename as ...
2450 (process_stratum_target::multifs_open): ... this.
2451 (process_target::multifs_unlink): Rename as ...
2452 (process_stratum_target::multifs_unlink): ... this.
2453 (process_target::multifs_readlink): Rename as ...
2454 (process_stratum_target::multifs_readlink): ... this.
2455 (process_target::breakpoint_kind_from_pc): Rename as ...
2456 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2457 (process_target::breakpoint_kind_from_current_state): Rename as ...
2458 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2459 (process_target::thread_name): Rename as ...
2460 (process_stratum_target::thread_name): ... this.
2461 (process_target::thread_handle): Rename as ...
2462 (process_stratum_target::thread_handle): ... this.
2463 (process_target::supports_software_single_step): Rename as ...
2464 (process_stratum_target::supports_software_single_step): ... this.
2465 (process_target::supports_catch_syscall): Rename as ...
2466 (process_stratum_target::supports_catch_syscall): ... this.
2467 (process_target::get_ipa_tdesc_idx): Rename as ...
2468 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2469
478f9adf
PA
24702020-02-20 Pedro Alves <palves@redhat.com>
2471
2472 * target.cc (set_target_ops): Simply copy the given target pointer
2473 instead of creating a copy of the pointed object.
2474
d633e831
TBA
24752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2476
2477 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2478 of process_target.
2479
2480 * target.h (struct process_stratum_target): Remove the target op.
2481 (class process_target): Add the target op.
2482 (target_get_ipa_tdesc_idx): Update the macro.
2483 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2484
2485 Update the derived classes and callers below.
2486
2487 * linux-low.cc (linux_target_ops): Update.
2488 (linux_get_ipa_tdesc_idx): Turn into ...
2489 (linux_process_target::get_ipa_tdesc_idx): ... this.
2490 * linux-low.h (class linux_process_target): Update.
2491 * lynx-low.cc (lynx_target_ops): Update.
2492 * nto-low.cc (nto_target_ops): Update.
2493 * win32-low.cc (win32_target_ops): Update.
2494
bc8d3ae4
TBA
24952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2496
2497 Turn process_stratum_target's supports_catch_syscall op into a
2498 method of process_target.
2499
2500 * target.h (struct process_stratum_target): Remove the target op.
2501 (class process_target): Add the target op.
2502 (target_supports_catch_syscall): Update the macro.
2503 * target.cc (process_target::supports_catch_syscall): Define.
2504
2505 Update the derived classes and callers below.
2506
2507 * linux-low.cc (linux_target_ops): Update.
2508 (linux_supports_catch_syscall): Turn into ...
2509 (linux_process_target::supports_catch_syscall): ... this.
2510 * linux-low.h (class linux_process_target): Update.
2511 * lynx-low.cc (lynx_target_ops): Update.
2512 * nto-low.cc (nto_target_ops): Update.
2513 * win32-low.cc (win32_target_ops): Update.
2514
5303a34f
TBA
25152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2516
2517 Turn process_stratum_target's supports_software_single_step op
2518 into a method of process_target.
2519
2520 * target.h (struct process_stratum_target): Remove the target op.
2521 (class process_target): Add the target op.
2522 (target_supports_software_single_step): Update the macro.
2523 * target.cc (process_target::supports_software_single_step): Define.
2524
2525 Update the derived classes and callers below.
2526
2527 * linux-low.cc (linux_target_ops): Update.
2528 (linux_supports_software_single_step): Turn into ...
2529 (linux_process_target::supports_software_single_step): ... this.
2530 * linux-low.h (class linux_process_target): Update.
2531 * lynx-low.cc (lynx_target_ops): Update.
2532 * nto-low.cc (nto_target_ops): Update.
2533 * win32-low.cc (win32_target_ops): Update.
2534
7f63b89b
TBA
25352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2536
2537 Turn process_stratum_target's thread_name and thread_handle ops
2538 into methods of process_target.
2539
2540 * target.h (struct process_stratum_target): Remove the target ops.
2541 (class process_target): Add the target ops.
2542 (target_thread_name): Update the macro.
2543 (target_thread_handle): Update the macro.
2544 * target.cc (process_target::thread_name): Define.
2545 (process_target::thread_handle): Define.
2546
2547 Update the derived classes and callers below.
2548
2549 * linux-low.cc (linux_target_ops): Update.
2550 (linux_process_target::thread_name): Define.
2551 (linux_process_target::thread_handle): Define.
2552 * linux-low.h (class linux_process_target): Update.
2553 * lynx-low.cc (lynx_target_ops): Update.
2554 * nto-low.cc (nto_target_ops): Update.
2555 * win32-low.cc (win32_target_ops): Update.
2556
d367006f
TBA
25572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2558
2559 Turn process_stratum_target's breakpoint_kind_from_pc,
2560 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2561 ops into methods of process_target.
2562
2563 * target.h (struct process_stratum_target): Remove the target op.
2564 (class process_target): Add the target op.
2565 (target_breakpoint_kind_from_pc): Update the macro.
2566 (target_breakpoint_kind_from_current_state): Update the macro.
2567 (default_breakpoint_kind_from_pc): Remove declaration.
2568 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2569 (process_target::breakpoint_kind_from_pc): ... this.
2570 (process_target::breakpoint_kind_from_current_state): Define.
2571
2572 Update the derived classes and callers below.
2573
2574 * mem-break.cc (bp_size): Update.
2575 (bp_opcode): Update.
2576 * linux-low.cc (linux_target_ops): Update.
2577 (linux_wait_1): Update.
2578 (linux_breakpoint_kind_from_pc): Turn into ...
2579 (linux_process_target::breakpoint_kind_from_pc): ... this.
2580 (linux_sw_breakpoint_from_kind): Turn into ...
2581 (linux_process_target::sw_breakpoint_from_kind): ... this.
2582 (linux_breakpoint_kind_from_current_state): Turn into ...
2583 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2584 * linux-low.h (class linux_process_target): Update.
2585 * lynx-low.cc (lynx_target_ops): Update.
2586 (lynx_process_target::sw_breakpoint_from_kind): Define.
2587 * lynx-low.h (class lynx_process_target): Update.
2588 * nto-low.cc (nto_target_ops): Update.
2589 (nto_sw_breakpoint_from_kind): Turn into ...
2590 (nto_process_target::sw_breakpoint_from_kind): ... this.
2591 * nto-low.h (class nto_process_target): Update.
2592 * win32-low.cc (win32_target_ops): Update.
2593 (win32_sw_breakpoint_from_kind): Turn into ...
2594 (win32_process_target::sw_breakpoint_from_kind): ... this.
2595 * win32-low.h (class win32_process_target): Update.
2596
c9b7b804
TBA
25972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2598
2599 Turn process_stratum_target's multifs_open, multifs_readlink,
2600 multifs_unlink ops into methods of process_target.
2601
2602 * target.h (struct process_stratum_target): Remove the target ops.
2603 (class process_target): Add the target ops. Also add
2604 'supports_multifs'.
2605 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2606 "sys/stat.h".
2607 (process_target::supports_multifs): Define.
2608 (process_target::multifs_open): Define.
2609 (process_target::multifs_readlink): Define.
2610 (process_target::multifs_unlink): Define.
2611
2612 Update the derived classes and callers below.
2613
2614 * hostio.cc (handle_setfs): Update.
2615 (handle_open): Update.
2616 (handle_unlink): Update.
2617 (handle_readlink): Update.
2618 * linux-low.cc (linux_target_ops): Update.
2619 (linux_process_target::supports_multifs): Define.
2620 (linux_process_target::multifs_open): Define.
2621 (linux_process_target::multifs_readlink): Define.
2622 (linux_process_target::multifs_unlink): Define.
2623 * linux-low.h (class linux_process_target): Update.
2624 * lynx-low.cc (lynx_target_ops): Update.
2625 * nto-low.cc (nto_target_ops): Update.
2626 * win32-low.cc (win32_target_ops): Update.
2627
8247b823
TBA
26282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2629
2630 Turn process_stratum_target's pid_to_exec_file op into a method
2631 of process_target.
2632
2633 * target.h (struct process_stratum_target): Remove the target op.
2634 (class process_target): Add the target op. Also add
2635 'supports_pid_to_exec_file'.
2636 * target.cc (process_target::pid_to_exec_file): Define.
2637 (process_target::supports_pid_to_exec_file): Define.
2638
2639 Update the derived classes and callers below.
2640
2641 * server.cc (handle_qxfer_exec_file): Update.
2642 (handle_query): Update.
2643 * linux-low.cc (linux_target_ops): Update.
2644 (linux_process_target::supports_pid_to_exec_file): Define.
2645 (linux_process_target::pid_to_exec_file): Define.
2646 * linux-low.h (class linux_process_target): Update.
2647 * lynx-low.cc (lynx_target_ops): Update.
2648 * nto-low.cc (nto_target_ops): Update.
2649 * win32-low.cc (win32_target_ops): Update.
2650
2526e0cd
TBA
26512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2652
2653 Turn process_stratum_target's supports_range_stepping op into a
2654 method of process_target.
2655
2656 * target.h (struct process_stratum_target): Remove the target op.
2657 (class process_target): Add the target op.
2658 (target_supports_range_stepping): Update the macro.
2659 * target.cc (process_target::supports_range_stepping): Define.
2660
2661 Update the derived classes and callers below.
2662
2663 * linux-low.cc (linux_target_ops): Update.
2664 (linux_supports_range_stepping): Turn into ...
2665 (linux_process_target::supports_range_stepping): ... this.
2666 * linux-low.h (class linux_process_target): Update.
2667 * lynx-low.cc (lynx_target_ops): Update.
2668 * nto-low.cc (nto_target_ops): Update.
2669 * win32-low.cc (win32_target_ops): Update.
2670
79597bdd
TBA
26712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2672
2673 Turn process_stratum_target's btrace-related ops (enable_btrace,
2674 disable_btrace, read_btrace, read_btrace_conf) into methods of
2675 process_target.
2676
2677 * target.h (struct process_stratum_target): Remove the target ops.
2678 (class process_target): Add the target ops.
2679 (target_enable_btrace): Update.
2680 (target_disable_btrace): Update.
2681 (target_read_btrace): Update.
2682 (target_read_btrace_conf): Update.
2683 * target.cc (process_target::enable_btrace): Define.
2684 (process_target::disable_btrace): Define.
2685 (process_target::read_btrace): Define.
2686 (process_target::read_btrace_conf): Define.
2687
2688 Update the derived classes and callers below.
2689
2690 * linux-low.cc (linux_target_ops): Update.
2691 (linux_process_target:enable_btrace): Define as a wrapper around
2692 linux_enable_btrace.
2693 (linux_low_disable_btrace): Turn into ...
2694 (linux_process_target::disable_btrace): ... this.
2695 (linux_low_read_btrace): Turn into ...
2696 (linux_process_target::read_btrace): ... this.
2697 (linux_low_btrace_conf): Turn into ...
2698 (linux_process_target::read_btrace_conf): ... this.
2699 * linux-low.h (class linux_process_target): Update.
2700 * lynx-low.cc (lynx_target_ops): Update.
2701 * nto-low.cc (nto_target_ops): Update.
2702 * win32-low.cc (win32_target_ops): Update.
2703
c0245cb9
TBA
27042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2705
2706 Turn process_stratum_target's supports_agent op into a method of
2707 process_target.
2708
2709 * target.h (struct process_stratum_target): Remove the target op.
2710 (class process_target): Add the target op.
2711 (target_supports_agent): Update the macro.
2712 * target.cc (process_target::supports_agent): Define.
2713
2714 Update the derived classes and callers below.
2715
2716 * linux-low.cc (linux_target_ops): Update.
2717 (linux_supports_agent): Turn into ...
2718 (linux_process_target::supports_agent): ... this.
2719 * linux-low.h (class linux_process_target): Update.
2720 * lynx-low.cc (lynx_target_ops): Update.
2721 * nto-low.cc (nto_target_ops): Update.
2722 * win32-low.cc (win32_target_ops): Update.
2723
974387bb
TBA
27242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2725
2726 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2727 method of process_target.
2728
2729 * target.h (struct process_stratum_target): Remove the target op.
2730 (class process_target): Add the target op. Also add
2731 'supports_qxfer_libraries_svr4'.
2732 * target.cc (process_target::qxfer_libraries_svr4): Define.
2733 (process_target::supports_qxfer_libraries_svr4): Define.
2734
2735 Update the derived classes and callers below.
2736
2737 * server.cc (handle_qxfer_libraries_svr4): Update.
2738 (handle_query): Update.
2739 * linux-low.cc (linux_target_ops): Update.
2740 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2741 (linux_qxfer_libraries_svr4): Turn into ...
2742 (linux_process_target::qxfer_libraries_svr4): ... this.
2743 * linux-low.h (class linux_process_target): Update.
2744 * lynx-low.cc (lynx_target_ops): Update.
2745 * nto-low.cc (nto_target_ops): Update.
2746 * win32-low.cc (win32_target_ops): Update.
2747
c756403b
TBA
27482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2749
2750 Turn process_stratum_target's supports_disable_randomization op
2751 into a method of process_target.
2752
2753 * target.h (struct process_stratum_target): Remove the target op.
2754 (class process_target): Add the target op.
2755 (target_supports_disable_randomization): Update the macro.
2756 * target.cc (process_target::supports_disable_randomization): Define.
2757
2758 Update the derived classes and callers below.
2759
2760 * linux-low.cc (linux_target_ops): Update.
2761 (linux_supports_disable_randomization): Turn into ...
2762 (linux_process_target::supports_disable_randomization): ... this.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2767
345dafad
TBA
27682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2769
2770 Turn process_stratum_target's emit_ops op into a method of
2771 process_target.
2772
2773 * target.h (struct process_stratum_target): Remove the target op.
2774 (class process_target): Add the target op.
2775 (target_emit_ops): Update the macro.
2776 * target.cc (process_target::emit_ops): Define.
2777
2778 Update the derived classes and callers below.
2779
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_emit_ops): Turn into ...
2782 (linux_process_target::emit_ops): ... this.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2787
c23c9391
TBA
27882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789
2790 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2791 and get_min_fast_tracepoint_insn_len ops into methods of
2792 process_target.
2793
2794 * target.h (struct process_stratum_target): Remove the target ops.
2795 (class process_target): Add the target ops. Also add
2796 'supports_fast_tracepoints'.
2797 (target_supports_fast_tracepoints): Update the macro.
2798 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2799 (install_fast_tracepoint_jump_pad): Update and rename the macro
2800 to ...
2801 (target_install_fast_tracepoint_jump_pad): ... this.
2802 * target.cc (process_target::supports_fast_tracepoints): Define.
2803 (process_target::install_fast_tracepoint_jump_pad): Define.
2804 (process_target::get_min_fast_tracepoint_insn_len): Define.
2805
2806 Update the derived classes and callers below.
2807
2808 * tracepoint.cc (install_fast_tracepoint): Update.
2809 * linux-low.cc (linux_target_ops): Update.
2810 (linux_process_target::supports_fast_tracepoints): Define.
2811 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2812 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2813 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2814 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2815 * linux-low.h (class linux_process_target): Update.
2816 * lynx-low.cc (lynx_target_ops): Update.
2817 * nto-low.cc (nto_target_ops): Update.
2818 * win32-low.cc (win32_target_ops): Update.
2819
5c9eb2f2
TBA
28202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2821
2822 Turn process_stratum_target's stabilize_threads op into a
2823 method of process_target.
2824
2825 * target.h (struct process_stratum_target): Remove the target op.
2826 (class process_target): Add the target op.
2827 (target_stabilize_threads): Update the macro.
2828 * target.cc (process_target::stabilize_threads): Define.
2829
2830 Update the derived classes and callers below.
2831
2832 * server.cc (handle_status): Update.
2833 * tracepoint.cc (cmd_qtdp): Update.
2834 (cmd_qtstart): Update.
2835 * linux-low.cc (linux_target_ops): Update.
2836 (linux_stabilize_threads): Turn into ...
2837 (linux_process_target::stabilize_threads): ... this.
2838 (linux_wait_1): Update.
2839 * linux-low.h (class linux_process_target): Update.
2840 * lynx-low.cc (lynx_target_ops): Update.
2841 * nto-low.cc (nto_target_ops): Update.
2842 * win32-low.cc (win32_target_ops): Update.
2843
29e8dc09
TBA
28442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2845
2846 Turn process_stratum_target's pause_all and unpause_all ops
2847 into methods of process_target.
2848
2849 * target.h (struct process_stratum_target): Remove the target ops.
2850 (class process_target): Add the target ops.
2851 (pause_all): Update the macro and rename to...
2852 (target_pause_all): ... this.
2853 (unpause_all): Update the macro and rename to...
2854 (target_unpause_all): ... this.
2855 * target.cc (process_target::pause_all): Define.
2856 (process_target::unpause_all): Define.
2857
2858 Update the derived classes and callers below.
2859
2860 * server.cc (handle_status): Update.
2861 * tracepoint.cc (clear_installed_tracepoints): Update.
2862 (cmd_qtdp): Update.
2863 (cmd_qtstart): Update.
2864 (stop_tracing): Update.
2865 (cmd_qtstatus): Update.
2866 (upload_fast_traceframes): Update.
2867 (run_inferior_command): Update.
2868 * linux-low.cc (linux_target_ops): Update.
2869 (linux_pause_all): Turn into ...
2870 (linux_process_target::pause_all): ... this.
2871 (linux_unpause_all): Turn into ...
2872 (linux_process_target::unpause_all): ... this.
2873 (linux_process_target::prepare_to_access_memory): Update.
2874 (linux_process_target::done_accessing_memory): Update.
2875 * linux-low.h (class linux_process_target): Update.
2876 * lynx-low.cc (lynx_target_ops): Update.
2877 * nto-low.cc (nto_target_ops): Update.
2878 * win32-low.cc (win32_target_ops): Update.
2879
4e2e869c
TBA
28802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2881
2882 Turn process_stratum_target's get_tib_address op into a method of
2883 process_target.
2884
2885 * target.h (struct process_stratum_target): Remove the target op.
2886 (class process_target): Add the target op. Also add
2887 'supports_get_tib_address'.
2888 * target.cc (process_target::get_tib_address): Define.
2889 (process_target::supports_get_tib_address): Define.
2890
2891 Update the derived classes and callers below.
2892
2893 * server.cc (handle_query): Update.
2894 * linux-low.cc (win32_target_ops): Update.
2895 * lynx-low.cc (lynx_target_ops): Update.
2896 * nto-low.cc (nto_target_ops): Update.
2897 * win32-low.cc (win32_target_ops): Update.
2898 (win32_process_target::supports_get_tib_address): Define.
2899 (win32_get_tib_address): Turn into ...
2900 (win32_process_target::get_tib_address): ... this.
2901 * win32-low.h (class win32_process_target): Update.
2902
68119632
TBA
29032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2904
2905 Turn process_stratum_target's thread_stopped op into a method of
2906 process_target.
2907
2908 * target.h (struct process_stratum_target): Remove the target op.
2909 (class process_target): Add the target op. Also add
2910 'supports_thread_stopped'.
2911 (target_thread_stopped): Update the macro.
2912 * target.cc (process_target::thread_stopped): Define.
2913 (process_target::supports_thread_stopped): Define.
2914 (prepare_to_access_memory): Update.
2915
2916 Update the derived classes and callers below.
2917
2918 * server.cc (queue_stop_reply_callback): Update.
2919 * linux-low.cc (linux_target_ops): Update.
2920 (linux_process_target::supports_thread_stopped): Define.
2921 (linux_thread_stopped): Turn into ...
2922 (linux_process_target::thread_stopped): ... this.
2923 * linux-low.h (class linux_process_target): Update.
2924 * lynx-low.cc (lynx_target_ops): Update.
2925 * nto-low.cc (nto_target_ops): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2927
770d8f6a
TBA
29282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929
2930 Turn process_stratum_target's read_pc and write_pc ops into
2931 methods of process_target.
2932
2933 * target.h (struct process_stratum_target): Remove the target ops.
2934 (class process_target): Add the target ops.
2935 * target.cc (process_target::read_pc): Define.
2936 (process_target::write_pc): Define.
2937
2938 Update the derived classes and callers below.
2939
2940 * regcache.cc (regcache_read_pc): Update.
2941 (regcache_write_pc): Update.
2942 * linux-low.cc (linux_target_ops): Update.
2943 (linux_read_pc): Turn into ...
2944 (linux_process_target::read_pc): ... this.
2945 (linux_write_pc): Turn into ...
2946 (linux_process_target::write_pc): ... this.
2947 * linux-low.h (class linux_process_target): Update.
2948 * lynx-low.cc (lynx_target_ops): Update.
2949 * nto-low.cc (nto_target_ops): Update.
2950 * win32-low.cc (win32_target_ops): Update.
2951
290732bf
TBA
29522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2953
2954 Turn process_stratum_target's supports_tracepoints op into a
2955 method of process_target.
2956
2957 * target.h (struct process_stratum_target): Remove the target op.
2958 (class process_target): Add the target op.
2959 (target_supports_tracepoints): Update the macro.
2960 * target.cc (process_target::supports_tracepoints): Define.
2961
2962 Update the derived classes and callers below.
2963
2964 * linux-low.cc (linux_target_ops): Update.
2965 (linux_supports_tracepoints): Turn into ...
2966 (linux_process_target::supports_tracepoints): ... this.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 * nto-low.cc (nto_target_ops): Update.
2970 * win32-low.cc (win32_target_ops): Update.
2971
0df28b1b
TBA
29722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973
2974 Turn process_stratum_target's process_qsupported op into a method
2975 of process_target.
2976
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op.
2979 (target_process_qsupported): Update the macro.
2980 * target.cc (process_target::process_qsupported): Define.
2981
2982 Update the derived classes and callers below.
2983
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_process_qsupported): Turn into ...
2986 (linux_process_target::process_qsupported): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 * win32-low.cc (win32_target_ops): Update.
2991
9da41fda
TBA
29922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2993
2994 Turn process_stratum_target's read_loadmap op into a method of
2995 process_target.
2996
2997 * target.h (struct process_stratum_target): Remove the target op.
2998 (class process_target): Add the target op. Also add
2999 'supports_read_loadmap'.
3000 * target.cc (process_target::read_loadmap): Define.
3001 (process_target::supports_read_loadmap): Define.
3002
3003 Update the derived classes and callers below.
3004
3005 * server.cc (handle_qxfer_fdpic): Update.
3006 (handle_query): Update.
3007 * linux-low.cc (linux_target_ops): Update.
3008 (linux_process_target::supports_read_loadmap): Define.
3009 (linux_read_loadmap): Turn into ...
3010 (linux_process_target::read_loadmap): ... this.
3011 * linux-low.h (class linux_process_target): Update.
3012 * lynx-low.cc (lynx_target_ops): Update.
3013 * nto-low.cc (nto_target_ops): Update.
3014 * win32-low.cc (win32_target_ops): Update.
3015
95a45fc1
TBA
30162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3017
3018 Turn process_stratum_target's core_of_thread op into a method of
3019 process_target.
3020
3021 * target.h (struct process_stratum_target): Remove the target op.
3022 (class process_target): Add the target op.
3023 (target_core_of_thread): Update the macro.
3024 * target.cc (process_target::core_of_thread): Define.
3025
3026 Update the derived classes and callers below.
3027
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_process_target::core_of_thread): Define.
3030 * linux-low.h (class linux_process_target): Update.
3031 * lynx-low.cc (lynx_target_ops): Update.
3032 * nto-low.cc (nto_target_ops): Update.
3033 * win32-low.cc (win32_target_ops): Update.
3034
55cf3021
TBA
30352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3036
3037 Turn process_stratum_target's handle_monitor_command op into a
3038 method of process_target.
3039
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op.
3042 (target_handle_monitor_command): Update the macro.
3043 * target.cc (process_target::handle_monitor_command): Define.
3044
3045 Update the derived classes and callers below.
3046
3047 * server.cc (handle_query): Update.
3048 * linux-low.cc (linux_target_ops): Update.
3049 (linux_process_target::handle_monitor_command): Define.
3050 * linux-low.h (class linux_process_target): Update.
3051 * lynx-low.cc (lynx_target_ops): Update.
3052 * nto-low.cc (nto_target_ops): Update.
3053 * win32-low.cc (win32_target_ops): Update.
3054
fb00dfce
TBA
30552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3056
3057 Turn process_stratum_target's handle_new_gdb_connection op into a
3058 method of process_target.
3059
3060 * target.h (struct process_stratum_target): Remove the target op.
3061 (class process_target): Add the target op.
3062 (target_handle_new_gdb_connection): Update the macro.
3063 * target.cc (process_target::handle_new_gdb_connection): Define.
3064
3065 Update the derived classes and callers below.
3066
3067 * linux-low.cc (linux_target_ops): Update.
3068 (linux_handle_new_gdb_connection): Turn into ...
3069 (linux_process_target::handle_new_gdb_connection): ... this.
3070 * linux-low.h (class linux_process_target): Update.
3071 * lynx-low.cc (lynx_target_ops): Update.
3072 * nto-low.cc (nto_target_ops): Update.
3073 * win32-low.cc (win32_target_ops): Update.
3074
9690a72a
TBA
30752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3076
3077 Turn process_stratum_target's supports_fork_events,
3078 supports_vfork_events, and supports_exec_events ops into methods
3079 of process_target.
3080
3081 * target.h (struct process_stratum_target): Remove the target ops.
3082 (class process_target): Add the target ops.
3083 (target_supports_fork_events): Update the macro.
3084 (target_supports_vfork_events): Update the macro.
3085 (target_supports_exec_events): Update the macro.
3086 * target.cc (process_target::supports_fork_events): Define.
3087 (process_target::supports_vfork_events): Define.
3088 (process_target::supports_exec_events): Define.
3089
3090 Update the derived classes and callers below.
3091
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_supports_fork_events): Turn into ...
3094 (linux_process_target::supports_fork_events): ... this.
3095 (linux_supports_vfork_events): Turn into ...
3096 (linux_process_target::supports_vfork_events): ... this.
3097 (linux_supports_exec_events): Turn into ...
3098 (linux_process_target::supports_exec_events): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3103
652aef77
TBA
31042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3105
3106 Turn process_stratum_target's supports_multi_process op into a
3107 method of process_target.
3108
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 * target.cc (process_target::supports_multi_process): Define.
3112 (target_supports_multi_process): Update.
3113
3114 Update the derived classes and callers below.
3115
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_supports_multi_process): Turn into ...
3118 (linux_process_target::supports_multi_process): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3123
0dc587d4
TBA
31242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 Turn process_stratum_target's supports_non_stop, async, and
3127 start_non_stop ops into methods of process_target.
3128
3129 * target.h (struct process_stratum_target): Remove the target ops.
3130 (class process_target): Add the target ops.
3131 (target_supports_non_stop): Update the macro.
3132 (target_async): Update the macro.
3133 (start_non_stop): Remove declaration.
3134 * target.cc (process_target::supports_non_stop): Define.
3135 (process_target::async): Define.
3136 (process_target::start_non_stop): Define.
3137 (start_non_stop): Remove.
3138
3139 Update the derived classes and callers below.
3140
3141 * server.cc (handle_qxfer_siginfo): Update.
3142 (handle_query): Update.
3143 * linux-low.cc (linux_target_ops): Update.
3144 (linux_supports_non_stop): Turn into ...
3145 (linux_process_target::supports_non_stop): ... this.
3146 (linux_async): Turn into ...
3147 (linux_process_target::async): ... this.
3148 (linux_start_non_stop): Turn into ...
3149 (linux_process_target::start_non_stop): ... this.
3150 * linux-low.h (class linux_process_target): Update.
3151 * lynx-low.cc (lynx_target_ops): Update.
3152 * nto-low.cc (nto_target_ops): Update.
3153 (nto_supports_non_stop): Remove; rely on the default behavior
3154 instead.
3155 * win32-low.cc (win32_target_ops): Update.
3156
d7abedf7
TBA
31572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3158
3159 Turn process_stratum_target's qxfer_siginfo op into a method of
3160 process_target.
3161
3162 * target.h (struct process_stratum_target): Remove the target op.
3163 (class process_target): Add the target op. Also add
3164 'supports_qxfer_siginfo'.
3165 * target.cc (process_target::qxfer_siginfo): Define.
3166 (process_target::supports_qxfer_siginfo): Define.
3167
3168 Update the derived classes and callers below.
3169
3170 * server.cc (handle_qxfer_siginfo): Update.
3171 (handle_query): Update.
3172 * linux-low.cc (linux_target_ops): Update.
3173 (linux_process_target::supports_qxfer_siginfo): Define.
3174 (linux_xfer_siginfo): Turn into ...
3175 (linux_process_target::qxfer_siginfo): ... this.
3176 * linux-low.h (class linux_process_target): Update.
3177 * lynx-low.cc (lynx_target_ops): Update.
3178 * nto-low.cc (nto_target_ops): Update.
3179 * win32-low.cc (win32_target_ops): Update.
3180
2d0795ee
TBA
31812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3182
3183 Turn process_stratum_target's qxfer_osdata op into a method of
3184 process_target.
3185
3186 * target.h (struct process_stratum_target): Remove the target op.
3187 (class process_target): Add the target op. Also add
3188 'supports_qxfer_osdata'.
3189 * target.cc (process_target::qxfer_osdata): Define.
3190 (process_target::supports_qxfer_osdata): Define.
3191
3192 Update the derived classes and callers below.
3193
3194 * server.cc (handle_qxfer_osdata): Update.
3195 (handle_query): Update.
3196 * linux-low.cc (linux_target_ops): Update.
3197 (linux_process_target::supports_qxfer_osdata): Define.
3198 (linux_qxfer_osdata): Turn into ...
3199 (linux_process_target::qxfer_osdata): ... this.
3200 * linux-low.h (class linux_process_target): Update.
3201 * lynx-low.cc (lynx_target_ops): Update.
3202 * nto-low.cc (nto_target_ops): Update.
3203 * win32-low.cc (win32_target_ops): Update.
3204
ea06bbaa
TBA
32052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3206
3207 Turn process_stratum_target's hostio_last_error op into a
3208 method of process_target.
3209
3210 * target.h (struct process_stratum_target): Remove the target op.
3211 (class process_target): Add the target op.
3212 * target.cc: Add "hostio.h" to includes.
3213 (process_target::hostio_last_error): Define.
3214
3215 Update the derived classes and callers below.
3216
3217 * hostio.cc (hostio_error): Update.
3218 * linux-low.cc: Remove "hostio.h" from includes.
3219 (linux_target_ops): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 * win32-low.h (class win32_process_target): Update.
3223 * win32-low.cc (win32_target_ops): Update.
3224 (wince_hostio_last_error): Turn into ...
3225 (win32_process_target::hostio_last_error): ... this.
3226
6e3fd7e9
TBA
32272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3228
3229 Turn process_stratum_target's get_tls_address op into a method of
3230 process_target.
3231
3232 * target.h (struct process_stratum_target): Remove the target op.
3233 (class process_target): Add the target op. Also add
3234 'supports_get_tls_address'.
3235 * target.cc (process_target::get_tls_address): Define.
3236 (process_target::supports_get_tls_address): Define.
3237
3238 Update the derived classes and callers below.
3239
3240 * server.cc (handle_query): Update.
3241 * linux-low.cc (linux_target_ops): Update.
3242 (linux_process_target::supports_get_tls_address): Define.
3243 (linux_process_target::get_tls_address): Define.
3244 * linux-low.h (class linux_process_target): Update.
3245 * lynx-low.cc (lynx_target_ops): Update.
3246 * nto-low.cc (nto_target_ops): Update.
3247 * win32-low.cc (win32_target_ops): Update.
3248
5203ae1e
TBA
32492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3250
3251 Turn process_stratum_target's read_offsets op into a method of
3252 process_target.
3253
3254 * target.h (struct process_stratum_target): Remove the target op.
3255 (class process_target): Add the target op. Also add
3256 'supports_read_offsets'.
3257 * target.cc (process_target::read_offsets): Define.
3258 (process_target::supports_read_offsets): Define.
3259
3260 Update the derived classes and callers below.
3261
3262 * server.cc (handle_query): Update.
3263 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3264 (linux_target_ops): Update.
3265 (linux_process_target::supports_read_offsets): Define.
3266 (linux_read_offsets): Turn into ...
3267 (linux_process_target::read_offsets): ... this.
3268 * linux-low.h (class linux_process_target): Update.
3269 * lynx-low.cc (lynx_target_ops): Update.
3270 * nto-low.cc (nto_target_ops): Update.
3271 * win32-low.cc (win32_target_ops): Update.
3272
6eeb5c55
TBA
32732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3274
3275 Turn process_stratum_target's stopped_by_watchpoint and
3276 stopped_data_address ops into methods of process_target.
3277
3278 * target.h (struct process_stratum_target): Remove the target ops.
3279 (class process_target): Add the target ops.
3280 * target.cc (process_target::stopped_by_watchpoint): Define.
3281 (process_target::stopped_data_address): Define.
3282
3283 Update the derived classes and callers below.
3284
3285 * remote-utils.cc (prepare_resume_reply): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_stopped_by_watchpoint): Turn into ...
3288 (linux_process_target::stopped_by_watchpoint): ... this.
3289 (linux_stopped_data_address): Turn into ...
3290 (linux_process_target::stopped_data_address): ... this.
3291 * linux-low.h (class linux_process_target): Update.
3292 * lynx-low.cc (lynx_target_ops): Update.
3293 * nto-low.cc (nto_target_ops): Update.
3294 (nto_stopped_by_watchpoint): Turn into ...
3295 (nto_process_target::stopped_by_watchpoint): ... this.
3296 (nto_stopped_data_address): Turn into ...
3297 (nto_process_target::stopped_data_address): ... this.
3298 * nto-low.h (class nto_process_target): Update.
3299 * win32-low.cc (win32_target_ops): Update.
3300 (win32_stopped_by_watchpoint): Turn into ...
3301 (win32_process_target::stopped_by_watchpoint): ... this.
3302 (win32_stopped_data_address): Turn into ...
3303 (win32_process_target::stopped_data_address): ... this.
3304 * win32-low.h (class win32_process_target): Update.
3305
22aa6223
TBA
33062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3307
3308 Turn process_stratum_target's supports_hardware_single_step op into
3309 a method of process_target.
3310
3311 * target.h (struct process_stratum_target): Remove the target op.
3312 (class process_target): Add the target op.
3313 (target_supports_hardware_single_step): Update the macro.
3314 (target_can_do_hardware_single_step): Remove declaration.
3315 * target.cc (process_target::supports_hardware_single_step): Define.
3316 (target_can_do_hardware_single_step): Remove.
3317
3318 Update the derived classes and callers below.
3319
3320 * linux-low.h (class linux_process_target): Update.
3321 * linux-low.cc (linux_target_ops): Update.
3322 (linux_supports_hardware_single_step): Turn into ...
3323 (linux_process_target::supports_hardware_single_step): ... this.
3324 * lynx-low.h (class lynx_process_target): Update.
3325 * lynx-low.cc (lynx_target_ops): Update.
3326 (lynx_process_target::supports_hardware_single_step): Define.
3327 * nto-low.h (class nto_process_target): Update.
3328 * nto-low.cc (nto_target_ops): Update.
3329 (nto_process_target::supports_hardware_single_step): Define.
3330 * win32-low.h (class win32_process_target): Update.
3331 * win32-low.cc (win32_target_ops): Update.
3332 (win32_process_target::supports_hardware_single_step): Define.
3333
93fe88b2
TBA
33342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3335
3336 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3337 ops into methods of process_target.
3338
3339 * target.h (struct process_stratum_target): Remove the target ops.
3340 (class process_target): Add the target ops.
3341 (target_stopped_by_hw_breakpoint): Update the macro.
3342 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3343 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3344 (process_target::supports_stopped_by_hw_breakpoint): Define.
3345
3346 Update the derived classes and callers below.
3347
3348 * linux-low.cc (linux_target_ops): Update.
3349 (linux_stopped_by_hw_breakpoint): Turn into ...
3350 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3351 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3352 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3353 * linux-low.h (class linux_process_target): Update.
3354 * lynx-low.cc (lynx_target_ops): Update.
3355 * nto-low.cc (nto_target_ops): Update.
3356 * win32-low.cc (win32_target_ops): Update.
3357
84320c4e
TBA
33582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3359
3360 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3361 ops into methods of process_target.
3362
3363 * target.h (struct process_stratum_target): Remove the target ops.
3364 (class process_target): Add the target ops.
3365 (target_stopped_by_sw_breakpoint): Update the macro.
3366 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3367 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3368 (process_target::supports_stopped_by_sw_breakpoint): Define.
3369
3370 Update the derived classes and callers below.
3371
3372 * linux-low.cc (linux_target_ops): Update.
3373 (linux_stopped_by_sw_breakpoint): Turn into ...
3374 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3375 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3376 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3377 * linux-low.h (class linux_process_target): Update.
3378 * lynx-low.cc (lynx_target_ops): Update.
3379 * nto-low.cc (nto_target_ops): Update.
3380 * win32-low.cc (win32_target_ops): Update.
3381
7e0bde70
TBA
33822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383
3384 Turn process_stratum_target's insert_point and remove_point ops
3385 into methods of process_target.
3386
3387 * target.h (struct process_stratum_target): Remove the target ops.
3388 (class process_target): Add the target ops.
3389 * target.cc (process_target::insert_point): Define.
3390 (process_target::remove_point): Define.
3391
3392 Update the derived classes and callers below.
3393
3394 * mem-break.cc (set_raw_breakpoint_at): Update.
3395 (delete_raw_breakpoint): Update.
3396 (uninsert_raw_breakpoint): Update.
3397 (reinsert_raw_breakpoint): Update.
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_insert_point): Turn into ...
3400 (linux_process_target::insert_point): ... this.
3401 (linux_remove_point): Turn into ...
3402 (linux_process_target::remove_point): ... this.
3403 * linux-low.h (class linux_process_target): Update.
3404 * lynx-low.cc (lynx_target_ops): Update.
3405 * nto-low.cc (nto_target_ops): Update.
3406 (nto_insert_point): Turn into ...
3407 (nto_process_target::insert_point): ... this.
3408 (nto_remove_point): Turn into ...
3409 (nto_process_target::remove_point): ... this.
3410 * nto-low.h (class nto_process_target): Update.
3411 * win32-low.cc (win32_target_ops): Update.
3412 (win32_insert_point): Turn into ...
3413 (win32_process_target::insert_point): ... this.
3414 (win32_remove_point): Turn into ...
3415 (win32_process_target::remove_point): ... this.
3416 * win32-low.h (class win32_process_target): Update.
3417
a2b2297a
TBA
34182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3419
3420 Turn process_stratum_target's supports_z_point_type op into a
3421 method of process_target.
3422
3423 * target.h (struct process_stratum_target): Remove the target op.
3424 (class process_target): Add the target op.
3425 * target.cc (process_target::supports_z_point_type): Define.
3426
3427 Update the derived classes and callers below.
3428
3429 * mem-break.cc (z_type_supported): Update.
3430 * linux-low.cc (linux_target_ops): Update.
3431 (linux_supports_z_point_type): Turn into ...
3432 (linux_process_target::supports_z_point_type): ... this.
3433 * linux-low.h (class linux_process_target): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 (nto_supports_z_point_type): Turn into ...
3437 (nto_process_target::supports_z_point_type): ... this.
3438 * nto-low.h (class nto_process_target): Update.
3439 * win32-low.cc (win32_target_ops): Update.
3440 (win32_supports_z_point_type): Turn into ...
3441 (win32_process_target::supports_z_point_type): ... this.
3442 * win32-low.h (class win32_process_target): Update.
3443
eac215cc
TBA
34442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3445
3446 Turn process_stratum_target's read_auxv op into a method of
3447 process_target.
3448
3449 * target.h (class process_stratum_target): Remove the target op.
3450 (struct process_target): Add the target op. Also add
3451 'supports_read_auxv'.
3452 * target.cc (process_target::read_auxv): Define.
3453 (process_target::supports_read_auxv): Define.
3454
3455 Update the derived classes and callers below.
3456
3457 * server.cc (handle_qxfer_auxv): Update.
3458 (handle_query): Update.
3459 * linux-low.cc (linux_target_ops): Update.
3460 (linux_process_target::supports_read_auxv): Define.
3461 (linux_read_auxv): Turn into ...
3462 (linux_process_target::read_auxv): ... this.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 (nto_process_target::supports_read_auxv): Define.
3467 (nto_read_auxv): Turn into ...
3468 (nto_process_target::read_auxv): ... this.
3469 * nto-low.h (class nto_process_target): Update.
3470 * win32-low.cc (win32_target_ops): Update.
3471
eb497a2a
TBA
34722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3473
3474 Turn process_stratum_target's request_interrupt op into a method of
3475 process_target.
3476
3477 * target.h (struct process_stratum_target): Remove the target op.
3478 (class process_target): Add the target op.
3479
3480 Update the derived classes and callers below.
3481
3482 * remote-utils.cc (putpkt_binary_1): Update.
3483 (input_interrupt): Update.
3484 (getpkt): Update.
3485 * server.cc (handle_v_requests): Update.
3486 * linux-low.cc (linux_target_ops): Update.
3487 (linux_request_interrupt): Turn into ...
3488 (linux_process_target::request_interrupt): ... this.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 (lynx_request_interrupt): Turn into ...
3492 (lynx_process_target::request_interrupt): ... this.
3493 * lynx-low.h (class lynx_process_target): Update.
3494 * nto-low.cc (nto_target_ops): Update.
3495 (nto_request_interrupt): Turn into ...
3496 (nto_process_target::request_interrupt): ... this.
3497 * nto-low.h (class nto_process_target): Update.
3498 * win32-low.cc (win32_target_ops): Update.
3499 (win32_request_interrupt): Turn into ...
3500 (win32_process_target::request_interrupt): ... this.
3501 * win32-low.h (class win32_process_target): Update.
3502
2a31c7aa
TBA
35032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3504
3505 Turn process_stratum_target's look_up_symbols op into a method of
3506 process_target.
3507
3508 * target.h (struct process_stratum_target): Remove the target op.
3509 (class process_target): Add the target op.
3510 * target.cc (process_target::look_up_symbols): Define.
3511
3512 Update the derived classes and callers below.
3513
3514 * server.cc (handle_query): Update.
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_look_up_symbols): Turn into ...
3517 (linux_process_target::look_up_symbols): ... this.
3518 * linux-low.h (class linux_process_target): Update.
3519 * lynx-low.cc (lynx_target_ops): Update.
3520 * nto-low.cc (nto_target_ops): Update.
3521 * win32-low.cc (win32_target_ops): Update.
3522
e2558df3
TBA
35232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3524
3525 Turn process_stratum_target's read_memory and write_memory
3526 ops into methods of process_target.
3527
3528 * target.h (struct process_stratum_target): Remove the target ops.
3529 (class process_target): Add the target ops.
3530
3531 Update the derived classes and callers below.
3532
3533 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3534 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3535 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3536 (arm_get_syscall_trapinfo): Update.
3537 * linux-cris-low.cc (cris_breakpoint_at): Update.
3538 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3539 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3540 * linux-mips-low.cc (mips_breakpoint_at): Update.
3541 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3542 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3543 * linux-sh-low.cc (sh_breakpoint_at): Update.
3544 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3545 (sparc_store_gregset_from_stack): Update.
3546 (sparc_breakpoint_at): Update.
3547 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3548 * linux-tile-low.cc (tile_breakpoint_at): Update.
3549 * linux-x86-low.cc (x86_breakpoint_at): Update.
3550 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3551 * mem-brea.cc (insert_memory_breakpoint): Update.
3552 (validate_inserted_breakpoint): Update.
3553 * target.cc (read_inferior_memory): Update.
3554 (target_write_memory): Update.
3555 * linux-low.cc (linux_target_ops): Update.
3556 (linux_read_memory): Make a wrapper around the read_memory target
3557 op call.
3558 (linux_process_target::read_memory): Rename from linux_read_memory.
3559 (linux_write_memory): Turn into ...
3560 (linux_process_target::write_memory): ... this.
3561 * linux-low.h (class linux_process_target): Update.
3562 * lynx-low.cc (lynx_target_ops): Update.
3563 (lynx_read_memory): Turn into ...
3564 (lynx_process_target::read_memory): ... this.
3565 (lynx_write_memory): Turn into ...
3566 (lynx_process_target::write_memory): ... this.
3567 * lynx-low.h (class lynx_process_target): Update.
3568 * nto-low.cc (nto_target_ops): Update.
3569 (nto_read_memory): Turn into ...
3570 (nto_process_target::read_memory): ... this.
3571 (nto_write_memory): Turn into ...
3572 (nto_process_target::write_memory): ... this.
3573 * nto-low.h (class nto_process_target): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3575 (win32_read_inferior_memory): Turn into ...
3576 (win32_process_target::read_memory): ... this.
3577 (win32_write_inferior_memory): Turn into ...
3578 (win32_process_target::write_memory): ... this.
3579 * win32-low.h (class win32_process_target): Update.
3580
79b44087
TBA
35812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3582
3583 Turn process_stratum_target's prepare_to_access_memory and
3584 done_accessing_memory ops into methods of process_target.
3585
3586 * target.h (struct process_stratum_target): Remove the target ops.
3587 (class process_target): Add the target ops.
3588 * target.cc (process_target::prepare_to_access_memory): Define.
3589 (process_target::done_accessing_memory): Define.
3590 (prepare_to_access_memory): Update.
3591 (done_accessing_memory): Update.
3592
3593 Update the derived classes and callers below.
3594
3595 * linux-low.cc (linux_target_ops): Update.
3596 (linux_prepare_to_access_memory): Turn into ...
3597 (linux_process_target::prepare_to_access_memory): ... this.
3598 (linux_done_accessing_memory): Turn into ...
3599 (linux_process_target::done_accessing_memory): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604
a5a4d4cd
TBA
36052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606
3607 Turn process_stratum_target's fetch_registers and store_registers
3608 ops into methods of process_target.
3609
3610 * target.h (struct process_stratum_target): Remove the target ops.
3611 (class process_target): Add the target ops.
3612 (fetch_inferior_registers): Update the macro.
3613 (store_inferior_registers): Update the macro.
3614
3615 Update the derived classes and callers below.
3616
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_fetch_registers): Turn into ...
3619 (linux_process_target::fetch_registers): ... this.
3620 (linux_store_registers): Turn into ...
3621 (linux_process_target::store_registers): ... this.
3622 * linux-low.h (class linux_process_target): Update.
3623 * lynx-low.cc (lynx_target_ops): Update.
3624 (lynx_fetch_registers): Turn into ...
3625 (lynx_process_target::fetch_registers): ... this.
3626 (lynx_store_registers): Turn into ...
3627 (lynx_process_target::store_registers): ... this.
3628 * lynx-low.h (class lynx_process_target): Update.
3629 * nto-low.cc (nto_target_ops): Update.
3630 (nto_fetch_registers): Turn into ...
3631 (nto_process_target::fetch_registers): ... this.
3632 (nto_store_registers): Turn into ...
3633 (nto_process_target::store_registers): ... this.
3634 * nto-low.h (class nto_process_target): Update.
3635 * win32-low.cc (win32_target_ops): Update.
3636 (win32_fetch_inferior_registers): Turn into ...
3637 (win32_process_target::fetch_registers): ... this.
3638 (win32_store_inferior_registers): Turn into ...
3639 (win32_process_target::store_registers): ... this.
3640 * win32-low.h (class win32_process_target): Update.
3641
6532e7e3
TBA
36422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3643
3644 Turn process_stratum_target's wait op into a method of
3645 process_target.
3646
3647 * target.h (struct process_stratum_target): Remove the target op.
3648 (class process_target): Add the target op.
3649
3650 Update the derived classes and callers below.
3651
3652 * target.cc (target_wait): Update.
3653 * linux-low.cc (linux_target_ops): Update.
3654 (linux_wait): Turn into ...
3655 (linux_process_target::wait): ... this.
3656 * linux-low.h (class linux_process_target): Update.
3657 * lynx-low.cc (lynx_target_ops): Update.
3658 (lynx_wait): Turn into ...
3659 (lynx_process_target::wait): ... this.
3660 * lynx-low.h (class lynx_process_target): Update.
3661 * nto-low.cc (nto_target_ops): Update.
3662 (nto_wait): Turn into ...
3663 (nto_process_target::wait): ... this.
3664 * nto-low.h (class nto_process_target): Update.
3665 * win32-low.cc (win32_target_ops): Update.
3666 (win32_wait): Turn into ...
3667 (win32_process_target::wait): ... this.
3668 (do_initial_child_stuff): Update.
3669 * win32-low.h (class win32_process_target): Update.
3670
0e4d7e35
TBA
36712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3672
3673 Turn process_stratum_target's resume op into a method of
3674 process_target.
3675
3676 * target.h (struct process_stratum_target): Remove the target op.
3677 (class process_target): Add the target op.
3678
3679 Update the derived classes and callers below.
3680
3681 * server.cc (resume): Update.
3682 * target.cc (target_stop_and_wait): Update.
3683 (target_continue_no_signal): Update.
3684 (target_continue): Update.
3685 * linux-low.cc (linux_target_ops): Update.
3686 (linux_resume): Turn into ...
3687 (linux_process_target::resume): ... this.
3688 * linux-low.h (class linux_process_target): Update.
3689 * lynx-low.cc (lynx_target_ops): Update.
3690 (lynx_resume): Turn into ...
3691 (lynx_process_target::resume): ... this.
3692 * lynx-low.h (class lynx_process_target): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 (nto_resume): Turn into ...
3695 (nto_process_target::resume): ... this.
3696 * nto-low.h (class nto_process_target): Update.
3697 * win32-low.cc (win32_target_ops): Update.
3698 (win32_resume): Turn into ...
3699 (win32_process_target::resume): ... this.
3700 (win32_process_target::detach): Update.
3701 (do_initial_child_stuff): Update.
3702 * win32-low.h (class win32_process_target): Update.
3703
13d3d99b
TBA
37042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3705
3706 Turn process_stratum_target's thread_alive op into a method of
3707 process_target.
3708
3709 * target.h (struct process_stratum_target): Remove the target op.
3710 (class process_target): Add the target op.
3711 (mythread_alive): Update the macro.
3712
3713 Update the derived classes and callers below.
3714
3715 * linux-low.cc (linux_target_ops): Update.
3716 (linux_thread_alive): Turn into ...
3717 (linux_process_target::thread_alive): ... this.
3718 (wait_for_sigstop): Update.
3719 * linux-low.h (class linux_process_target): Update.
3720 * lynx-low.cc (lynx_target_ops): Update.
3721 (lynx_thread_alive): Turn into ...
3722 (lynx_process_target::thread_alive): ... this.
3723 * lynx-low.h (class lynx_process_target): Update.
3724 * nto-low.cc (nto_target_ops): Update.
3725 (nto_thread_alive): Turn into ...
3726 (nto_process_target::thread_alive): ... this.
3727 * nto-low.h (class nto_process_target): Update.
3728 * win32-low.cc (win32_target_ops): Update.
3729 (win32_thread_alive): Turn into ...
3730 (win32_process_target::thread_alive): ... this.
3731 * win32-low.h (class win32_process_target): Update.
3732
95a49a39
TBA
37332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734
3735 Turn process_stratum_target's join op into a method of
3736 process_target.
3737
3738 * target.h (struct process_stratum_target): Remove the target op.
3739 (class process_target): Add the target op.
3740 (join_inferior): Update the macro.
3741
3742 Update the derived classes and callers below.
3743
3744 * linux-low.cc (linux_target_ops): Update.
3745 (linux_join): Turn into ...
3746 (linux_process_target::join): ... this.
3747 * linux-low.h (class linux_process_target): Update.
3748 * lynx-low.cc (lynx_target_ops): Update.
3749 (lynx_join): Turn into ...
3750 (lynx_process_target::join): ... this.
3751 * lynx-low.h (class lynx_process_target): Update.
3752 * nto-low.cc (nto_target_ops): Update.
3753 (nto_process_target::join): Define.
3754 * nto-low.h (class nto_process_target): Update.
3755 * win32-low.cc (win32_target_ops): Update.
3756 (win32_join): Turn into ...
3757 (win32_process_target::join): ... this.
3758 * win32-low.h (class win32_process_target): Update.
3759
8adb37b9
TBA
37602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3761
3762 Turn process_stratum_target's mourn op into a method of
3763 process_target.
3764
3765 * target.h (struct process_stratum_target): Remove the target op.
3766 (class process_target): Add the target op.
3767
3768 Update the derived classes and callers below.
3769
3770 * target.cc (target_mourn_inferior): Update.
3771 * linux-low.cc (linux_target_ops): Update.
3772 (linux_mourn): Turn into ...
3773 (linux_process_target::mourn): ... this.
3774 (handle_extended_wait): Update.
3775 (linux_process_target::kill): Update.
3776 (linux_process_target::detach): Update.
3777 * linux-low.h (class linux_process_target): Update.
3778 * lynx-low.cc (lynx_target_ops): Update.
3779 (lynx_mourn): Turn into ...
3780 (lynx_process_target::mourn): ... this.
3781 * lynx-low.h (class lynx_process_target): Update.
3782 * nto-low.cc (nto_target_ops): Update.
3783 (nto_mourn): Turn into ...
3784 (nto_process_target::mourn): ... this.
3785 * nto-low.h (class nto_process_target): Update.
3786 * win32-low.cc (win32_target_ops): Update.
3787 (win32_mourn): Turn into ...
3788 (win32_process_target::mourn): ... this.
3789 * win32-low.h (class win32_process_target): Update.
3790
9061c9cf
TBA
37912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3792
3793 Turn process_stratum_target's detach op into a method of
3794 process_target.
3795
3796 * target.h (struct process_stratum_target): Remove the target op.
3797 (class process_target): Add the target op.
3798 (detach_inferior): Update the macro.
3799
3800 Update the derived classes and callers below.
3801
3802 * linux-low.cc (linux_target_ops): Update.
3803 (linux_detach): Turn into ...
3804 (linux_process_target::detach): ... this.
3805 * linux-low.h (class linux_process_target): Update.
3806 * lynx-low.cc (lynx_target_ops): Update.
3807 (lynx_detach): Turn into ...
3808 (lynx_process_target::detach): ... this.
3809 * lynx-low.h (class lynx_process_target): Update.
3810 * nto-low.cc (nto_target_ops): Update.
3811 (nto_detach): Turn into ...
3812 (nto_process_target::detach): ... this.
3813 * nto-low.h (class nto_process_target): Update.
3814 * win32-low.cc (win32_target_ops): Update.
3815 (win32_detach): Turn into ...
3816 (win32_process_target::detach): ... this.
3817 * win32-low.h (class win32_process_target): Update.
3818
c6885a57
TBA
38192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 Turn process_stratum_target's kill op into a method of
3822 process_target.
3823
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3826
3827 Update the derived classes and callers below.
3828
3829 * target.cc (kill_inferior): Update.
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_kill): Turn into ...
3832 (linux_process_target::kill): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 (lynx_kill): Turn into ...
3836 (lynx_process_target::kill): ... this.
3837 * lynx-low.h (class lynx_process_target): Update.
3838 * nto-low.cc (nto_target_ops): Update.
3839 (nto_kill): Turn into ...
3840 (nto_process_target::kill): ... this.
3841 * nto-low.h (class nto_process_target): Update.
3842 * win32-low.cc (win32_target_ops): Update.
3843 (win32_kill): Turn into ...
3844 (win32_process_target::kill): ... this.
3845 * win32-low.h (class win32_process_target): Update.
3846
ef03dad8
TBA
38472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848
3849 Turn process_stratum_target's attach op into a method of
3850 process_target.
3851
3852 * target.h (struct process_stratum_target): Remove the target op.
3853 (class process_target): Add the target op.
3854 (myattach): Update the macro.
3855
3856 Update the derived classes and callers below.
3857
3858 * linux-low.cc (linux_target_ops): Update.
3859 (linux_attach): Turn into ...
3860 (linux_process_target::attach): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_attach): Turn into ...
3864 (lynx_process_target::attach): ... this.
3865 * lynx-low.h (class lynx_process_target): Update.
3866 * nto-low.cc (nto_target_ops): Update.
3867 (nto_attach): Turn into ...
3868 (nto_process_target::attach): ... this.
3869 * nto-low.h (class nto_process_target): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871 (win32_attach): Turn into ...
3872 (win32_process_target::attach): ... this.
3873 * win32-low.h (class win32_process_target): Update.
3874
6dee9afb
TBA
38752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3876
3877 Turn process_stratum_target's post_create_inferior op into a method
3878 of process_target.
3879
3880 * target.h (struct process_stratum_target): Remove the target op.
3881 (class process_target): Add the target op.
3882 (target_post_create_inferior): Update the macro.
3883 * target.cc (process_target::post_create_inferior): Define.
3884
3885 Update the derived classes and callers below.
3886
3887 * linux-low.cc (linux_target_ops): Update.
3888 (linux_post_create_inferior): Turn into ...
3889 (linux_process_target::post_create_inferior): ... this.
3890 * linux-low.h (class linux_process_target): Update.
3891 * lynx-low.cc (lynx_target_ops): Update.
3892 * nto-low.cc (nto_target_ops): Update.
3893 * win32-low.cc (win32_target_ops): Update.
3894
15295543
TBA
38952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3896
3897 Turn process_stratum_target's create_inferior op into a method of
3898 process_target.
3899
3900 * target.h (struct process_stratum_target): Remove the target op.
3901 (class process_target): Add the target op.
3902 (create_inferior): Rename the macro to ...
3903 (target_create_inferior): ... this.
3904
3905 Update the derived classes and callers below.
3906
3907 * server.cc (handle_v_run): Update.
3908 (captured_main): Update.
3909 (process_serial_event): Update.
3910 * linux-low.cc (linux_target_ops): Update.
3911 (linux_create_inferior): Turn into ...
3912 (linux_process_target::create_inferior): ... this.
3913 * linux-low.h (class linux_process_target): Update.
3914 * lynx-low.cc (lynx_target_ops): Update.
3915 (lynx_create_inferior): Turn into ...
3916 (lynx_process_target::create_inferior): ... this.
3917 * lynx-low.h (class lynx_process_target): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 (nto_create_inferior): Turn into ...
3920 (nto_process_target::create_inferior): ... this.
3921 * nto-low.h (class nto_process_target): Update.
3922 * win32-low.cc (win32_target_ops): Update.
3923 (win32_create_inferior): Turn into ...
3924 (win32_process_target::create_inferior): ... this.
3925 * win32-low.h (class win32_process_target): Update.
3926
5ef9273d
TBA
39272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3928
3929 * target.h (class process_target): New class definition.
3930 (struct process_stratum_target) <pt>: New field with type
3931 'process_target*'.
3932 * linux-low.h (class linux_process_target): Define as a derived
3933 class of 'process_target'.
3934 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3935 as the 'pt' field.
3936 * lynx-low.h (class lynx_process_target): Define as a derived
3937 class of 'process_target'.
3938 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3939 as the 'pt' field.
3940 * nto-low.h (class nto_process_target): Define as a derived
3941 class of 'process_target'.
3942 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3943 as the 'pt' field.
3944 * win32-low.h (class win32_process_target): Define as a derived
3945 class of 'process_target'.
3946 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3947 as the 'pt' field.
3948
9f1528a1
AB
39492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * configure: Regenerate.
3952
bf84f706
MR
39532020-02-19 Maciej W. Rozycki <macro@wdc.com>
3954 Andrew Burgess <andrew.burgess@embecosm.com>
3955
3956 * linux-riscv-low.cc: New file.
3957 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3958 and nat/riscv-linux-tdesc.c.
3959 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3960 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3961 Define.
3962
1a627e7e
TT
39632020-02-14 Tom Tromey <tom@tromey.com>
3964
3965 * acinclude.m4: Don't include acx_configure_dir.m4.
3966 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3967 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3968 (all, install-only, uninstall, clean-info, clean)
3969 (maintainer-clean): Don't recurse.
3970 (subdir_do, all-lib): Remove.
3971 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3972 (GNULIB_H): Remove.
3973 (generated_files): Update.
3974 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3975 * configure: Rebuild.
3976 * configure.ac: Don't configure gnulib or libiberty.
3977 (GNULIB): Update.
3978
a9b34532
EZ
39792020-02-14 Eli Zaretskii <eliz@gnu.org>
3980
3981 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3982 preparing the command line for CreateProcess.
3983 (win32_create_inferior): Reflect the program name in debugging
3984 output that shows the process and its command line.
3985
feacfcac
SM
39862020-02-13 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * Makefile.in: Rename source files from .c to .cc.
3989 * %.c: Rename to %.cc.
3990 * configure.ac: Rename server.c to server.cc.
3991 * configure: Re-generate.
3992
06b3c5bd
SM
39932020-02-13 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3996
052793ad
HD
39972020-02-12 Hannes Domani <ssbssa@yahoo.de>
3998
3999 * win32-low.c (win32_create_inferior): Set signal_pid.
4000
f20e3e82
MR
40012020-02-12 Maciej W. Rozycki <macro@wdc.com>
4002 Pedro Alves <palves@redhat.com>
4003
4004 Skip building gdbserver in a cross-configuration.
4005 * configure.srv: Set $gdbserver_host depending on whether $target
4006 is $host. Use $gdbserver_host instead of $host.
4007
8ddd8e0e
SM
40082020-02-11 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * configure: Re-generate.
4011
898e7f60
SM
40122020-02-11 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * configure: Re-generate.
4015
58df732b
SM
40162020-02-11 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * acinclude.m4: Update warning.m4 path.
4019
7928d571
HD
40202020-02-09 Hannes Domani <ssbssa@yahoo.de>
4021
4022 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4023 (handle_exception): Set siginfo_er.
4024 (win32_xfer_siginfo): New function.
4025
919adfe8
TT
40262020-02-07 Tom Tromey <tom@tromey.com>
4027 Pedro Alves <palves@redhat.com>
4028
4029 * README: Update build documentation.
4030 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4031 host, not target.
4032 * configure.ac: Update paths.
4033 * configure: Rebuild.
4034 * acinclude.m4: Update paths.
4035 * Makefile.in: Update include paths.
4036 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4037 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4038 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4039 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4040 (%-generated.c): Update paths.
4041 * Move entire directory from ../gdb/gdbserver.
4042
287c844a
MR
40432020-01-29 Maciej W. Rozycki <macro@wdc.com>
4044
4045 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4046
548a204f
PFC
40472020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4048
4049 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4050 assignment instead of srv_linux_obj.
4051
a2236a08
HD
40522020-01-28 Hannes Domani <ssbssa@yahoo.de>
4053
4054 * server.c (handle_qxfer_libraries): Write segment-address with
4055 paddress.
4056
bdaed379
HD
40572020-01-24 Hannes Domani <ssbssa@yahoo.de>
4058
4059 * Makefile.in (install-strip): New target.
4060 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4061 * aclocal.m4: Regenerate.
4062 * configure: Regenerate.
4063 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4064
42cd72aa
MR
40652020-01-24 Maciej W. Rozycki <macro@wdc.com>
4066
4067 * Makefile.in (SFILES): Adjust paths to point to real files.
4068 (OBS): Move waitstatus.o to target/waitstatus.o.
4069 (TAGS): Transform paths appropriately.
4070 (%.o): Rename to...
4071 (nat/%.o): ... this pattern rule.
4072 (%.o): Rename to...
4073 (target/%.o): ... this pattern rule.
4074 * configure.srv: Adjust paths throughout to include nat/ prefix
4075 with the revant files.
4076 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4077 * configure: Regenerate.
4078
42ba50ec
MR
40792020-01-24 Maciej W. Rozycki <macro@wdc.com>
4080
4081 * Makefile.in (TAGS): Remove config files from the recipe.
4082
05ea2a05
TT
40832020-01-14 Tom Tromey <tom@tromey.com>
4084
4085 * configure: Rebuild.
4086 * configure.ac: Remove any checks that were added to common.m4.
4087 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4088 lib-link.m4.
4089
01027315
TT
40902020-01-14 Tom Tromey <tom@tromey.com>
4091
4092 * server.h: Include config.h.
4093 * gdbreplay.c: Include config.h.
4094 * configure: Rebuild.
4095 * configure.ac: Don't source common.host.
4096 * acinclude.m4: Update path.
4097 * Makefile.in (INCSUPPORT): New variable.
4098 (INCLUDE_CFLAGS): Add INCSUPPORT.
4099 (SFILES): Update paths.
4100 (version-generated.c): Update path to create-version.sh.
4101 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4102
b2ceabe8
TT
41032020-01-14 Tom Tromey <tom@tromey.com>
4104
4105 * configure.ac (LIBS): Use WIN32APILIBS.
4106 (USE_WIN32API): Don't define.
4107 * configure: Rebuild.
4108
25c51f71
TT
41092020-01-14 Tom Tromey <tom@tromey.com>
4110
4111 * configure: Rebuild.
4112
c0bd321d
SM
41132020-01-13 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * Makefile.in (%-generated.c): Remove rule for files from
4116 regformats/i386.
4117
bb564c58
SM
41182020-01-13 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * configure: Re-generate.
4121
6e37c371
SM
41222020-01-13 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4125 Define to static.
4126 * tracepoint.c (stop_tracing, flush_trace_buffer,
4127 about_to_request_buffer_space, get_trace_state_variable_value,
4128 set_trace_state_variable_value, gdb_collect): Add declaration.
4129
df4a0200
SM
41302020-01-13 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4133 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4134 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4135 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4136 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4137 static.
4138
89e94ec9
SM
41392020-01-13 Simon Marchi <simon.marchi@efficios.com>
4140
4141 * inferiors.c: Include gdbsupport/common-inferior.h.
4142
2552728a
SM
41432020-01-13 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * hostio-errno.c: Include hostio.h.
4146
4025fa09
SM
41472020-01-13 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4150 prerequisite.
4151
c0b0a142
SM
41522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4153
4154 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4155 * linux-arm-tdesc.h: Include arch/arm.h.
4156
bb1183e2
SM
41572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4158
4159 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4160
f5df0b5f
SM
41612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4162
4163 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4164 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4165
5b6d1e4f
PA
41662020-01-10 Pedro Alves <palves@redhat.com>
4167
4168 * fork-child.c (post_fork_inferior): Pass target down to
4169 startup_inferior.
4170 * inferiors.c (switch_to_thread): Add process_stratum_target
4171 parameter.
4172 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4173 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4174 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4175 * remote-utils.c (prepare_resume_reply): Pass the target to
4176 switch_to_thread.
4177 * target.c (the_target): Now a process_stratum_target.
4178 (done_accessing_memory): Pass the target to switch_to_thread.
4179 (set_target_ops): Ajust to use process_stratum_target.
4180 * target.h (struct target_ops): Rename to ...
4181 (struct process_stratum_target): ... this.
4182 (the_target, set_target_ops): Adjust.
4183 (prepare_to_access_memory): Adjust comment.
4184 * win32-low.c (child_xfer_memory): Adjust to use
4185 process_stratum_target.
4186 (win32_target_ops): Now a process_stratum_target.
4187
559e7e50
EZ
41882020-01-06 Eli Zaretskii <eliz@gnu.org>
4189 Pedro Alves <palves@redhat.com>
4190
4191 * win32-low.c (get_child_debug_event): Extract the fatal exception
4192 from the exit status and convert to the equivalent Posix signal
4193 number.
4194 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4195 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4196
48189bec
HD
41972020-01-01 Hannes Domani <ssbssa@yahoo.de>
4198
4199 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4200
5dd8bf88
JB
42012020-01-01 Joel Brobecker <brobecker@adacore.com>
4202
4203 * server.c (gdbserver_version): Change copyright year to 2020.
4204 * gdbreplay.c (gdbreplay_version): Likewise.
4205
0ad6b8ee
CB
42062019-12-19 Christian Biesinger <cbiesinger@google.com>
4207
4208 * configure: Regenerate.
4209 * configure.ac: Quote variable arguments of test.
4210
1ee7b812
BE
42112019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4212
4213 * Makefile.in: Fix build with GNU Make 3.81
4214
d9fa87f4
TT
42152019-12-16 Tom Tromey <tromey@adacore.com>
4216
4217 * server.c (get_exec_file): Constify result.
4218
ab7d13f0
CB
42192019-12-10 Christian Biesinger <cbiesinger@google.com>
4220
4221 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4222 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4223 * config.in: Regenerate.
4224 * configure: Regenerate.
4225 * configure.ac: Don't check for strerror.
4226 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4227 Call safe_strerror instead of strerror.
4228 * server.h (strerror): Remove this now-unnecessary declaration.
4229 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4230 strerror.
4231 (gdb_agent_helper_thread): Likewise.
4232 * utils.c (perror_with_name): Likewise.
4233
4da8c3a8
TT
42342019-11-26 Tom Tromey <tom@tromey.com>
4235
4236 * configure, config.in: Rebuild.
4237
21987b9c
TT
42382019-11-26 Tom Tromey <tom@tromey.com>
4239
4240 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4241 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4242 gdb_sigmask.
4243 * configure, config.in: Rebuild.
4244
5e030278
TT
42452019-11-26 Tom Tromey <tom@tromey.com>
4246
4247 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4248 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4249 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4250 * acinclude.m4: Include ax_pthread.m4.
4251 * config.in, configure: Rebuild.
4252
6d91ce9a
CB
42532019-11-26 Christian Biesinger <cbiesinger@google.com>
4254
4255 * debug.c (debug_set_output): Call safe_strerror instead of
4256 strerror.
4257 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4258 (linux_kill_one_lwp): Likewise.
4259 (linux_detach_one_lwp): Likewise.
4260 (linux_wait_for_event_filtered): Likewise.
4261 (store_register): Likewise.
4262 * lynx-low.c (lynx_attach): Likewise.
4263 * mem-break.c (insert_memory_breakpoint): Likewise.
4264 (remove_memory_breakpoint): Likewise.
4265 (delete_fast_tracepoint_jump): Likewise.
4266 (set_fast_tracepoint_jump): Likewise.
4267 (uninsert_fast_tracepoint_jumps_at): Likewise.
4268 (reinsert_fast_tracepoint_jumps_at): Likewise.
4269 * nto-low.c (nto_xfer_memory): Likewise.
4270 (nto_resume): Likewise.
4271
6cdd651f
LM
42722019-11-20 Luis Machado <luis.machado@linaro.org>
4273
4274 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4275 instead of register count.
4276 * tdesc.c (tdesc_contains_feature): New function.
4277 * tdesc.h (tdesc_contains_feature): New prototype.
4278
cd850b40
CB
42792019-11-15 Christian Biesinger <cbiesinger@google.com>
4280
4281 * Makefile.in: Add safe-strerror.c.
4282 * configure: Regenerate.
4283 * configure.ac: Don't source common.host.
4284
5abebf3c
CB
42852019-11-15 Christian Biesinger <cbiesinger@google.com>
4286
4287 * config.in: Regenerate.
4288 * configure: Regenerate.
4289
e06f3d6e
AB
42902019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4291
4292 * ax.c (ax_printf): Handle size_t_arg.
4293
ca3a04f6
CB
42942019-11-06 Christian Biesinger <cbiesinger@google.com>
4295
4296 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4297 * mi/mi-main.c (output_cores): Likewise.
4298 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4299 (linux_xfer_osdata_modules): Likewise.
4300 * remote.c (register_remote_support_xml): Likewise.
4301 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4302 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4303
e48f6033
CB
43042019-11-01 Christian Biesinger <cbiesinger@google.com>
4305
4306 * configure: Regenerate.
4307 * configure.ac: Remove check for strerror_r.
4308
e7e97a2e
CB
43092019-10-31 Christian Biesinger <cbiesinger@google.com>
4310
4311 * config.in: Regenerate.
4312 * configure: Regenerate.
4313 * configure.ac: Also check for strerror_r.
4314
75cafaa6
CB
43152019-10-31 Christian Biesinger <cbiesinger@google.com>
4316
4317 * ax.h (debug_agent): Remove duplicate declaration.
4318
30baf67b
TV
43192019-10-26 Tom de Vries <tdevries@suse.de>
4320
4321 * linux-aarch64-low.c: Fix typos in comments.
4322 * linux-arm-low.c: Same.
4323 * linux-low.c: Same.
4324 * linux-ppc-low.c: Same.
4325 * proc-service.c: Same.
4326 * regcache.h: Same.
4327 * server.c: Same.
4328 * tracepoint.c: Same.
4329 * win32-low.c: Same.
4330
52c64cf7
TT
43312019-10-25 Tom Tromey <tromey@adacore.com>
4332
4333 * utils.c (xstrdup): Remove.
4334
c12d372d
TT
43352019-10-23 Tom Tromey <tom@tromey.com>
4336
4337 * configure, config.in: Rebuild.
4338
4d0b984b
TT
43392019-10-23 Tom Tromey <tom@tromey.com>
4340
4341 * configure: Rebuild.
4342 * acinclude.m4: Use m4_include, not sinclude.
4343
c5adaa19
TT
43442019-10-17 Tom Tromey <tromey@adacore.com>
4345
4346 * configure: Rebuild.
4347 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4348 in AC_CONFIG_FILES invocation.
4349 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4350 invocation.
4351
fec4e896
CB
43522019-10-16 Christian Biesinger <cbiesinger@google.com>
4353
4354 * server.c: Include xml-builtin.h.
4355 (get_xml_features): Don't declare xml_builtins here.
4356
00975ff6
AB
43572019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4358
4359 * Makefile.in: Remove references to vec-ipa.o.
4360
0dc32745
AB
43612019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * Makefile.in: Remove references to vec.c.
4364
3e6ec53a
CB
43652019-10-02 Christian Biesinger <cbiesinger@google.com>
4366
4367 * server.c (server_waiting): Change to bool.
4368 (extended_protocol): Likewise.
4369 (response_needed): Likewise.
4370 (exit_requested): Likewise.
4371 (run_once): Likewise.
4372 (report_no_resumed): Likewise.
4373 (non_stop): Likewise.
4374 (disable_packet_vCont): Likewise.
4375 (disable_packet_Tthread): Likewise.
4376 (disable_packet_qC): Likewise.
4377 (disable_packet_qfThreadInfo): Likewise.
4378 (handle_general_set): Update.
4379 (handle_detach): Update.
4380 (handle_monitor_command): Update.
4381 (handle_query): Update.
4382 (captured_main): Update.
4383 (process_serial_event): Update.
4384 * server.h (server_waiting): Change to bool.
4385 (disable_packet_vCont): Likewise.
4386 (disable_packet_Tthread): Likewise.
4387 (disable_packet_qC): Likewise.
4388 (disable_packet_qfThreadInfo): Likewise.
4389 (run_once): Likewise.
4390 (non_stop): Likewise.
4391 * target.c (target_stop_and_wait): Update.
4392
80fd2826
TT
43932019-10-02 Tom Tromey <tromey@adacore.com>
4394
4395 * Makefile.in (SFILES): Add common-inferior.c.
4396 (OBS): Add common-inferior.o.
4397 * server.c (startup_with_shell): Don't define.
4398
46f29a9a
AB
43992019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4400
4401 * linux-low.c (linux_low_read_btrace): Update for change to
4402 std::vector.
4403
f9d949fb
CB
44042019-09-20 Christian Biesinger <cbiesinger@google.com>
4405
4406 * debug.c (debug_threads): Remove comment in favor of the header.
4407 * debug.h (using_threads): Add declaration.
4408 (debug_threads): Add comment.
4409 * linux-aarch64-low.c: Include debug.h and remove declaration of
4410 debug_threads.
4411 * nto-low.c: Likewise.
4412 * remote-utils.c: Likewise.
4413 * thread-db.c: Likewise.
4414
abf516c6
UW
44152019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4416
4417 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4418 and powerpc-cell64l-ipa.o.
4419 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4420 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4421 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4422 (spu*-*-*): Remove.
4423
4424 * spu-low.c: Remove file.
4425
4426 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4427 (parse_spufs_run): Remove.
4428 (ppc_get_pc): Remove Cell/B.E. support.
4429 (ppc_set_pc): Likewise.
4430 (ppc_breakpoint_at): Likewise.
4431 (ppc_arch_setup): Likewise.
4432 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4433 tdesc_powerpc_cell32l.
4434 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4435 or init_registers_powerpc_cell32l.
4436 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4437 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4438 or init_registers_powerpc_cell32l.
4439 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4440 (init_registers_powerpc_cell32l): Remove prototype.
4441 (init_registers_powerpc_cell64l): Likewise.
4442
4443 * target.h (struct target_ops): Remove qxfer_spu member.
4444 * server.c (handle_qxfer_spu): Remove.
4445 (qxfer_packets): Remove entry for "spu".
4446 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4447 * linux-low.c (SPUFS_MAGIC): Remove.
4448 (spu_enumerate_spu_ids): Remove.
4449 (linux_qxfer_spu): Remove.
4450 (linux_target_ops): Remove qxfer_spu member.
4451 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4452 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4453 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4454
2d41fa11
SDJ
44552019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4456
4457 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4458 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4459 * config.in: Regenerate.
4460 * configure: Regenerate.
4461
d59b55f0
TT
44622019-08-15 Tom Tromey <tromey@adacore.com>
4463
4464 * target.c (target_write_memory): Use gdb::byte_vector.
4465
4196ab2a
TT
44662019-08-15 Tom Tromey <tromey@adacore.com>
4467
4468 * tracepoint.c (write_inferior_data_pointer)
4469 (write_inferior_integer, write_inferior_int8)
4470 (write_inferior_uinteger, m_tracepoint_action_download)
4471 (r_tracepoint_action_download, x_tracepoint_action_download)
4472 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4473 (download_agent_expr, download_tracepoint_1)
4474 (download_trace_state_variables, upload_fast_traceframes): Update.
4475 * server.c (gdb_write_memory): Update.
4476 * remote-utils.c (relocate_instruction): Update.
4477 * proc-service.c (ps_pdwrite): Update.
4478 * mem-break.c (remove_memory_breakpoint)
4479 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4480 (uninsert_fast_tracepoint_jumps_at)
4481 (reinsert_fast_tracepoint_jumps_at): Update.
4482 * linux-x86-low.c (append_insns)
4483 (i386_install_fast_tracepoint_jump_pad)
4484 (amd64_write_goto_address, i386_write_goto_address): Update.
4485 * linux-s390-low.c (append_insns, s390_write_goto_address):
4486 Update.
4487 * linux-ppc-low.c (ppc_relocate_instruction)
4488 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4489 (ppc_write_goto_address): Update.
4490 * linux-aarch64-low.c (append_insns): Update.
4491 * target.h (struct target_ops): Update.
4492 (write_inferior_memory): Don't declare.
4493 * target.c (target_write_memory): Rename from
4494 write_inferior_memory. Remove old target_write_memory.
4495
c6778d00
TT
44962019-08-15 Tom Tromey <tromey@adacore.com>
4497
4498 * target.c (write_inferior_memory): Use std::vector.
4499
404f2902
FCE
45002019-08-06 Frank Ch. Eigler <fche@redhat.com>
4501
4502 PR build/24886
4503 * configure.ac: Drop enable-libmcheck support.
4504 * configure, config.in: Rebuild.
4505 * acinclude.m4: Don't include it.
4506
4c5aa8e0
AH
45072019-07-19 Alan Hayward <alan.hayward@arm.com>
4508
4509 * configure.srv: Remove Arm xml files.
4510
7cc17433
AH
45112019-07-19 Alan Hayward <alan.hayward@arm.com>
4512
4513 * configure.srv: Add new files. Remove xml generated files.
4514 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4515 registers.
4516 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4517 * linux-aarch32-tdesc.c: New file.
4518 * linux-aarch32-tdesc.h: New file.
4519 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4520 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4521 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4522 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4523 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4524 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4525 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4526 (arm_read_description): Call arm_linux_read_description.
4527 (initialize_low_arch): Don't init registers.
4528 * linux-arm-tdesc.c: New file.
4529 * linux-arm-tdesc.h: New file.
4530
166a82be
AH
45312019-07-10 Alan Hayward <alan.hayward@arm.com>
4532
4533 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4534 Move counter inside for.
4535 (arm_read_description): Check ptrace earlier.
4536 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4537
268a13a5
TT
45382019-07-09 Tom Tromey <tom@tromey.com>
4539
4540 * configure: Rebuild.
4541 * configure.ac: Change common to gdbsupport.
4542 * acinclude.m4: Change common to gdbsupport.
4543 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4544 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4545 common to gdbsupport.
4546 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4547 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4548 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4549 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4550 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4551 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4552 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4553 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4554 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4555 common to gdbsupport.
4556
350fab54
AH
45572019-07-04 Alan Hayward <alan.hayward@arm.com>
4558
4559 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4560 defines.
4561 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4562
2b40fda7
AH
45632019-07-04 Alan Hayward <alan.hayward@arm.com>
4564
4565 * configure.srv: Remove legacy xml.
4566 * linux-aarch64-low.c (initialize_low_arch): Remove
4567 initialize_low_tdesc call.
4568 * linux-aarch64-tdesc-selftest.c: Remove file.
4569 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4570 * linux-x86-low.c (initialize_low_arch): Remove
4571 initialize_low_tdesc call.
4572 * linux-x86-tdesc-selftest.c: Remove file.
4573 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4574
7d10623d
TV
45752019-06-20 Tom de Vries <tdevries@suse.de>
4576
4577 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4578 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4579
8d6a48df
TV
45802019-06-19 Tom de Vries <tdevries@suse.de>
4581
4582 * debug.h (debug_write): Change return type to ssize_t.
4583 * debug.c (debug_write): Same.
4584
73cc7272
TT
45852019-06-14 Tom Tromey <tom@tromey.com>
4586
4587 * configure.ac: Use new path to gnulib.
4588 * configure: Rebuild.
4589 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4590 to gnulib.
4591
08f10e02
TT
45922019-06-11 Tom Tromey <tom@tromey.com>
4593
4594 * Makefile.in (SFILES): Add alloc.c.
4595 (OBS): Add alloc.o.
4596 (IPA_OBJS): Add alloc-ipa.o.
4597 (alloc-ipa.o): New target.
4598 (%.o: ../%.c): New pattern rule.
4599
422186a9
TT
46002019-06-10 Tom Tromey <tromey@adacore.com>
4601
4602 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4603 end warning with a newline.
4604 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4605 newline.
4606 * thread-db.c (attach_thread): Don't end warning with a newline.
4607 (thread_db_notice_clone): Likewise.
4608 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4609 newline.
4610 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4611 end warning with a newline.
4612
b02f78f9
PA
46132019-06-04 Pedro Alves <palves@redhat.com>
4614
4615 * server.c (captured_main): Use make_unique_xstrdup.
4616
88ed7edb
TT
46172019-06-02 Tom Tromey <tom@tromey.com>
4618
4619 * gdbreplay.c (fromhex): Remove.
4620 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4621
33a6bc35
TT
46222019-05-29 Tom Tromey <tromey@adacore.com>
4623
4624 * configure: Rebuild.
4625
e90a813d
KB
46262019-05-06 Kevin Buettner <kevinb@redhat.com>
4627
4628 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4629 sign extension code on 32-bit builds.
4630
353ea2d1
EZ
46312019-05-03 Eli Zaretskii <eliz@gnu.org>
4632
4633 * remote-utils.c:
4634 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4635
b494cdff
TT
46362019-04-19 Tom Tromey <tom@tromey.com>
4637
4638 * server.c (struct vstop_notif): Derive from notif_event.
4639 <base>: Remove.
4640 (queue_stop_reply): Update.
4641 (remove_all_on_match_ptid): Change type. Rewrite.
4642 (discard_queued_stop_replies): Rewrite.
4643 (in_queued_stop_replies_ptid): Change type.
4644 (in_queued_stop_replies): Rewrite.
4645 (notif_stop): Update.
4646 (queue_stop_reply_callback): Update.
4647 (captured_main): Don't call initialize_notif.
4648 (push_stop_notification): Update.
4649 * notif.c (notif_write_event, handle_notif_ack)
4650 (notif_event_enque, notif_push): Update.
4651 (notif_event_xfree, initialize_notif): Remove.
4652 * notif.h (struct notif_event): Include <list>, not
4653 "common/queue.h".
4654 (struct notif_server) <queue>: Now a std::list.
4655 (notif_event_p): Remove typedef.
4656 (initialize_notif): Don't declare.
4657 (struct notif_event): Add virtual destructor.
4658
a7e559cc
AH
46592019-04-17 Alan Hayward <alan.hayward@arm.com>
4660
4661 * ax.c (ax_vdebug): Call debug_printf.
4662 * debug.c (debug_write): New function.
4663 * debug.h (debug_write): New declaration.
4664 * linux-low.c (sigchld_handler): Call debug_write.
4665
aeb2e706
AH
46662019-04-17 Alan Hayward <alan.hayward@arm.com>
4667
4668 * debug.c (debug_set_output): New function.
4669 (debug_vprintf): Send output to debug_file.
4670 (debug_flush): Likewise.
4671 * debug.h (debug_set_output): New declaration.
4672 * server.c (handle_monitor_command): Add debug-file option.
4673 (captured_main): Likewise.
4674
c1bc0935
AH
46752019-04-17 Alan Hayward <alan.hayward@arm.com>
4676
4677 * debug.c (remote_debug): Add definition.
4678 * debug.h (remote_debug): Add declaration.
4679 * hostio.c (remote_debug): Remove declaration.
4680 * remote-utils.c (struct ui_file): Likewise.
4681 (remote_debug): Likewise.
4682 * remote-utils.h (remote_debug): Likewise,
4683 * server.c (remote_debug): Remove definition.
4684
3f52fdbc
KB
46852019-04-10 Kevin Buettner <kevinb@redhat.com>
4686
4687 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4688 when using a 64-bit gdbserver.
4689
b0319eaa
TT
46902019-04-09 Tom Tromey <tromey@adacore.com>
4691
4692 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4693
eedc3f4f
TT
46942019-04-08 Tom Tromey <tom@tromey.com>
4695
4696 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4697 throw.
4698 (linux_resume_one_lwp): Likewise.
4699
230d2906
TT
47002019-04-08 Tom Tromey <tom@tromey.com>
4701
4702 * gdbreplay.c: Update.
4703 * linux-low.c: Update.
4704 * server.c: Update.
4705
a70b8144
TT
47062019-04-08 Tom Tromey <tom@tromey.com>
4707
4708 * server.c: Use C++ exception handling.
4709 * linux-low.c: Use C++ exception handling.
4710 * gdbreplay.c: Use C++ exception handling.
4711
3d6e9d23
TT
47122019-04-08 Tom Tromey <tom@tromey.com>
4713
4714 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4715 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4716 (captured_main, main): Update.
4717 * gdbreplay.c (main): Update.
4718
0570503d
PFC
47192019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4720
4721 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4722 value in argument pointer, return 1 if the entry is found and 0
4723 otherwise. Move comment.
4724 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4725 * linux-low.h (linux_get_auxv): Declare.
4726 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4727
227a9e65
TT
47282019-04-05 Tom Tromey <tromey@adacore.com>
4729
4730 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4731 variables.
4732
69f4c9cc
AH
47332019-03-28 Alan Hayward <alan.hayward@arm.com>
4734
4735 * linux-low.c (AT_HWCAP2): Add define if not already included.
4736
974c89e0
AH
47372019-03-26 Alan Hayward <alan.hayward@arm.com>
4738
4739 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4740 (aarch64_arch_setup): Call linux_get_hwcap.
4741 * linux-arm-low.c (arm_get_hwcap): Remove function.
4742 (arm_read_description): Call linux_get_hwcap.
4743 * linux-low.c (linux_get_auxv): New function.
4744 (linux_get_hwcap): Likewise.
4745 (linux_get_hwcap2): Likewise.
4746 * linux-low.h (linux_get_hwcap): New declaration.
4747 (linux_get_hwcap2): Likewise.
4748 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4749 (ppc_arch_setup): Call linux_get_hwcap.
4750 * linux-s390-low.c (s390_get_hwcap): Remove function.
4751 (s390_arch_setup): Call linux_get_hwcap.
4752
1ef53e6b
AH
47532019-03-22 Alan Hayward <alan.hayward@arm.com>
4754 Jiong Wang <jiong.wang@arm.com>
4755
4756 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4757 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4758 to fail.
4759 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4760
ee4fbcfa
AH
47612019-03-22 Alan Hayward <alan.hayward@arm.com>
4762 Jiong Wang <jiong.wang@arm.com>
4763
4764 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4765 (aarch64_get_hwcap): New function.
4766 (aarch64_arch_setup): Read APIA hwcap.
4767
6dc0ebde
AH
47682019-03-22 Alan Hayward <alan.hayward@arm.com>
4769 Jiong Wang <jiong.wang@arm.com>
4770
4771 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4772 (initialize_low_tracepoint): Likewise.
4773 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4774 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4775 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4776 (aarch64_linux_read_description): Likewise.
4777 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4778
1163a4b7
JB
47792019-03-12 John Baldwin <jhb@FreeBSD.org>
4780
4781 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4782 i386_create_target_description for 'segments' parameter.
4783 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4784 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4785 * win32-i386-low.c (i386_arch_setup): Likewise.
4786
d3a70e03
TT
47872019-03-12 Tom Tromey <tromey@adacore.com>
4788
4789 * linux-low.c (iterate_over_lwps): Update.
4790
37991b4f
TT
47912019-03-06 Tom Tromey <tom@tromey.com>
4792
4793 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4794 (captured_main): Use SCOPE_EXIT.
4795
45950eb6
SDJ
47962019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4797
4798 * configure.srv: Use '$enable_unittest' instead of '$development'
4799 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4800 case.
4801
43ac54fc
TT
48022019-02-27 Tom Tromey <tromey@adacore.com>
4803
4804 * gdbreplay.c (logchar): Handle \r\n.
4805
df0da8a2
AH
48062019-02-07 Alan Hayward <alan.hayward@arm.com>
4807
4808 * linux-low.c (linux_attach): Add process before lwp.
4809 * server.c (attach_inferior): Check if already attached.
4810
1a5c2598
TT
48112019-02-07 Tom Tromey <tom@tromey.com>
4812
4813 * x86-tdesc.h: Rename include guard.
4814 * x86-low.h: Add include guard.
4815 * wincecompat.h: Rename include guard.
4816 * win32-low.h: Add include guard.
4817 * utils.h: Rename include guard.
4818 * tracepoint.h: Rename include guard.
4819 * tdesc.h: Rename include guard.
4820 * target.h: Rename include guard.
4821 * server.h: Rename include guard.
4822 * remote-utils.h: Rename include guard.
4823 * regcache.h: Rename include guard.
4824 * nto-low.h: Rename include guard.
4825 * notif.h: Add include guard.
4826 * mem-break.h: Rename include guard.
4827 * lynx-low.h: Add include guard.
4828 * linux-x86-tdesc.h: Add include guard.
4829 * linux-s390-tdesc.h: Add include guard.
4830 * linux-ppc-tdesc-init.h: Add include guard.
4831 * linux-low.h: Add include guard.
4832 * linux-aarch64-tdesc.h: Add include guard.
4833 * linux-aarch32-low.h: Add include guard.
4834 * inferiors.h: Rename include guard.
4835 * i387-fp.h: Rename include guard.
4836 * hostio.h: Rename include guard.
4837 * gdbthread.h: Rename include guard.
4838 * gdb_proc_service.h: Rename include guard.
4839 * event-loop.h: Rename include guard.
4840 * dll.h: Rename include guard.
4841 * debug.h: Rename include guard.
4842 * ax.h: Rename include guard.
4843
956cc47c
SN
48442018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4845
4846 PR gdb/23985
4847 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4848 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4849
a0707f3c
TT
48502019-01-25 Tom Tromey <tom@tromey.com>
4851
4852 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4853
0747795c
TT
48542019-01-25 Tom Tromey <tom@tromey.com>
4855
4856 * win32-low.c: Fix common/ includes.
4857 * win32-i386-low.c: Fix common/ includes.
4858 * tracepoint.c: Fix common/ includes.
4859 * thread-db.c: Fix common/ includes.
4860 * target.h: Fix common/ includes.
4861 * symbol.c: Fix common/ includes.
4862 * spu-low.c: Fix common/ includes.
4863 * server.h: Fix common/ includes.
4864 * server.c: Fix common/ includes.
4865 * remote-utils.c: Fix common/ includes.
4866 * regcache.h: Fix common/ includes.
4867 * regcache.c: Fix common/ includes.
4868 * nto-x86-low.c: Fix common/ includes.
4869 * notif.h: Fix common/ includes.
4870 * mem-break.h: Fix common/ includes.
4871 * lynx-low.c: Fix common/ includes.
4872 * lynx-i386-low.c: Fix common/ includes.
4873 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4874 * linux-x86-low.c: Fix common/ includes.
4875 * linux-low.c: Fix common/ includes.
4876 * inferiors.h: Fix common/ includes.
4877 * i387-fp.c: Fix common/ includes.
4878 * hostio.c: Fix common/ includes.
4879 * hostio-errno.c: Fix common/ includes.
4880 * gdbthread.h: Fix common/ includes.
4881 * gdbreplay.c: Fix common/ includes.
4882 * fork-child.c: Fix common/ includes.
4883 * event-loop.c: Fix common/ includes.
4884 * ax.c:
4885 (enum gdb_agent_op): Fix common/ includes.
4886
be6d4f74
TT
48872019-01-21 Tom Tromey <tom@tromey.com>
4888
4889 * tracepoint.c: Fix includes.
4890 * remote-utils.c: Fix includes.
4891 * linux-x86-low.c: Fix includes.
4892
66d91b39
JB
48932019-01-01 Joel Brobecker <brobecker@adacore.com>
4894
4895 * gdbreplay.c (gdbreplay_version): Update copyright year in
4896 version message.
4897 * server.c (gdbserver_version): Likewise.
4898
754e3168
AH
48992018-12-05 Alan Hayward <alan.hayward@arm.com>
4900
4901 * linux-low.c (add_lwp): Switch ordering.
4902
d105de22
TT
49032018-11-29 Tom Tromey <tom@tromey.com>
4904
4905 * win32-low.c (win32_join): Take pid, not process.
4906 * target.h (struct target_ops) <join>: Change argument type.
4907 (join_inferior): Change argument name.
4908 * spu-low.c (spu_join): Take pid, not process.
4909 * server.c (handle_detach): Preserve pid before destroying
4910 process.
4911 * lynx-low.c (lynx_join): Take pid, not process.
4912 * linux-low.c (linux_join): Take pid, not process.
4913
50138245
AH
49142018-11-23 Alan Hayward <alan.hayward@arm.com>
4915
4916 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4917 (aarch64_cannot_fetch_register): Likewise.
4918 (struct linux_target_ops): Update references.
4919
64f57f3d
PFC
49202018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4921
4922 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4923
8d619c01
EBM
49242018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4925
4926 * configure.srv (ipa_ppc_linux_regobj): Add
4927 powerpc-isa207-htm-vsx32l-ipa.o and
4928 powerpc-isa207-htm-vsx64l-ipa.o.
4929 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4930 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4931 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4932 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4933 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4934 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4935 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4936 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4937 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4938 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4939 (init_registers_powerpc_isa207_htm_vsx32l)
4940 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4941 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4942 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4943 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4944 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4945 (ppc_store_tm_ctarregset): New functions.
4946 (ppc_regsets): Add entries for HTM regsets.
4947 (ppc_arch_setup): Set htm in features struct when needed. Set
4948 sizes for the HTM regsets.
4949 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4950 (initialize_low_arch): Call
4951 init_registers_powerpc_isa207_htm_vsx32l and
4952 init_registers_powerpc_isa207_htm_vsx64l.
4953 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4954 PPC_TDESC_ISA207_HTM_VSX.
4955 (initialize_low_tracepoint): Call
4956 init_registers_powerpc_isa207_htm_vsx32l and
4957 init_registers_powerpc_isa207_htm_vsx64l.
4958
232bfb86
EBM
49592018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4960
4961 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4962 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4963 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4964 (ppc_store_pmuregset): New functions.
4965 (ppc_regsets): Add entries for ebb and pmu regsets.
4966 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4967 pmu regsets are available. Set sizes for these regsets.
4968
f2cf6173
EBM
49692018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4970
4971 * configure.srv (ipa_ppc_linux_regobj): Add
4972 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4973 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4974 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4975 rs6000/powerpc-isa207-vsx32l.xml, and
4976 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4977 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4978 <PPC_TDESC_ISA207_VSX>: New enum value.
4979 (init_registers_powerpc_isa207_vsx32l): Declare.
4980 (init_registers_powerpc_isa207_vsx64l): Declare.
4981 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4982 (ppc_store_tarregset): New function.
4983 (ppc_regsets): Add entry for the TAR regset.
4984 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4985 size for the TAR regsets.
4986 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4987 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4988 and init_registers_powerpc_isa207_vsx64l.
4989 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4990 (initialize_low_tracepoint): Call
4991 init_registers_powerpc_isa207_vsx32l and
4992 init_registers_powerpc_isa207_vsx64l.
4993
7ca18ed6
EBM
49942018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4995 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4996
4997 * configure.srv (ipa_ppc_linux_regobj): Add
4998 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4999 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5000 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5001 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5002 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5003 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5004 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5005 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5006 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5007 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5008 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5009 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5010 (ppc_hwcap): Add comment.
5011 (ppc_hwcap2): New global.
5012 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5013 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5014 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5015 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5016 when needed. Set sizes for the the DSCR and PPR regsets.
5017 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5018 (initialize_low_arch): Call
5019 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5020 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5021 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5022 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5023 (initialize_low_tracepoint): Call
5024 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5025 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5026
5c849b22
PFC
50272018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5028
5029 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5030
8ecfd7bd
SDJ
50312018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5032 Simon Marchi <simark@simark.ca>
5033
5034 * acinclude.m4: Include "../selftest.m4".
5035 * configure: Regenerate.
5036 * configure.ac: Use "GDB_AC_SELFTEST".
5037 * configure.srv: Use "$enable_unittests" instead of
5038 "$development" when checking whether unit tests have been
5039 enabled.
5040 * server.c (captured_main): Update message informing that
5041 selftests have been disabled.
5042
96643e35
TT
50432018-10-04 Tom Tromey <tom@tromey.com>
5044
5045 * configure: Rebuild.
5046
da4ae14a
TT
50472018-10-04 Tom Tromey <tom@tromey.com>
5048
5049 * server.c (handle_status): Rename inner "thread".
5050 (process_serial_event): Declare "res" in 'm' case.
5051 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5052 (iterate_over_lwps): Rename inner "thread".
5053 (linux_qxfer_libraries_svr4): Rename inner "len".
5054 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5055
7c619dbd
GB
50562018-10-01 Gary Benson <gbenson@redhat.com>
5057
5058 * gdb_proc_service.h: Moved common code to
5059 common/gdb_proc_service.h.
5060
3795e814
GB
50612018-10-01 Gary Benson <gbenson@redhat.com>
5062
5063 * gdb_proc_service.h: Synchronize comments and whitespace with
5064 GDB's version of this file.
5065
49b036f1
TT
50662018-09-25 Tom Tromey <tom@tromey.com>
5067
5068 * configure: Rebuild.
5069 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5070
8ff03f0b
SM
50712018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5072
5073 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5074 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5075 ($(IPA_LIB)): Sort IPA_OBJS.
5076
a1cd91dc
SM
50772018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5078
5079 * Makefile.in: Remove references to $(ADD_DEPS).
5080
752312ba
TT
50812018-09-16 Tom Tromey <tom@tromey.com>
5082
5083 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5084 variables.
5085 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5086 variables.
5087
f1628857
TT
50882018-09-05 Tom Tromey <tom@tromey.com>
5089
5090 * configure: Rebuild.
5091
ad202fcc
SM
50922018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 PR build/23399
5095 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5096
d3d8724a
TT
50972018-08-27 Tom Tromey <tom@tromey.com>
5098
5099 PR build/23087:
5100 * configure: Rebuild.
5101
b4f183d2
TT
51022018-08-27 Tom Tromey <tom@tromey.com>
5103
5104 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5105 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5106 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5107 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5108 (s390x_emit_stack_adjust): Add casts to unsigned char.
5109
4e2aa472
SM
51102018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5111
5112 PR gdb/23374
5113 PR gdb/23375
5114 * server.h (struct client_state) <disable_randomization>:
5115 Initialize to 1.
5116
cf4088a9
SM
51172018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5118
5119 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5120 variable.
5121 (mips_supply_ptrace_register): Likewise.
5122
a0de763e
TT
51232018-07-22 Tom Tromey <tom@tromey.com>
5124
5125 * configure: Rebuild.
5126
b0a7723d
TT
51272018-07-22 Tom Tromey <tom@tromey.com>
5128
5129 * win32-low.c (win32_create_inferior): Remove unused variables.
5130 * gdbreplay.c (remote_open): Remove unused variable.
5131 * remote-utils.c (remote_prepare): Remove unused variable.
5132 * x86-tdesc.h (X86_TDESC_H): Define.
5133 (amd64_expedite_regs): Define conditionally.
5134 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5135 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5136 * remote-utils.c (readchar): Remove unused variable.
5137
a780ef4f
PA
51382018-07-13 Pedro Alves <palves@redhat.com>
5139
5140 * linux-low.c (linux_kill): Change parameter to process_info
5141 pointer instead of pid. Adjust.
5142 * lynx-low.c (lynx_kill): Likewise.
5143 * nto-low.c (nto_kill): Likewise.
5144 * spu-low.c (spu_kill): Likewise.
5145 * win32-low.c (win32_kill): Likewise.
5146 * server.c (handle_v_kill, kill_inferior_callback)
5147 (detach_or_kill_for_exit): Adjust.
5148 * target.c (kill_inferior): Change parameter to process_info
5149 pointer instead of pid. Adjust.
5150 * target.h (struct target_ops) <kill>: Change parameter to
5151 process_info pointer instead of pid. Adjust all implementations
5152 and callers.
5153 (kill_inferior): Likewise.
5154
ef2ddb33
PA
51552018-07-13 Pedro Alves <palves@redhat.com>
5156
5157 * linux-low.c (linux_detach, linux_join): Change parameter to
5158 process_info pointer instead of pid. Adjust.
5159 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5160 * nto-low.c (nto_detach): Likewise.
5161 * spu-low.c (spu_detach, spu_join): Likewise.
5162 * win32-low.c (win32_detach, win32_join): Likewise.
5163 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5164 * target.h (struct target_ops) <detach, join>: Change parameter to
5165 process_info pointer instead of pid. Adjust all implementations
5166 and callers.
5167 (detach_inferior, join_inferior): Rename 'pid' parameter to
5168 'proc'.
5169
c7ab0aef
SDJ
51702018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5171 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 Paul Fertser <fercerpav@gmail.com>
5173 Tsutomu Seki <sekiriki@gmail.com>
5174
5175 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5176 (OBS): Add 'common/netstuff.o'.
5177 (GDBREPLAY_OBS): Likewise.
5178 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5179 (remote_open): Implement support for IPv6
5180 connections.
5181 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5182 and 'wspiapi.h'.
5183 (handle_accept_event): Accept connections from IPv6 sources.
5184 (remote_prepare): Handle IPv6-style hostnames; implement
5185 support for IPv6 connections.
5186 (remote_open): Implement support for printing connections from
5187 IPv6 sources.
5188
31445d10
PA
51892018-07-11 Pedro Alves <palves@redhat.com>
5190
5191 PR gdb/23377
5192 * mem-break.c (any_persistent_commands): Add process_info
5193 parameter and use it instead of relying on the current process.
5194 Change return type to bool.
5195 * mem-break.h (any_persistent_commands): Add process_info
5196 parameter and change return type to bool.
5197 * server.c (handle_detach): Remove require_running_or_return call.
5198 Look up the process_info for the process we're about to detach.
5199 If not found, return back error to GDB. Adjust
5200 any_persistent_commands call to pass down a process pointer.
5201
cb197132
PA
52022018-07-11 Pedro Alves <palves@redhat.com>
5203
5204 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5205 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5206 instead of collect_register_by_name.
5207 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5208 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5209
1b919490
VB
52102018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5211 Pedro Alves <palves@redhat.com>
5212
5213 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5214
d7e15655
TT
52152018-07-03 Tom Tromey <tom@tromey.com>
5216
5217 * linux-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 * win32-low.c: Update.
5226
26a57c92
TT
52272018-07-03 Tom Tromey <tom@tromey.com>
5228
5229 * server.c: Update.
5230
0e998d96
TT
52312018-07-03 Tom Tromey <tom@tromey.com>
5232
5233 * linux-low.c: Update.
5234
cc6bcb54
TT
52352018-07-03 Tom Tromey <tom@tromey.com>
5236
5237 * target.c: Update.
5238
e38504b3
TT
52392018-07-03 Tom Tromey <tom@tromey.com>
5240
5241 * linux-low.c: Update.
5242 * linux-mips-low.c: Update.
5243 * lynx-low.c: Update.
5244 * nto-low.c: Update.
5245 * remote-utils.c: Update.
5246 * server.c: Update.
5247 * spu-low.c: Update.
5248 * target.c: Update.
5249 * thread-db.c: Update.
5250
e99b03dc
TT
52512018-07-03 Tom Tromey <tom@tromey.com>
5252
5253 * linux-low.c: Update.
5254 * linux-mips-low.c: Update.
5255 * lynx-low.c: Update.
5256 * mem-break.c: Update.
5257 * nto-low.c: Update.
5258 * remote-utils.c: Update.
5259 * server.c: Update.
5260 * spu-low.c: Update.
5261 * target.c: Update.
5262 * tracepoint.c: Update.
5263
f2907e49
TT
52642018-07-03 Tom Tromey <tom@tromey.com>
5265
5266 * linux-low.c: Update.
5267 * linux-ppc-low.c: Update.
5268 * linux-x86-low.c: Update.
5269 * proc-service.c: Update.
5270 * server.c: Update.
5271 * spu-low.c: Update.
5272 * thread-db.c: Update.
5273 * win32-low.c: Update.
5274
fd79271b
TT
52752018-07-03 Tom Tromey <tom@tromey.com>
5276
5277 * linux-low.c: Update.
5278 * lynx-low.c: Update.
5279 * nto-low.c: Update.
5280 * remote-utils.c: Update.
5281 * spu-low.c: Update.
5282 * thread-db.c: Update.
5283 * win32-low.c: Update.
5284
c0867626
SDJ
52852018-06-29 Joel Brobecker <brobecker@adacore.com>
5286
5287 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5288 parameter in call to 'amd64_create_target_description'.
5289
2512d7ef
JK
52902018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5291
5292 * x86-tdesc.h: Remove executable permission flag.
5293
d0ac1c44
SM
52942018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5295
5296 * configure.ac: Remove AC_PREREQ, add missing quoting.
5297 * configure: Re-generate.
5298 * config.in: Re-generate.
5299 * aclocal.m4: Re-generate.
5300
c4eb05ff
SM
53012018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5302
5303 * tracepoint.h (current_traceframe): Remove declaration.
5304
02895270
AH
53052018-06-18 Alan Hayward <alan.hayward@arm.com>
5306
5307 * linux-aarch64-low.c (is_sve_tdesc): New function.
5308 (aarch64_sve_regs_copy_to_regcache): Likewise.
5309 (aarch64_sve_regs_copy_from_regcache): Likewise.
5310 (aarch64_regs_info): Add SVE checks.
5311 (initialize_low_arch): Initialize SVE.
5312
e9902bfc
AH
53132018-06-18 Alan Hayward <alan.hayward@arm.com>
5314
5315 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5316
fefa175e
AH
53172018-06-11 Alan Hayward <alan.hayward@arm.com>
5318
5319 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5320 (initialize_low_tracepoint): Likewise
5321 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5322 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5323 param.
5324 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5325 checks.
5326 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5327
b91ad3ff
AH
53282018-06-11 Alan Hayward <alan.hayward@arm.com>
5329
5330 * server.h (PBUFSIZ): Increase size
5331
f868386e
AH
53322018-06-11 Alan Hayward <alan.hayward@arm.com>
5333
5334 * regcache.c (regcache::raw_compare): New function.
5335 * regcache.h (regcache::raw_compare): New declaration.
5336
9c861883
AH
53372018-06-11 Alan Hayward <alan.hayward@arm.com>
5338
5339 * regcache.c (new_register_cache): Use new.
5340 (free_register_cache): Use delete.
5341 (register_data): Use const.
5342 (supply_register): Move body inside regcache.
5343 (regcache::raw_supply): New override function.
5344 (collect_register): Move body inside regcache.
5345 (regcache::raw_collect): New override function.
5346 (regcache::get_register_status): New override function.
5347 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5348
40591844
TT
53492018-06-09 Tom Tromey <tom@tromey.com>
5350
5351 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5352 declare queue.
5353 (event_queue): Use std::queue.
5354 (gdb_event_xfree): Remove.
5355 (initialize_event_loop, process_event, wait_for_event): Update.
5356
6341380d
SC
53572018-06-08 Stan Cox <scox@redhat.com>
5358
5359 * win32-low.c (win32_create_inferior): last_ptid and last_status
5360 moved to client_state.
5361
03349c93
PA
53622018-06-08 Pedro Alves <palves@redhat.com>
5363
5364 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5365 common/common-exceptions.o, common/common-utils.o,
5366 common/errors.o, common/print-utils.o and utils.o.
5367 * gdbreplay.c: Include "common-defs.h" instead of the two
5368 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5369 string.h or alloca.h.
5370 (perror_with_name): Delete.
5371 (remote_open): Use xstrdup instead of strdup.
5372 (main): Rename to ...
5373 (captured_main): ... this.
5374 (main): New.
5375
8dcc53b3
TT
53762018-06-08 Tom Tromey <tom@tromey.com>
5377
5378 * linux-low.c (linux_low_read_btrace): Update.
5379
c12a5089
SC
53802018-06-04 Stan Cox <scox@redhat.com>
5381
5382 * server.h (struct client_state): New.
5383 * server.c (cont_thread, general_thread, multi_process)
5384 (report_fork_events, report_vfork_events, report_exec_events)
5385 (report_thread_events, swbreak_feature, hwbreak_feature)
5386 (vCont_supported, disable_randomization, pass_signals)
5387 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5388 Moved to client_state.
5389 * remote-utils.c (remote_debug, noack_mode)
5390 (transport_is_reliable): Moved to client_state.
5391 * tracepoint.c (current_traceframe): Moved to client_state.
5392
5393 Update all callers.
5394 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5395 linux-low.c, remote-utils.h, target.c: Use client_state.
5396
122394f1
AH
53972018-05-31 Alan Hayward <alan.hayward@arm.com>
5398
5399 * configure.srv: Add new c/h file.
5400
95228a0d
AH
54012018-05-31 Alan Hayward <alan.hayward@arm.com>
5402
5403 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5404 null VQ.
5405
d8dab6c3
MR
54062018-05-25 Maciej W. Rozycki <macro@mips.com>
5407
5408 * gdb.arch/mips-fpregset-core.exp: New test.
5409 * gdb.arch/mips-fpregset-core.c: New test source.
5410
81e25b7c
EK
54112018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5412
5413 PR server/23198
5414 * hostio.c (require_int): Do not report overflow for integers
5415 between 0xfffffff and 0x7fffffff.
5416
7e947ad3
MR
54172018-05-22 Maciej W. Rozycki <macro@mips.com>
5418
5419 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5420 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5421 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5422 functions.
5423 (the_low_target): Wire them.
5424
1d75a658
PFC
54252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5426
5427 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5428 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5429 mode. Call collect_register_by_name with vscr using
5430 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5431 (ppc_store_vrregset): Add and set vscr_offset variable as in
5432 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5433 vscr_offset.
5434
d078308a
PFC
54352018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5436
5437 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5438 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5439 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5440
7273b5fc
PFC
54412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5442
5443 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5444 (ppc_store_vsxregset): Likewise.
5445 (ppc_fill_vrregset): Likewise.
5446 (ppc_store_vrregset): Likewise.
5447 (ppc_fill_evrregset): Likewise.
5448 (ppc_store_evrregset): Likewise.
5449 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5450 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5451 needed.
5452
2e077f5e
PFC
54532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5454
5455 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5456 wordsize of the inferior. Call ppc_linux_target_wordsize.
5457
bd64614e
PFC
54582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5459
5460 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5461 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5462 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5463 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5464 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5465 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5466 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5467 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5468 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5469 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5470 (tdesc_powerpc_e500l): Remove.
5471 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5472 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5473 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5474 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5475 linux-ppc-tdesc.h.
5476 (ppc_arch_setup): Remove target description matching code. Fill a
5477 ppc_linux_features struct and call ppc_linux_match_description
5478 with it.
5479
75d74cca
MR
54802018-05-22 Maciej W. Rozycki <macro@mips.com>
5481
5482 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5483 width of the requested register exceeds the width of the
5484 `ptrace' data type.
5485 (mips_cannot_store_register): Likewise.
5486
e4439e43
MR
54872018-05-21 Maciej W. Rozycki <macro@mips.com>
5488
5489 * linux-mips-low.c (mips_fetch_register): New function. Update
5490 preceding comment.
5491 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5492 (the_low_target): Wire `mips_fetch_register'.
5493
55271bf9
JB
54942018-05-10 Joel Brobecker <brobecker@adacore.com>
5495
5496 * lynx-i386-low.c (LYNXOS_178): New macro.
5497 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5498 the layout on LynxOS-178.
5499 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5500 handle floating point registers that are not supported by
5501 LynxOS-178.
5502
1a34f210
TT
55032018-05-10 Tom Tromey <tom@tromey.com>
5504
5505 * configure: Rebuild.
5506
190852c8
JB
55072018-05-10 Joel Brobecker <brobecker@adacore.com>
5508
5509 PR server/23158:
5510 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5511 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5512 Use it to set the expedite_regs field in the given tdesc.
5513 * x86-tdesc.h: New file.
5514 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5515 Adjust following the addition of the new expedite_regs parameter
5516 to init_target_desc.
5517 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5518 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5519 (i386_linux_read_description, amd64_linux_read_description):
5520 Adjust following the addition of the new expedite_regs parameter
5521 to init_target_desc.
5522 * lynx-i386-low.c: #include "x86-tdesc.h".
5523 (lynx_i386_arch_setup): Adjust following the addition of the new
5524 expedite_regs parameter to init_target_desc.
5525 * nto-x86-low.c: #include "x86-tdesc.h".
5526 (nto_x86_arch_setup): Adjust following the addition of the new
5527 expedite_regs parameter to init_target_desc.
5528 * win32-i386-low.c: #include "x86-tdesc.h".
5529 (i386_arch_setup): Adjust following the addition of the new
5530 expedite_regs parameter to init_target_desc.
5531
7dbac825
JB
55322018-05-10 Joel Brobecker <brobecker@adacore.com>
5533
5534 PR server/23158:
5535 * win32-low.c (win32_create_inferior): Add call to my_wait
5536 setting last_status global.
5537
906994d9
JB
55382018-05-10 Joel Brobecker <brobecker@adacore.com>
5539
5540 PR server/23158:
5541 * win32-low.c (create_process): Only call gdb_tilde_expand if
5542 inferior_cwd is not NULL.
5543
8ee22052
AB
55442018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5547 registers to the cache if their values have changed.
5548 (i387_xsave_to_cache): Provide default values for x87 control
5549 registers when these features are available, but disabled.
5550 * regcache.c (supply_register_by_name_zeroed): New function.
5551 * regcache.h (supply_register_by_name_zeroed): Declare new
5552 function.
5553
aff689d3
TT
55542018-05-07 Tom Tromey <tom@tromey.com>
5555
5556 * configure: Rebuild.
5557
85e26832
TT
55582018-05-04 Tom Tromey <tom@tromey.com>
5559
5560 * configure: Rebuild.
5561
a3b60e45
JK
55622018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5563 Pedro Alves <palves@redhat.com>
5564
5565 * linux-aarch64-low.c (aarch64_stopped_data_address):
5566 Likewise.
5567
632e107b
TT
55682018-04-27 Tom Tromey <tom@tromey.com>
5569
5570 * configure: Rebuild.
5571
458412c3
TT
55722018-04-23 Tom Tromey <tom@tromey.com>
5573
5574 * configure: Rebuild.
5575
f31c089e
SM
55762018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5577
5578 * Makefile.in (depcomp): Add "..".
5579 (all_deps_files): New and use it.
5580
b319b098
AH
55812018-04-18 Alan Hayward <alan.hayward@arm.com>
5582
5583 * configure.srv (aarch64*-*-linux*): Don't include xml.
5584 (i[34567]86-*-cygwin*): Likewise.
5585 (i[34567]86-*-linux*): Likewise.
5586 (i[34567]86-*-lynxos*): Likewise.
5587 (i[34567]86-*-mingw32ce*): Likewise.
5588 (i[34567]86-*-mingw*): Likewise.
5589 (i[34567]86-*-nto*): Likewise.
5590 (tic6x-*-uclinux): Likewise.
5591 (x86_64-*-linux*): Likewise.
5592 (x86_64-*-mingw*): Likewise.
5593 (x86_64-*-cygwin*): Likewise.
5594
3b74854b
AH
55952018-04-18 Alan Hayward <alan.hayward@arm.com>
5596
5597 * tdesc.c: Remove xml parameter.
5598
e98577a9
AH
55992018-04-18 Alan Hayward <alan.hayward@arm.com>
5600
5601 * server.c (get_features_xml): Remove cast.
5602 * tdesc.c (void target_desc::accept): Fill in function.
5603 (tdesc_get_features_xml): Remove old xml creation.
5604 (print_xml_feature::visit_pre): Add xml vistor.
5605 * tdesc.h (struct target_desc): Make xmltarget mutable.
5606 (tdesc_get_features_xml): Remove declaration.
5607
d278f585
AH
56082018-04-18 Alan Hayward <alan.hayward@arm.com>
5609
5610 * tdesc.c (tdesc_architecture_name): Add new function.
5611 (tdesc_osabi_name): Likewise.
5612 (tdesc_get_features_xml): Use new functions.
5613
eee8a18d
AH
56142018-04-18 Alan Hayward <alan.hayward@arm.com>
5615
5616 * tdesc.c (tdesc_create_flags): Remove.
5617 (tdesc_add_flag): Likewise.
5618 (tdesc_named_type): Likewise.
5619 (tdesc_create_union): Likewise.
5620 (tdesc_create_struct): Likewise.
5621 (tdesc_create_vector): Likewise.
5622 (tdesc_add_bitfield): Likewise.
5623 (tdesc_add_field): Likewise.
5624 (tdesc_set_struct_size): Likewise.
5625
82ec9bc7
AH
56262018-04-18 Alan Hayward <alan.hayward@arm.com>
5627
5628 * tdesc.c (~target_desc): Remove implictly deleted items.
5629 (init_target_desc): Iterate all features.
5630 (tdesc_get_features_xml): Use vector.
5631 (tdesc_create_feature): Create feature.
5632 * tdesc.h (tdesc_feature) Remove
5633 (target_desc): Add features.
5634
ea3e7d71
AH
56352018-04-18 Alan Hayward <alan.hayward@arm.com>
5636
5637 * Makefile.in: Add common/tdesc.c
5638 * tdesc.c (init_target_desc): init all reg_defs from register
5639 vector.
5640 (tdesc_create_reg): Create tdesc_reg.
5641 * tdesc.h (tdesc_feature): Add register vector.
5642
17d08cd4
SM
56432018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * tdesc.h (struct target_desc) <features>: Change type to
5646 std::vector<std::string>.
5647 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5648 changes.
5649 (tdesc_get_features_xml): Likewise.
5650 (tdesc_create_feature): Likewise.
5651
5cd3e386
AH
56522018-03-26 Alan Hayward <alan.hayward@arm.com>
5653
5654 * regcache.c (find_register_by_number): Return a ref.
5655 (find_regno): Use references.
5656 (register_size): Likewise.
5657 (register_data): Likewise.
5658 * tdesc.c (target_desc::~target_desc): Remove free calls.
5659 (target_desc::operator==): Use std::vector compare.
5660 (init_target_desc): Use reference.
5661 (tdesc_create_reg): Use reg constructors.
5662 * tdesc.h (struct target_desc): Replace pointer with object.
5663
dff7492c
AH
56642018-03-23 Alan Hayward <alan.hayward@arm.com>
5665
5666 * regcache.c (find_register_by_number): Make static.
5667 (find_regno): Use find_register_by_number
5668 * regcache.h (struct reg): Remove declaration.
5669
d80e5242
AH
56702018-03-23 Alan Hayward <alan.hayward@arm.com>
5671
5672 * tdesc.c (target_desc::~target_desc): Move to here.
5673 (target_desc::operator==): Likewise.
5674 * tdesc.h (target_desc::~target_desc): Move from here.
5675 (target_desc::operator==): Likewise.
5676
f69c5afb
AA
56772018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5678
5679 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5680
ce29f843
AA
56812018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5682
5683 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5684 S390_TDESC_GS.
5685 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5686 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5687 and init_registers_s390_gs_linux64.
5688
c49bd90b
AA
56892018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5690
5691 * linux-s390-low.c (s390_fill_gs): Remove function.
5692 (s390_fill_gsbc): Remove function.
5693 (s390_regsets): Set fill functions for the guarded storage regsets
5694 to NULL.
5695
7edb9bd3
AA
56962018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5697
5698 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5699 the word size. Add comment.
5700 (s390_get_wordsize): New function.
5701 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5702 pswm with it. Instead, use s390_get_wordsize to determine the
5703 word size first and derive the correct tdesc from that directly.
5704
39be3c7e
SM
57052018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5706
5707 * Makefile.in: Include silent-rules.mk.
5708 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5709 (COMPILE): Add ECHO_CXX.
5710 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5711 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5712 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5713 (version-generated.c): Add ECHO_GEN.
5714 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5715 (IPAGENT_COMPILE): Add ECHO_CXX.
5716 (%-generated.c): Add ECHO_REGDAT.
5717
3ae9ce5d
TT
57182018-03-14 Tom Tromey <tom@tromey.com>
5719
5720 PR cli/14977:
5721 * ax.c (ax_printf): Special case for NULL.
5722
e6a58aa8
SM
57232018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5724
5725 * linux-low.c (linux_qxfer_libraries_svr4): Use
5726 xml_escape_text_append.
5727
f6e8a41e
SM
57282018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5729
5730 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5731
b9671caf
SM
57322018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * server.c (handle_general_set): Remove unnecessary xstrdup.
5735
e80aaf61
SM
57362018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * server.c (parse_debug_format_options): Adjust to
5739 delim_string_to_char_ptr_vec changes.
5740 * thread-db.c (thread_db_load_search): Adjust to
5741 dirnames_to_char_ptr_vec changes.
5742
b1223e78
MM
57432018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5744
5745 * target.h (target_enable_btrace, target_disable_btrace)
5746 (target_read_btrace, target_read_btrace_conf): Turn macro into
5747 inline function. Throw error if target method is not defined.
5748 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5749 check for btrace target method. Be prepared to handle exceptions
5750 from btrace target methods.
5751
81561546
SDJ
57522018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5753
5754 * server.c (captured_main): Change order of error message printed
5755 when the current working directory cannot be found.
5756
25e3c82c
SDJ
57572018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5758
5759 * server.c: Include "filenames.h" and "pathstuff.h".
5760 (program_name): Delete variable.
5761 (program_path): New anonymous class.
5762 (get_exec_wrapper): Use "program_path" instead of
5763 "program_name".
5764 (handle_v_run): Likewise.
5765 (captured_main): Likewise.
5766 (process_serial_event): Likewise.
5767
b4987c95
SDJ
57682018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5769
5770 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5771 (OBJS): Add "pathstuff.o".
5772 * server.c (current_directory): New global variable.
5773 (captured_main): Initialize "current_directory".
5774
f46cd62a
AH
57752018-02-26 Alan Hayward <alan.hayward@arm.com>
5776
5777 * tdesc.c: Use common/tdesc.h.
5778 * tdesc.h: Likewise.
5779
a543c5ca
AH
57802018-02-20 Alan Hayward <alan.hayward@arm.com>
5781 Simon Marchi <simon.marchi@ericsson.com>
5782
5783 * Makefile.in: Switch order of make rules.
5784
b5884fa7
AH
57852018-02-19 Alan Hayward <alan.hayward@arm.com>
5786
5787 * Makefile.in: Add common directory in build.
5788 * configure.ac: Add common reference.
5789 * configure: Regenerate.
5790
de6242d3
MM
57912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5792
5793 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5794 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5795 * spu-low.c (spu_target_ops): Likewise.
5796 * win32-low.c (win32_target_ops): Likewise.
5797 * server.c (supported_btrace_packets): Report packets unconditionally.
5798 * target.h (target_ops) <supports_btrace>: Remove.
5799 (target_supports_btrace): Remove.
5800
9ee23a85
MM
58012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5802
5803 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5804 (handle_btrace_disable): Change return type to void. Use exceptions
5805 to report errors.
5806 (handle_btrace_general_set): Catch exception and copy message to
5807 return message.
5808
8ce47547
TT
58092018-02-08 Tom Tromey <tom@tromey.com>
5810
5811 * linux-low.c (install_software_single_step_breakpoints): Use
5812 make_scoped_restore.
5813 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5814 (do_restore_current_thread_cleanup): Remove.
5815 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5816 declare.
5817
45dd3607
TT
58182018-02-08 Tom Tromey <tom@tromey.com>
5819
5820 * mem-break.c (set_raw_breakpoint_at): Use
5821 gdb::unique_xmalloc_ptr.
5822
e671cd59
PA
58232018-01-30 Pedro Alves <palves@redhat.com>
5824
5825 PR gdb/13211
5826 * target.c (target_terminal::terminal_state): Rename to ...
5827 (target_terminal::m_terminal_state): ... this.
5828
a0aad537
JC
58292018-01-19 James Clarke <jrtc27@jrtc27.com>
5830
5831 * linux-low.c (handle_extended_wait): Surround call to
5832 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5833
4d9b86e1
SM
58342018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5835
5836 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5837 linux_ptrace_attach_fail_reason_string now returning an
5838 std::string.
5839 (linux_attach): Likewise.
5840 * thread-db.c (attach_thread): Likewise.
5841
f517c180
EA
58422018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5843
5844 PR gdb/21559
5845 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5846 checking for fs_base/gs_base fields in struct user_regs_struct.
5847 * configure: Regenerate.
5848
9a70f35c
YQ
58492018-01-16 Yao Qi <yao.qi@linaro.org>
5850
5851 PR gdb/18749
5852 * linux-low.c (fetch_register): Call supply_register instead of
5853 error.
5854
605fd3c6
YQ
58552018-01-08 Yao Qi <yao.qi@linaro.org>
5856 Simon Marchi <simon.marchi@ericsson.com>
5857
5858 * Makefile.in (OBS): Remove selftest.o.
5859 * configure.ac: Set srv_selftest_objs if $development is true.
5860 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5861 * configure: Re-generated.
5862 * server.c (captured_main): Wrap variable selftest_filter with
5863 GDB_SELF_TEST.
5864
2cc05030
SM
58652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * server.c (parse_debug_format_options): Return std::string.
5868 (handle_monitor_command, captured_main): Adjust.
5869
e379cee6
PA
58702018-01-05 Pedro Alves <palves@redhat.com>
5871
5872 PR gdb/18653
5873 * server.c (captured_main): Pass quiet=false to
5874 save_original_signals_state.
5875
82e1e79a
JB
58762018-01-01 Joel Brobecker <brobecker@adacore.com>
5877
5878 * gdbreplay.c (gdbreplay_version): Update copyright year in
5879 version message.
5880 * server.c (gdbserver_version): Likewise.
5881
8e481c3b
TT
58822017-12-08 Tom Tromey <tom@tromey.com>
5883
5884 * ax.c (ax_printf): Update.
5885
a8806230
YQ
58862017-12-07 Yao Qi <yao.qi@linaro.org>
5887
5888 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5889 aarch64_linux_read_description.
5890 * linux-amd64-ipa.c (idx2mask): New array.
5891 (get_ipa_tdesc): Move idx2mask out.
5892 (initialize_low_tracepoint): Initialize target descriptions.
5893 * linux-i386-ipa.c (idx2mask): New array.
5894 (get_ipa_tdesc): Move idx2mask out.
5895 (initialize_low_tracepoint): Initialize target descriptions.
5896
d4a0e8b5
SM
58972017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 * tdesc.c (struct tdesc_type): Change return type.
5900 (tdesc_add_flag): Change parameter type.
5901 (tdesc_add_bitfield): Likewise.
5902 (tdesc_add_field): Likewise.
5903 (tdesc_set_struct_size): Likewise.
5904
798a7429
SM
59052017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5906
5907 * regcache.c (registers_to_string): Remove unused variable.
5908
c0e15c9b
SM
59092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * inferiors.c (for_each_inferior_with_data): Remove.
5912 * inferiors.h (for_each_inferior_with_data): Remove.
5913 * server.c (handle_qxfer_threads_worker): Change parameter type.
5914 (handle_qxfer_threads_proper): Use for_each_thread.
5915
f0045347
SM
59162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * inferiors.c (for_each_inferior): Remove.
5919 (clear_inferiors): Use for_each_thread.
5920 * inferiors.h (for_each_inferior): Remove.
5921 * linux-low.c (linux_wait_for_event_filtered): Use
5922 for_each_thread.
5923 (linux_stabilize_threads): Likewise.
5924 * regcache.c (regcache_release): Likewise.
5925 * server.c (gdb_wants_all_threads_stopped): Likewise.
5926 (clear_pending_status_callback): Remove.
5927 (handle_status): Use for_each_thread.
5928 (captured_main): Likewise.
5929 * win32-low.c (child_init_thread_list): Likewise.
5930 (win32_clear_inferiors): Likewise.
5931 (fake_breakpoint_event): Likewise.
5932
9521758b
SM
59332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5934
5935 * inferiors.h (find_inferior): Remove.
5936 * inferiors.c (find_inferior): Remove.
5937
8f86d7aa
SM
59382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * linux-low.c (resume_status_pending_p): Update comment.
5941 (need_step_over_p): Update comment.
5942
e2b44075
SM
59432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * linux-low.c (proceed_one_lwp): Return void, change parameter
5946 type.
5947 (unsuspend_and_proceed_one_lwp): Likewise.
5948 (proceed_all_lwps): Use for_each_thread.
5949 (unstop_all_lwps): Likewise.
5950
c80825ff
SM
59512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * linux-low.c (linux_resume_one_thread): Return void, take
5954 parameter directly.
5955 (linux_resume): Use for_each_thread.
5956
df3e4dbe
SM
59572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * linux-low.c (send_sigstop_callback): Return void, change
5960 parameter type. Rename to...
5961 (send_sigstop): ... this.
5962 (suspend_and_send_sigstop_callback): Return void, change parameter
5963 type. Rename to...
5964 (suspend_and_send_sigstop): ... this.
5965 (stop_all_lwps): Use for_each_thread.
5966
5a6b0a41
SM
59672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * linux-low.c (lwp_running): Return bool, remove unused
5970 argument.
5971 (linux_stabilize_threads): Use find_thread.
5972
39a64da5
SM
59732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * linux-low.c (select_singlestep_lwp_callback): Remove.
5976 (count_events_callback): Remove.
5977 (select_event_lwp_callback): Remove.
5978 (select_event_lwp): Use find_thread/for_each_thread.
5979
a1385b7b
SM
59802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * linux-low.c (not_stopped_callback): Return bool, take filter
5983 argument directly.
5984 (linux_wait_for_event_filtered): Use find_thread.
5985 (linux_wait_1): Likewise.
5986
454296a2
SM
59872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5988
5989 * linux-low.c (same_lwp): Remove.
5990 (find_lwp_pid): Use find_thread.
5991
6b2a85da
SM
59922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5993
5994 * linux-low.c (delete_lwp_callback): Remove.
5995 (linux_mourn): Use for_each_thread.
5996
798a38e8
SM
59972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5998
5999 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6000 args parameter, don't check for pid.
6001 (linux_detach): Use for_each_thread.
6002
e4eb0dec
SM
60032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * linux-low.c (struct counter): Remove.
6006 (second_thread_of_pid_p): Remove.
6007 (last_thread_of_process_p): Use find_thread.
6008
83e1b6c1
SM
60092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6010
6011 * inferiors.c (find_inferior_in_random): Remove.
6012 * inferiors.h (find_inferior_in_random): Remove.
6013 * linux-low.c (status_pending_p_callback): Return bool, accept
6014 parameter ptid directly.
6015 (linux_wait_for_event_filtered): Use find_thread_in_random.
6016 (linux_wait_1): Likewise.
6017
8dc7b443
SM
60182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * inferiors.c (find_inferior_id): Remove.
6021 (find_thread_ptid): Move implemention from find_inferior_id to
6022 here.
6023 * inferiors.h (find_inferior_id): Remove.
6024 * server.c (handle_status): Use find_thread_ptid.
6025 (process_serial_event): Likewise.
6026 * thread-db.c (find_one_thread): Likewise.
6027 (thread_db_thread_handle): Likewise.
6028 * win32-low.c (thread_rec): Likewise.
6029 (child_delete_thread): Likewise.
6030 (win32_thread_alive): Likewise.
6031 (get_child_debug_event): Likewise.
6032
da25033c
SM
60332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6034
6035 * linux-mips-low.c (update_watch_registers_callback): Return
6036 void, remove pid_p parameter, don't check for pid.
6037 (mips_insert_point, mips_remove_point): Use for_each_thread.
6038
c91bb56b
SM
60392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6040
6041 * lynx.low (lynx_delete_thread_callback): Remove.
6042 (lynx_mourn): Use for_each_thread.
6043
634a3254
SM
60442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * regcache.c (regcache_invalidate_one): Remove.
6047 (regcache_invalidate_pid): use for_each_thread.
6048
41272101
TT
60492017-11-26 Tom Tromey <tom@tromey.com>
6050
6051 * linux-low.c (linux_create_inferior): Update.
6052
f5291a6f
UW
60532017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6054
6055 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6056
6654d750
AH
60572017-11-24 Alan Hayward <alan.hayward@arm.com>
6058
6059 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6060 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6061 * linux-aarch64-tdesc-selftest.c: New file.
6062 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6063
60642017-11-24 Alan Hayward <alan.hayward@arm.com>
6065
6066 * configure.srv: Add new file.
6067 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6068 * linux-aarch64-tdesc-selftest.c: New file.
6069 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6070
49bdb7ee
AH
60712017-11-24 Alan Hayward <alan.hayward@arm.com>
6072
6073 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6074 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6075 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6076
d6d7ce56
AH
60772017-11-24 Alan Hayward <alan.hayward@arm.com>
6078
6079 * configure.srv: Add new files.
6080 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6081 aarch64_linux_read_description.
6082 * linux-aarch64-low.c (aarch64_linux_read_description):
6083 Merge with aarch64_arch_setup.
6084 (aarch64_arch_setup): Call aarch64_linux_read_description.
6085 * linux-aarch64-tdesc.c: New file.
6086 * linux-aarch64-tdesc.h: New file.
6087
506fe5f4
YQ
60882017-11-24 Yao Qi <yao.qi@linaro.org>
6089
6090 * configure.srv: Set $srv_regobj for tic6x-linux.
6091 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6092 (tic6x_read_description): Move some code to tic6x_arch_setup.
6093 (tic6x_tdesc_test): New function.
6094 (initialize_low_arch): Call selftests::register_test.
6095
29f9a567
YQ
60962017-11-22 Yao Qi <yao.qi@linaro.org>
6097
6098 * remote-utils.c (prepare_resume_reply): Use memcpy.
6099
578290ec
SM
61002017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * linux-low.c (kill_one_lwp_callback): Return void, take
6103 argument directly, don't filter on pid.
6104 (linux_kill): Use for_each_thread.
6105
eca55aec
SM
61062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * linux-low.c (need_step_over_p): Return bool, remove dummy
6109 argument.
6110 (linux_resume, proceed_all_lwps): Use find_thread.
6111
25c28b4d
SM
61122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * linux-low.c (resume_status_pending_p): Return bool, remove
6115 flag_p argument.
6116 (linux_resume): Use find_thread.
6117
5fdda392
SM
61182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * linux-low.c (struct thread_resume_array): Remove.
6121 (linux_set_resume_request): Return void, take arguments
6122 directly.
6123 (linux_resume): Use for_each_thread.
6124
fcb056a5
SM
61252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6128 return bool, remove data argument.
6129 (linux_stabilize_threads): Use find_thread.
6130
139720c5
SM
61312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6132
6133 * linux-low.c (unsuspend_one_lwp): Remove.
6134 (unsuspend_all_lwps): Use for_each_thread, inline code from
6135 unsuspend_one_lwp.
6136
6d1e5673
SM
61372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6140 * linux-low.c (struct iterate_over_lwps_args): Remove.
6141 (iterate_over_lwps_filter): Remove.
6142 (iterate_over_lwps): Use find_thread.
6143
bbf550d5
SM
61442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6147 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6148 code from reset_lwp_ptrace_options_callback.
6149
00192f77
SM
61502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * linux-arm-low.c (struct update_registers_data): Remove.
6153 (update_registers_callback): Return void, take arguments
6154 directly, don't check thread's pid.
6155 (arm_insert_point, arm_remove_point): Use for_each_thread.
6156
2bee2b6c
SM
61572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6158
6159 * win32-low.c (continue_one_thread): Return void, take argument
6160 directly.
6161 (child_continue): Use for_each_thread.
6162
0b360f19
SM
61632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6164
6165 * win32-i386-low.c (update_debug_registers_callback): Rename
6166 to ...
6167 (update_debug_registers): ... this, return void, remove pid_p arg.
6168 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6169
f27866ba
SM
61702017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * inferiors.h (struct process_info): Add constructor, initialize
6173 fields..
6174 <syscalls_to_catch>: Change type to std::vector<int>.
6175 * inferiors.c (add_process): Allocate process_info with new.
6176 (remove_process): Free process_info with delete.
6177 * linux-low.c (handle_extended_wait): Adjust.
6178 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6179 * server.c (handle_general_set): Adjust.
6180
e849ea89
PA
61812017-11-16 Pedro Alves <palves@redhat.com>
6182
6183 * remote-utils.c (remote_close): Block SIGIO signals instead of
6184 uninstalling the SIGIO handler.
6185
1d0aa65c
AH
61862017-11-16 Alan Hayward <alan.hayward@arm.com>
6187
6188 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6189
3491a34c
YQ
61902017-11-16 Yao Qi <yao.qi@linaro.org>
6191
6192 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6193 (tic6x_store_gregset): Likewise.
6194 (tic6x_usrregs_info): Move it up.
6195
a602f924
AH
61962017-11-15 Alan Hayward <alan.hayward@arm.com>
6197
6198 * Makefile.in: Update arch rules.
6199 * configure.srv: Explicitly mark arch/ files.
6200
5616b6c3
AS
62012017-11-13 Andreas Schwab <schwab@suse.de>
6202
6203 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6204 function.
6205 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6206
d1928160
PA
62072017-11-06 Pedro Alves <palves@redhat.com>
6208
6209 * config.in, configure: Regenerate.
6210
bac608e7
SM
62112017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6212
6213 * target.c (struct thread_search): Remove.
6214 (thread_search_callback): Remove.
6215 (prepare_to_access_memory): Use for_each_thread instead of
6216 find_inferior. Inline code from thread_search_callback.
6217
eaddb425
SM
62182017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6219
6220 * server.c (struct visit_actioned_threads_data): Remove.
6221 (visit_actioned_threads): Change prototype to take arguments
6222 directly.
6223 (resume): Use find_thread instead of find_inferior.
6224
99078d34
SM
62252017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6226
6227 * server.c (queue_stop_reply_callback): Change prototype, return
6228 void.
6229 (find_status_pending_thread_callback): Remove.
6230 (handle_status): Replace find_inferior with find_thread and
6231 for_each_thread.
6232
cc628f3d
AH
62332017-10-25 Alan Hayward <alan.hayward@arm.com>
6234
6235 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6236 with REGNO.
6237 (aarch64_store_gregset): Likewise.
6238 (aarch64_fill_fpregset): Likewise.
6239 (aarch64_store_fpregset): Likewise.
6240
4d3bb80e
SM
62412017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6242
6243 * gdbthread.h (find_thread, for_each_thread): New functions.
6244 * inferiors.c (thread_of_pid): Remove.
6245 (find_any_thread_of_pid): Use find_thread.
6246 * linux-low.c (num_lwps): Use for_each_thread.
6247
7a7cdfa0
YQ
62482017-10-17 Yao Qi <yao.qi@linaro.org>
6249
6250 * Makefile.in: Remove one rule.
6251 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6252
e675d170
YQ
62532017-10-17 Yao Qi <yao.qi@linaro.org>
6254
6255 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6256 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6257
7eb4e0f9
YQ
62582017-10-17 Yao Qi <yao.qi@linaro.org>
6259
6260 * configure.srv: Rename arm.o with arch/arm.o.
6261
60d6cfc9
YQ
62622017-10-17 Yao Qi <yao.qi@linaro.org>
6263
6264 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6265 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6266 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6267 (arch-i386.o, arch-amd64.o): Remove rules.
6268 (arch/%.o): New rule.
6269 Update POSTCOMPILE and COMPILE.pre.
6270 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6271 * configure: Re-generated.
6272 * configure.srv: Replace arch-i386.o with arch/i386.o.
6273 Replace arch-amd64.o with arch/amd64.o.
6274
5bfda255
YQ
62752017-10-16 Yao Qi <yao.qi@linaro.org>
6276
6277 * configure: Regenerated.
6278
9c80ecd6
SM
62792017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * inferiors.h: (struct inferior_list): Remove.
6282 (struct inferior_list_entry); Remove.
6283 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6284 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6285 get_first_inferior): Remove.
6286 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6287 find_inferior_id, find_inferior_in_random): Change signature.
6288 * inferiors.c (all_threads): Change type to
6289 std::list<thread_info *>.
6290 (get_thread): Remove macro.
6291 (find_inferior, find_inferior_id): Change signature, implement
6292 using find_thread.
6293 (find_inferior_in_random): Change signature, implement using
6294 find_thread_in_random.
6295 (for_each_inferior, for_each_inferior_with_data): Change
6296 signature, implement using for_each_thread.
6297 (add_inferior_to_list, remove_inferior): Remove.
6298 (add_thread, get_first_thread, thread_of_pid,
6299 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6300 (get_first_inferior, one_inferior_p, clear_inferior_list):
6301 Remove.
6302 (clear_inferiors, get_thread_process): Update.
6303 * gdbthread.h: Include <list>.
6304 (struct thread_info) <entry>: Remove field.
6305 <id>: New field.
6306 (all_threads): Change type to std::list<thread_info *>.
6307 (get_first_inferior): Add doc.
6308 (find_thread, for_each_thread, find_thread_in_random): New
6309 functions.
6310 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6311 * linux-arm-low.c (update_registers_callback): Update.
6312 * linux-low.c (second_thread_of_pid_p): Update.
6313 (kill_one_lwp_callback, linux_detach_lwp_callback,
6314 delete_lwp_callback, status_pending_p_callback, same_lwp,
6315 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6316 iterate_over_lwps, not_stopped_callback,
6317 resume_stopped_resumed_lwps, count_events_callback,
6318 select_singlestep_lwp_callback, select_event_lwp_callback,
6319 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6320 suspend_and_send_sigstop_callback, wait_for_sigstop,
6321 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6322 lwp_running, linux_set_resume_request, resume_status_pending_p,
6323 need_step_over_p, start_step_over, linux_resume_one_thread,
6324 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6325 reset_lwp_ptrace_options_callback): Update.
6326 * linux-mips-low.c (update_watch_registers_callback): Update.
6327 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6328 Update.
6329 (free_register_cache_thread_one): Remove.
6330 (regcache_release): Update.
6331 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6332 handle_qxfer_threads_worker): Update.
6333 (handle_query): Update, use list iterator.
6334 (visit_actioned_threads, handle_pending_status,
6335 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6336 clear_pending_status_callback, set_pending_status_callback,
6337 find_status_pending_thread_callback, handle_status,
6338 process_serial_event): Update.
6339 * target.c (thread_search_callback): Update.
6340 * thread-db.c (thread_db_get_tls_address): Update.
6341 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6342 Update.
6343 * win32-i386-low.c (update_debug_registers_callback): Update.
6344 * win32-low.c (delete_thread_info, child_delete_thread,
6345 continue_one_thread, suspend_one_thread,
6346 get_child_debug_event): Adjust.
6347
9179355e
SM
63482017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6351 * inferiors.h: Include <list>.
6352 (struct process_info) <entry>: Remove field.
6353 <pid>: New field.
6354 (pid_of): Change macro to function.
6355 (ptid_of, lwpid_of): Remove macro.
6356 (all_processes): Change type to std::list<process_info *>.
6357 (ALL_PROCESSES): Remove macro.
6358 (for_each_process, find_process): New function.
6359 * inferiors.c (all_processes): Change type to
6360 std::list<process_info *>.
6361 (find_thread_process): Adjust.
6362 (add_process): Likewise.
6363 (remove_process): Likewise.
6364 (find_process_pid): Likewise.
6365 (get_first_process): Likewise.
6366 (started_inferior_callback): Remove.
6367 (have_started_inferiors_p): Adjust.
6368 (attached_inferior_callback): Remove.
6369 (have_attached_inferiors_p): Adjust.
6370 * linux-low.c (check_zombie_leaders): Likewise.
6371 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6372 (x86_linux_update_xmltarget): Adjust.
6373 * server.c (handle_query): Likewise.
6374 (gdb_reattached_process): Remove.
6375 (handle_status): Adjust.
6376 (kill_inferior_callback): Likewise.
6377 (detach_or_kill_inferior): Remove.
6378 (print_started_pid): Likewise.
6379 (print_attached_pid): Likewise.
6380 (detach_or_kill_for_exit): Update.
6381 (process_serial_event): Likewise.
6382 * linux-arm-low.c (arm_new_fork): Likewise.
6383
c9cb8905
SM
63842017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6385
6386 * dll.h: Include <list>.
6387 (struct dll_info): Add constructor.
6388 <entry>: Remove field.
6389 (all_dlls): Change type to std::list<dll_info>.
6390 * dll.c: Include <algorithm>.
6391 (get_dll): Remove macro.
6392 (all_dlls): Change type to std::list<dll_info *>.
6393 (free_one_dll): Remove.
6394 (match_dll): Likewise.
6395 (loaded_dll): Adjust.
6396 (unloaded_dll): Adjust to all_dlls type change, use
6397 std::find_if. Inline code from match_dll.
6398 (clear_dlls): Adjust to all_dlls type change.
6399 * server.c (emit_dll_description): Remove.
6400 (handle_qxfer_libraries): Adjust to all_dlls type change,
6401 integrate emit_dll_description's functionality.
6402
04ec7890
SM
64032017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * linux-low.h (struct linux_target_ops) <delete_process>: New
6406 field.
6407 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6408 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6409 (struct linux_target_ops): Add delete_process callback.
6410 * linux-arm-low.c (arm_delete_process): New.
6411 (struct linux_target_ops): Add delete_process callback.
6412 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6413 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6414 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6415 * linux-mips-low.c (mips_linux_delete_process): New.
6416 (struct linux_target_ops): Add delete_process callback.
6417 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6418 * linux-s390-low.c (struct linux_target_ops): Likewise.
6419 * linux-sh-low.c (struct linux_target_ops): Likewise.
6420 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6421 * linux-tile-low.c (struct linux_target_ops): Likewise.
6422 * linux-x86-low.c (x86_linux_delete_process): New.
6423 (struct linux_target_ops): Add delete_process callback.
6424 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6425
466eecee
SM
64262017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6427
6428 * linux-aarch64-low.c (the_low_target): Add thread delete
6429 callback.
6430 * linux-arm-low.c (arm_delete_thread): New function.
6431 (the_low_target): Add thread delete callback.
6432 * linux-bfin-low.c (the_low_target): Likewise.
6433 * linux-crisv32-low.c (the_low_target): Likewise.
6434 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6435 set.
6436 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6437 field.
6438 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6439 * linux-mips-low.c (mips_linux_delete_thread): New function.
6440 (the_low_target): Add thread delete callback.
6441 * linux-ppc-low.c (the_low_target): Likewise.
6442 * linux-s390-low.c (the_low_target): Likewise.
6443 * linux-sh-low.c (the_low_target): Likewise.
6444 * linux-tic6x-low.c (the_low_target): Likewise.
6445 * linux-tile-low.c (the_low_target): Likewise.
6446 * linux-x86-low.c (the_low_target): Likewise.
6447 * linux-xtensa-low.c (the_low_target): Likewise.
6448
b79f7801
YZ
64492017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6450
6451 * win32-low.c: Include "common-inferior.h".
6452
bc3b087d
SDJ
64532017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6454
6455 * inferiors.c (set_inferior_cwd): New function.
6456 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6457 (handle_query): Inform that QSetWorkingDir is supported.
6458 * win32-low.c (create_process): Pass the inferior's cwd to
6459 CreateProcess.
6460
d092c5a2
SDJ
64612017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6462
6463 * inferiors.c (current_inferior_cwd): New global variable.
6464 (get_inferior_cwd): New function.
6465 * inferiors.h (struct process_info) <cwd>: New field.
6466
7da0a886
SDJ
64672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6468
6469 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6470 (OBS): Add gdb_tilde_expand.o.
6471
289a6840
SM
64722017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6475 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6476
256642e8
PA
64772017-09-29 Pedro Alves <palves@redhat.com>
6478
6479 * ax.c (gdb_parse_agent_expr): Constify.
6480 * ax.h (gdb_parse_agent_expr): Constify.
6481 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6482 Constify.
6483 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6484 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6485 * remote-utils.h (read_ptid): Constify.
6486 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6487 (process_point_options, process_serial_event): Constify.
6488 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6489 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6490 (cmd_qtbuffer): Constify.
6491
5b9ca4d4
PA
64922017-09-29 Pedro Alves <palves@redhat.com>
6493
6494 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6495 fails.
6496
94c207e0
PA
64972017-09-29 Pedro Alves <palves@redhat.com>
6498
6499 * linux-low.c (handle_extended_wait): Pass parent thread instead
6500 of process to thread_db_notice_clone.
6501 * linux-low.h (thread_db_notice_clone): Replace parent process
6502 parameter with parent thread parameter.
6503 * thread-db.c (find_one_thread): Add comment.
6504 (thread_db_notice_clone): Replace parent process parameter with
6505 parent thread parameter. Temporarily switch to the parent thread.
6506
75352e28
SDJ
65072017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6508
6509 * gdbthread.h: Include "common-gdbthread.h".
6510 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6511 "if" when validating the ptid.
6512 * remote-utils.c: Include "gdbthread.h".
6513 (prepare_resume_reply): Use "switch_to_thread".
6514 * target.c (done_accessing_memory): Likewise.
6515
ad339634
AA
65162017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6517
6518 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6519 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6520 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6521 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6522 s390x-gs-linux64-ipa.o to ipa_obj.
6523 * linux-s390-low.c (HWCAP_S390_GS): New define.
6524 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6525 New functions.
6526 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6527 (s390_arch_setup): Check for guarded-storage support and choose
6528 appropriate tdesc.
6529 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6530 init_registers_s390x_gs_linux64.
6531 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6532 enum value.
6533 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6534 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6535
cc4d742f
SM
65362017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6537
6538 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6539
f6327dcb
KB
65402017-09-21 Kevin Buettner <kevinb@redhat.com>
6541
6542 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6543 (thread_db_thread_handle): Declare.
6544 * linux-low.c (linux_target_ops): Initialize thread_handle.
6545 * server.c (handle_qxfer_threads_worker): Add support for
6546 "handle" attribute.
6547 * target.h (struct target_ops): Add new function pointer,
6548 thread_handle.
6549 (target_thread_handle): Define.
6550 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6551 field in lwp.
6552 (thread_db_thread_handle): New function.
6553
86299109
KB
65542017-09-21 Kevin Buettner <kevinb@redhat.com>
6555
6556 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6557 * linux-low.h (thread_db_notice_clone): Declare.
6558 * thread-db.c (thread_db_notice_clone): New function.
6559
f557a88a
PA
65602017-09-21 Pedro Alves <palves@redhat.com>
6561
6562 * server.c (gdb_read_memory, handle_status, process_serial_event)
6563 (handle_serial_event, handle_target_event): Adjust to
6564 set_desired_thread prototype change.
6565 * target.c (set_desired_thread): Remove 'use_general' parameter
6566 and adjust.
6567 * target.h (set_desired_thread): Remove 'use_general' parameter.
6568
223ffa71
TT
65692017-09-20 Tom Tromey <tom@tromey.com>
6570
6571 * target.c (target_terminal::terminal_state): Define.
6572 (target_terminal::init): Rename from target_terminal_init.
6573 (target_terminal::inferior): Rename from
6574 target_terminal_inferior.
6575 (target_terminal::ours): Rename from target_terminal_ours.
6576 (target_terminal::ours_for_output, target_terminal::info): New.
6577
04fd3ba9
SM
65782017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6579
6580 * server.c (accumulate_file_name_length): Remove.
6581 (emit_dll_description): Adjust to std::string change.
6582 (handle_qxfer_libraries): Use std::string to hold document.
6583
5e187554
SM
65842017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6585
6586 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6587 return type of xml_escape_text.
6588 * server.c (emit_dll_description): Likewise.
6589
1526853e
SM
65902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6591
6592 * server.c (captured_main): Accept argument for --selftest.
6593 Update run_tests call.
6594 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6595 when registering selftests.
6596
c4dfafab
SDJ
65972017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6598
6599 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6600 instead of "VEC" for "target_desc.reg_defs".
6601 (regcache_cpy): Likewise.
6602 (registers_to_string): Likewise.
6603 (registers_from_string): Likewise.
6604 (find_regno): Likewise.
6605 (supply_regblock): Likewise.
6606 (regcache_raw_read_unsigned): Likewise.
6607 * tdesc.c (init_target_desc): Likewise.
6608 (tdesc_create_reg): Likewise.
6609 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6610 (struct target_desc) <reg_defs>: Convert to "std::vector".
6611 (target_desc): Do not initialize "reg_defs".
6612 (~target_desc): Update code to use "std::vector" instead of "VEC"
6613 for "target_desc.reg_defs".
6614 (operator==): Likewise.
6615
124aceb4
SM
66162017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6617
6618 * inferiors.h (thread_to_gdb_id): Remove.
6619 * inferiors.c (thread_to_gdb_id): Remove.
6620 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6621 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6622 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6623 Likewise.
6624 * nto-low.c (nto_fetch_registers, nto_store_registers,
6625 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6626
96cde54f
SM
66272017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6628
6629 * inferiors.h (gdb_id_to_thread_id): Remove.
6630 * inferiors.c (gdb_id_to_thread_id): Remove.
6631 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6632 removal. Move pid declaration closer to where it's used.
6633
e8ca139e
SM
66342017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6635
6636 * server.c (handle_detach): New function.
6637 (process_serial_event): Move code out, call handle_detach.
6638
f8a4e119
SM
66392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * server.c (require_running): Rename to ...
6642 (require_running_or_return): ... this ...
6643 (require_running_or_break): ... and this.
6644 (handle_query, process_serial_event): Adjust.
6645
0eb0a407
SM
66462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6647
6648 * linux-low.c (linux_set_resume_request): Remove unused
6649 variables.
6650
785922a5
SM
66512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6652
6653 * server.c (first_thread_of): Remove.
6654 (process_serial_event): Replace usage of first_thread_of with
6655 find_any_thread_of_pid.
6656 * tracepoint.c (same_process_p): Remove.
6657 (gdb_agent_about_to_close): Replace usage of same_process_p with
6658 find_any_thread_of_pid.
6659 * linux-x86-low.c (same_process_callback): Remove.
6660 (x86_arch_setup_process_callback): Replace usage of
6661 same_process_callback with find_any_thread_of_pid.
6662 * thread-db.c (any_thread_of): Remove.
6663 (switch_to_process): Replace usage of any_thread_of with
6664 find_any_thread_of_pid.
6665 * inferiors.c (thread_pid_matches_callback): Remove.
6666 (find_thread_process): Adjust to use find_any_thread_of_pid.
6667
a059f00c
SDJ
66682017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6669
6670 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6671 with "!VEC_empty".
a059f00c 6672
cc397f3a
SDJ
66732017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6674
6675 * linux-low.c (handle_extended_wait): Use
6676 "allocate_target_description" instead of "XNEW".
6677 * linux-x86-low.c (initialize_low_arch): Likewise.
6678
22916b07
YQ
66792017-09-05 Yao Qi <yao.qi@linaro.org>
6680
6681 * configure.srv (srv_i386_regobj): Remove.
6682 (srv_amd64_regobj): Remove.
6683 (srv_regobj): Set it to "" for x86 non-linux targets.
6684 * linux-x86-tdesc.c (i386_linux_read_description):
6685 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6686 (init_registers_i386): Remove the declaration.
6687 (tdesc_i386): Remove the declaration.
6688 (lynx_i386_arch_setup): Call i386_create_target_description.
6689 * nto-x86-low.c: Likewise.
6690 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6691 [!__x86_64__]: include arch/i386.h.
6692 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6693
38602d55
YQ
66942017-09-05 Yao Qi <yao.qi@linaro.org>
6695
6696 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6697 i386/amd64-XXX-linux from it.
6698
44b886ff
YQ
66992017-09-05 Yao Qi <yao.qi@linaro.org>
6700
6701 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6702 false.
6703 (ipa_amd64_linux_regobj): Remove.
6704 (ipa_x32_linux_regobj): Remove.
6705
b4570e4b
YQ
67062017-09-05 Yao Qi <yao.qi@linaro.org>
6707
6708 * Makefile.in (arch-amd64.o): New rule.
6709 * configure.srv: Append arch-amd64.o.
6710 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6711 (get_ipa_tdesc): Call amd64_linux_read_description.
6712 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6713 and init_registers_amd64_XXX.
6714 * linux-x86-low.c (x86_linux_read_description): Call
6715 amd64_linux_read_description.
6716 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6717 (initialize_low_arch): Don't call init_registers_x32_XXX and
6718 init_registers_amd64_XXX.
6719 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6720 and tdesc_amd64_XXX.
6721 [__x86_64__] (amd64_tdesc_test): New function.
6722 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6723 and init_registers_amd64_XXX.
6724 * linux-x86-tdesc.c: Include arch/amd64.h.
6725 (xcr0_to_tdesc_idx): New function.
6726 (i386_linux_read_description): New function.
6727 (amd64_get_ipa_tdesc_idx): New function.
6728 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6729 (amd64_get_ipa_tdesc): Declare.
6730
d1f28ea2
YQ
67312017-09-05 Yao Qi <yao.qi@linaro.org>
6732
6733 * configure.srv (srv_i386_linux_xmlfiles): Remove
6734 i386/i386-XXX-linux.xml from it.
6735
25a93583
YQ
67362017-09-05 Yao Qi <yao.qi@linaro.org>
6737
6738 * configure.srv: Set srv_i386_linux_regobj empty if $development
6739 is false.
6740 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6741 initialize_low_tdesc.
6742 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6743 with #if initialize_low_tdesc.
6744 * linux-x86-tdesc-selftest.c: New file.
6745 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6746
5f035c07
YQ
67472017-09-05 Yao Qi <yao.qi@linaro.org>
6748
6749 * Makefile.in (arch-i386.o): New rule.
6750 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6751 (x86_64-*-linux*): Likewise.
6752 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6753 include arch/i386.h.
6754 (i386_linux_read_description): Remove code and call
6755 i386_create_target_description.
6756 * tdesc.c (allocate_target_description): New function.
6757 * tdesc.h (set_tdesc_architecture): Remove declaration.
6758 (set_tdesc_osabi): Likewise.
6759
0abe8a89
YQ
67602017-09-05 Yao Qi <yao.qi@linaro.org>
6761
6762 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6763 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6764 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6765 .xmltarget.
6766 * server.c (get_features_xml): Call tdesc_get_features_xml.
6767 * tdesc.c (set_tdesc_architecture): New function.
6768 (set_tdesc_osabi): New function.
6769 (tdesc_get_features_xml): New function.
6770 (tdesc_create_feature): Add an argument.
6771 * tdesc.h (struct target_desc) <features>: New field.
6772 <arch, osabi>: New field.
6773 (~target_desc): xfree features, arch, and osabi.
6774 (target_desc::oerator==): Don't compare .xmltarget.
6775 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6776 (set_tdesc_osabi): Likewise.
6777 (tdesc_get_features_xml): Likewise.
6778
0a188386
YQ
67792017-09-05 Yao Qi <yao.qi@linaro.org>
6780
6781 * linux-x86-tdesc.c: Include selftest.h.
6782 (i386_tdesc_test): New function.
6783 (initialize_low_tdesc): Call selftests::register_test.
6784 * tdesc.h: Include regdef.h.
6785 (target_desc): Override operator == and !=.
6786
f49ff000
YQ
67872017-09-05 Yao Qi <yao.qi@linaro.org>
6788
6789 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6790 (ipa_obj): Likewise.
6791 * linux-i386-ipa.c: Include common/x86-xstate.h
6792 (get_ipa_tdesc): Call i386_linux_read_description.
6793 (initialize_low_tracepoint): Don't call init_registers_XXX
6794 functions, call initialize_low_tdesc instead.
6795 * linux-x86-low.c (x86_linux_read_description): Call
6796 i386_linux_read_description.
6797 (initialize_low_arch): Don't call init_registers_i386_XXX
6798 functions, call initialize_low_tdesc.
6799 * linux-x86-tdesc.c: New file.
6800 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6801 (i386_get_ipa_tdesc_idx): Declare.
6802 (i386_get_ipa_tdesc): Declare.
6803 (initialize_low_tdesc): Declare.
6804
2b68ef2f
YQ
68052017-09-05 Yao Qi <yao.qi@linaro.org>
6806
6807 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6808 instead of 0.
6809
f7000548
YQ
68102017-09-05 Yao Qi <yao.qi@linaro.org>
6811
6812 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6813 * regcache.c (get_thread_regcache): Use VEC_length.
6814 (init_register_cache): Likewise.
6815 (regcache_cpy): Likewise.
6816 (registers_to_string): Iterate reg_defs via VEC_iterate.
6817 (find_regno): Likewise.
6818 (find_register_by_number): Use VEC_index.
6819 (register_size): Call find_register_by_number.
6820 (register_data): Call find_register_by_number.
6821 (supply_regblock): Use VEC_length.
6822 (regcache_raw_read_unsigned): Likewise.
6823 * tdesc.c (init_target_desc): Iterate reg_defs via
6824 VEC_iterate.
6825 (default_description): Update initializer.
6826 (copy_target_description): Don't update field num_registers.
6827 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6828 <num_registers>: Remove.
6829
50a421ac
SM
68302017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6831
6832 * Makefile.in (.SECONDARY): Define target.
6833
23fdd69e
SM
68342017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6835
6836 * linux-low.c (linux_wait_1): Adjust.
6837 * server.c (queue_stop_reply_callback): Adjust.
6838
0a2dde4a
SDJ
68392017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6840
6841 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6842 QEnvironmentUnset and QEnvironmentReset packets.
6843 (handle_query): Inform remote that QEnvironmentHexEncoded,
6844 QEnvironmentUnset and QEnvironmentReset are supported.
6845
6afd337d
SM
68462017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * inferiors.h (inferior_target_data): Rename to ...
6849 (thread_target_data): ... this.
6850 (inferior_regcache_data): Rename to ...
6851 (thread_regcache_data): ... this.
6852 (set_inferior_regcache_data): Rename to ...
6853 (set_thread_regcache_data): ... this.
6854 * inferiors.c (inferior_target_data): Rename to ...
6855 (thread_target_data): ... this.
6856 (inferior_regcache_data): Rename to ...
6857 (thread_regcache_data): ... this.
6858 (set_inferior_regcache_data): Rename to ...
6859 (set_thread_regcache_data): ... this.
6860 (free_one_thread): Update.
6861 * linux-low.h (get_thread_lwp): Update.
6862 * regcache.c (get_thread_regcache): Update.
6863 (regcache_invalidate_thread): Update.
6864 (free_register_cache_thread): Update.
6865 * win32-i386-low.c (update_debug_registers_callback): Update.
6866 (win32_get_current_dr): Update.
6867 * win32-low.c (thread_rec): Update.
6868 (delete_thread_info): Update.
6869 (continue_one_thread): Update.
6870 (suspend_one_thread): Update.
6871
a160cc46
SM
68722017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6873
6874 * inferiors.c (set_inferior_target_data): Remove.
6875 * inferiors.h (set_inferior_target_data): Remove.
6876
6d580b63
YQ
68772017-08-18 Yao Qi <yao.qi@linaro.org>
6878
6879 * Makefile.in (OBS): Add selftest.o.
6880 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6881 * configure, config.in: Re-generated.
6882 * server.c: Include common/sefltest.h.
6883 (captured_main): Handle option --selftest.
6884
f5a29eb0
YQ
68852017-08-09 Yao Qi <yao.qi@linaro.org>
6886
6887 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6888 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6889 i386-avx-mpx.o and i386-mmx.o.
6890 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6891 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6892 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6893 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6894 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6895 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6896 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6897 i386/amd64-avx-mpx.xml.
6898
57757c2f
YQ
68992017-08-09 Yao Qi <yao.qi@linaro.org>
6900
6901 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6902 and x32-avx-avx512.o.
6903 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6904 i386/x32-avx-avx512.xml.
6905
229d26fc
SM
69062017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6907
6908 * tracepoint.h (enum class fast_tpoint_collect_result): New
6909 enumeration.
6910 (fast_tracepoint_collecting): Change return type to
6911 fast_tpoint_collect_result.
6912 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6913 * linux-low.h: Include tracepoint.h.
6914 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6915 fast_tpoint_collect_result.
6916 * linux-low.c (handle_tracepoints): Adjust.
6917 (linux_fast_tracepoint_collecting): Change return type to
6918 fast_tpoint_collect_result.
6919 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6920 linux_wait_1, stuck_in_jump_pad_callback,
6921 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6922 proceed_one_lwp): Adjust to type change.
6923
2e1e43e1
YQ
69242017-07-10 Yao Qi <yao.qi@linaro.org>
6925
6926 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6927
adc764e7
YQ
69282017-06-29 Yao Qi <yao.qi@linaro.org>
6929
6930 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6931 Remove.
6932 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6933
a206891a
SM
69342017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6935
6936 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6937
9a6c7d9c
SDJ
69382017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6939
6940 * linux-low.c (linux_create_inferior): Adjust code to access the
6941 environment information via 'gdb_environ' class.
6942 * lynx-low.c (lynx_create_inferior): Likewise.
6943 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6944 (get_environ): Return a pointer to 'our_environ'.
6945 (captured_main): Initialize 'our_environ'.
6946 * server.h (get_environ): Adjust prototype.
6947 * spu-low.c (spu_create_inferior): Adjust code to access the
6948 environment information via 'gdb_environ' class.
6949
ae3e2ccf
SM
69502017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6951
6952 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6953 usage of "register" keyword.
6954
3e019bdc
SM
69552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * configure: Re-generate.
6958
8465943a
SM
69592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6960
6961 * configure: Re-generate.
6962
cf0dd6f0
SM
69632017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6964
6965 * Makefile.in (COMPILE.pre): Add "-x c++".
6966
9845682b
SDJ
69672017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6968
6969 * fork-child.c: Conditionally include <signal.h>.
6970
aefd8b33
SDJ
69712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6972
6973 * server.c (handle_general_set): Handle new packet
6974 "QStartupWithShell".
6975 (handle_query): Add "QStartupWithShell" to the list of supported
6976 packets.
6977 (gdbserver_usage): Add help text explaining the
6978 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6979 options.
6980 (captured_main): Recognize and act upon the presence of the new
6981 CLI options.
6982
2090129c
SDJ
69832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6984 Pedro Alves <palves@redhat.com>
6985
6986 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6987 * configure: Regenerate.
6988 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6989 "fork-inferior.o".
6990 (i[34567]86-*-lynxos*): Likewise.
6991 (spu*-*-*): Likewise.
6992 * fork-child.c: New file.
6993 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6994 and "environ.h".
6995 (linux_ptrace_fun): New function.
6996 (linux_create_inferior): Adjust function prototype to reflect
6997 change on "target.h". Adjust function code to use
6998 "fork_inferior".
6999 (linux_request_interrupt): Delete "signal_pid".
7000 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7001 (lynx_ptrace_fun): New function.
7002 (lynx_create_inferior): Adjust function prototype to reflect
7003 change on "target.h". Adjust function code to use
7004 "fork_inferior".
7005 * nto-low.c (nto_create_inferior): Adjust function prototype and
7006 code to reflect change on "target.h". Update comments.
7007 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7008 "common-terminal.h" and "environ.h".
7009 (terminal_fd): Moved to fork-child.c.
7010 (old_foreground_pgrp): Likewise.
7011 (restore_old_foreground_pgrp): Likewise.
7012 (last_status): Make it global.
7013 (last_ptid): Likewise.
7014 (our_environ): New variable.
7015 (startup_with_shell): Likewise.
7016 (program_name): Likewise.
7017 (program_argv): Rename to...
7018 (program_args): ...this.
7019 (wrapper_argv): New variable.
7020 (start_inferior): Delete function.
7021 (get_exec_wrapper): New function.
7022 (get_exec_file): Likewise.
7023 (get_environ): Likewise.
7024 (prefork_hook): Likewise.
7025 (post_fork_inferior): Likewise.
7026 (postfork_hook): Likewise.
7027 (postfork_child_hook): Likewise.
7028 (handle_v_run): Update code to deal with arguments coming from the
7029 remote host. Update calls from "start_inferior" to
7030 "create_inferior".
7031 (captured_main): Likewise. Initialize environment variable. Call
7032 "have_job_control".
7033 * server.h (post_fork_inferior): New prototype.
7034 (get_environ): Likewise.
7035 (last_status): Declare.
7036 (last_ptid): Likewise.
7037 (signal_pid): Likewise.
7038 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7039 (spu_ptrace_fun): New function.
7040 (spu_create_inferior): Adjust function prototype to reflect change
7041 on "target.h". Adjust function code to use "fork_inferior".
7042 * target.c (target_terminal_init): New function.
7043 (target_terminal_inferior): Likewise.
7044 (target_terminal_ours): Likewise.
7045 * target.h: Include <vector>.
7046 (struct target_ops) <create_inferior>: Update prototype.
7047 (create_inferior): Update macro.
7048 * utils.c (gdb_flush_out_err): New function.
7049 * win32-low.c (win32_create_inferior): Adjust function prototype
7050 and code to reflect change on "target.h".
7051
043a4934
SDJ
70522017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7053
7054 * inferiors.c (switch_to_thread): New function.
7055
15652511
SDJ
70562017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7057
7058 * Makefile.in (SFILE): Add "common/job-control.c".
7059 (OBS): Add "job-control.o".
7060
21ea5acd
SDJ
70612017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7062
7063 * Makefile: Remove "@host_makefile_frag@".
7064
e13cb306
PA
70652017-05-05 Pedro Alves <palves@redhat.com>
7066
7067 * configure: Regenerate.
7068
c94fee56
SDJ
70692017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7070
7071 * configure: Regenerate.
7072
a0ff9e1a
SM
70732017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7074
7075 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7076 software_single_step change of return type to
7077 std::vector<CORE_ADDR>.
7078 * linux-low.c (install_software_single_step_breakpoints):
7079 Likewise.
7080 * linux-low.h (install_software_single_step_breakpoints):
7081 Likewise.
7082
be628ab8
SDJ
70832017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7084
7085 * remote-utils.c: Include "gdb_termios.h" instead of
7086 "terminal.h".
7087 * terminal.h: Delete file.
7088
7c5ded6a
SDJ
70892017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7090
7091 * server.c: Include <vector>.
7092 <program_argv, wrapper_argv>: Convert to std::vector.
7093 (start_inferior): Rewrite function to use C++.
7094 (handle_v_run): Likewise. Update code that calculates the argv
7095 based on the vRun packet; use C++.
7096 (captured_main): Likewise.
7097
436252de
SM
70982017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7099
7100 * server.c (handle_v_cont): Initialize thread_resume::thread
7101 with null_ptid.
7102
9bf2a700
PA
71032017-04-05 Pedro Alves <palves@redhat.com>
7104
7105 * configure: Regenerate.
7106
a121b7c1
PA
71072017-04-05 Pedro Alves <palves@redhat.com>
7108
7109 * gdbreplay.c (sync_error): Constify.
7110 * linux-x86-low.c (push_opcode): Constify.
7111
21c8a587
PA
71122017-04-05 Pedro Alves <palves@redhat.com>
7113
7114 * win32-low.c (get_child_debug_event)
7115 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7116 Report TARGET_WAITKIND_SPURIOUS instead.
7117
fb32b4f7
PA
71182017-04-05 Pedro Alves <palves@redhat.com>
7119
e79be6e5
SM
7120 * remote-utils.c (remote_prepare, remote_open): Constify.
7121 * remote-utils.h (remote_prepare, remote_open): Constify.
7122 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7123
65dd1e59
SM
71242017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * Makefile.in (clean): Clear .deps.
7127
8fa5b777
SM
71282017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7129
7130 * .gitignore: Remove generated files, replace with wildcard.
7131 * (clean): Replace removal of generated files with wildcard.
7132 (version.c): Replace with...
7133 (version-generated.c): ...this.
7134 (xml-builtin.c): Replace with...
7135 (xml-builtin-generated.c): ...this.
7136 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7137 (%.c: *regformats*): Replace with...
7138 (%-generated.c: *regformats*): ...this.
7139
a12e714b
MF
71402017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7141
7142 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7143 (xtensa_fill_gregset): Call collect_register_by_name for
7144 threadptr register.
7145 (xtensa_store_gregset): Call supply_register_by_name for
7146 threadptr register.
7147
1a09b50a
MF
71482017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7149
7150 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7151 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7152 (xtensa_store_gregset): Call supply_register for all registers in
7153 a0_regnum..a0_regnum + C0_NREGS range.
7154
1a01e7c6
SM
71552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7156
7157 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7158 (ax-ipa.o: ax.c): Remove.
7159 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7160 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7161 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7162 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7163 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7164
36bc18a8
SM
71652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7166
7167 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7168 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7169 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7170 (errors-ipa.o: ../common/errors.c): Remove.
7171 (format-ipa.o: ../common/format.c): Remove.
7172 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7173
a8ebe3d5
SM
71742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7175
7176 * Makefile.in (%-ipa.o: %.c): New rule.
7177 (tracepoint-ipa.o: tracepoint.c): Remove.
7178 (utils-ipa.o: utils.c): Remove.
7179 (remote-utils-ipa.o: remote-utils.c): Remove.
7180 (regcache-ipa.o: regcache.c): Remove.
7181 (i386-linux-ipa.o: i386-linux.c): Remove.
7182 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7183 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7184 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7185 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7186 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7187 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7188 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7189 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7190 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7191 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7192 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7193 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7194 (aarch64-ipa.o: aarch64.c): Remove.
7195 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7196 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7197 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7198 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7199 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7200 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7201 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7202 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7203 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7204 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7205 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7206 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7207 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7208 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7209 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7210 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7211 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7212 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7213 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7214 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7215 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7216 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7217 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7218 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7219 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7220 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7221 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7222 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7223 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7224 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7225 (tdesc-ipa.o: tdesc.c): Remove.
7226 (x32-linux-ipa.o: x32-linux.c): Remove.
7227 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7228 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7229
50cfacb7
SM
72302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7231
7232 * Makefile.in (%.o: ../arch/%.c): New rule.
7233 (arm.o: ../arch/arm.c): Remove.
7234 (arm-linux.o: ../arch/arm-linux.c): Remove.
7235 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7236 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7237
c5a22423
SM
72382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7239
7240 * Makefile.in (%.o: ../nat/%.c): New rule.
7241 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7242 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7243 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7244 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7245 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7246 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7247 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7248 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7249 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7250 (linux-personality.o: ../nat/linux-personality.c): Remove.
7251 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7252 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7253 (x86-linux.o: ../nat/x86-linux.c): Remove.
7254 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7255 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7256
6bda016b
SM
72572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7258
7259 * Makefile.in (%.o: ../common/%.c): New rule.
7260 (signals.o: ../common/signals.c): Remove.
7261 (print-utils.o: ../common/print-utils.c): Remove.
7262 (rsp-low.o: ../common/rsp-low.c): Remove.
7263 (common-utils.o: ../common/common-utils.c): Remove.
7264 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7265 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7266 (vec.o: ../common/vec.c): Remove.
7267 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7268 (xml-utils.o: ../common/xml-utils.c): Remove.
7269 (ptid.o: ../common/ptid.c): Remove.
7270 (buffer.o: ../common/buffer.c): Remove.
7271 (format.o: ../common/format.c): Remove.
7272 (filestuff.o: ../common/filestuff.c): Remove.
7273 (agent.o: ../common/agent.c): Remove.
7274 (errors.o: ../common/errors.c): Remove.
7275 (environ.o: ../common/environ.c): Remove.
7276 (common-debug.o: ../common/common-debug.c): Remove.
7277 (cleanups.o: ../common/cleanups.c): Remove.
7278 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7279 (fileio.o: ../common/fileio.c): Remove.
7280 (common-regcache.o: ../common/common-regcache.c): Remove.
7281 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7282 (new-op.o: ../common/new-op.c): Remove.
7283 (btrace-common.o: ../common/btrace-common.c): Remove.
7284
21122961
SM
72852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7286
7287 * Makefile.in (%.o: ../target/%.c): New rule.
7288 (waitstatus.o: ../target/waitstatus.c): Remove.
7289
c362e621
SM
72902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7291
7292 * Makefile.in
7293 (%.c: ../regformats/%.dat,
7294 (%.c: ../regformats/arm/%.dat,
7295 (%.c: ../regformats/i386/%.dat,
7296 (%.c: ../regformats/rs6000/%.dat): New rules.
7297 (aarch64.c): Remove.
7298 (reg-arm.c): Remove.
7299 (arm-with-iwmmxt.c): Remove.
7300 (arm-with-vfpv2.c): Remove.
7301 (arm-with-vfpv3.c): Remove.
7302 (arm-with-neon.c): Remove.
7303 (reg-bfin.c): Remove.
7304 (reg-cris.c): Remove.
7305 (reg-crisv32.c): Remove.
7306 (i386.c): Remove.
7307 (i386-linux.c): Remove.
7308 (i386-avx.c): Remove.
7309 (i386-avx-linux.c): Remove.
7310 (i386-avx-avx512.c): Remove.
7311 (i386-avx-avx512-linux.c): Remove.
7312 (i386-mpx.c): Remove.
7313 (i386-mpx-linux.c): Remove.
7314 (i386-avx-mpx-avx512-pku.c): Remove.
7315 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7316 (i386-avx-mpx.c): Remove.
7317 (i386-avx-mpx-linux.c): Remove.
7318 (i386-mmx.c): Remove.
7319 (i386-mmx-linux.c): Remove.
7320 (reg-ia64.c): Remove.
7321 (reg-m32r.c): Remove.
7322 (reg-m68k.c): Remove.
7323 (reg-cf.c): Remove.
7324 (mips-linux.c): Remove.
7325 (mips-dsp-linux.c): Remove.
7326 (mips64-linux.c): Remove.
7327 (mips64-dsp-linux.c): Remove.
7328 (nios2-linux.c): Remove.
7329 (powerpc-32.c): Remove.
7330 (powerpc-32l.c): Remove.
7331 (powerpc-altivec32l.c): Remove.
7332 (powerpc-cell32l.c): Remove.
7333 (powerpc-vsx32l.c): Remove.
7334 (powerpc-isa205-32l.c): Remove.
7335 (powerpc-isa205-altivec32l.c): Remove.
7336 (powerpc-isa205-vsx32l.c): Remove.
7337 (powerpc-e500l.c): Remove.
7338 (powerpc-64l.c): Remove.
7339 (powerpc-altivec64l.c): Remove.
7340 (powerpc-cell64l.c): Remove.
7341 (powerpc-vsx64l.c): Remove.
7342 (powerpc-isa205-64l.c): Remove.
7343 (powerpc-isa205-altivec64l.c): Remove.
7344 (powerpc-isa205-vsx64l.c): Remove.
7345 (s390-linux32.c): Remove.
7346 (s390-linux32v1.c): Remove.
7347 (s390-linux32v2.c): Remove.
7348 (s390-linux64.c): Remove.
7349 (s390-linux64v1.c): Remove.
7350 (s390-linux64v2.c): Remove.
7351 (s390-te-linux64.c): Remove.
7352 (s390-vx-linux64.c): Remove.
7353 (s390-tevx-linux64.c): Remove.
7354 (s390x-linux64.c): Remove.
7355 (s390x-linux64v1.c): Remove.
7356 (s390x-linux64v2.c): Remove.
7357 (s390x-te-linux64.c): Remove.
7358 (s390x-vx-linux64.c): Remove.
7359 (s390x-tevx-linux64.c): Remove.
7360 (tic6x-c64xp-linux.c): Remove.
7361 (tic6x-c64x-linux.c): Remove.
7362 (tic6x-c62x-linux.c): Remove.
7363 (reg-sh.c): Remove.
7364 (reg-sparc64.c): Remove.
7365 (reg-spu.c): Remove.
7366 (amd64.c): Remove.
7367 (amd64-linux.c): Remove.
7368 (amd64-avx.c): Remove.
7369 (amd64-avx-linux.c): Remove.
7370 (amd64-avx-avx512.c): Remove.
7371 (amd64-avx-avx512-linux.c): Remove.
7372 (amd64-mpx.c): Remove.
7373 (amd64-mpx-linux.c): Remove.
7374 (amd64-avx-mpx-avx512-pku.c): Remove.
7375 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7376 (amd64-avx-mpx.c): Remove.
7377 (amd64-avx-mpx-linux.c): Remove.
7378 (x32.c): Remove.
7379 (x32-linux.c): Remove.
7380 (x32-avx.c): Remove.
7381 (x32-avx-linux.c): Remove.
7382 (x32-avx-avx512.c): Remove.
7383 (x32-avx-avx512-linux.c): Remove.
7384 (reg-xtensa.c): Remove.
7385 (reg-tilegx.c): Remove.
7386 (reg-tilegx32.c): Remove.
7387
1672e0d9
SDJ
73882017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7389
7390 * Makefile.in (SFILES): Add "common/environ.c".
7391 (OBJS): Add "common/environ.h".
7392
239b6d10
WT
73932017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7394
7395 * configure.ac: Check if the fs_base and gs_base members of
7396 `struct user_regs_struct' exist.
7397 * config.in: Regenerated.
7398 * configure: Likewise.
7399
694b382c
AT
74002017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7401
7402 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7403 target_read_memory.
7404 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7405 (get_next_pcs_syscall_next_pc): Likewise.
7406
7dc53023
LM
74072016-12-23 Luis Machado <lgustavo@codesourcery.com>
7408
7409 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7410 * nto-x86-low.c: Likewise.
7411
ad02e4fe
SM
74122016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7413
7414 * Makefile.in: Include disable-implicit-rules.mk.
7415
dcb07cfa
PA
74162016-11-23 Pedro Alves <palves@redhat.com>
7417
7418 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7419 (debug_vprintf): Use std::chrono::steady_clock instead of
7420 gettimeofday. Use '.' instead of ':'.
7421 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7422 (get_timestamp): Use std::chrono::steady_clock instead of
7423 gettimeofday.
7424
8629c02c
SM
74252016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7426
7427 * Makefile.in: Fix whitespace formatting.
7428
b593ecca
SM
74292016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7430
7431 * Makefile.in (SFILES, OBS): Flatten list and order
7432 alphabetically.
7433
9986ba08
PA
74342016-11-23 Pedro Alves <palves@redhat.com>
7435
7436 * event-loop.c (handle_file_event): Use warning.
7437 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7438 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7439 Use warning.
7440
4eefa7bc
PA
74412016-11-23 Pedro Alves <palves@redhat.com>
7442
7443 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7444 output.
7445 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7446 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7447 debug_printf and debug_flush for debug output.
7448 * server.c (handle_general_set): Likewise.
7449 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7450 output.
7451
5443506e
SM
74522016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * Makefile.in (.c.o): Replace rule with ...
7455 (%.o: %.c): ... this one.
7456
3b165252
SM
74572016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7458
7459 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7460 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7461 make.
7462 * configure.ac: Remove checks for the make program.
7463 * configure: Re-generate.
7464
0bcda685
PA
74652016-10-28 Pedro Alves <palves@redhat.com>
7466
7467 * Makefile.in (CXX_DIALECT): Get from configure.
7468 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7469 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7470 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7471 * config.in: Regenerate.
7472 * configure: Regenerate.
7473
c3805894
YQ
74742016-10-27 Yao Qi <yao.qi@linaro.org>
7475
7476 * linux-low.c (linux_supports_range_stepping): Return true if
7477 can_software_single_step return true.
7478
89342618
YQ
74792016-10-27 Yao Qi <yao.qi@linaro.org>
7480
7481 * inferiors.c (find_inferior_in_random): New function.
7482 * inferiors.h (find_inferior_in_random): Declare.
7483 * linux-low.c (linux_wait_for_event_filtered): Call
7484 find_inferior_in_random instead of find_inferior.
7485
e3652c84
YQ
74862016-10-27 Yao Qi <yao.qi@linaro.org>
7487
7488 * linux-low.c (linux_wait_1): If single-step breakpoints are
7489 inserted, remove them.
7490
5a04c4cf
PA
74912016-10-26 Pedro Alves <palves@redhat.com>
7492
7493 * linux-low.c (handle_extended_wait): Link parent/child fork
7494 threads.
7495 (linux_wait_1): Unlink them.
7496 (linux_set_resume_request): Ignore resume requests for
7497 already-resumed and unhandled fork child threads.
7498 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7499 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7500 New functions.
7501 (handle_v_requests) <vCont>: Don't call require_running.
7502 * server.h (in_queued_stop_replies): New declaration.
7503
cb93dc7f
YQ
75042016-10-24 Yao Qi <yao.qi@linaro.org>
7505
7506 PR server/20733
7507 * linux-aarch64-low.c (append_insns): Cast the return value to
7508 'uint32_t *'.
7509
a1078bea
YQ
75102016-10-10 Yao Qi <yao.qi@linaro.org>
7511
7512 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7513
1fb77080
SDJ
75142016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7515
7516 * target.c (target_supports_multi_process): New function, moved
7517 from...
7518 * target.h (target_supports_multi_process): ... here. Remove
7519 macro.
7520
39b5a3b9
TT
75212016-10-05 Tom Tromey <tom@tromey.com>
7522
7523 PR remote/20655:
7524 * tracepoint.c (handle_tracepoint_bkpts): Check
7525 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7526
c1d0b70a
YQ
75272016-10-05 Yao Qi <yao.qi@linaro.org>
7528
7529 * configure.srv: Update the path of arm-*.xml files.
7530
0a69eedb
YQ
75312016-10-05 Terry Guo <terry.guo@arm.com>
7532 Yao Qi <yao.qi@linaro.org>
7533
7534 * Makefile.in: Adjust the path of rules.
7535 * configure.srv: Update the path of xml files.
7536 * regformats/arm-with-iwmmxt.dat: Regenerated.
7537 * regformats/arm-with-neon.dat: Likewise.
7538 * regformats/arm-with-vfpv2.dat: Likewise.
7539 * regformats/arm-with-vfpv3.dat Likewise.
7540
17e16485
YQ
75412016-09-30 Yao Qi <yao.qi@linaro.org>
7542
7543 PR gdbserver/20627
7544 * target.c (target_stop_and_wait): Don't call
7545 target_continue_no_signal, use resume_stop instead.
7546
edeeb602
YQ
75472016-09-26 Yao Qi <yao.qi@linaro.org>
7548
7549 * linux-low.c (linux_wait_1): Call debug_exit.
7550
503b1c39
PA
75512016-09-23 Pedro Alves <palves@redhat.com>
7552
7553 * Makefile.in (SFILES): Add common/new-op.c.
7554 (OBS): Add common/new-op.o.
7555 (new-op.o): New rule.
7556
74172ecf
SM
75572016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7558
7559 * .gitinore: Ignore more files.
7560
fc6cda2e
YQ
75612016-09-21 Yao Qi <yao.qi@linaro.org>
7562
7563 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7564 23.
7565
bc1e6c81
SDJ
75662016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7567
7568 * server.c (start_inferior): Call target_mourn_inferior instead of
7569 mourn_inferior; pass ptid_t argument to it.
7570 (resume): Likewise.
7571 (handle_target_event): Likewise.
7572 * target.c (target_mourn_inferior): New function.
7573 * target.h (mourn_inferior): Delete macro.
7574
0e00e962
AA
75752016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7576
7577 * linux-low.c (lwp_is_stepping): New function.
7578
1d8cb77d
CL
75792016-09-06 Carl Love <cel@us.ibm.com>
7580
7581 * server.c (start_inferior): Fixed comment, requested comment change
7582 didn't get updated correctly. Removed reference to ptrace () call as
7583 it is only true on Linux systems.
7584
7313bced
CL
75852016-09-06 Carl Love <cel@us.ibm.com>
7586
7587 * server.c (start_inferior): Do not call
7588 function target_post_create_inferior () if the
7589 inferior process has already exited.
7590
cf6de44d
PA
75912016-09-05 Pedro Alves <palves@redhat.com>
7592
7593 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7594 (COMPILE.pre, CC_LD): Use CXX directly.
7595 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7596 * acinclude.m4: Don't include build-with-cxx.m4.
7597 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7598 * configure: Regenerate.
7599
c1da6748
AT
76002016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7601
7602 PR gdb/19495
7603 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7604 call writing data to own_buf.
7605
f2b9e3df
SDJ
76062016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7607
7608 * target.c (mywait): Call target_wait instead of
7609 the_target->wait.
7610 (target_wait): New function.
7611
049a8570
SDJ
76122016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7613
7614 * server.c (start_inferior): New variable 'ptid'. Replace calls
7615 to the_target->resume by target_continue{,_no_signal}, depending
7616 on the case.
7617 * target.c (target_stop_and_wait): Call target_continue_no_signal
7618 instead of the_target->resume.
7619 (target_continue): New function.
7620
3aa5cfa0
AT
76212016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7622
7623 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7624
754653a7
AZ
76252016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7626
7627 PR server/20491
7628 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7629 ps_prochandle.
7630 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7631 * linux-arm-low.c (ps_get_thread_area): Likewise.
7632 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7633 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7634 * linux-mips-low.c (ps_get_thread_area): Likewise.
7635 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7636 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7637 * linux-x86-low.c (ps_get_thread_area): Likewise.
7638 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7639
ed036b40
PA
76402016-08-19 Pedro Alves <palves@redhat.com>
7641
7642 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7643
c8ef42ee
PA
76442016-08-19 Pedro Alves <palves@redhat.com>
7645
7646 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7647 comment. Use memcpy instead of casting through unsigned long.
7648
9c235a72
PA
76492016-08-19 Pedro Alves <palves@redhat.com>
7650
7651 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7652 allocating around 0x80000000.
7653
201506da
PA
76542016-08-19 Pedro Alves <palves@redhat.com>
7655
7656 PR gdb/20415
7657 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7658 (x32-avx512-linux-ipa.o): New rules.
7659 * configure.ac (x86_64-*-linux*): New x32 check.
7660 * configure.srv (ipa_x32_linux_regobj): New.
7661 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7662 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7663 descriptions.
7664 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7665 descriptions.
7666 * configure: Regenerate.
7667
f348d89a
PA
76682016-08-09 Pedro Alves <palves@redhat.com>
7669
7670 PR gdb/18653
7671 * Makefile.in (OBS): Add signals-state-save-restore.o.
7672 (signals-state-save-restore.o): New rule.
7673 * config.in: Regenerate.
7674 * configure: Regenerate.
7675 * linux-low.c: Include "signals-state-save-restore.h".
7676 (linux_create_inferior): Call
7677 restore_original_signals_state.
7678 * server.c: Include "dispositions-save-restore.h".
7679 (captured_main): Call save_original_signals_state.
7680
1baf5149
PA
76812016-08-05 Pedro Alves <palves@redhat.com>
7682
7683 * configure: Regenerate.
7684
fcd4a73d
YQ
76852016-08-04 Yao Qi <yao.qi@linaro.org>
7686
7687 * linux-low.c (regsets_fetch_inferior_registers): Check
7688 errno is ESRCH or not.
7689
979659d0
YQ
76902016-08-02 Yao Qi <yao.qi@linaro.org>
7691
7692 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7693 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7694 (thread_db_load_search): Update.
7695 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7696 td_ta_set_event and td_ta_event_getmsg.
7697
6598661d
PA
76982016-07-26 Pedro Alves <palves@redhat.com>
7699
7700 PR server/20414
7701 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7702 of unsigned long for 64-bit registers and use uint32_t instead of
7703 unsigned int for 32-bit registers.
7704
9cf12d57
PA
77052016-07-26 Pedro Alves <palves@redhat.com>
7706
7707 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7708 to 'ptrace'.
7709
305450ed
TT
77102016-07-21 Tom Tromey <tom@tromey.com>
7711
7712 * configure: Rebuild.
7713
2583da7c
YQ
77142016-07-21 Yao Qi <yao.qi@linaro.org>
7715
7716 * mem-break.c (find_gdb_breakpoint): Cast bp to
7717 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7718
21536b36
YQ
77192016-07-21 Yao Qi <yao.qi@linaro.org>
7720
7721 * server.c (handle_v_requests): Support s and S actions
7722 if target_supports_software_single_step return true.
7723
8901d193
YQ
77242016-07-21 Yao Qi <yao.qi@linaro.org>
7725
7726 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7727 is resume_step, call maybe_hw_step.
7728 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7729 and unstop them.
7730 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7731 breakpoints or not.
7732 (proceed_one_lwp): If resume request is resume_step, install
7733 reinsert breakpoints and call maybe_hw_step.
7734
0e9a339e
YQ
77352016-07-21 Yao Qi <yao.qi@linaro.org>
7736
7737 * linux-low.c (proceed_one_lwp): Declare.
7738 (linux_resume_one_thread): Remove local variable 'step'.
7739 Lift code enqueue signal. Call proceed_one_lwp instead of
7740 linux_resume_one_lwp.
7741
4281b351
YQ
77422016-07-21 Yao Qi <yao.qi@linaro.org>
7743
7744 * linux-low.c (linux_resume_one_thread): Call
7745 enqueue_pending_signal.
7746
984a2c04
YQ
77472016-07-21 Yao Qi <yao.qi@linaro.org>
7748
7749 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7750 * inferiors.c (do_restore_current_thread_cleanup): New function.
7751 (make_cleanup_restore_current_thread): Likewise.
7752 * linux-low.c (install_software_single_step_breakpoints): Call
7753 make_cleanup_restore_current_thread. Switch current_thread to
7754 thread.
7755
bec903c9
YQ
77562016-07-21 Yao Qi <yao.qi@linaro.org>
7757
7758 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7759 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7760 (clone_one_breakpoint): Likewise.
7761 (delete_reinsert_breakpoints): Change parameter to thread.
7762 Callers updated.
7763 (has_reinsert_breakpoints): Likewise.
7764 (uninsert_reinsert_breakpoints): Likewise.
7765 (reinsert_reinsert_breakpoints): Likewise.
7766 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7767 (delete_reinsert_breakpoints): Likewise.
7768 (reinsert_reinsert_breakpoints): Likewise.
7769 (uninsert_reinsert_breakpoints): Likewise.
7770 (has_reinsert_breakpoints): Likewise.
7771
63c40ec7
YQ
77722016-07-21 Yao Qi <yao.qi@linaro.org>
7773
7774 * inferiors.c (get_thread_process): Make parameter const.
7775 * inferiors.h (get_thread_process): Update declaration.
7776 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7777 Add new parameters child_thread and parent_thread. Callers
7778 updated.
7779 * mem-break.h (clone_all_breakpoints): Update declaration.
7780
9aa76cd0
YQ
77812016-07-21 Yao Qi <yao.qi@linaro.org>
7782
7783 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7784 <command_list, handler>: Remove.
7785 (struct gdb_breakpoint): New.
7786 (struct other_breakpoint): New.
7787 (struct reinsert_breakpoint): New.
7788 (is_gdb_breakpoint): New function.
7789 (any_persistent_commands): Update command_list if
7790 is_gdb_breakpoint returns true.
7791 (set_breakpoint): Create breakpoints according to their types.
7792 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7793 (set_gdb_breakpoint_1): Likewise.
7794 (set_gdb_breakpoint): Likewise.
7795 (clear_breakpoint_conditions): Change parameter type to
7796 'struct gdb_breakpoint *'.
7797 (clear_breakpoint_commands): Likewise.
7798 (clear_breakpoint_conditions_and_commands): Likewise.
7799 (add_condition_to_breakpoint): Likewise.
7800 (add_breakpoint_condition): Likewise.
7801 (add_commands_to_breakpoint): Likewise.
7802 (check_breakpoints): Check other_breakpoint.
7803 (clone_one_breakpoint): Clone breakpopint according to its type.
7804 * mem-break.h (struct gdb_breakpoint): Declare.
7805 (set_gdb_breakpoint): Update declaration.
7806 (clear_breakpoint_conditions_and_commands): Likewise.
7807 (add_breakpoint_condition): Likewise.
7808 (add_breakpoint_commands): Likewise.
7809 * server.c (process_point_options): Change parameter type to
7810 'struct gdb_breakpoint *'.
7811
811f8301
YQ
78122016-07-21 Yao Qi <yao.qi@linaro.org>
7813
7814 * mem-break.c (set_breakpoint_at): Rename it to ...
7815 (set_breakpoint_type_at): ... it.
7816 (set_breakpoint_at): Call set_breakpoint_type_at.
7817 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7818 * mem-break.h (set_breakpoint_at): Update comments.
7819
b1c51e36
CLT
78202016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7821
7822 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7823 to buf parameter.
7824 (nios2_store_gregset): Likewise.
7825
ced2dffb
PA
78262016-07-01 Pedro Alves <palves@redhat.com>
7827 Antoine Tremblay <antoine.tremblay@ericsson.com>
7828
7829 * linux-low.c: Change interface to take the target lwp_info
7830 pointer directly and return void. Handle detaching from a zombie
7831 thread.
7832 (linux_detach_lwp_callback): New function.
7833 (linux_detach): Detach from the leader thread after detaching from
7834 the clone threads.
7835
2ac09a5b
YQ
78362016-06-28 Yao Qi <yao.qi@linaro.org>
7837
7838 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7839 for variable new_offset.
7840 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7841 (aarch64_ftrace_insn_reloc_cb): Likewise.
7842 (aarch64_ftrace_insn_reloc_tb): Likewise.
7843 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7844 PRIx64 instead of PRIx32.
7845
79e7fd4f
YQ
78462016-06-28 Yao Qi <yao.qi@linaro.org>
7847
7848 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7849 (the_low_target): Install arm_get_syscall_trapinfo.
7850
061fc021
YQ
78512016-06-28 Yao Qi <yao.qi@linaro.org>
7852
7853 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7854 function.
7855 (the_low_target): Install aarch64_get_syscall_trapinfo.
7856
4cc32bec
YQ
78572016-06-28 Yao Qi <yao.qi@linaro.org>
7858
7859 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7860 Callers updated.
7861 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7862 Remove parameter sysno.
7863 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7864 sysret.
7865
782c1122
AA
78662016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7867
7868 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7869 (s390_emit_ne_goto): Likewise.
7870 (s390_emit_lt_goto): Likewise.
7871 (s390_emit_le_goto): Likewise.
7872 (s390_emit_gt_goto): Likewise.
7873 (s390_emit_ge_goto): Likewise.
7874 (s390x_emit_eq_goto): Likewise.
7875 (s390x_emit_ne_goto): Likewise.
7876 (s390x_emit_lt_goto): Likewise.
7877 (s390x_emit_le_goto): Likewise.
7878 (s390x_emit_gt_goto): Likewise.
7879 (s390x_emit_ge_goto): Likewise.
7880 (s390_emit_ops_impl): Mark variable static.
7881 (s390x_emit_ops): Likewise.
7882
2e7b624b
YQ
78832016-06-17 Yao Qi <yao.qi@linaro.org>
7884
7885 * linux-low.c (handle_extended_wait): Call
7886 uninsert_reinsert_breakpoints for the parent process. Remove
7887 reinsert breakpoints from the child process. Reinsert them to
7888 the parent process when vfork is done.
7889 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7890 (reinsert_reinsert_breakpoints): New function.
7891 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7892 (reinsert_reinsert_breakpoints): Declare.
7893
8a81c5d7
YQ
78942016-06-17 Yao Qi <yao.qi@linaro.org>
7895
7896 * linux-low.c (handle_extended_wait): If the parent is doing
7897 step-over, remove the reinsert breakpoints from the forked child.
7898
f50bf8e5
YQ
78992016-06-17 Yao Qi <yao.qi@linaro.org>
7900
7901 * linux-low.c (unsuspend_all_lwps): Declare.
7902 (linux_low_filter_event): If thread exited, call finish_step_over.
7903 If step-over is finished, unsuspend other threads.
7904
8376a3cb
YQ
79052016-06-17 Yao Qi <yao.qi@linaro.org>
7906
7907 * linux-low.c (linux_resume_one_lwp_throw): Assert
7908 has_reinsert_breakpoints returns false.
7909 * mem-break.c (delete_disabled_breakpoints): Assert
7910 bp type isn't reinsert_breakpoint.
7911
f79b145d
YQ
79122016-06-17 Yao Qi <yao.qi@linaro.org>
7913
7914 * linux-low.c (maybe_hw_step): New function.
7915 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7916 (finish_step_over): Switch current_thread to lwp temporarily,
7917 and assert has_reinsert_breakpoints returns true.
7918 (proceed_one_lwp): Call maybe_hw_step.
7919 * mem-break.c (has_reinsert_breakpoints): New function.
7920 * mem-break.h (has_reinsert_breakpoints): Declare.
7921
0ae534d2
JT
79222016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7923
7924 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7925
fcdad592
YQ
79262016-05-17 Yao Qi <yao.qi@linaro.org>
7927
7928 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7929 instead of find_inferior.
7930
9e784964
YQ
79312016-05-05 Yao Qi <yao.qi@linaro.org>
7932
7933 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7934 Initialize res to zero.
7935
cf2ebb6e
YQ
79362016-05-05 Yao Qi <yao.qi@linaro.org>
7937
7938 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7939 to uint32_t.
7940
c1aebf87
UW
79412016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7942
7943 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7944 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7945 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7946
35fd2deb 79472016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7948 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7949
7950 * tracepoint.c (write_inferior_int8): New function.
7951 (cmd_qtenable_disable): Write enable flag using
7952 write_inferior_int8.
7953
484b3c32
YQ
79542016-04-25 Yao Qi <yao.qi@linaro.org>
7955
7956 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7957 (need_step_over_p): Return zero if the LWP has pending signals
7958 can be delivered on software single step target.
7959
85ba7d86
YQ
79602016-04-25 Yao Qi <yao.qi@linaro.org>
7961
7962 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7963 return instead of error.
7964
3539aa13
YQ
79652016-04-22 Yao Qi <yao.qi@linaro.org>
7966
7967 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7968 to 23.
7969
5b061e98
YQ
79702016-04-22 Yao Qi <yao.qi@linaro.org>
7971
7972 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7973 signal when stepping over breakpoint with software single
7974 step.
7975
3451269c
PA
79762016-04-21 Pedro Alves <palves@redhat.com>
7977
7978 * linux-s390-low.c (s390_collect_ptrace_register)
7979 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7980 add casts.
7981 (s390_check_regset): Use void * instead of gdb_byte *.
7982
a2358508
PA
79832016-04-20 Pedro Alves <palves@redhat.com>
7984
7985 * configure: Renegerate.
7986
6885166d
YQ
79872016-04-20 Yao Qi <yao.qi@linaro.org>
7988
7989 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7990 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7991 number 16.
7992 (arm_store_gregset): Likewise.
7993
2b863f51
WT
79942016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7995
7996 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7997 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7998 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7999 (amd64-avx-mpx-linux.c): New rules.
8000 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8001 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8002 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8003 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8004 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8005 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8006 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8007 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8008 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8009 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8010 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8011 * linux-x86-low.c (x86_linux_read_description): Add case for
8012 X86_XSTATE_AVX_MPX_MASK.
8013 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8014 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8015 init_registers_i386_avx_mpx_linux.
8016 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8017 (initialize_low_tracepoint): Call
8018 init_registers_i386_avx_mpx_linux.
8019 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8020 (initialize_low_tracepoint): Call
8021 init_registers_amd64_avx_mpx_linux.
8022 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8023 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8024 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8025 declarations.
8026
9b30624b
PA
80272016-04-18 Pedro Alves <palves@redhat.com>
8028
8029 * configure: Regenerate.
8030
45e3745e
AT
80312016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8032
8033 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8034 (aarch64_emit_sub): Likewise.
8035
2afc13ff
PA
80362016-04-12 Pedro Alves <palves@redhat.com>
8037
8038 * utils.c (prepare_to_throw_exception): Delete.
8039
6e774b13
SM
80402016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8041
8042 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8043
4dca19f8
MK
80442016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8045
8046 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8047
d0a9981f
MK
80482016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8049
8050 * linux-aarch64-ipa.c: Add <elf.h> include.
8051 * linux-ppc-ipa.c: Add <elf.h> include.
8052 * linux-s390-ipa.c: Add <elf.h> include.
8053
252db07e
MK
80542016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8055
8056 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8057 (get_raw_reg_ptr): Likewise.
8058 (get_trace_state_variable_value_ptr): Likewise.
8059 (set_trace_state_variable_value_ptr): Likewise.
8060 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8061 char *.
8062
14e2b6d9
MK
80632016-03-31 Wei-cheng Wang <cole945@gmail.com>
8064 Marcin Kościelnicki <koriakin@0x04.net>
8065
8066 PR/17221
8067 * linux-ppc-low.c (emit_insns): New function.
8068 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8069 (ppc_emit_prologue): New function.
8070 (ppc_emit_epilogue): New function.
8071 (ppc_emit_add): New function.
8072 (ppc_emit_sub): New function.
8073 (ppc_emit_mul): New function.
8074 (ppc_emit_lsh): New function.
8075 (ppc_emit_rsh_signed): New function.
8076 (ppc_emit_rsh_unsigned): New function.
8077 (ppc_emit_ext): New function.
8078 (ppc_emit_zero_ext): New function.
8079 (ppc_emit_log_not): New function.
8080 (ppc_emit_bit_and): New function.
8081 (ppc_emit_bit_or): New function.
8082 (ppc_emit_bit_xor): New function.
8083 (ppc_emit_bit_not): New function.
8084 (ppc_emit_equal): New function.
8085 (ppc_emit_less_signed): New function.
8086 (ppc_emit_less_unsigned): New function.
8087 (ppc_emit_ref): New function.
8088 (ppc_emit_const): New function.
8089 (ppc_emit_reg): New function.
8090 (ppc_emit_pop): New function.
8091 (ppc_emit_stack_flush): New function.
8092 (ppc_emit_swap): New function.
8093 (ppc_emit_stack_adjust): New function.
8094 (ppc_emit_call): New function.
8095 (ppc_emit_int_call_1): New function.
8096 (ppc_emit_void_call_2): New function.
8097 (ppc_emit_if_goto): New function.
8098 (ppc_emit_goto): New function.
8099 (ppc_emit_eq_goto): New function.
8100 (ppc_emit_ne_goto): New function.
8101 (ppc_emit_lt_goto): New function.
8102 (ppc_emit_le_goto): New function.
8103 (ppc_emit_gt_goto): New function.
8104 (ppc_emit_ge_goto): New function.
8105 (ppc_write_goto_address): New function.
8106 (ppc_emit_ops_impl): New static variable.
8107 (ppc64v1_emit_prologue): New function.
8108 (ppc64v2_emit_prologue): New function.
8109 (ppc64_emit_epilogue): New function.
8110 (ppc64_emit_add): New function.
8111 (ppc64_emit_sub): New function.
8112 (ppc64_emit_mul): New function.
8113 (ppc64_emit_lsh): New function.
8114 (ppc64_emit_rsh_signed): New function.
8115 (ppc64_emit_rsh_unsigned): New function.
8116 (ppc64_emit_ext): New function.
8117 (ppc64_emit_zero_ext): New function.
8118 (ppc64_emit_log_not): New function.
8119 (ppc64_emit_bit_and): New function.
8120 (ppc64_emit_bit_or): New function.
8121 (ppc64_emit_bit_xor): New function.
8122 (ppc64_emit_bit_not): New function.
8123 (ppc64_emit_equal): New function.
8124 (ppc64_emit_less_signed): New function.
8125 (ppc64_emit_less_unsigned): New function.
8126 (ppc64_emit_ref): New function.
8127 (ppc64_emit_const): New function.
8128 (ppc64v1_emit_reg): New function.
8129 (ppc64v2_emit_reg): New function.
8130 (ppc64_emit_pop): New function.
8131 (ppc64_emit_stack_flush): New function.
8132 (ppc64_emit_swap): New function.
8133 (ppc64v1_emit_call): New function.
8134 (ppc64v2_emit_call): New function.
8135 (ppc64v1_emit_int_call_1): New function.
8136 (ppc64v2_emit_int_call_1): New function.
8137 (ppc64v1_emit_void_call_2): New function.
8138 (ppc64v2_emit_void_call_2): New function.
8139 (ppc64_emit_if_goto): New function.
8140 (ppc64_emit_eq_goto): New function.
8141 (ppc64_emit_ne_goto): New function.
8142 (ppc64_emit_lt_goto): New function.
8143 (ppc64_emit_le_goto): New function.
8144 (ppc64_emit_gt_goto): New function.
8145 (ppc64_emit_ge_goto): New function.
8146 (ppc64v1_emit_ops_impl): New static variable.
8147 (ppc64v2_emit_ops_impl): New static variable.
8148 (ppc_emit_ops): New function.
8149 (linux_low_target): Wire in ppc_emit_ops.
8150
a2174ba4
MK
81512016-03-31 Wei-cheng Wang <cole945@gmail.com>
8152 Marcin Kościelnicki <koriakin@0x04.net>
8153
8154 PR/17221
8155 * Makefile.in: Add powerpc-*-ipa.o
8156 * configure.srv: Add ipa_obj for powerpc*-linux.
8157 * linux-ppc-ipa.c: New file.
8158 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8159 includes.
8160 (PPC_FIELD): New macro.
8161 (PPC_SEXT): New macro.
8162 (PPC_OP6): New macro.
8163 (PPC_BO): New macro.
8164 (PPC_LI): New macro.
8165 (PPC_BD): New macro.
8166 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8167 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8168 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8169 (ppc_get_thread_area): New function.
8170 (is_elfv2_inferior): New function.
8171 (gen_ds_form): New function.
8172 (GEN_STD): New macro.
8173 (GEN_STDU): New macro.
8174 (GEN_LD): New macro.
8175 (GEN_LDU): New macro.
8176 (gen_d_form): New function.
8177 (GEN_ADDI): New macro.
8178 (GEN_ADDIS): New macro.
8179 (GEN_LI): New macro.
8180 (GEN_LIS): New macro.
8181 (GEN_ORI): New macro.
8182 (GEN_ORIS): New macro.
8183 (GEN_LWZ): New macro.
8184 (GEN_STW): New macro.
8185 (GEN_STWU): New macro.
8186 (gen_xfx_form): New function.
8187 (GEN_MFSPR): New macro.
8188 (GEN_MTSPR): New macro.
8189 (GEN_MFCR): New macro.
8190 (GEN_MTCR): New macro.
8191 (GEN_SYNC): New macro.
8192 (GEN_LWSYNC): New macro.
8193 (gen_x_form): New function.
8194 (GEN_OR): New macro.
8195 (GEN_MR): New macro.
8196 (GEN_LWARX): New macro.
8197 (GEN_STWCX): New macro.
8198 (GEN_CMPW): New macro.
8199 (gen_md_form): New function.
8200 (GEN_RLDICL): New macro.
8201 (GEN_RLDICR): New macro.
8202 (gen_i_form): New function.
8203 (GEN_B): New macro.
8204 (GEN_BL): New macro.
8205 (gen_b_form): New function.
8206 (GEN_BNE): New macro.
8207 (GEN_LOAD): New macro.
8208 (GEN_STORE): New macro.
8209 (gen_limm): New function.
8210 (gen_atomic_xchg): New function.
8211 (gen_call): New function.
8212 (ppc_relocate_instruction): New function.
8213 (ppc_install_fast_tracepoint_jump_pad): New function.
8214 (ppc_get_min_fast_tracepoint_insn_len): New function.
8215 (ppc_get_ipa_tdesc_idx): New function.
8216 (the_low_target): Wire in the new functions.
8217 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8218 tdescs.
8219 * linux-ppc-tdesc.h: New file.
8220
a13c4696
MK
82212016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8222
8223 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8224 (alloc_jump_pad_buffer): New function.
8225 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8226 (alloc_jump_pad_buffer): New function.
8227 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8228 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8229 (alloc_jump_pad_buffer): New function.
8230 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8231 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8232 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8233 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8234
1cda1512
MK
82352016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8236
8237 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8238 * linux-amd64-ipa.c: Likewise.
8239 * linux-i386-ipa.c: Likewise.
8240 * linux-s390-ipa.c: Likewise.
8241 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8242 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8243 set_trace_state_variable_value_ptr.
8244 (struct ipa_sym_addresses): Likewise.
8245 (symbol_list): Likewise.
8246 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8247 accessing gdb_collect directly.
8248 (gdb_collect_ptr_type): New typedef.
8249 (get_raw_reg_ptr_type): New typedef.
8250 (get_trace_state_variable_value_ptr_type): New typedef.
8251 (set_trace_state_variable_value_ptr_type): New typedef.
8252 (gdb_collect_ptr): New global.
8253 (get_raw_reg_ptr): New global.
8254 (get_trace_state_variable_value_ptr): New global.
8255 (set_trace_state_variable_value_ptr): New global.
8256 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8257 accessing get_raw_reg directly.
8258 (get_get_tsv_func_addr): Likewise for
8259 get_trace_state_variable_value_ptr.
8260 (get_set_tsv_func_addr): Likewise for
8261 set_trace_state_variable_value_ptr.
8262 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8263
72fb5488
SM
82642016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8265
8266 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8267
28170b88
MK
82682016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8269
8270 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8271 packets.
8272 (relocate_instruction): Remove own_buf.
8273 * server.c (own_buf): Make global.
8274 (handle_v_requests): Make global.
8275 * server.h (own_buf): New declaration.
8276 (handle_v_requests): New prototype.
8277
f39e8743
MK
82782016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8279
8280 PR 18377
8281 * linux-s390-low.c (add_insns): New function.
8282 (s390_emit_prologue): New function.
8283 (s390_emit_epilogue): New function.
8284 (s390_emit_add): New function.
8285 (s390_emit_sub): New function.
8286 (s390_emit_mul): New function.
8287 (s390_emit_lsh): New function.
8288 (s390_emit_rsh_signed): New function.
8289 (s390_emit_rsh_unsigned): New function.
8290 (s390_emit_ext): New function.
8291 (s390_emit_log_not): New function.
8292 (s390_emit_bit_and): New function.
8293 (s390_emit_bit_or): New function.
8294 (s390_emit_bit_xor): New function.
8295 (s390_emit_bit_not): New function.
8296 (s390_emit_equal): New function.
8297 (s390_emit_less_signed): New function.
8298 (s390_emit_less_unsigned): New function.
8299 (s390_emit_ref): New function.
8300 (s390_emit_if_goto): New function.
8301 (s390_emit_goto): New function.
8302 (s390_write_goto_address): New function.
8303 (s390_emit_litpool): New function.
8304 (s390_emit_const): New function.
8305 (s390_emit_call): New function.
8306 (s390_emit_reg): New function.
8307 (s390_emit_pop): New function.
8308 (s390_emit_stack_flush): New function.
8309 (s390_emit_zero_ext): New function.
8310 (s390_emit_swap): New function.
8311 (s390_emit_stack_adjust): New function.
8312 (s390_emit_set_r2): New function.
8313 (s390_emit_int_call_1): New function.
8314 (s390_emit_void_call_2): New function.
8315 (s390_emit_eq_goto): New function.
8316 (s390_emit_ne_goto): New function.
8317 (s390_emit_lt_goto): New function.
8318 (s390_emit_le_goto): New function.
8319 (s390_emit_gt_goto): New function.
8320 (s390_emit_ge_goto): New function.
8321 (s390x_emit_prologue): New function.
8322 (s390x_emit_epilogue): New function.
8323 (s390x_emit_add): New function.
8324 (s390x_emit_sub): New function.
8325 (s390x_emit_mul): New function.
8326 (s390x_emit_lsh): New function.
8327 (s390x_emit_rsh_signed): New function.
8328 (s390x_emit_rsh_unsigned): New function.
8329 (s390x_emit_ext): New function.
8330 (s390x_emit_log_not): New function.
8331 (s390x_emit_bit_and): New function.
8332 (s390x_emit_bit_or): New function.
8333 (s390x_emit_bit_xor): New function.
8334 (s390x_emit_bit_not): New function.
8335 (s390x_emit_equal): New function.
8336 (s390x_emit_less_signed): New function.
8337 (s390x_emit_less_unsigned): New function.
8338 (s390x_emit_ref): New function.
8339 (s390x_emit_if_goto): New function.
8340 (s390x_emit_const): New function.
8341 (s390x_emit_call): New function.
8342 (s390x_emit_reg): New function.
8343 (s390x_emit_pop): New function.
8344 (s390x_emit_stack_flush): New function.
8345 (s390x_emit_zero_ext): New function.
8346 (s390x_emit_swap): New function.
8347 (s390x_emit_stack_adjust): New function.
8348 (s390x_emit_int_call_1): New function.
8349 (s390x_emit_void_call_2): New function.
8350 (s390x_emit_eq_goto): New function.
8351 (s390x_emit_ne_goto): New function.
8352 (s390x_emit_lt_goto): New function.
8353 (s390x_emit_le_goto): New function.
8354 (s390x_emit_gt_goto): New function.
8355 (s390x_emit_ge_goto): New function.
8356 (s390_emit_ops): New function.
8357 (struct linux_target_ops): Fill in emit_ops hook.
8358
abd9baf9
MK
83592016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8360
8361 PR 18377
8362 * Makefile.in: Add s390 IPA files.
8363 * configure.srv: Build IPA for s390.
8364 * linux-s390-ipa.c: New file.
8365 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8366 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8367 (tdesc_s390_linux32): Likewise.
8368 (init_registers_s390_linux32v1): Likewise.
8369 (tdesc_s390_linux32v1): Likewise.
8370 (init_registers_s390_linux32v2): Likewise.
8371 (tdesc_s390_linux32v2): Likewise.
8372 (init_registers_s390_linux64): Likewise.
8373 (tdesc_s390_linux64): Likewise.
8374 (init_registers_s390_linux64v1): Likewise.
8375 (tdesc_s390_linux64v1): Likewise.
8376 (init_registers_s390_linux64v2): Likewise.
8377 (tdesc_s390_linux64v2): Likewise.
8378 (init_registers_s390_te_linux64): Likewise.
8379 (tdesc_s390_te_linux64): Likewise.
8380 (init_registers_s390_vx_linux64): Likewise.
8381 (tdesc_s390_vx_linux64): Likewise.
8382 (init_registers_s390_tevx_linux64): Likewise.
8383 (tdesc_s390_tevx_linux64): Likewise.
8384 (init_registers_s390x_linux64): Likewise.
8385 (tdesc_s390x_linux64): Likewise.
8386 (init_registers_s390x_linux64v1): Likewise.
8387 (tdesc_s390x_linux64v1): Likewise.
8388 (init_registers_s390x_linux64v2): Likewise.
8389 (tdesc_s390x_linux64v2): Likewise.
8390 (init_registers_s390x_te_linux64): Likewise.
8391 (tdesc_s390x_te_linux64): Likewise.
8392 (init_registers_s390x_vx_linux64): Likewise.
8393 (tdesc_s390x_vx_linux64): Likewise.
8394 (init_registers_s390x_tevx_linux64): Likewise.
8395 (tdesc_s390x_tevx_linux64): Likewise.
8396 (have_hwcap_s390_vx): New static variable.
8397 (s390_arch_setup): Fill have_hwcap_s390_vx.
8398 (s390_get_thread_area): New function.
8399 (s390_ft_entry_gpr_esa): New const.
8400 (s390_ft_entry_gpr_zarch): New const.
8401 (s390_ft_entry_misc): New const.
8402 (s390_ft_entry_fr): New const.
8403 (s390_ft_entry_vr): New const.
8404 (s390_ft_main_31): New const.
8405 (s390_ft_main_64): New const.
8406 (s390_ft_exit_fr): New const.
8407 (s390_ft_exit_vr): New const.
8408 (s390_ft_exit_misc): New const.
8409 (s390_ft_exit_gpr_esa): New const.
8410 (s390_ft_exit_gpr_zarch): New const.
8411 (append_insns): New function.
8412 (s390_relocate_instruction): New function.
8413 (s390_install_fast_tracepoint_jump_pad): New function.
8414 (s390_get_min_fast_tracepoint_insn_len): New function.
8415 (s390_get_ipa_tdesc_idx): New function.
8416 (struct linux_target_ops): Wire in the above functions.
8417 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8418 * linux-s390-tdesc.h: New file.
8419
a4105d04
MK
84202016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8421
8422 * linux-s390-low.c (s390_supports_tracepoints): New function.
8423 (struct linux_target_ops): Fill supports_tracepoints hook.
8424
35ac8b3e
YQ
84252016-03-18 Yao Qi <yao.qi@linaro.org>
8426
8427 * linux-low.c (lwp_signal_can_be_delivered): New function.
8428 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8429
94610ec4
YQ
84302016-03-18 Yao Qi <yao.qi@linaro.org>
8431
8432 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8433 0 if signal is enqueued. Remove 'signal' from one debugging
8434 message. Move one debugging message to some lines below.
8435 Remove code setting 'signal' to 0.
8436
80aea927
YQ
84372016-03-18 Yao Qi <yao.qi@linaro.org>
8438
8439 * linux-low.c (linux_low_filter_event): Remove redundant
8440 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8441
b04fd3be
MK
84422016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8443
8444 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8445 (struct linux_target_ops): Wire in the above.
8446
c40c8d4b
YQ
84472016-03-03 Yao Qi <yao.qi@linaro.org>
8448
8449 * linux-low.c: Update comments to start_step_over.
8450
0f8288ae
YQ
84512016-03-03 Yao Qi <yao.qi@linaro.org>
8452
8453 PR server/19736
8454 * linux-low.c (handle_extended_wait): Set child suspended
8455 if event_lwp->bp_reinsert isn't zero.
8456
fdbd04a8
YQ
84572016-03-02 Yao Qi <yao.qi@linaro.org>
8458
8459 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8460 enqueue_pending_signal.
8461
6896a8fa
MK
84622016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8463
8464 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8465 is actually loaded.
8466
ab503087
MK
84672016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8468
8469 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8470 (s390_regmap_3264) [!__s390x__]: New global.
8471 (s390_collect_ptrace_register): Skip map entries containing -1.
8472 (s390_supply_ptrace_register): Ditto.
8473 (s390_fill_gprs_high): New function.
8474 (s390_store_gprs_high): New function.
8475 (s390_regsets): Add NT_S390_HIGH_GPRS.
8476 (s390_get_hwcap): Enable on 31-bit.
8477 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8478 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8479 Detect NT_S390_HIGH_GPRS.
8480 (s390_usrregs_info_3264): Enable on 31-bit.
8481 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8482 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8483
ae91f625
MK
84842016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8485
8486 PR gdb/13808
8487 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8488 * configure.srv: Ditto.
8489 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8490 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8491 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8492 (init_registers_amd64_linux): Remove prototype.
8493 (tdesc_amd64_linux): Remove declaration.
8494 (get_ipa_tdesc): New function.
8495 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8496 initialize remaining tdescs.
8497 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8498 (init_registers_i386_linux): Remove prototype.
8499 (tdesc_i386_linux): Remove declaration.
8500 (get_ipa_tdesc): New function.
8501 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8502 initialize remaining tdescs.
8503 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8504 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8505 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8506 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8507 (x86_get_ipa_tdesc_idx): New function.
8508 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8509 * linux-x86-tdesc.h: New file.
8510 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8511 (target_get_ipa_tdesc_idx): New macro.
8512 * tracepoint.c (ipa_tdesc_idx): New macro.
8513 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8514 (symbol_list): Add ipa_tdesc_idx.
8515 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8516 (ipa_tdesc): Remove.
8517 (ipa_tdesc_idx): New variable.
8518 (get_context_regcache): Use get_ipa_tdesc.
8519 (gdb_collect): Ditto.
8520 (gdb_probe): Ditto.
8521 * tracepoint.h (get_ipa_tdesc): New prototype.
8522 (ipa_tdesc): Remove.
8523
e7ad2f14
PA
85242016-02-24 Pedro Alves <palves@redhat.com>
8525
8526 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8527 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8528 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8529 Factor out common code between the USE_SIGTRAP_SIGINFO and
8530 !USE_SIGTRAP_SIGINFO blocks.
8531 (linux_low_filter_event): Call save_stop_reason instead of
8532 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8533 Update comments.
8534 (linux_wait_1): Update comments.
8535
657f9cde
WW
85362016-02-24 Wei-cheng Wang <cole945@gmail.com>
8537
8538 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8539 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8540 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8541 ppc_insert_point, ppc_remove_point.
8542
b00b61e1
MK
85432016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8544
8545 * linux-s390-low.c (s390_supports_z_point_type): New function.
8546 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8547
553cb527
YQ
85482016-02-16 Yao Qi <yao.qi@linaro.org>
8549
8550 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8551 PC. Get pc from regcache_read_pc.
8552
a5652c21
YQ
85532016-02-12 Yao Qi <yao.qi@linaro.org>
8554
8555 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8556 or linux_get_pc_32bit.
8557 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8558
ed443b61
YQ
85592016-02-12 Yao Qi <yao.qi@linaro.org>
8560
8561 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8562 arm_linux_get_next_pcs_fixup.
8563
020ecd38
MK
85642016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8565
8566 * tracepoint.c (x_tracepoint_action_download): Change
8567 write_inferior_data_ptr to write_inferior_data_pointer.
8568 (cmd_qtstart): Likewise.
8569 (write_inferior_data_ptr): Remove.
8570 (download_agent_expr): Change write_inferior_data_ptr to
8571 write_inferior_data_pointer.
8572 (download_tracepoint_1): Likewise.
8573 (download_tracepoint): Likewise.
8574 (download_trace_state_variables): Likewise.
8575
7cae9051
WW
85762016-02-11 Wei-cheng Wang <cole945@gmail.com>
8577 Marcin Kościelnicki <koriakin@0x04.net>
8578
8579 * tracepoint.c (struct tracepoint_action_ops): Remove.
8580 (struct tracepoint_action): Remove ops.
8581 (m_tracepoint_action_download, r_tracepoint_action_download)
8582 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8583 size and offset accordingly.
8584 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8585 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8586 (tracepoint_action_send, tracepoint_action_download): New functions.
8587 Helpers for trace action handlers.
8588 (add_tracepoint_action): Remove setup actions ops.
8589 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8590
9f6a71b4
YQ
85912016-02-10 Yao Qi <yao.qi@linaro.org>
8592
8593 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8594
1e94266c
SM
85952016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8596
8597 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8598 to AC_OUTPUT.
8599 * configure: Regenerate.
8600
8adce034
SM
86012016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8602
8603 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8604 void * to gdb_byte *.
8605 * linux-low.c (siginfo_fixup): Likewise.
8606 (linux_xfer_siginfo): Likewise.
8607 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8608 Likewise.
8609 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8610
93813b37
WT
86112016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8612
8613 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8614 to srv_tgtobj.
8615 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8616 to srv_tgtobj.
8617 * linux-x86-low.c [__x86_64__]: Include
8618 "nat/amd64-linux-siginfo.h".
8619 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8620 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8621 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8622 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8623 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8624 (cpt_si_fd, si_timerid, si_overrun): Move from
8625 nat/amd64-linux-siginfo.c.
8626 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8627
8424cc97
SM
86282016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8629
8630 * server.c (skip_to_semicolon): Remove.
8631 (process_point_options): Use strchrnul instead of
8632 skip_to_semicolon.
8633
4d18591b
YQ
86342016-01-26 Yao Qi <yao.qi@linaro.org>
8635
8636 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8637 * linux-low.c (install_software_single_step_breakpoints): Don't
8638 call regcache_read_pc.
8639 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8640 argument pc.
8641
d8020970
YQ
86422016-01-26 Yao Qi <yao.qi@linaro.org>
8643
8644 * linux-low.c (install_software_single_step_breakpoints): Call
8645 regcache_read_pc instead of get_pc.
8646
8b207339
YQ
86472016-01-26 Yao Qi <yao.qi@linaro.org>
8648
8649 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8650 (unblock_async_io): Rename to ...
8651 (block_unblock_async_io): ... it. New function.
8652 (enable_async_io): Don't install SIGIO handler. Unblock it
8653 instead.
8654 (disable_async_io): Don't ignore SIGIO. Block it instead.
8655 (initialize_async_io): Install SIGIO handler. Don't call
8656 unblock_async_io.
8657
18879fef
YQ
86582016-01-26 Yao Qi <yao.qi@linaro.org>
8659
8660 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8661 first character is '\003', call *the_target->request_interrupt.
8662
a0f8e08a
YQ
86632016-01-25 Yao Qi <yao.qi@linaro.org>
8664
8665 * remote-utils.c (new_thread_notify): Remove.
8666 (dead_thread_notify): Likewise.
8667 * remote-utils.h (new_thread_notify): Remove declaration.
8668 (dead_thread_notify): Likewise.
8669
cc5fd9ab
MK
86702016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8671
8672 * gdb.trace/pending.exp: Fix expected message on continue.
8673
99e8eb11
MK
86742016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8675
8676 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8677 it works properly on big-endian machines where sizeof (CORE_ADDR)
8678 != sizeof (void *).
8679
a994041d
PA
86802016-01-21 Pedro Alves <palves@redhat.com>
8681
8682 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8683 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8684 * configure: Regenerate.
8685
f7a6a40d
YQ
86862016-01-21 Yao Qi <yao.qi@linaro.org>
8687
8688 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8689 is_thumb and set it according to CPSR saved on the stack.
8690 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8691 arm_sigreturn_next_pc.
8692
6f69e520
YQ
86932016-01-18 Yao Qi <yao.qi@linaro.org>
8694
8695 * linux-low.c (linux_set_pc_64bit): New function.
8696 (linux_get_pc_64bit): New function.
8697 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8698 Declare.
8699 * linux-sparc-low.c (debug_threads): Remove declaration.
8700 (sparc_get_pc): Remove.
8701 (the_low_target): Use linux_get_pc_64bit instead of
8702 sparc_get_pc.
8703 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8704 (the_low_target): Use linux_get_pc_64bit and
8705 linux_set_pc_64bit.
8706
276d4552
YQ
87072016-01-18 Yao Qi <yao.qi@linaro.org>
8708
8709 * linux-arm-low.c (debug_threads): Remove declaration.
8710 (arm_get_pc, arm_set_pc): Remove.
8711 (the_low_target): Use linux_get_pc_32bit and
8712 linux_set_pc_32bit.
8713 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8714 (the_low_target): Use linux_get_pc_32bit and
8715 linux_set_pc_32bit.
8716 * linux-cris-low.c (debug_threads): Remove declaration.
8717 (cris_get_pc, cris_set_pc,): Remove.
8718 (the_low_target): Use linux_get_pc_32bit and
8719 linux_set_pc_32bit.
8720 * linux-crisv32-low.c (debug_threads): Remove declaration.
8721 (cris_get_pc, cris_set_pc): Remove.
8722 (the_low_target): Use linux_get_pc_32bit and
8723 linux_set_pc_32bit.
8724 * linux-low.c: Include inttypes.h.
8725 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8726 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8727 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8728 (the_low_target): Use linux_get_pc_32bit and
8729 linux_set_pc_32bit.
8730 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8731 (the_low_target): Use linux_get_pc_32bit and
8732 linux_set_pc_32bit.
8733 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8734 (the_low_target): Use linux_get_pc_32bit and
8735 linux_set_pc_32bit.
8736 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8737 (the_low_target): Use linux_get_pc_32bit and
8738 linux_set_pc_32bit.
8739 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8740 (the_low_target): Use linux_get_pc_32bit and
8741 linux_set_pc_32bit.
8742
eb0edac8
GB
87432016-01-18 Gary Benson <gbenson@redhat.com>
8744
8745 * configure.ac (AC_FUNC_FORK): New check.
8746 * config.in: Regenerate.
8747 * configure: Likewise.
8748
1b451dda
YQ
87492016-01-14 Yao Qi <yao.qi@linaro.org>
8750
8751 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8752 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8753 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8754 arm_get_next_pcs_ctor.
8755
82075af2
JS
87562016-01-12 Josh Stone <jistone@redhat.com>
8757 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8758
8759 * inferiors.h: Include "gdb_vecs.h".
8760 (struct process_info): Add syscalls_to_catch.
8761 * inferiors.c (remove_process): Free syscalls_to_catch.
8762 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8763 syscall_return stops.
8764 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8765 * server.c (handle_general_set): Handle QCatchSyscalls.
8766 (handle_query): Report support for QCatchSyscalls.
8767 * target.h (struct target_ops): Add supports_catch_syscall.
8768 (target_supports_catch_syscall): New macro.
8769 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8770 (struct lwp_info): Add syscall_state.
8771 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8772 Maintain syscall_state and syscalls_to_catch across exec.
8773 (get_syscall_trapinfo): New function, proxy to the_low_target.
8774 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8775 (linux_low_filter_event): Toggle syscall_state entry/return for
8776 syscall traps, and set it ignored for all others.
8777 (gdb_catching_syscalls_p): New function.
8778 (gdb_catch_this_syscall_p): New function.
8779 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8780 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8781 (linux_supports_catch_syscall): New function.
8782 (linux_target_ops): Install it.
8783 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8784 (the_low_target): Install it.
8785
8f13a3ce
MF
87862016-01-12 Mike Frysinger <vapier@gentoo.org>
8787
8788 * acinclude.m4: Include new ../warning.m4 file.
8789 * configure: Regenerated.
8790 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8791
5b3da067
MF
87922016-01-12 Mike Frysinger <vapier@gentoo.org>
8793
8794 * ax.c (is_goto_target): Mark static.
8795 * linux-low.c (register_addr): Likewise.
8796 (linux_fetch_registers, linux_store_registers): Likewise.
8797 * mem-break.c (any_persistent_commands): Fix old prototype.
8798 (add_commands_to_breakpoint): Mark static.
8799 * regcache.c (find_register_by_name): Delete unused func.
8800 * remote-utils.c (hex_or_minus_one): Mark static.
8801 * server.c (monitor_show_help): Mark static.
8802 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8803 handle_v_requests): Likewise.
8804
bc504a31
PA
88052016-01-12 Pedro Alves <palves@redhat.com>
8806
8807 Remove use of the registered trademark symbol throughout.
8808
5a0dd67a
YQ
88092016-01-08 Yao Qi <yao.qi@linaro.org>
8810
8811 * remote-utils.c (getpkt): If c is '\003', call target hook
8812 request_interrupt.
8813
b2ca446f
YQ
88142016-01-06 Yao Qi <yao.qi@linaro.org>
8815
8816 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8817 linux-aarch32-low.c.
8818 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8819 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8820 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8821 (thumb2_breakpoint): Declare.
8822 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8823 linux-aarch32-low.h.
8824 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8825 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8826 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8827
edd88788
JB
88282016-01-01 Joel Brobecker <brobecker@adacore.com>
8829
8830 * gdbreplay.c (gdbreplay_version): Change copyright year in
8831 version message.
8832 * server.c (gdbserver_version): Likewise.
8833
65da7f14
PP
88342015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8835
8836 * server.c (crc32_table): Delete.
8837 (crc32): Use libiberty's xcrc32 function.
8838
4abd5ed2
JB
88392015-12-22 Joel Brobecker <brobecker@adacore.com>
8840
8841 * lynx-low.c (lynx_delete_thread_callback): New function.
8842 (lynx_mourn): Properly delete our process and all of its
8843 threads. Remove call to clear_inferiors.
8844
0e50fe5c
JB
88452015-12-22 Joel Brobecker <brobecker@adacore.com>
8846
8847 * target.c (thread_search_callback): Add check that
8848 the thread_stopped target callback is not NULL before
8849 calling it.
8850
35adc03f
YQ
88512015-12-21 Yao Qi <yao.qi@linaro.org>
8852
8853 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8854 arm breakpoint.
8855
bd2b2909
AT
88562015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8857
8858 * server.c (handle_query): Call target_supports_software_single_step.
8859
7fe5e27e
AT
88602015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8861
8862 * linux-low.c (single_step): New function.
8863 (linux_resume_one_lwp_throw): Call single_step.
8864 (start_step_over): Likewise.
8865
d9311bfa
AT
88662015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8867
8868 * Makefile.in (SFILES): Append arch/arm-linux.c,
8869 arch/arm-get-next-pcs.c.
8870 (arm-linux.o): New rule.
8871 (arm-get-next-pcs.o): New rule.
8872 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8873 arm-linux.o.
8874 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8875 to linux-aarch32-low.c.
8876 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8877 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8878 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8879 (thumb2_breakpoint_len): Likewise.
8880 (arm_is_thumb_mode): Make non-static.
8881 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8882 from linux-aarch32-low.c.
8883 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8884 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8885 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8886 (thumb2_breakpoint_len): Likewise.
8887 (arm_is_thumb_mode): New declaration.
8888 * linux-arm-low.c: Include arch/arm-linux.h
8889 aarch/arm-get-next-pcs.h, sys/syscall.h.
8890 (get_next_pcs_ops): New struct.
8891 (get_next_pcs_addr_bits_remove): New function.
8892 (get_next_pcs_is_thumb): New function.
8893 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8894 (arm_sigreturn_next_pc): Likewise.
8895 (get_next_pcs_syscall_next_pc): Likewise.
8896 (arm_gdbserver_get_next_pcs): Likewise.
8897 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8898 Initialize.
8899 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8900 * server.h: Include gdb_vecs.h.
8901
68ce2059
AT
89022015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8903
8904 * Makefile.in (SFILES): Append common/common-regcache.c.
8905 (OBS): Append common-regcache.o.
8906 (common-regcache.o): New rule.
8907 * regcache.c (init_register_cache): Initialize cache to
8908 REG_UNAVAILABLE.
8909 (regcache_raw_read_unsigned): New function.
8910 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8911 register_status enum.
8912
fa5308bd
AT
89132015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8914
8915 * linux-aarch64-low.c (the_low_targets): Rename
8916 breakpoint_reinsert_addr to get_next_pcs.
8917 * linux-arm-low.c (the_low_targets): Likewise.
8918 * linux-bfin-low.c (the_low_targets): Likewise.
8919 * linux-cris-low.c (the_low_targets): Likewise.
8920 * linux-crisv32-low.c (the_low_targets): Likewise.
8921 * linux-low.c (can_software_single_step): Likewise.
8922 (install_software_single_step_breakpoints): New function.
8923 (start_step_over): Use install_software_single_step_breakpoints.
8924 * linux-low.h: New CORE_ADDR vector.
8925 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8926 get_next_pcs.
8927 * linux-mips-low.c (the_low_targets): Likewise.
8928 * linux-nios2-low.c (the_low_targets): Likewise.
8929 * linux-sparc-low.c (the_low_targets): Likewise.
8930
4a6ed09b
PA
89312015-12-17 Pedro Alves <palves@redhat.com>
8932
8933 * linux-low.c (linux_kill_one_lwp): Remove references to
8934 LinuxThreads.
8935 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8936 to 'kill'.
8937 (linux_init_signals): Delete.
8938 (initialize_low): Adjust.
8939 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8940
7544db95
PA
89412015-12-16 Pedro Alves <palves@redhat.com>
8942
8943 * configure.ac (compiler warning flags): When testing a
8944 -Wno-foo option, check whether -Wfoo works instead.
8945 * configure: Regenerate.
8946
8020350c
DB
89472015-12-11 Don Breazeal <donb@codesourcery.com>
8948
8949 * server.c (process_serial_event): Don't exit from gdbserver
8950 in remote mode if there are still active inferiors.
8951
db91f502
YQ
89522015-12-11 Yao Qi <yao.qi@linaro.org>
8953
8954 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8955 arm_breakpoint_at if the process is 32-bit.
8956
b37a6290
YQ
89572015-12-11 Yao Qi <yao.qi@linaro.org>
8958
8959 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8960 arm breakpoint.
8961
17b1509a
YQ
89622015-12-07 Yao Qi <yao.qi@linaro.org>
8963
8964 * configure.srv: Append arm.o to srv_tgtobj for
8965 aarch64*-*-linux* target.
8966 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8967 from linux-arm-low.c.
8968 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8969 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8970 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8971 (thumb2_breakpoint_len): Likewise.
8972 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8973 (arm_breakpoint_kinds): Likewise.
8974 (arm_breakpoint_kind_from_pc): Likewise.
8975 (arm_sw_breakpoint_from_kind): Likewise.
8976 (arm_breakpoint_kind_from_current_state): Likewise.
8977 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8978 (arm_sw_breakpoint_from_kind): Declare.
8979 (arm_breakpoint_kind_from_current_state): Declare.
8980 (arm_breakpoint_at): Declare.
8981 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8982 arm_sw_breakpoint_from_kind if process is 32-bit.
8983 (aarch64_breakpoint_kind_from_pc): New function.
8984 (aarch64_breakpoint_kind_from_current_state): New function.
8985 (the_low_target): Initialize fields breakpoint_kind_from_pc
8986 and breakpoint_kind_from_current_state.
8987 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8988 linux-aarch32-low.c.
8989 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8990 (arm_breakpoint, arm_breakpoint_len): Likewise.
8991 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8992 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8993 (arm_is_thumb_mode): Likewise.
8994 (arm_breakpoint_at): Likewise.
8995 (arm_breakpoint_kind_from_pc): Likewise.
8996 (arm_sw_breakpoint_from_kind): Likewise.
8997 (arm_breakpoint_kind_from_current_state): Likewise.
8998
8999 Revert:
9000 2015-08-04 Yao Qi <yao.qi@linaro.org>
9001
9002 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9003 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9004 * server.c (extended_protocol): Remove "static".
9005 * server.h (extended_protocol): Declare it.
9006
ece66d65
JS
90072015-12-04 Josh Stone <jistone@redhat.com>
9008
9009 * target.h (struct target_ops) <arch_setup>: Rename to ...
9010 (struct target_ops) <post_create_inferior>: ... this.
9011 (target_arch_setup): Rename to ...
9012 (target_post_create_inferior): ... this, calling post_create_inferior.
9013 * server.c (start_inferior): Update target_arch_setup calls to
9014 target_post_create_inferior.
9015 * linux-low.c (linux_low_ptrace_options): Forward declare.
9016 (linux_arch_setup): Update its comment for general use.
9017 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9018 (struct linux_target_ops): Use linux_post_create_inferior.
9019 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9020 to post_create_inferior.
9021 * nto-low.c (struct nto_target_ops): Likewise.
9022 * spu-low.c (struct spu_target_ops): Likewise.
9023 * win32-low.c (struct win32_target_ops): Likewise.
9024
e58c48b4
AT
90252015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9026
9027 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9028
fbec8956
AT
90292015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9030
9031 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9032 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9033 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9034 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9035 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9036 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9037 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9038 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9039 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9040 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9041 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9042 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9043
9b4c5f87
AT
90442015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9045
9046 * linux-low.c (linux_look_up_symbols): Don't call
9047 linux_supports_traceclone.
9048 * linux-low.h (thread_db_init): Remove use_events argument.
9049 * thread-db.c (thread_db_use_event): Remove global variable.
9050 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9051 (struct thread_db) <td_create_bp>: Remove field.
9052 (thread_db_create_event): Remove function.
9053 (thread_db_enable_reporting): Likewise.
9054 (find_one_thread): Don't check for thread_db_use_events.
9055 (attach_thread): Likewise.
9056 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9057 (try_thread_db_load_1): Don't check for thread_db_use_events.
9058 (thread_db_init): Remove use_events argument and thread events
9059 handling.
9060 (remove_thread_event_breakpoints): Remove function.
9061 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9062
7d00775e
AT
90632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9064
9065 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9066 New function.
9067 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9068 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9069 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9070 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9071 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9072 Initialize.
9073 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9074 New function.
9075 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9076 * linux-low.c (can_hardware_single_step): Use
9077 supports_hardware_single_step.
9078 (can_software_single_step): New function.
9079 (start_step_over): Call can_software_single_step.
9080 (linux_supports_hardware_single_step): New function.
9081 (struct target_ops) <supports_software_single_step>: Initialize.
9082 * linux-low.h (struct linux_target_ops)
9083 <supports_hardware_single_step>: Initialize.
9084 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9085 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9086 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9087 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9088 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9089 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9090 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9091 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9092 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9093 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9094 Initialize.
9095 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9096 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9097 Initialize.
9098 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9099 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9100 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9101 New function.
9102 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9103 * target.h (struct target_ops): <supports_software_single_step>:
9104 New field.
9105 (target_supports_software_single_step): New macro.
9106
2d97cd35
AT
91072015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9108
9109 * linux-low.c (linux_wait_1): Fix pc advance condition.
9110 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9111 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9112
769ef81f
AT
91132015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9114
9115 * linux-arm-low.c (arm_is_thumb_mode): New function.
9116 (arm_breakpoint_at): Use arm_is_thumb_mode.
9117 (arm_breakpoint_kind_from_current_state): New function.
9118 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9119 Initialize.
9120 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9121 (linux_breakpoint_kind_from_current_state): New function.
9122 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9123 * linux-low.h (struct linux_target_ops)
9124 <breakpoint_kind_from_current_state>: New field.
9125 * target.h (struct target_ops): Likewise.
9126 (target_breakpoint_kind_from_current_state): New macro.
9127
1bebeeca
PA
91282015-11-30 Pedro Alves <palves@redhat.com>
9129
9130 * linux-low.c (linux_resume): Wake up the event loop before
9131 returning.
9132
a67a9fae
PA
91332015-11-30 Pedro Alves <palves@redhat.com>
9134
9135 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9136 check.
9137 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9138 to -1.
9139 * target.c (struct thread_search): New structure.
9140 (thread_search_callback): New function.
9141 (prev_general_thread): New global.
9142 (prepare_to_access_memory, done_accessing_memory): New functions.
9143 * target.h (prepare_to_access_memory, done_accessing_memory):
9144 Replace macros with function declarations.
9145
f2faf941
PA
91462015-11-30 Pedro Alves <palves@redhat.com>
9147
9148 PR 14618
9149 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9150 report TARGET_WAITKIND_NO_RESUMED.
9151 * remote-utils.c (prepare_resume_reply): Handle
9152 TARGET_WAITKIND_NO_RESUMED.
9153 * server.c (report_no_resumed): New global.
9154 (handle_query) <qSupported>: Handle "no-resumed+". Report
9155 "no-resumed+" support.
9156 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9157 return error if the client doesn't support no-resumed events.
9158 (push_stop_notification): New function.
9159 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9160 events if the client supports them.
9161
a681f9c9
PA
91622015-11-30 Pedro Alves <palves@redhat.com>
9163
9164 * linux-low.c (thread_still_has_status_pending_p): Don't check
9165 vCont;t here.
9166 (lwp_resumed): New function.
9167 (status_pending_p_callback): Return early if the LWP is not
9168 supposed to be resumed.
9169
65706a29
PA
91702015-11-30 Pedro Alves <palves@redhat.com>
9171
9172 * linux-low.c (handle_extended_wait): Assert that the LWP's
9173 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9174 thread create events, leave the new child's status pending.
9175 (linux_low_filter_event): If GDB wants to hear about thread exit
9176 events, leave the LWP marked dead and don't delete it.
9177 (linux_wait_for_event_filtered): Don't check for thread exit.
9178 (filter_exit_event): New function.
9179 (linux_wait_1): Use it, when returning an exit event.
9180 (linux_resume_one_lwp_throw): Assert that the LWP's
9181 waitstatus is TARGET_WAITKIND_IGNORE.
9182 * remote-utils.c (prepare_resume_reply): Handle
9183 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9184 * server.c (report_thread_events): New global.
9185 (handle_general_set): Handle QThreadEvents.
9186 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9187 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9188 TARGET_WAITKIND_THREAD_EXITED.
9189 * server.h (report_thread_events): Declare.
9190
56cf4bed
PA
91912015-11-30 Pedro Alves <palves@redhat.com>
9192
9193 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9194 the thread's last_resume_kind was resume_stop.
9195
500c1d85
PA
91962015-11-30 Pedro Alves <palves@redhat.com>
9197
9198 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9199 before returning.
9200
de979965
PA
92012015-11-30 Pedro Alves <palves@redhat.com>
9202
9203 * server.c (handle_v_requests): Handle vCtrlC.
9204
34c65914
PA
92052015-11-30 Pedro Alves <palves@redhat.com>
9206
9207 * gdbthread.h (find_any_thread_of_pid): Declare.
9208 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9209 functions.
9210 * server.c (handle_query): If current_thread is NULL, look for
9211 another thread of the selected process.
9212
79efa585 92132015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9214 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9215
9216 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9217 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9218 name in reply.
9219 * target.h (struct target_ops) <thread_name>: New field.
9220 (target_thread_name): New macro.
9221
80d82c19
JB
92222015-11-23 Joel Brobecker <brobecker@adacore.com>
9223
9224 * regcache.h (regcache_invalidate_pid): Add declaration.
9225 * regcache.c (regcache_invalidate_pid): New function, extracted
9226 from regcache_invalidate.
9227 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9228 Add trivial documentation comment.
9229 * lynx-low.c: Use regcache_invalidate_pid instead of
9230 regcache_invalidate.
9231
64da5dd5
JB
92322015-11-23 Joel Brobecker <brobecker@adacore.com>
9233
9234 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9235 and Elf64_auxv_t if the target is Android.
9236
37ce4055
DE
92372015-11-22 Doug Evans <xdje42@gmail.com>
9238
9239 * target.h: #include <sys/types.h>.
9240
06e03fff
PA
92412015-11-19 Pedro Alves <palves@redhat.com>
9242
9243 * linux-low.c (linux_process_qsupported): Change prototype.
9244 Adjust.
9245 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9246 Change prototype.
9247 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9248 and adjust to loop over all features.
9249 * server.c (handle_query) <qSupported>: Adjust to call
9250 target_process_qsupported once, passing it a vector of unprocessed
9251 features.
9252 * target.h (struct target_ops) <process_qsupported>: Change
9253 prototype.
9254 (target_process_qsupported): Adjust.
9255
9a084706
PA
92562015-11-19 Pedro Alves <palves@redhat.com>
9257
9258 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9259 mode.
9260 * configure: Regenerate.
9261
dad44a1f
PA
92622015-11-19 Pedro Alves <palves@redhat.com>
9263
9264 * configure: Regenerate.
9265
231c0592
YQ
92662015-11-19 Yao Qi <yao.qi@linaro.org>
9267
9268 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9269 type to uint32_t.
9270
6c1c9a8b
YQ
92712015-11-19 Yao Qi <yao.qi@linaro.org>
9272
9273 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9274 (struct aarch64_operand): Move enum out.
9275
9caa3311
YQ
92762015-11-19 Yao Qi <yao.qi@linaro.org>
9277
9278 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9279 struct user_fpsimd_state *.
9280 (aarch64_store_fpregset): Likewise.
9281
6a69a054
YQ
92822015-11-19 Yao Qi <yao.qi@linaro.org>
9283
9284 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9285 struct user_pt_regs *.
9286 (aarch64_store_gregset): Likewise.
9287
1798301e
PA
92882015-11-18 Pedro Alves <palves@redhat.com>
9289
9290 * Makefile.in (all_object_files): Add $IPA_OBJS.
9291
ce7715e2
PA
92922015-11-17 Pedro Alves <palves@redhat.com>
9293
9294 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9295 GDB_SIGNAL_0 and gdb_signal_to_string.
9296
c0879059
PA
92972015-11-17 Pedro Alves <palves@redhat.com>
9298
9299 * win32-low.c (handle_output_debug_string): Remove parameter.
9300 (win32_kill): Remove our_status local and adjust call to
9301 handle_output_debug_string.
9302 (get_child_debug_event): Adjust call to
9303 handle_output_debug_string.
9304
1996e237
SM
93052015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9306
9307 * linux-mips-low.c (mips_fill_gregset): Add cast.
9308 (mips_store_gregset): Likewise.
9309 (mips_fill_fpregset): Likewise.
9310 (mips_store_fpregset): Likewise.
9311
cbec665b
SM
93122015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9313
9314 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9315 priv.
9316
eb3e3c67
SM
93172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * linux-mips-low.c (mips_linux_new_thread): Change type of
9320 watch_type to enum target_hw_bp_type.
9321
171de4b8
SM
93222015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9325 Change return type to arm_hwbp_type.
9326
04248ead
SM
93272015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9328
9329 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9330 (arm_store_gregset): Likewise.
9331 * linux-arm-low.c (arm_get_hwcap): Likewise.
9332 (arm_read_description): Likewise.
9333
04b3479c
SM
93342015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9337
2bc84e8a
SM
93382015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9339
9340 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9341 (ppc_fill_vsxregset): Likewise.
9342 (ppc_store_vsxregset): Likewise.
9343 (ppc_fill_vrregset): Likewise.
9344 (ppc_store_vrregset): Likewise.
9345 (ppc_fill_evrregset): Likewise.
9346 (ppc_store_evrregset): Likewise.
9347
e6c5bb05
SM
93482015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9349
9350 * linux-ppc-low.c (ppc_usrregs_info): Remove
9351 forward-declaration.
9352 (ppc_arch_setup): Move lower in file.
9353
7ea45d72
SM
93542015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9355
9356 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9357 (ps_pdwrite): Likewise.
9358
69291610
HW
93592015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9360
9361 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9362 to after assert checks.
9363
b42945fd
SM
93642015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9365
9366 * proc-service.c (ps_pdread): Add/adjust casts.
9367 (ps_pdwrite): Add/adjust casts.
9368
d6f85c84
SM
93692015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9370
9371 * server.c (handle_search_memory_1): Cast return value of
9372 memmem.
9373
f98cd059
SM
93742015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9375
9376 * server.c (write_qxfer_response): Change type of data to
9377 gdb_byte *.
9378
d2412fa5
PA
93792015-10-29 Pedro Alves <palves@redhat.com>
9380
9381 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9382
c17414a2
PA
93832015-10-29 Pedro Alves <palves@redhat.com>
9384
9385 * tracepoint.c (clear_installed_tracepoints): Add casts.
9386
e053fbc4
PA
93872015-10-29 Pedro Alves <palves@redhat.com>
9388
9389 * server.c (handle_v_cont, process_serial_event): Add enum
9390 gdb_signal casts to signal parsing code.
9391
add67df8
PA
93922015-10-29 Pedro Alves <palves@redhat.com>
9393
9394 * linux-low.h (NULL_REGSET): Define.
9395 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9396 * linux-arm-low.c (arm_regsets): Likewise.
9397 * linux-crisv32-low.c (cris_regsets): Likewise.
9398 * linux-m68k-low.c (m68k_regsets): Likewise.
9399 * linux-mips-low.c (mips_regsets): Likewise.
9400 * linux-nios2-low.c (nios2_regsets): Likewise.
9401 * linux-ppc-low.c (ppc_regsets): Likewise.
9402 * linux-s390-low.c (s390_regsets): Likewise.
9403 * linux-sh-low.c (sh_regsets): Likewise.
9404 * linux-sparc-low.c (sparc_regsets): Likewise.
9405 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9406 * linux-tile-low.c (tile_regsets): Likewise.
9407 * linux-x86-low.c (x86_regsets): Likewise.
9408 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9409
50bc912a
PA
94102015-10-29 Pedro Alves <palves@redhat.com>
9411
9412 * linux-low.h (NULL_REGSET): Define.
9413 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9414 * linux-arm-low.c (arm_regsets): Likewise.
9415 * linux-crisv32-low.c (cris_regsets): Likewise.
9416 * linux-m68k-low.c (m68k_regsets): Likewise.
9417 * linux-mips-low.c (mips_regsets): Likewise.
9418 * linux-nios2-low.c (nios2_regsets): Likewise.
9419 * linux-ppc-low.c (ppc_regsets): Likewise.
9420 * linux-s390-low.c (s390_regsets): Likewise.
9421 * linux-sh-low.c (sh_regsets): Likewise.
9422 * linux-sparc-low.c (sparc_regsets): Likewise.
9423 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9424 * linux-tile-low.c (tile_regsets): Likewise.
9425 * linux-x86-low.c (x86_regsets): Likewise.
9426 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9427
682b2546
DE
94282015-10-26 Doug Evans <dje@google.com>
9429
9430 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9431
963843d4
DE
94322015-10-26 Doug Evans <dje@google.com>
9433
9434 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9435
d41401ac
DE
94362015-10-26 Doug Evans <dje@google.com>
9437
9438 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9439 for debug_printf.
9440 (attach_thread, find_new_threads_callback): Ditto.
9441
3db28855
AT
94422015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9443
9444 * mem-break.h (set_breakpoint_data): Remove.
9445
fb78e89c
AT
94462015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9447
9448 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9449 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9450 (initialize_low): Remove set_breakpoint_data call.
9451 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9452 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9453 (initialize_low): Remove set_breakpoint_data call.
9454 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9455 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9456 (initialize_low): Remove set_breakpoint_data call.
9457
2e6ee069
AT
94582015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9459
9460 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9461 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9462 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9463 * target.h (target_breakpoint_kind_from_pc): New macro.
9464
1652a986
AT
94652015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9466
9467 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9468 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9469 the default breakpoint kind.
9470
abeead09
AT
94712015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9472
9473 * linux-arm-low.c (arm_supports_z_point_type): Add software
9474 breakpoint support.
9475
b0b4b501
AT
94762015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9477
9478 * linux-arm-low.c: Refactor breakpoint definitions.
9479 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9480 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9481
8689682c
AT
94822015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9483
9484 * Makefile.in: Add arm.c/o.
9485 * configure.srv: Likewise.
9486 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9487 (arm_breakpoint_kind_from_pc): New function.
9488 (arm_sw_breakpoint_from_kind): Return proper kind.
9489 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9490
27165294
AT
94912015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9492
9493 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9494 removal.
9495 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9496 (struct raw_breakpoint) <size>: Remove.
9497 (struct raw_breakpoint) <kind>: Add.
9498 (bp_size): New function.
9499 (bp_opcode): Likewise.
9500 (find_raw_breakpoint_at): Adjust for kind.
9501 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9502 (remove_memory_breakpoint): Adjust for kind call bp_size.
9503 (set_raw_breakpoint_at): Adjust for kind.
9504 (set_breakpoint): Likewise.
9505 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9506 (delete_raw_breakpoint): Adjust for kind.
9507 (delete_breakpoint): Likewise.
9508 (find_gdb_breakpoint): Likewise.
9509 (set_gdb_breakpoint_1): Likewise.
9510 (set_gdb_breakpoint): Likewise.
9511 (delete_gdb_breakpoint_1): Likewise.
9512 (delete_gdb_breakpoint): Likewise.
9513 (uninsert_raw_breakpoint): Likewise.
9514 (reinsert_raw_breakpoint): Likewise.
9515 (set_breakpoint_data): Remove.
9516 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9517 (check_mem_read): Adjust for kind call bp_size.
9518 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9519 (clone_one_breakpoint): Adjust for kind.
9520 * mem-break.h (set_gdb_breakpoint): Likewise.
9521 (delete_gdb_breakpoint): Likewise.
9522 * server.c (process_serial_event): Likewise.
9523
dd373349
AT
95242015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9525
9526 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9532 (arm_sw_breakpoint_from_kind): New function.
9533 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9534 (struct linux_target_ops) <breakpoint>: Remove.
9535 (struct linux_target_ops) <breakpoint_len>: Remove.
9536 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9537 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9538 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9539 (struct linux_target_ops) <breakpoint>: Remove.
9540 (struct linux_target_ops) <breakpoint_len>: Remove.
9541 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9542 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9543 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9544 (struct linux_target_ops) <breakpoint>: Remove.
9545 (struct linux_target_ops) <breakpoint_len>: Remove.
9546 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9547 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9548 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9549 and sw_breakpoint_from_kind to increment the pc.
9550 (linux_breakpoint_kind_from_pc): New function.
9551 (linux_sw_breakpoint_from_kind): New function.
9552 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9553 (initialize_low): Call breakpoint_kind_from_pc and
9554 sw_breakpoint_from_kind to replace breakpoint_data/len.
9555 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9556 New field.
9557 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9558 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9559 (struct linux_target_ops) <breakpoint>: Remove.
9560 (struct linux_target_ops) <breakpoint_len>: Remove.
9561 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9562 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9563 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9564 (struct linux_target_ops) <breakpoint>: Remove.
9565 (struct linux_target_ops) <breakpoint_len>: Remove.
9566 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9567 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9568 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9569 (struct linux_target_ops) <breakpoint>: Remove.
9570 (struct linux_target_ops) <breakpoint_len>: Remove.
9571 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9572 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9573 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9574 (struct linux_target_ops) <breakpoint>: Remove.
9575 (struct linux_target_ops) <breakpoint_len>: Remove.
9576 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9577 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9578 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9579 (struct linux_target_ops) <breakpoint>: Remove.
9580 (struct linux_target_ops) <breakpoint_len>: Remove.
9581 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9582 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9583 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9584 (struct linux_target_ops) <breakpoint>: Remove.
9585 (struct linux_target_ops) <breakpoint_len>: Remove.
9586 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9587 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9588 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9589 (struct linux_target_ops) <breakpoint>: Remove.
9590 (struct linux_target_ops) <breakpoint_len>: Remove.
9591 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9592 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9593 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9594 (struct linux_target_ops) <breakpoint>: Remove.
9595 (struct linux_target_ops) <breakpoint_len>: Remove.
9596 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9597 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9598 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9599 (struct linux_target_ops) <breakpoint>: Remove.
9600 (struct linux_target_ops) <breakpoint_len>: Remove.
9601 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9602 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9603 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9604 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9605 (struct linux_target_ops) <breakpoint>: Remove.
9606 (struct linux_target_ops) <breakpoint_len>: Remove.
9607 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9608 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9609 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9610 (struct linux_target_ops) <breakpoint>: Remove.
9611 (struct linux_target_ops) <breakpoint_len>: Remove.
9612 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9613 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9614
4cd98a19
AT
96152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9616
9617 * linux-cris-low.c (cris_get_pc): Remove void arg.
9618
774ee6d2
AR
96192015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9620
9621 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9622 variable name.
9623
833dcd29
AR
96242015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9625
9626 * inferiors.c (thread_pid_matches_callback): New function.
9627 (find_thread_process): New function.
9628 (remove_thread): Reset current_thread.
9629 (remove_process): Assert threads have been removed first.
9630
8d689ee5
YQ
96312015-10-15 Yao Qi <yao.qi@linaro.org>
9632
9633 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9634 if it is 3.
9635 (aarch64_remove_point): Likewise.
9636 * regcache.c (regcache_register_size): New function.
9637
1c2e1515
YQ
96382015-10-12 Yao Qi <yao.qi@linaro.org>
9639
9640 * linux-aarch64-low.c: Update all callers as emit_load_store
9641 is renamed to aarch64_emit_load_store.
9642
e1c587c3
YQ
96432015-10-12 Yao Qi <yao.qi@linaro.org>
9644
9645 * linux-aarch64-low.c: Update all callers of function renaming
9646 from emit_insn to aarch64_emit_insn.
9647
b6542f81
YQ
96482015-10-12 Yao Qi <yao.qi@linaro.org>
9649
9650 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9651 arch/aarch64-insn.h.
9652 (struct aarch64_memory_operand): Likewise.
9653 (ENCODE): Likewise.
9654 (emit_insn): Move to arch/aarch64-insn.c.
9655 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9656 (emit_load_store): Move to arch/aarch64-insn.c.
9657 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9658 (can_encode_int32): Remove.
9659
246994ce
YQ
96602015-10-12 Yao Qi <yao.qi@linaro.org>
9661
9662 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9663 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9664 (aarch64_relocate_instruction): Likewise.
9665 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9666 (struct aarch64_insn_visitor): Likewise.
9667
0badd99f
YQ
96682015-10-12 Yao Qi <yao.qi@linaro.org>
9669
9670 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9671 (struct aarch64_insn_visitor): New.
9672 (struct aarch64_insn_relocation_data): New.
9673 (aarch64_ftrace_insn_reloc_b): New function.
9674 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9675 (aarch64_ftrace_insn_reloc_cb): Likewise.
9676 (aarch64_ftrace_insn_reloc_tb): Likewise.
9677 (aarch64_ftrace_insn_reloc_adr): Likewise.
9678 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9679 (aarch64_ftrace_insn_reloc_others): Likewise.
9680 (visitor): New.
9681 (aarch64_relocate_instruction): Use visitor.
9682
dfaffe9d
YQ
96832015-10-12 Yao Qi <yao.qi@linaro.org>
9684
9685 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9686 int. Add argument buf.
9687 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9688 aarch64_relocate_instruction.
9689
70b439f0
YQ
96902015-10-12 Yao Qi <yao.qi@linaro.org>
9691
9692 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9693 argument insn. Remove local variable insn. Don't call
9694 target_read_uint32.
9695 (aarch64_install_fast_tracepoint_jump_pad): Call
9696 target_read_uint32.
9697
7781c06f
YQ
96982015-09-30 Yao Qi <yao.qi@linaro.org>
9699
9700 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9701 (emit_load_store_pair): Likewise.
9702
9a3c8263
SM
97032015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9704
9705 * dll.c (match_dll): Add cast(s).
9706 (unloaded_dll): Likewise.
9707 * linux-low.c (second_thread_of_pid_p): Likewise.
9708 (delete_lwp_callback): Likewise.
9709 (count_events_callback): Likewise.
9710 (select_event_lwp_callback): Likewise.
9711 (linux_set_resume_request): Likewise.
9712 * server.c (accumulate_file_name_length): Likewise.
9713 (emit_dll_description): Likewise.
9714 (handle_qxfer_threads_worker): Likewise.
9715 (visit_actioned_threads): Likewise.
9716 * thread-db.c (any_thread_of): Likewise.
9717 * tracepoint.c (same_process_p): Likewise.
9718 (match_blocktype): Likewise.
9719 (build_traceframe_info_xml): Likewise.
9720
224c3ddb
SM
97212015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9722
9723 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9724 assignment.
9725 (gdb_unparse_agent_expr): Likewise.
9726 * hostio.c (require_data): Likewise.
9727 (handle_pread): Likewise.
9728 * linux-low.c (disable_regset): Likewise.
9729 (fetch_register): Likewise.
9730 (store_register): Likewise.
9731 (get_dynamic): Likewise.
9732 (linux_qxfer_libraries_svr4): Likewise.
9733 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9734 (set_fast_tracepoint_jump): Likewise.
9735 (uninsert_fast_tracepoint_jumps_at): Likewise.
9736 (reinsert_fast_tracepoint_jumps_at): Likewise.
9737 (validate_inserted_breakpoint): Likewise.
9738 (clone_agent_expr): Likewise.
9739 * regcache.c (init_register_cache): Likewise.
9740 * remote-utils.c (putpkt_binary_1): Likewise.
9741 (decode_M_packet): Likewise.
9742 (decode_X_packet): Likewise.
9743 (look_up_one_symbol): Likewise.
9744 (relocate_instruction): Likewise.
9745 (monitor_output): Likewise.
9746 * server.c (handle_search_memory): Likewise.
9747 (handle_qxfer_exec_file): Likewise.
9748 (handle_qxfer_libraries): Likewise.
9749 (handle_qxfer): Likewise.
9750 (handle_query): Likewise.
9751 (handle_v_cont): Likewise.
9752 (handle_v_run): Likewise.
9753 (captured_main): Likewise.
9754 * target.c (write_inferior_memory): Likewise.
9755 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9756 * tracepoint.c (init_trace_buffer): Likewise.
9757 (add_tracepoint_action): Likewise.
9758 (add_traceframe): Likewise.
9759 (add_traceframe_block): Likewise.
9760 (cmd_qtdpsrc): Likewise.
9761 (cmd_qtdv): Likewise.
9762 (cmd_qtstatus): Likewise.
9763 (response_source): Likewise.
9764 (response_tsv): Likewise.
9765 (cmd_qtnotes): Likewise.
9766 (gdb_collect): Likewise.
9767 (initialize_tracepoint): Likewise.
9768
afbe19f8
PL
97692015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9770
9771 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9772 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9773 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9774 <NOP>: New.
9775 (enum aarch64_condition_codes): New enum.
9776 (w0): New static global.
9777 (fp): Likewise.
9778 (lr): Likewise.
9779 (struct aarch64_memory_operand) <type>: New
9780 MEMORY_OPERAND_POSTINDEX type.
9781 (postindex_memory_operand): New helper function.
9782 (emit_ret): New function.
9783 (emit_load_store_pair): New function, factored out of emit_stp
9784 with support for MEMORY_OPERAND_POSTINDEX.
9785 (emit_stp): Rewrite using emit_load_store_pair.
9786 (emit_ldp): New function.
9787 (emit_load_store): Likewise.
9788 (emit_ldr): Mention post-index instruction in comment.
9789 (emit_ldrh): New function.
9790 (emit_ldrb): New function.
9791 (emit_ldrsw): Mention post-index instruction in comment.
9792 (emit_str): Likewise.
9793 (emit_subs): New function.
9794 (emit_cmp): Likewise.
9795 (emit_and): Likewise.
9796 (emit_orr): Likewise.
9797 (emit_orn): Likewise.
9798 (emit_eor): Likewise.
9799 (emit_mvn): Likewise.
9800 (emit_lslv): Likewise.
9801 (emit_lsrv): Likewise.
9802 (emit_asrv): Likewise.
9803 (emit_mul): Likewise.
9804 (emit_sbfm): Likewise.
9805 (emit_sbfx): Likewise.
9806 (emit_ubfm): Likewise.
9807 (emit_ubfx): Likewise.
9808 (emit_csinc): Likewise.
9809 (emit_cset): Likewise.
9810 (emit_nop): Likewise.
9811 (emit_ops_insns): New helper function.
9812 (emit_pop): Likewise.
9813 (emit_push): Likewise.
9814 (aarch64_emit_prologue): New function.
9815 (aarch64_emit_epilogue): Likewise.
9816 (aarch64_emit_add): Likewise.
9817 (aarch64_emit_sub): Likewise.
9818 (aarch64_emit_mul): Likewise.
9819 (aarch64_emit_lsh): Likewise.
9820 (aarch64_emit_rsh_signed): Likewise.
9821 (aarch64_emit_rsh_unsigned): Likewise.
9822 (aarch64_emit_ext): Likewise.
9823 (aarch64_emit_log_not): Likewise.
9824 (aarch64_emit_bit_and): Likewise.
9825 (aarch64_emit_bit_or): Likewise.
9826 (aarch64_emit_bit_xor): Likewise.
9827 (aarch64_emit_bit_not): Likewise.
9828 (aarch64_emit_equal): Likewise.
9829 (aarch64_emit_less_signed): Likewise.
9830 (aarch64_emit_less_unsigned): Likewise.
9831 (aarch64_emit_ref): Likewise.
9832 (aarch64_emit_if_goto): Likewise.
9833 (aarch64_emit_goto): Likewise.
9834 (aarch64_write_goto_address): Likewise.
9835 (aarch64_emit_const): Likewise.
9836 (aarch64_emit_call): Likewise.
9837 (aarch64_emit_reg): Likewise.
9838 (aarch64_emit_pop): Likewise.
9839 (aarch64_emit_stack_flush): Likewise.
9840 (aarch64_emit_zero_ext): Likewise.
9841 (aarch64_emit_swap): Likewise.
9842 (aarch64_emit_stack_adjust): Likewise.
9843 (aarch64_emit_int_call_1): Likewise.
9844 (aarch64_emit_void_call_2): Likewise.
9845 (aarch64_emit_eq_goto): Likewise.
9846 (aarch64_emit_ne_goto): Likewise.
9847 (aarch64_emit_lt_goto): Likewise.
9848 (aarch64_emit_le_goto): Likewise.
9849 (aarch64_emit_gt_goto): Likewise.
9850 (aarch64_emit_ge_got): Likewise.
9851 (aarch64_emit_ops_impl): New static global variable.
9852 (aarch64_emit_ops): New target function, return
9853 &aarch64_emit_ops_impl.
9854 (struct linux_target_ops): Install it.
9855
bb903df0
PL
98562015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9857
9858 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9859 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9860 aarch64-ipa.o.
9861 * linux-aarch64-ipa.c: New file.
9862 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9863 and endian.h.
9864 (aarch64_get_thread_area): New target method.
9865 (extract_signed_bitfield): New helper function.
9866 (aarch64_decode_ldr_literal): New function.
9867 (enum aarch64_opcodes): New enum.
9868 (struct aarch64_register): New struct.
9869 (struct aarch64_operand): New struct.
9870 (x0): New static global.
9871 (x1): Likewise.
9872 (x2): Likewise.
9873 (x3): Likewise.
9874 (x4): Likewise.
9875 (w2): Likewise.
9876 (ip0): Likewise.
9877 (sp): Likewise.
9878 (xzr): Likewise.
9879 (aarch64_register): New helper function.
9880 (register_operand): Likewise.
9881 (immediate_operand): Likewise.
9882 (struct aarch64_memory_operand): New struct.
9883 (offset_memory_operand): New helper function.
9884 (preindex_memory_operand): Likewise.
9885 (enum aarch64_system_control_registers): New enum.
9886 (ENCODE): New macro.
9887 (emit_insn): New helper function.
9888 (emit_b): New function.
9889 (emit_bcond): Likewise.
9890 (emit_cb): Likewise.
9891 (emit_tb): Likewise.
9892 (emit_blr): Likewise.
9893 (emit_stp): Likewise.
9894 (emit_ldp_q_offset): Likewise.
9895 (emit_stp_q_offset): Likewise.
9896 (emit_load_store): Likewise.
9897 (emit_ldr): Likewise.
9898 (emit_ldrsw): Likewise.
9899 (emit_str): Likewise.
9900 (emit_ldaxr): Likewise.
9901 (emit_stxr): Likewise.
9902 (emit_stlr): Likewise.
9903 (emit_data_processing_reg): Likewise.
9904 (emit_data_processing): Likewise.
9905 (emit_add): Likewise.
9906 (emit_sub): Likewise.
9907 (emit_mov): Likewise.
9908 (emit_movk): Likewise.
9909 (emit_mov_addr): Likewise.
9910 (emit_mrs): Likewise.
9911 (emit_msr): Likewise.
9912 (emit_sevl): Likewise.
9913 (emit_wfe): Likewise.
9914 (append_insns): Likewise.
9915 (can_encode_int32_in): New helper function.
9916 (aarch64_relocate_instruction): New function.
9917 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9918 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9919 (struct linux_target_ops): Install aarch64_get_thread_area,
9920 aarch64_install_fast_tracepoint_jump_pad and
9921 aarch64_get_min_fast_tracepoint_insn_len.
9922
787749ea
PL
99232015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9924
9925 * Makefile.in (aarch64-insn.o): New rule.
9926 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9927
9812b2e6
YQ
99282015-09-21 Yao Qi <yao.qi@linaro.org>
9929
9930 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9931
18fe412b
YQ
99322015-09-21 Yao Qi <yao.qi@linaro.org>
9933
9934 * tracepoint.c (max_jump_pad_size): Remove.
9935
a0cc84cd
YQ
99362015-09-18 Yao Qi <yao.qi@linaro.org>
9937
9938 * linux-aarch64-low.c: Don't include sys/uio.h.
9939 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9940
d78908cf
WW
99412015-09-16 Wei-cheng Wang <cole945@gmail.com>
9942
9943 * tracepoint.c (eval_result_type): Change prototype.
9944 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9945
d57e0d50
PA
99462015-09-15 Pedro Alves <palves@redhat.com>
9947
9948 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9949 Check whether to report exec events instead of checking whether
9950 multiprocess is enabled.
9951
5a676acc
PA
99522015-09-15 Pedro Alves <palves@redhat.com>
9953
9954 PR remote/18965
9955 * remote-utils.c (prepare_resume_reply): Merge
9956 TARGET_WAITKIND_VFORK_DONE switch case with the
9957 TARGET_WAITKIND_FORKED case.
9958
7c5d0fad
YQ
99592015-09-15 Yao Qi <yao.qi@linaro.org>
9960
9961 * server.c (handle_query): Check string comparison using
9962 "else if" instead of "if".
9963
750ce8d1
YQ
99642015-09-15 Yao Qi <yao.qi@linaro.org>
9965
9966 * server.c (vCont_supported): New global variable.
9967 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9968 matches. Append ";vContSupported+" to own_buf.
9969 (handle_v_requests): Append ";s;S" to own_buf if target supports
9970 hardware single step or vCont_supported is false.
9971 (capture_main): Set vCont_supported to zero.
9972
70b90b91
YQ
99732015-09-15 Yao Qi <yao.qi@linaro.org>
9974
9975 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9976 it to ...
9977 (linux_supports_hardware_single_step): ... New function.
9978 (linux_target_ops): Update.
9979 * lynx-low.c (lynx_target_ops): Set field
9980 supports_hardware_single_step to target_can_do_hardware_single_step.
9981 * nto-low.c (nto_target_ops): Likewise.
9982 * spu-low.c (spu_target_ops): Likewise.
9983 * win32-low.c (win32_target_ops): Likewise.
9984 * target.c (target_can_do_hardware_single_step): New function.
9985 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9986 Remove. <supports_hardware_single_step>: New field.
9987 (target_supports_conditional_breakpoints): Remove.
9988 (target_supports_hardware_single_step): New macro.
9989 (target_can_do_hardware_single_step): Declare.
9990 * server.c (handle_query): Use target_supports_hardware_single_step
9991 instead of target_supports_conditional_breakpoints.
9992
ade90bde
YQ
99932015-09-15 Yao Qi <yao.qi@linaro.org>
9994
9995 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9996 function.
9997 (struct linux_target_ops the_low_target): Install
9998 aarch64_linux_siginfo_fixup.
9999
94585166
DB
100002015-09-11 Don Breazeal <donb@codesourcery.com>
10001 Luis Machado <lgustavo@codesourcery.com>
10002
10003 * linux-low.c (linux_mourn): Static declaration.
10004 (linux_arch_setup): Move in front of
10005 handle_extended_wait.
10006 (linux_arch_setup_thread): New function.
10007 (handle_extended_wait): Handle exec events. Call
10008 linux_arch_setup_thread. Make event_lwp argument a
10009 pointer-to-a-pointer.
10010 (check_zombie_leaders): Do not check stopped threads.
10011 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10012 (linux_low_filter_event): Add lwp and thread for exec'ing
10013 non-leader thread if leader thread has been deleted.
10014 Refactor code into linux_arch_setup_thread and call it.
10015 Pass child lwp pointer by reference to handle_extended_wait.
10016 (linux_wait_for_event_filtered): Update comment.
10017 (linux_wait_1): Prevent clobbering exec event status.
10018 (linux_supports_exec_events): New function.
10019 (linux_target_ops) <supports_exec_events>: Initialize new member.
10020 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10021 new member.
10022 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10023 * server.c (report_exec_events): New global variable.
10024 (handle_query): Handle qSupported query for exec-events feature.
10025 (captured_main): Initialize report_exec_events.
10026 * server.h (report_exec_events): Declare new global variable.
10027 * target.h (struct target_ops) <supports_exec_events>: New
10028 member.
10029 (target_supports_exec_events): New macro.
10030 * win32-low.c (win32_target_ops) <supports_exec_events>:
10031 Initialize new member.
10032
0568462b
MM
100332015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10034
10035 * linux-low.c (linux_low_enable_btrace): Remove.
10036 (linux_target_ops): Replace linux_low_enable_btrace with
10037 linux_enable_btrace.
10038
39edd165
YQ
100392015-09-03 Yao Qi <yao.qi@linaro.org>
10040
10041 * linux-aarch64-low.c (aarch64_insert_point): Call
10042 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10043 returns true.
10044
1db33b5a
UW
100452015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10046
10047 * linux-low.c (check_stopped_by_breakpoint): Use
10048 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10049
ab290430
PA
100502015-08-27 Pedro Alves <palves@redhat.com>
10051
10052 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10053
8d749320
SM
100542015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10055
6711b7f8
SM
10056 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10057 the XNEW-family equivalent.
8d749320
SM
10058 (compile_bytecodes): Likewise.
10059 * dll.c (loaded_dll): Likewise.
10060 * event-loop.c (append_callback_event): Likewise.
10061 (create_file_handler): Likewise.
10062 (create_file_event): Likewise.
10063 * hostio.c (handle_open): Likewise.
10064 * inferiors.c (add_thread): Likewise.
10065 (add_process): Likewise.
10066 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10067 * linux-arm-low.c (arm_new_process): Likewise.
10068 (arm_new_thread): Likewise.
10069 * linux-low.c (add_to_pid_list): Likewise.
10070 (linux_add_process): Likewise.
10071 (handle_extended_wait): Likewise.
10072 (add_lwp): Likewise.
10073 (enqueue_one_deferred_signal): Likewise.
10074 (enqueue_pending_signal): Likewise.
10075 (linux_resume_one_lwp_throw): Likewise.
10076 (linux_resume_one_thread): Likewise.
10077 (linux_read_memory): Likewise.
10078 (linux_write_memory): Likewise.
10079 * linux-mips-low.c (mips_linux_new_process): Likewise.
10080 (mips_linux_new_thread): Likewise.
10081 (mips_add_watchpoint): Likewise.
10082 * linux-x86-low.c (initialize_low_arch): Likewise.
10083 * lynx-low.c (lynx_add_process): Likewise.
10084 * mem-break.c (set_raw_breakpoint_at): Likewise.
10085 (set_breakpoint): Likewise.
10086 (add_condition_to_breakpoint): Likewise.
10087 (add_commands_to_breakpoint): Likewise.
10088 (clone_agent_expr): Likewise.
10089 (clone_one_breakpoint): Likewise.
10090 * regcache.c (new_register_cache): Likewise.
10091 * remote-utils.c (look_up_one_symbol): Likewise.
10092 * server.c (queue_stop_reply): Likewise.
10093 (start_inferior): Likewise.
10094 (queue_stop_reply_callback): Likewise.
10095 (handle_target_event): Likewise.
10096 * spu-low.c (fetch_ppc_memory): Likewise.
10097 (store_ppc_memory): Likewise.
10098 * target.c (set_target_ops): Likewise.
10099 * thread-db.c (thread_db_load_search): Likewise.
10100 (try_thread_db_load_1): Likewise.
10101 * tracepoint.c (add_tracepoint): Likewise.
10102 (add_tracepoint_action): Likewise.
10103 (create_trace_state_variable): Likewise.
10104 (cmd_qtdpsrc): Likewise.
10105 (cmd_qtro): Likewise.
10106 (add_while_stepping_state): Likewise.
10107 * win32-low.c (child_add_thread): Likewise.
10108 (get_image_name): Likewise.
10109
ed8b7b42
YQ
101102015-08-25 Yao Qi <yao.qi@linaro.org>
10111
10112 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10113
db3cb7cb
YQ
101142015-08-25 Yao Qi <yao.qi@linaro.org>
10115
10116 * Makefile.in (aarch64-linux.o): New rule.
10117 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10118 srv_tgtobj.
10119 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10120 (aarch64_init_debug_reg_state): Make it extern.
10121 (aarch64_linux_prepare_to_resume): Remove.
10122
f6011a1c
YQ
101232015-08-25 Yao Qi <yao.qi@linaro.org>
10124
10125 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10126 lwp_arch_private_info and ptid_of_lwp.
10127
88e2cf7e
YQ
101282015-08-25 Yao Qi <yao.qi@linaro.org>
10129
10130 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10131 Find proc_info by find_process_pid. All callers updated.
10132
5e35436e
YQ
101332015-08-25 Yao Qi <yao.qi@linaro.org>
10134
10135 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10136 Remove.
10137 (debug_reg_change_callback): Remove.
10138 (aarch64_notify_debug_reg_change): Remove.
10139
4a8a7965
YQ
101402015-08-25 Yao Qi <yao.qi@linaro.org>
10141
10142 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10143 Call current_lwp_ptid.
10144
32a271ee
YQ
101452015-08-25 Yao Qi <yao.qi@linaro.org>
10146
10147 * linux-aarch64-low.c (debug_reg_change_callback): Use
10148 debug_printf.
10149
0d51c8d7
YQ
101502015-08-25 Yao Qi <yao.qi@linaro.org>
10151
10152 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10153
31a43dd5
YQ
101542015-08-25 Yao Qi <yao.qi@linaro.org>
10155
10156 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10157
8ee52567
YQ
101582015-08-25 Yao Qi <yao.qi@linaro.org>
10159
10160 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10161 the code.
10162
ff3f0f45
YQ
101632015-08-25 Yao Qi <yao.qi@linaro.org>
10164
10165 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10166 Remove.
10167 (debug_reg_change_callback): Remove argument entry and add argument
10168 lwp. Remove local variable thread. Don't print thread id in the
10169 debugging output. Don't check whether pid of thread equals to pid.
10170 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10171 iterate_over_lwps instead find_inferior.
10172
3d40fbb5
PA
101732015-08-24 Pedro Alves <palves@redhat.com>
10174
10175 * inferiors.c (get_first_process): New function.
10176 * inferiors.h (get_first_process): New declaration.
10177 * remote-utils.c (read_ptid): Default to the first process in the
10178 list, instead of to the current thread's process.
10179
438e1e42
PA
101802015-08-24 Pedro Alves <palves@redhat.com>
10181
10182 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10183 * event-loop.c: Likewise.
10184 * remote-utils.c: Likewise.
10185 * tracepoint.c: Likewise.
10186
a8c6d4fc
PA
101872015-08-24 Pedro Alves <palves@redhat.com>
10188
10189 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10190 ptid_get_lwp.
10191
99b0bb12
PA
101922015-08-21 Pedro Alves <palves@redhat.com>
10193
10194 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10195 instead of literal 1.
10196
f8904751
PA
101972015-08-21 Pedro Alves <palves@redhat.com>
10198
10199 * tdesc.c (default_description): Explicitly zero-initialize.
10200
465a859e
PA
102012015-08-21 Pedro Alves <palves@redhat.com>
10202
10203 PR gdb/18749
10204 * inferiors.c (remove_thread): Discard any pending stop reply for
10205 this thread.
10206 * server.c (remove_all_on_match_pid): Rename to ...
10207 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10208 instead of a pid.
10209 (discard_queued_stop_replies): Change parameter to a ptid. Now
10210 extern.
10211 (handle_v_kill, kill_inferior_callback, captured_main)
10212 (process_serial_event): Adjust.
10213 * server.h (discard_queued_stop_replies): Declare.
10214
f0db101d
PA
102152015-08-21 Pedro Alves <palves@redhat.com>
10216
10217 * linux-low.c (wait_for_sigstop): Always switch to no thread
10218 selected if the previously current thread dies.
10219 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10220 process instead of the current thread's.
10221 * remote-utils.c (input_interrupt): Don't check if there's no
10222 current thread.
10223 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10224 current thread to the general thread fails, error out.
10225 (handle_qxfer_auxv, handle_qxfer_libraries)
10226 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10227 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10228 (handle_query): Check if there's a thread selected instead of
10229 checking whether there's any thread in the thread list.
10230 (handle_qxfer_threads, handle_qxfer_btrace)
10231 (handle_qxfer_btrace_conf): Don't error out early if there's no
10232 thread in the thread list.
10233 (handle_v_cont, myresume): Don't set the current thread to the
10234 continue thread.
10235 (process_serial_event) <Hg handling>: Also set thread_id if the
10236 previous general thread is still alive.
10237 (process_serial_event) <g/G handling>: If setting the current
10238 thread to the general thread fails, error out.
10239 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10240 thread's lwp instead of the current thread's.
10241 * target.c (set_desired_thread): If the desired thread was not
10242 found, leave the current thread pointing to NULL. Return an int
10243 (boolean) indicating success.
10244 * target.h (set_desired_thread): Change return type to int.
10245
40045d91
MF
102462015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10247
10248 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10249 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10250 #includes.
10251 (ps_get_thread_area): New function.
10252
45face3b
GB
102532015-08-19 Gary Benson <gbenson@redhat.com>
10254
10255 * hostio.c (handle_pread): Do not attempt to read more data
10256 than hostio_reply_with_data can fit in a packet.
10257
16d5f642
JB
102582015-08-18 Joel Brobecker <brobecker@adacore.com>
10259
10260 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10261
a738da3a
MF
102622015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10263
10264 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10265
33ebda9d
PA
102662015-08-06 Pedro Alves <palves@redhat.com>
10267
10268 * tracepoint.c (expr_eval_result): Now an int.
10269
a44892be
PA
102702015-08-06 Pedro Alves <palves@redhat.com>
10271
10272 * gdbthread.h (struct regcache): Forward declare.
10273 (struct thread_info) <regcache_data>: Now a struct regcache
10274 pointer.
10275 * inferiors.c (inferior_regcache_data)
10276 (set_inferior_regcache_data): Now work with struct regcache
10277 pointers.
10278 * inferiors.h (struct regcache): Forward declare.
10279 (inferior_regcache_data, set_inferior_regcache_data): Now work
10280 with struct regcache pointers.
10281 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10282 (free_register_cache_thread): Remove struct regcache pointer
10283 casts.
10284
608a1e46
PA
102852015-08-06 Pedro Alves <palves@redhat.com>
10286
10287 * server.c (captured_main): On error, print the exception message
10288 to stderr, and if run_once is set, throw a quit.
10289
f0ce0d3a
PA
102902015-08-06 Pedro Alves <palves@redhat.com>
10291
10292 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10293 the current thread.
10294
bf47e248
PA
102952015-08-06 Pedro Alves <palves@redhat.com>
10296
10297 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10298 reading beyond the passed in buffer length.
10299
b6b9ffcc
PL
103002015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10301
10302 * tracepoint.c (symbol_list) <required>: Remove.
10303
863d01bd
PA
103042015-08-06 Pedro Alves <palves@redhat.com>
10305
10306 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10307 count if stopping and suspending threads.
10308 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10309 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10310 (linux_detach): Complete an ongoing step-over.
10311 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10312 throughout.
10313 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10314 (linux_wait_1): If passing a signal to the inferior after
10315 finishing a step-over, unsuspend and re-resume all lwps. If we
10316 see a single-step event but the thread should be continuing, don't
10317 pass the trap to gdb.
10318 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10319 internal_error instead of gdb_assert.
10320 (enqueue_pending_signal): New function.
10321 (check_ptrace_stopped_lwp_gone): Add debug output.
10322 (start_step_over): Use internal_error instead of gdb_assert.
10323 (complete_ongoing_step_over): New function.
10324 (linux_resume_one_thread): Don't resume a suspended thread.
10325 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10326 it stepping.
10327
00db26fa
PA
103282015-08-06 Pedro Alves <palves@redhat.com>
10329
10330 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10331 (linux_thread_alive): Use lwp_is_marked_dead.
10332 (extended_event_reported): Delete.
10333 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10334 instead of extended_event_reported.
10335 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10336 as well.
10337 (lwp_is_marked_dead): New function.
10338 (lwp_running): Use lwp_is_marked_dead.
10339 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10340 comment.
10341
ad071a30
PA
103422015-08-06 Pedro Alves <palves@redhat.com>
10343
10344 * linux-low.c (linux_wait_1): Move fork event output out of the
10345 !report_to_gdb check. Pass event_child->waitstatus to
10346 target_waitstatus_to_string instead of ourstatus.
10347
524b57e6
YQ
103482015-08-04 Yao Qi <yao.qi@linaro.org>
10349
10350 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10351 if current_thread is 32 bit.
10352
6085d6f6
YQ
103532015-08-04 Yao Qi <yao.qi@linaro.org>
10354
10355 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10356 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10357 * server.c (extended_protocol): Remove "static".
10358 * server.h (extended_protocol): Declare it.
10359
8a7e4587
YQ
103602015-08-04 Yao Qi <yao.qi@linaro.org>
10361
10362 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10363 both aarch64 and aarch32.
10364 (aarch64_set_pc): Likewise.
10365
3b53ae99
YQ
103662015-08-04 Yao Qi <yao.qi@linaro.org>
10367
10368 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10369 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10370 arm-with-neon.xml to srv_xmlfiles.
10371 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10372 (is_64bit_tdesc): New function.
10373 (aarch64_linux_read_description): New function.
10374 (aarch64_arch_setup): Call aarch64_linux_read_description.
10375 (regs_info): Rename to regs_info_aarch64.
10376 (aarch64_regs_info): Return right regs_info.
10377 (initialize_low_arch): Call initialize_low_arch_aarch32.
10378
bd9e6534
YQ
103792015-08-04 Yao Qi <yao.qi@linaro.org>
10380
10381 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10382 * linux-aarch32-low.c: New file.
10383 * linux-aarch32-low.h: New file.
10384 * linux-arm-low.c (arm_fill_gregset): Move it to
10385 linux-aarch32-low.c.
10386 (arm_store_gregset): Likewise.
10387 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10388 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10389 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10390 (regs_info): Rename to regs_info_arm.
10391 (arm_regs_info): Return regs_info_aarch32 if
10392 have_ptrace_getregset is 1 and target description is
10393 arm_with_neon or arm_with_vfpv3.
10394 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10395 Call initialize_low_arch_aarch32 instead.
10396
ded48a5e
YQ
103972015-08-04 Yao Qi <yao.qi@linaro.org>
10398
10399 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10400 * linux-low.c: ... here.
10401 * linux-low.h (have_ptrace_getregset): Declare it.
10402
96e9210f
PA
104032015-08-04 Pedro Alves <palves@redhat.com>
10404
10405 * thread-db.c (struct thread_db): Use new typedefs.
10406 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10407 CHK calls.
10408 (disable_thread_event_reporting): Cast result of dlsym to
10409 destination function pointer type.
10410 (thread_db_mourn): Use td_ta_delete_ftype.
10411
af60a1ef
SL
104122015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10413
10414 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10415 arch variant.
10416 (CDX_BREAKPOINT): Define for R2.
10417 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10418 (the_low_target): Add comments.
10419
e8b41681
YQ
104202015-07-30 Yao Qi <yao.qi@linaro.org>
10421
10422 * linux-arm-low.c (arm_hwcap): Remove it.
10423 (arm_read_description): New local variable arm_hwcap. Don't
10424 set arm_hwcap to zero.
10425
89abb039
YQ
104262015-07-30 Yao Qi <yao.qi@linaro.org>
10427
10428 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10429 Use regcache->tdesc instead.
10430 (arm_store_wmmxregset): Likewise.
10431 (arm_fill_vfpregset): Likewise.
10432 (arm_store_vfpregset): Likewise.
10433
deca266c
YQ
104342015-07-30 Yao Qi <yao.qi@linaro.org>
10435
10436 * linux-arm-low.c: Include arch/arm.h.
10437 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10438 (arm_store_gregset): Likewise.
10439
aa58a496
SM
104402015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10441
10442 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10443 ptrace's 4th parameter.
10444
50904b25
YQ
104452015-07-27 Yao Qi <yao.qi@linaro.org>
10446
10447 * configure.srv (case aarch64*-*-linux*): Don't set
10448 srv_linux_usrregs.
10449
5826e159
PA
104502015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10451
10452 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10453 sys/ptrace.h.
10454 * linux-arm-low.c: Likewise.
10455 * linux-cris-low.c: Likewise.
10456 * linux-crisv32-low.c: Likewise.
10457 * linux-low.c: Likewise.
10458 * linux-m68k-low.c: Likewise.
10459 * linux-mips-low.c: Likewise.
10460 * linux-nios2-low.c: Likewise.
10461 * linux-s390-low.c: Likewise.
10462 * linux-sparc-low.c: Likewise.
10463 * linux-tic6x-low.c: Likewise.
10464 * linux-tile-low.c: Likewise.
10465 * linux-x86-low.c: Likewise.
10466
54019719
PA
104672015-07-24 Pedro Alves <palves@redhat.com>
10468
10469 * config.in: Regenerate.
10470 * configure: Regenerate.
10471
eb7aa561
PA
104722015-07-24 Pedro Alves <palves@redhat.com>
10473
10474 * acinclude.m4: Include ../ptrace.m4.
10475 * configure.ac: Call GDB_AC_PTRACE.
10476 * config.in, configure: Regenerate.
10477
55d7b841
YQ
104782015-07-24 Yao Qi <yao.qi@linaro.org>
10479
10480 * linux-low.c (linux_create_inferior): Remove setting to
10481 proc->priv->new_inferior.
10482 (linux_attach): Likewise.
10483 (linux_low_filter_event): Likewise.
10484 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10485
c06cbd92
YQ
104862015-07-24 Yao Qi <yao.qi@linaro.org>
10487
10488 * linux-low.c (linux_arch_setup): New function.
10489 (linux_low_filter_event): If proc->tdesc is NULL and
10490 proc->attached is true, call the_low_target.arch_setup.
10491 Otherwise, keep status pending, and return.
10492 (linux_resume_one_lwp_throw): Don't call get_pc if
10493 thread->while_stepping isn't NULL. Don't call
10494 get_thread_regcache if proc->tdesc is NULL.
10495 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10496 (linux_target_ops): Install arch_setup.
10497 * server.c (start_inferior): Call the_target->arch_setup.
10498 * target.h (struct target_ops) <arch_setup>: New field.
10499 (target_arch_setup): New marco.
10500 * lynx-low.c (lynx_target_ops): Update.
10501 * nto-low.c (nto_target_ops): Update.
10502 * spu-low.c (spu_target_ops): Update.
10503 * win32-low.c (win32_target_ops): Update.
10504
5ae3ebba
YQ
105052015-07-24 Yao Qi <yao.qi@linaro.org>
10506
10507 * linux-low.c (linux_add_process): Don't set
10508 proc->priv->new_inferior.
10509 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10510 (linux_attach): Likewise.
10511
eb97750b
YQ
105122015-07-24 Yao Qi <yao.qi@linaro.org>
10513
10514 * server.c (start_inferior): Code refactor.
10515
51aee833
YQ
105162015-07-24 Yao Qi <yao.qi@linaro.org>
10517
10518 * server.c (process_serial_event): Set general_thread.
10519
af1b22f3
YQ
105202015-07-21 Yao Qi <yao.qi@linaro.org>
10521
10522 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10523 aarch64_linux_get_debug_reg_capacity.
10524
554717a3
YQ
105252015-07-17 Yao Qi <yao.qi@linaro.org>
10526
10527 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10528 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10529 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10530 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10531 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10532 (AARCH64_HWP_ALIGNMENT): Likewise.
10533 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10534 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10535 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10536 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10537 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10538 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10539 (struct aarch64_debug_reg_state): Likewise.
10540 (struct arch_lwp_info): Likewise.
10541 (aarch64_align_watchpoint): Likewise.
10542 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10543 (aarch64_watchpoint_length): Likewise.
10544 (aarch64_point_encode_ctrl_reg): Likewise
10545 (aarch64_point_is_aligned): Likewise.
10546 (aarch64_align_watchpoint): Likewise.
10547 (aarch64_linux_set_debug_regs):
10548 (aarch64_dr_state_insert_one_point): Likewise.
10549 (aarch64_dr_state_remove_one_point): Likewise.
10550 (aarch64_handle_breakpoint): Likewise.
10551 (aarch64_handle_aligned_watchpoint): Likewise.
10552 (aarch64_handle_unaligned_watchpoint): Likewise.
10553 (aarch64_handle_watchpoint): Likewise.
10554
c67ca4de
YQ
105552015-07-17 Yao Qi <yao.qi@linaro.org>
10556
10557 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10558 and don't aarch64_get_debug_reg_state. All callers update.
10559 (aarch64_handle_aligned_watchpoint): Likewise.
10560 (aarch64_handle_unaligned_watchpoint): Likewise.
10561 (aarch64_handle_watchpoint): Likewise.
10562 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10563 (aarch64_remove_point): Likewise.
10564
25abf979
YQ
105652015-07-17 Yao Qi <yao.qi@linaro.org>
10566
10567 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10568 debug_printf.
10569 (aarch64_handle_unaligned_watchpoint): Likewise.
10570
db1ff28b
JK
105712015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10572
10573 Revert the previous 3 commits:
10574 Move gdb_regex* to common/
10575 Move linux_find_memory_regions_full & co.
10576 gdbserver build-id attribute generator
10577
700ca40f
JK
105782015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10579 Jan Kratochvil <jan.kratochvil@redhat.com>
10580
10581 gdbserver build-id attribute generator.
10582 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10583 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10584 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10585 (find_phdr): New.
10586 (get_dynamic): Use find_pdhr to traverse program headers.
10587 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10588 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10589 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10590 (get_hex_build_id): New.
10591 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10592 to reply XML document.
10593
9904185c
JK
105942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10595 Jan Kratochvil <jan.kratochvil@redhat.com>
10596
10597 * target.c: Include target/target-utils.h and fcntl.h.
10598 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10599 (target_fileio_read_stralloc): New functions.
10600
6e5b4429
JK
106012015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10602
10603 * Makefile.in (OBS): Add gdb_regex.o.
10604 (gdb_regex.o): New.
10605 * config.in: Rebuilt.
10606 * configure: Rebuilt.
10607
ddc98fbf
JK
106082015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10609 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10612 * Makefile.in (OBS): Add target-utils.o.
10613 (linux-maps.o, target-utils.o): New.
10614 * configure.srv (srv_linux_obj): Add linux-maps.o.
10615
e57bb7a0
PL
106162015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10617
10618 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10619 function, return 1.
10620 (the_low_target): Install it.
10621
586b02a9
PA
106222015-07-14 Pedro Alves <palves@redhat.com>
10623
10624 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10625 Instead, ignore ECHILD, and throw an error for other errnos.
10626
58c1b36c
PA
106272015-07-10 Pedro Alves <palves@redhat.com>
10628
10629 * event-loop.c (struct callback_event) <data>: Change type to
10630 gdb_client_data instance instead of gdb_client_data pointer.
10631 (append_callback_event): Adjust.
10632
421530db
PL
106332015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10634
10635 * linux-aarch64-low.c: Add comments for each linux_target_ops
10636 method. Remove comments already covered in target_ops and
10637 linux_target_ops definitions.
10638 (the_low_target): Add comments for each unimplemented method.
10639
c2d65f38
YQ
106402015-07-09 Yao Qi <yao.qi@linaro.org>
10641
10642 * linux-aarch64-low.c (aarch64_regmap): Remove.
10643 (aarch64_usrregs_info): Remove.
10644 (regs_info): Set field usrregs to NULL.
10645
b20a6524
MM
106462015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10647
10648 * linux-low.c: Include "rsp-low.h"
10649 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10650 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10651 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10652 (handle_btrace_enable_pt): New.
10653 (handle_btrace_general_set): Support "pt".
10654 (handle_btrace_conf_general_set): Support "pt:size".
10655
96c97461
PL
106562015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10657
10658 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10659 Z_PACKET_SW_BP.
10660
37d66942
PL
106612015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10662
10663 * linux-aarch64-low.c: Remove comment about endianness.
10664 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10665 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10666 memcmp.
10667
dc06243f
GB
106682015-06-24 Gary Benson <gbenson@redhat.com>
10669
10670 * linux-i386-ipa.c (stdint.h): Do not include.
10671 * lynx-i386-low.c (stdint.h): Likewise.
10672 * lynx-ppc-low.c (stdint.h): Likewise.
10673 * mem-break.c (stdint.h): Likewise.
10674 * thread-db.c (stdint.h): Likewise.
10675 * tracepoint.c (stdint.h): Likewise.
10676 * win32-low.c (stdint.h): Likewise.
10677
124e13d9
SM
106782015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10679
10680 * server.c (write_qxfer_response): Update call to
10681 remote_escape_output.
10682
909c2cda
JK
106832015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10684 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 Merge multiple hex conversions.
10687 * gdbreplay.c (tohex): Rename to 'fromhex'.
10688 (logchar): Use fromhex.
10689
24c05f46
JK
106902015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10691
10692 * server.c (handle_qxfer_libraries): Set `version' attribute for
10693 <library-list>.
10694
14d2069a
GB
106952015-06-10 Gary Benson <gbenson@redhat.com>
10696
10697 * target.h (struct target_ops) <multifs_open>: New field.
10698 <multifs_unlink>: Likewise.
10699 <multifs_readlink>: Likewise.
10700 * linux-low.c (nat/linux-namespaces.h): New include.
10701 (linux_target_ops): Initialize the_target->multifs_open,
10702 the_target->multifs_unlink and the_target->multifs_readlink.
10703 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10704 * hostio.c (hostio_fs_pid): New static variable.
10705 (hostio_handle_new_gdb_connection): New function.
10706 (handle_setfs): Likewise.
10707 (handle_open): Use the_target->multifs_open as appropriate.
10708 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10709 (handle_readlink): Use the_target->multifs_readlink as
10710 appropriate.
10711 (handle_vFile): Handle vFile:setfs packets.
10712 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10713 after target_handle_new_gdb_connection.
10714
4b8b5e72
GB
107152015-06-10 Gary Benson <gbenson@redhat.com>
10716
10717 * configure.ac (AC_CHECK_FUNCS): Add setns.
10718 * config.in: Regenerate.
10719 * configure: Likewise.
10720 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10721 (linux-namespaces.o): New rule.
10722 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10723
3ac2e371
GB
107242015-06-09 Gary Benson <gbenson@redhat.com>
10725
10726 * hostio.c (handle_open): Process mode argument with
10727 fileio_to_host_mode.
10728
ca9b78ce
YQ
107292015-06-01 Yao Qi <yao.qi@linaro.org>
10730
10731 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10732 * linux-x86-low.c: Likewise.
10733
bfacd19d
DB
107342015-05-28 Don Breazeal <donb@codesourcery.com>
10735
10736 * linux-low.c (handle_extended_wait): Initialize
10737 thread_info.last_resume_kind for new fork children.
10738
452003ef
PA
107392015-05-15 Pedro Alves <palves@redhat.com>
10740
10741 * target.h (target_handle_new_gdb_connection): Rewrite using if
10742 wrapped in do/while.
10743
1041a03c
JB
107442015-05-14 Joel Brobecker <brobecker@adacore.com>
10745
10746 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10747 * configure, config.in: Regenerate.
10748 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10749 Declare typedef.
10750
c269dbdb
DB
107512015-05-12 Don Breazeal <donb@codesourcery.com>
10752
10753 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10754 PTRACE_EVENT_VFORK_DONE.
10755 (linux_low_ptrace_options, extended_event_reported): Add vfork
10756 events.
10757 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10758 and "vforkdone" for RSP 'T' Stop Reply Packet.
10759 * server.h (report_vfork_events): Declare
10760 global variable.
10761
3a8a0396
DB
107622015-05-12 Don Breazeal <donb@codesourcery.com>
10763
10764 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10765 (the_low_target) <new_fork>: Initialize new member.
10766 * linux-arm-low.c (arm_new_fork): New function.
10767 (the_low_target) <new_fork>: Initialize new member.
10768 * linux-low.c (handle_extended_wait): Call new target function
10769 new_fork.
10770 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10771 * linux-mips-low.c (mips_add_watchpoint): New function
10772 extracted from mips_insert_point.
10773 (the_low_target) <new_fork>: Initialize new member.
10774 (mips_linux_new_fork): New function.
10775 (mips_insert_point): Call mips_add_watchpoint.
10776 * linux-x86-low.c (x86_linux_new_fork): New function.
10777 (the_low_target) <new_fork>: Initialize new member.
10778
de0d863e
DB
107792015-05-12 Don Breazeal <donb@codesourcery.com>
10780
10781 * linux-low.c (handle_extended_wait): Implement return value,
10782 rename argument 'event_child' to 'event_lwp', handle
10783 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10784 (linux_low_ptrace_options): New function.
10785 (linux_low_filter_event): Call linux_low_ptrace_options,
10786 use different argument fo linux_enable_event_reporting,
10787 use return value from handle_extended_wait.
10788 (extended_event_reported): New function.
10789 (linux_wait_1): Call extended_event_reported and set
10790 status to report fork events.
10791 (linux_write_memory): Add pid to debug message.
10792 (reset_lwp_ptrace_options_callback): New function.
10793 (linux_handle_new_gdb_connection): New function.
10794 (linux_target_ops): Initialize new structure member.
10795 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10796 * lynx-low.c: Initialize new structure member.
10797 * remote-utils.c (prepare_resume_reply): Implement stop reason
10798 "fork" for "T" stop message.
10799 * server.c (handle_query): Call handle_new_gdb_connection.
10800 * server.h (report_fork_events): Declare global flag.
10801 * target.h (struct target_ops) <handle_new_gdb_connection>:
10802 New member.
10803 (target_handle_new_gdb_connection): New macro.
10804 * win32-low.c: Initialize new structure member.
10805
ddcbc397
DB
108062015-05-12 Don Breazeal <donb@codesourcery.com>
10807
10808 * mem-break.c (APPEND_TO_LIST): Define macro.
10809 (clone_agent_expr): New function.
10810 (clone_one_breakpoint): New function.
10811 (clone_all_breakpoints): New function.
10812 * mem-break.h: Declare new functions.
10813
89245bc0
DB
108142015-05-12 Don Breazeal <donb@codesourcery.com>
10815
10816 * linux-low.c (linux_supports_fork_events): New function.
10817 (linux_supports_vfork_events): New function.
10818 (linux_target_ops): Initialize new structure members.
10819 (initialize_low): Call linux_check_ptrace_features.
10820 * lynx-low.c (lynx_target_ops): Initialize new structure
10821 members.
10822 * server.c (report_fork_events, report_vfork_events):
10823 New global flags.
10824 (handle_query): Add new features to qSupported packet and
10825 response.
10826 (captured_main): Initialize new global variables.
10827 * target.h (struct target_ops) <supports_fork_events>:
10828 New member.
10829 <supports_vfork_events>: New member.
10830 (target_supports_fork_events): New macro.
10831 (target_supports_vfork_events): New macro.
10832 * win32-low.c (win32_target_ops): Initialize new structure
10833 members.
10834
835205d0
GB
108352015-05-12 Gary Benson <gbenson@redhat.com>
10836
10837 * server.c (handle_qxfer_exec_file): Use current process
10838 if annex is empty.
10839
21e94bd9
SL
108402015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10841
10842 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10843 Remove HAVE_PTRACE_GETREGS conditionals.
10844 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10845 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10846
45614f15
YQ
108472015-05-08 Yao Qi <yao.qi@linaro.org>
10848
10849 * linux-low.c (linux_supports_conditional_breakpoints): New
10850 function.
10851 (linux_target_ops): Install new target method.
10852 * lynx-low.c (lynx_target_ops): Install NULL hook for
10853 supports_conditional_breakpoints.
10854 * nto-low.c (nto_target_ops): Likewise.
10855 * spu-low.c (spu_target_ops): Likewise.
10856 * win32-low.c (win32_target_ops): Likewise.
10857 * server.c (handle_query): Check
10858 target_supports_conditional_breakpoints.
10859 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10860 New field.
10861 (target_supports_conditional_breakpoints): New macro.
10862
80ad801e
PA
108632015-05-06 Pedro Alves <palves@redhat.com>
10864
10865 PR server/18081
10866 * server.c (start_inferior): If the process exits, mourn it.
10867
819843c7
GB
108682015-04-21 Gary Benson <gbenson@redhat.com>
10869
10870 * hostio.c (fileio_open_flags_to_host): Factored out to
10871 fileio_to_host_openflags in common/fileio.c. Single use
10872 updated.
10873
a2d5a9d7
MF
108742015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10875
10876 * linux-xtensa-low.c (xtensa_fill_gregset)
10877 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10878 XCHAL_HAVE_LOOP.
10879
deb44829
MF
108802015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10881
10882 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10883 (regs_info): Replace usrregs pointer with NULL.
10884
e57f1de3
GB
108852015-04-17 Gary Benson <gbenson@redhat.com>
10886
10887 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10888 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10889 * server.c (handle_qxfer_exec_file): New function.
10890 (qxfer_packets): Add exec-file entry.
10891 (handle_query): Report qXfer:exec-file:read as supported packet.
10892
62828379
RN
108932015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10894
10895 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10896
b88bb450
GB
108972015-04-09 Gary Benson <gbenson@redhat.com>
10898
10899 * hostio-errno.c (errno_to_fileio_error): Remove function.
10900 Update caller to use remote_fileio_to_fio_error.
10901
c8f4bfdd
YQ
109022015-04-09 Yao Qi <yao.qi@linaro.org>
10903
10904 * linux-low.c (linux_insert_point): Call
10905 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10906 (linux_remove_point): Call remove_memory_breakpoint if type is
10907 raw_bkpt_type_sw.
10908 * linux-x86-low.c (x86_insert_point): Don't call
10909 insert_memory_breakpoint.
10910 (x86_remove_point): Don't call remove_memory_breakpoint.
10911
41f98f02
PA
109122015-04-01 Pedro Alves <palves@redhat.com>
10913 Cleber Rosa <crosa@redhat.com>
10914
10915 * server.c (gdbserver_usage): Reorganize and extend the usage
10916 message.
10917
2bf6fb9d
PA
109182015-03-24 Pedro Alves <palves@redhat.com>
10919
10920 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10921 output. Also dump TRAP_TRACE.
10922 (linux_low_filter_event): In debug output, distinguish a
10923 resume_stop SIGSTOP from a delayed SIGSTOP.
10924
369f6daa
GB
109252015-03-24 Gary Benson <gbenson@redhat.com>
10926
10927 * linux-x86-low.c (x86_linux_new_thread): Moved to
10928 nat/x86-linux.c.
10929 (x86_linux_prepare_to_resume): Likewise.
10930
8e5d4070
GB
109312015-03-24 Gary Benson <gbenson@redhat.com>
10932
10933 * Makefile.in (x86-linux-dregs.o): New rule.
10934 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10935 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10936 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10937 (x86_linux_dr_get): Likewise.
10938 (x86_linux_dr_set): Likewise.
10939 (update_debug_registers_callback): Likewise.
10940 (x86_linux_dr_set_addr): Likewise.
10941 (x86_linux_dr_get_addr): Likewise.
10942 (x86_linux_dr_set_control): Likewise.
10943 (x86_linux_dr_get_control): Likewise.
10944 (x86_linux_dr_get_status): Likewise.
10945 (x86_linux_update_debug_registers): Likewise.
10946
2b95d440
GB
109472015-03-24 Gary Benson <gbenson@redhat.com>
10948
10949 * linux-x86-low.c (x86_linux_update_debug_registers):
10950 New function, factored out from...
10951 (x86_linux_prepare_to_resume): ...this.
10952
14b0bc68
GB
109532015-03-24 Gary Benson <gbenson@redhat.com>
10954
10955 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10956 (x86_linux_dr_set): Likewise.
10957 (update_debug_registers_callback): Likewise.
10958 (x86_linux_dr_set_addr): Likewise.
10959 (x86_linux_dr_get_addr): Likewise.
10960 (x86_linux_dr_set_control): Likewise.
10961 (x86_linux_dr_get_control): Likewise.
10962 (x86_linux_dr_get_status): Likewise.
10963 (x86_linux_prepare_to_resume): Likewise.
10964
5dfe6ca8
GB
109652015-03-24 Gary Benson <gbenson@redhat.com>
10966
10967 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10968 Use perror_with_name. Pass string through gettext.
10969 (x86_linux_dr_set): Likewise.
10970
d33472ad
GB
109712015-03-24 Gary Benson <gbenson@redhat.com>
10972
10973 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10974 (x86_linux_dr_set_addr): ...this.
10975 (x86_dr_low_get_addr): Rename to...
10976 (x86_linux_dr_get_addr): ...this.
10977 (x86_dr_low_set_control): Rename to...
10978 (x86_linux_dr_set_control): ...this.
10979 (x86_dr_low_get_control): Rename to...
10980 (x86_linux_dr_get_control): ...this.
10981 (x86_dr_low_get_status): Rename to...
10982 (x86_linux_dr_get_status): ...this.
10983 (x86_dr_low): Update with new function names.
10984
4b134ca1
GB
109852015-03-24 Gary Benson <gbenson@redhat.com>
10986
10987 * Makefile.in (x86-linux.o): New rule.
10988 * configure.srv: Add x86-linux.o to relevant targets.
10989 * linux-low.c (lwp_set_arch_private_info): New function.
10990 (lwp_arch_private_info): Likewise.
10991 * linux-x86-low.c: Include nat/x86-linux.h.
10992 (arch_lwp_info): Removed structure.
10993 (update_debug_registers_callback):
10994 Use lwp_set_debug_registers_changed.
10995 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10996 and lwp_set_debug_registers_changed.
10997 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10998
34c703da
GB
109992015-03-24 Gary Benson <gbenson@redhat.com>
11000
11001 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11002 * linux-arm-low.c (arm_new_thread): Likewise.
11003 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11004 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11005 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11006 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11007
cff068da
GB
110082015-03-24 Gary Benson <gbenson@redhat.com>
11009
11010 * linux-low.c (ptid_of_lwp): New function.
11011 (lwp_is_stopped): Likewise.
11012 (lwp_stop_reason): Likewise.
11013 * linux-x86-low.c (update_debug_registers_callback):
11014 Use lwp_is_stopped.
11015 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11016 lwp_stop_reason.
11017
b2f7c7e8
GB
110182015-03-24 Gary Benson <gbenson@redhat.com>
11019
11020 * linux-low.h (linux_stop_lwp): Remove declaration.
11021
6d4ee8c6
GB
110222015-03-24 Gary Benson <gbenson@redhat.com>
11023
11024 * linux-low.h: Include nat/linux-nat.h.
11025 * linux-low.c (iterate_over_lwps_args): New structure.
11026 (iterate_over_lwps_filter): New function.
11027 (iterate_over_lwps): Likewise.
11028 * linux-x86-low.c (update_debug_registers_callback):
11029 Update signature to what iterate_over_lwps expects.
11030 Remove PID check that iterate_over_lwps now performs.
11031 (x86_dr_low_set_addr): Use iterate_over_lwps.
11032 (x86_dr_low_set_control): Likewise.
11033
70a0bb6b
GB
110342015-03-24 Gary Benson <gbenson@redhat.com>
11035
11036 * linux-x86-low.c (x86_debug_reg_state): New function.
11037 (x86_linux_prepare_to_resume): Use the above.
11038
7b669087
GB
110392015-03-24 Gary Benson <gbenson@redhat.com>
11040
11041 * linux-low.c (current_lwp_ptid): New function.
11042 * linux-x86-low.c: Include nat/linux-nat.h.
11043 (x86_dr_low_get_addr): Use current_lwp_ptid.
11044 (x86_dr_low_get_control): Likewise.
11045 (x86_dr_low_get_status): Likewise.
11046
eef49a3d
PA
110472015-03-20 Pedro Alves <palves@redhat.com>
11048
11049 * tracepoint.c (cmd_qtstatus): Make "str" const.
11050
b2333d22
PA
110512015-03-20 Pedro Alves <palves@redhat.com>
11052
11053 * server.c (handle_general_set): Make "req_str" const.
11054
23f238d3
PA
110552015-03-19 Pedro Alves <palves@redhat.com>
11056
11057 * linux-low.c (linux_resume_one_lwp): Rename to ...
11058 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11059 instead call perror_with_name.
11060 (check_ptrace_stopped_lwp_gone): New function.
11061 (linux_resume_one_lwp): Reimplement as wrapper around
11062 linux_resume_one_lwp_throw that swallows errors if the LWP is
11063 gone.
11064
91baf43f
PA
110652015-03-19 Pedro Alves <palves@redhat.com>
11066
11067 * linux-low.c (count_events_callback, select_event_lwp_callback):
11068 No longer check whether the thread has resume_stop as last resume
11069 kind.
11070
8bf3b159
PA
110712015-03-19 Pedro Alves <palves@redhat.com>
11072
11073 * linux-low.c (count_events_callback, select_event_lwp_callback):
11074 Use the lwp's status_pending_p field, not the thread's.
11075
b90fc188
PA
110762015-03-19 Pedro Alves <palves@redhat.com>
11077
11078 * linux-low.c (select_event_lwp_callback): Update comments to
11079 no longer mention SIGTRAP.
11080
464b0089
GB
110812015-03-18 Gary Benson <gbenson@redhat.com>
11082
11083 * server.c (handle_query): Do not report vFile:fstat as supported.
11084
aa9e327f
GB
110852015-03-11 Gary Benson <gbenson@redhat.com>
11086
11087 * hostio.c (sys/types.h): New include.
11088 (sys/stat.h): Likewise.
11089 (common-remote-fileio.h): Likewise.
11090 (handle_fstat): New function.
11091 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11092
791c0056
GB
110932015-03-11 Gary Benson <gbenson@redhat.com>
11094
11095 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11096 struct stat.st_blocks and struct stat.st_blksize.
11097 * configure: Regenerate.
11098 * config.in: Likewise.
11099 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11100 (OBS): Add common-remote-fileio.o.
11101 (common-remote-fileio.o): New rule.
11102
9a9df970
PA
111032015-03-09 Pedro Alves <palves@redhat.com>
11104
11105 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11106 'struct sockaddr' pointer in 'accept' call.
11107
9eb1356e
PA
111082015-03-09 Pedro Alves <palves@redhat.com>
11109
11110 Revert:
11111 2015-03-07 Pedro Alves <palves@redhat.com>
11112 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11113 or <winsock2.h> here. Instead include "gdb_socket.h".
11114 (remote_open): Use union gdb_sockaddr_u.
11115 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11116 or <winsock2.h> here. Instead include "gdb_socket.h".
11117 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11118 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11119 or <sys/un.h>.
11120 (init_named_socket, gdb_agent_helper_thread): Use union
11121 gdb_sockaddr_u.
11122
aac331e4
PA
111232015-03-07 Pedro Alves <palves@redhat.com>
11124
11125 * configure.ac (build_warnings): Move
11126 -Wdeclaration-after-statement to the C-specific set.
11127 * configure: Regenerate.
11128
366c75fc
PA
111292015-03-07 Pedro Alves <palves@redhat.com>
11130
11131 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11132 or <winsock2.h> here. Instead include "gdb_socket.h".
11133 (remote_open): Use union gdb_sockaddr_u.
11134 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11135 or <winsock2.h> here. Instead include "gdb_socket.h".
11136 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11137 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11138 or <sys/un.h>.
11139 (init_named_socket, gdb_agent_helper_thread): Use union
11140 gdb_sockaddr_u.
11141
492d29ea
PA
111422015-03-07 Pedro Alves <palves@redhat.com>
11143
11144 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11145 instead.
11146
60a191ed
YQ
111472015-03-06 Yao Qi <yao.qi@linaro.org>
11148
11149 * linux-aarch64-low.c (aarch64_insert_point): Use
11150 show_debug_regs as a boolean.
11151 (aarch64_remove_point): Likewise.
11152
f5771b1d
PA
111532015-03-05 Pedro Alves <palves@redhat.com>
11154
11155 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11156 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11157 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11158 * nto-low.c (nto_target_ops): Likewise.
11159 * spu-low.c (spu_target_ops): Likewise.
11160 * win32-low.c (win32_target_ops): Likewise.
11161
3e572f71
PA
111622015-03-04 Pedro Alves <palves@redhat.com>
11163
72f4393d 11164 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11165 Decide whether a breakpoint triggered based on the SIGTRAP's
11166 siginfo.si_code.
72f4393d
L
11167 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11168 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11169 (linux_low_filter_event): Check for breakpoints before checking
11170 watchpoints.
11171 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11172 siginfo.si_code.
72f4393d
L
11173 (linux_stopped_by_sw_breakpoint)
11174 (linux_supports_stopped_by_sw_breakpoint)
11175 (linux_stopped_by_hw_breakpoint)
11176 (linux_supports_stopped_by_hw_breakpoint): New functions.
11177 (linux_target_ops): Install new target methods.
3e572f71 11178
1ec68e26
PA
111792015-03-04 Pedro Alves <palves@redhat.com>
11180
11181 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11182 * server.c (swbreak_feature, hwbreak_feature): New globals.
11183 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11184 (captured_main): Clear swbreak_feature and hwbreak_feature.
11185 * server.h (swbreak_feature, hwbreak_feature): Declare.
11186 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11187 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11188 supports_stopped_by_hw_breakpoint>: New fields.
11189 (target_supports_stopped_by_sw_breakpoint)
11190 (target_stopped_by_sw_breakpoint)
11191 (target_supports_stopped_by_hw_breakpoint)
11192 (target_stopped_by_hw_breakpoint): Declare.
11193
15c66dd6
PA
111942015-03-04 Pedro Alves <palves@redhat.com>
11195
11196 enum lwp_stop_reason -> enum target_stop_reason
11197 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11198 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11199 (linux_wait_1, stuck_in_jump_pad_callback)
11200 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11201 (linux_stopped_by_watchpoint):
11202 * linux-low.h (enum lwp_stop_reason): Delete.
11203 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11204 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11205
98fc70d6
YQ
112062015-03-04 Yao Qi <yao.qi@linaro.org>
11207
11208 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11209
dd2ac174
GB
112102015-03-03 Gary Benson <gbenson@redhat.com>
11211
11212 * hostio.c (handle_vFile): Fix prefix lengths.
11213
d68e53f4
MM
112142015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11215
11216 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11217 ptr_bits.
11218
bf2d68ab
AA
112192015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11220
11221 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11222 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11223 (clean): Add "rm -f" for above C files.
11224 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11225 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11226 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11227 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11228 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11229 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11230 (init_registers_s390x_vx_linux64)
11231 (init_registers_s390x_tevx_linux64)
11232 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11233 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11234 declarations.
11235 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11236 (s390_store_vxrs_high): New functions.
11237 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11238 NT_S390_VXRS_HIGH.
11239 (s390_arch_setup): Add logic for selecting one of the new target
11240 descriptions. Activate the new vector regsets if applicable.
11241 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11242 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11243 and init_registers_s390x_tevx_linux64.
11244
c966a859
PA
112452015-03-01 Pedro Alves <palves@redhat.com>
11246
11247 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11248 parameter.
11249
4180215b
PA
112502015-02-27 Pedro Alves <palves@redhat.com>
11251
11252 * linux-x86-low.c (u_debugreg_offset): New function.
11253 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11254
749bab01
PA
112552015-02-27 Pedro Alves <palves@redhat.com>
11256
11257 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11258 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11259 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11260 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11261 (ps_lsetfpregs, ps_getpid)
11262 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11263 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11264 (ps_lsetxregs, ps_plog): Declare.
11265
3c14e5a3
PA
112662015-02-27 Pedro Alves <palves@redhat.com>
11267
11268 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11269 IP_AGENT_EXPORT_FUNC.
11270 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11271 IP_AGENT_EXPORT_FUNC.
11272 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11273 (IP_AGENT_EXPORT): Delete.
11274 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11275 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11276 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11277 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11278 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11279 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11280 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11281 (traceframe_read_count, traceframe_write_count)
11282 (traceframes_created, trace_state_variables, get_raw_reg)
11283 (get_trace_state_variable_value, set_trace_state_variable_value)
11284 (ust_loaded, helper_thread_id, cmd_buf): Use
11285 IPA_SYM_EXPORTED_NAME.
11286 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11287 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11288 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11289 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11290 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11291 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11292 EXTERN_C_PUSH/EXTERN_C_POP.
11293 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11294 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11295 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11296 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11297 (traceframe_write_count, traceframe_read_count)
11298 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11299 (about_to_request_buffer_space, get_trace_state_variable_value)
11300 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11301 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11302 EXTERN_C_PUSH/EXTERN_C_POP.
11303 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11304 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11305 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11306 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11307 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11308 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11309 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11310 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11311 Define.
11312 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11313 (IP_AGENT_EXPORT_VAR_DECL): Define.
11314 (tracing): Declare.
11315 (gdb_agent_get_raw_reg): Declare.
11316
fe978cb0
PA
113172015-02-27 Tom Tromey <tromey@redhat.com>
11318 Pedro Alves <palves@redhat.com>
11319
11320 Rename symbols whose names are reserved C++ keywords throughout.
11321
3bc3d82a
PA
113222015-02-27 Pedro Alves <palves@redhat.com>
11323
11324 * Makefile.in (COMPILER): New, get it from autoconf.
11325 (CXX): Get from autoconf instead.
11326 (COMPILE.pre): Use COMPILER.
11327 (CC-LD): Rename to ...
11328 (CC_LD): ... this. Use COMPILER.
11329 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11330 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11331 * acinclude.m4: Include build-with-cxx.m4.
11332 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11333 Disable -Werror by default if building in C++ mode.
11334 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11335 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11336 the C++ compiler. Save/restore CXXFLAGS too.
11337 * configure: Regenerate.
11338
07697489
PA
113392015-02-27 Pedro Alves <palves@redhat.com>
11340
11341 * acinclude.m4: Include libiberty.m4.
11342 * configure.ac: Call libiberty_INIT.
11343 * config.in, configure: Regenerate.
11344
9beb7c4e
PA
113452015-02-26 Pedro Alves <palves@redhat.com>
11346
11347 * linux-low.c (linux_wait_1): When incrementing the PC past a
11348 program breakpoint always use the_low_target.breakpoint_len as
11349 increment, rather than the maximum between that and
11350 the_low_target.decr_pc_after_break.
11351
8090aef2
PA
113522015-02-23 Pedro Alves <palves@redhat.com>
11353
11354 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11355 thread was doing a step-over; always adjust the PC if
11356 we stepped over a permanent breakpoint.
11357 (linux_wait_1): If we stepped over breakpoint that was on top of a
11358 permanent breakpoint, manually advance the PC past it.
11359
bc9540e8
PA
113602015-02-23 Pedro Alves <palves@redhat.com>
11361
11362 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11363 modes.
11364 (x86_fill_gregset, x86_store_gregset): Use it when handling
11365 $orig_eax.
11366
2db9a427
PA
113672015-02-20 Pedro Alves <palves@redhat.com>
11368
11369 * thread-db.c: Include "nat/linux-procfs.h".
11370 (thread_db_init): Skip listing new threads if the kernel supports
11371 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11372
afa8d396
PA
113732015-02-20 Pedro Alves <palves@redhat.com>
11374
11375 * linux-low.c (status_pending_p_callback): Use ptid_match.
11376
c9587f88
AT
113772015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11378
11379 PR breakpoints/16812
11380 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11381 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11382 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11383
b05ec7a5
AT
113842015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11385
11386 PR breakpoints/15956
11387 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11388
d33501a5
MM
113892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11390
11391 * linux-low.c (linux_low_btrace_conf): Print size.
11392 * server.c (handle_btrace_conf_general_set): New.
11393 (hanle_general_set): Call handle_btrace_conf_general_set.
11394 (handle_query): Report Qbtrace-conf:bts:size as supported.
11395
f4abbc16
MM
113962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11397
11398 * linux-low.c (linux_low_enable_btrace): Update parameters.
11399 (linux_low_btrace_conf): New.
11400 (linux_target_ops)<to_btrace_conf>: Initialize.
11401 * server.c (current_btrace_conf): New.
11402 (handle_btrace_enable): Rename to ...
11403 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11404 to target_enable_btrace. Update comment. Update users.
11405 (handle_qxfer_btrace_conf): New.
11406 (qxfer_packets): Add btrace-conf entry.
11407 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11408 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11409 (target_ops)<read_btrace_conf>: New.
11410 (target_enable_btrace): Update parameters.
11411 (target_read_btrace_conf): New.
11412
043c3577
MM
114132015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11414
11415 * server.c (handle_btrace_general_set): Remove call to
11416 target_supports_btrace.
11417 (supported_btrace_packets): New.
11418 (handle_query): Call supported_btrace_packets.
11419 * target.h: include btrace-common.h.
11420 (btrace_target_info): Removed.
11421 (supports_btrace, target_supports_btrace): Update parameters.
11422
734b0e4b
MM
114232015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11424
11425 * Makefile.in (SFILES): Add common/btrace-common.c.
11426 (OBS): Add common/btrace-common.o.
11427 (btrace-common.o): Add build rules.
11428 * linux-low: Include btrace-common.h.
11429 (linux_low_read_btrace): Use struct btrace_data. Call
11430 btrace_data_init and btrace_data_fini.
11431
d6c146e9
PA
114322015-02-06 Pedro Alves <palves@redhat.com>
11433
11434 * thread-db.c (find_new_threads_callback): Add debug output.
11435
20ba1ce6
PA
114362015-02-04 Pedro Alves <palves@redhat.com>
11437
11438 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11439 (resume_stopped_resumed_lwps): New function.
11440 (linux_wait_for_event_filtered): Use it.
11441
8cc73a39
SDJ
114422015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11443
11444 * Makefile.in (SFILES): Add linux-personality.c.
11445 (linux-personality.o): New rule.
11446 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11447 list of objects to be built.
11448 * linux-low.c: Include nat/linux-personality.h.
11449 (linux_create_inferior): Remove code to disable address space
11450 randomization (moved to ../nat/linux-personality.c). Create
11451 cleanup to disable address space randomization.
11452
fb23d554
SDJ
114532015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11454
11455 * Makefile.in (posix-strerror.o): New rule.
11456 (mingw-strerror.o): Likewise.
11457 * configure: Regenerated.
11458 * configure.ac: Source file ../common/common.host. Initialize new
11459 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11460
cdf43629
YQ
114612015-01-14 Yao Qi <yao@codesourcery.com>
11462
11463 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11464 (ppc-linux.o): New rule.
11465 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11466 * configure.ac: AC_CHECK_FUNCS(getauxval).
11467 * config.in: Re-generated.
11468 * configure: Re-generated.
11469 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11470 ppc64_64bit_inferior_p
11471
514c5338
YQ
114722015-01-14 Yao Qi <yao@codesourcery.com>
11473
11474 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11475 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11476 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11477 (PT_ORIG_R3, PT_TRAP): Likewise.
11478 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11479 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11480 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11481
3368c1e5
JB
114822015-01-10 Joel Brobecker <brobecker@adacore.com>
11483
11484 * i387-fp.c (i387_cache_to_xsave): In look over
11485 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11486 zmmh_low_space field by use of zmmh_high_space.
11487
582511be
PA
114882015-01-09 Pedro Alves <palves@redhat.com>
11489
11490 * linux-low.c (step_over_bkpt): Move higher up in the file.
11491 (handle_extended_wait): Don't store the stop_pc here.
11492 (get_stop_pc): Adjust comments and rename to ...
11493 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11494 stopped for a software breakpoint or hardware breakpoint.
11495 (thread_still_has_status_pending_p): New function.
11496 (status_pending_p_callback): Use
11497 thread_still_has_status_pending_p. If the event is no longer
11498 interesting, resume the LWP.
11499 (handle_tracepoints): Add assert.
11500 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11501 (wstatus_maybe_breakpoint): New function.
11502 (cancel_breakpoint): Delete function.
11503 (check_stopped_by_watchpoint): New function, factored out from
11504 linux_low_filter_event.
11505 (lp_status_maybe_breakpoint): Delete function.
11506 (linux_low_filter_event): Remove filter_ptid argument.
11507 Leave thread group exits pending here. Store the LWP's stop PC.
11508 Always leave events pending.
11509 (linux_wait_for_event_filtered): Pull all events out of the
11510 kernel, and leave them all pending.
11511 (count_events_callback, select_event_lwp_callback): Consider all
11512 events.
11513 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11514 (select_event_lwp): Only give preference to the stepping LWP in
11515 all-stop mode. Adjust comments.
11516 (ignore_event): New function.
11517 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11518 references to cancel_breakpoints. Adjust to renames. Also give
11519 equal priority to all LWPs that have had events in non-stop mode.
11520 If reporting a software breakpoint event, unadjust the LWP's PC.
11521 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11522 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11523 Adjust.
11524 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11525 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11526 (linux_stopped_by_watchpoint): Adjust.
11527 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11528 * linux-low.h (enum lwp_stop_reason): New.
11529 (struct lwp_info) <stop_pc>: Adjust comment.
11530 <stopped_by_watchpoint>: Delete field.
11531 <stop_reason>: New field.
11532 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11533 * mem-break.c (software_breakpoint_inserted_here)
11534 (hardware_breakpoint_inserted_here): New function.
11535 * mem-break.h (software_breakpoint_inserted_here)
11536 (hardware_breakpoint_inserted_here): Declare.
11537 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11538 (cancel_breakpoints): Delete.
11539 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11540 (upload_fast_traceframes): Remove references to
11541 cancel_breakpoints.
11542
a33e3959
PA
115432015-01-09 Pedro Alves <palves@redhat.com>
11544
11545 * thread-db.c (find_new_threads_callback): Ignore thread if the
11546 kernel thread ID is -1.
11547
8784d563
PA
115482015-01-09 Pedro Alves <palves@redhat.com>
11549
11550 * linux-low.c (linux_attach_fail_reason_string): Move to
11551 nat/linux-ptrace.c, and rename.
11552 (linux_attach_lwp): Update comment.
11553 (attach_proc_task_lwp_callback): New function.
11554 (linux_attach): Adjust to rename and use
11555 linux_proc_attach_tgid_threads.
11556 (linux_attach_fail_reason_string): Delete declaration.
11557
76f2b779
JB
115582015-01-01 Joel Brobecker <brobecker@adacore.com>
11559
11560 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11561 * server.c (gdbserver_version): Likewise.
11562
fafcc06a
SDJ
115632014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11564
11565 * remote-utils.c: Include ctype.h.
11566 (input_interrupt): Explicitly handle the case when the char
11567 received is the NUL byte. Improve the printing of non-ASCII
11568 characters.
11569
beed38b8
JB
115702014-12-16 Joel Brobecker <brobecker@adacore.com>
11571
11572 * linux-low.c (linux_low_filter_event): Update call to
11573 linux_enable_event_reporting following the addition of
11574 a new parameter to that function.
11575
bf330350
CU
115762014-12-16 Catalin Udma <catalin.udma@freescale.com>
11577
11578 PR server/17457
11579 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11580 (AARCH64_FPCR_REGNO): Likewise.
11581 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11582 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11583 (aarch64_store_fpregset): Likewise.
11584
5227d625
JB
115852014-12-15 Joel Brobecker <brobecker@adacore.com>
11586
11587 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11588 Remove FIXME comment about assumption about N.
11589
f93b65a0
JB
115902014-12-13 Joel Brobecker <brobecker@adacore.com>
11591
11592 * configure.ac: If large-file support is disabled in GDBserver,
11593 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11594 * configure: Regenerate.
11595
e5a9158d
AA
115962014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11597
11598 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11599 warning upon ENODATA from ptrace.
11600 * linux-s390-low.c (s390_store_tdb): New.
11601 (s390_regsets): Add regset for NT_S390_TDB.
11602
feea5f36
AA
116032014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11604
11605 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11606 without a fill_function.
11607 * linux-s390-low.c (s390_fill_last_break): Remove.
11608 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11609 (s390_arch_setup): Use regset's size instead of fill_function for
11610 loop end condition.
11611
098dbe61
AA
116122014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11613
11614 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11615 the regset's store function when ptrace returned an error.
11616 * regcache.c (get_thread_regcache): Invalidate register cache
11617 before fetching inferior's registers.
11618
28eef672
AA
116192014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11620
11621 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11622 while-loop as for-loop.
11623 (regsets_store_inferior_registers): Likewise.
11624
bdca27a2
YQ
116252014-11-28 Yao Qi <yao@codesourcery.com>
11626
11627 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11628 * config.in, configure: Re-generate.
11629 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11630 is defined.
11631
9c232dda
YQ
116322014-11-21 Yao Qi <yao@codesourcery.com>
11633
11634 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11635 (AC_CHECK_HEADERS): Remove malloc.h.
11636 * configure: Re-generated.
11637 * config.in: Re-generated.
11638 * server.h: Don't include alloca.h and malloc.h.
11639 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11640 Don't include malloc.h.
11641
43968415
JB
116422014-11-17 Joel Brobecker <brobecker@adacore.com>
11643
11644 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11645 corresponding ERRNO check in same block.
11646
40e91bc7
PA
116472014-11-12 Pedro Alves <palves@redhat.com>
11648
11649 * server.c (cont_thread): Update comment.
11650 (start_inferior, attach_inferior): No longer clear cont_thread.
11651 (handle_v_cont): No longer set cont_thread.
11652 (captured_main): Clear cont_thread each time a GDB connects.
11653
c2c118cf
PA
116542014-11-12 Pedro Alves <palves@redhat.com>
11655
11656 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11657 thread, and don't resume all threads if the Hc thread has exited.
11658
78708b7c
PA
116592014-11-12 Pedro Alves <palves@redhat.com>
11660
11661 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11662 the process group instead of to a specific LWP.
11663
a2abc7de
PA
116642014-10-15 Pedro Alves <palves@redhat.com>
11665
11666 PR server/17487
11667 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11668 parameter.
11669 (arm_set_thread_context): Delete.
11670 (the_low_target): Adjust.
11671 * win32-i386-low.c (debug_registers_changed)
11672 (debug_registers_used): Delete.
11673 (update_debug_registers_callback): New function.
11674 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11675 needing to update their debug registers.
11676 (win32_get_current_dr): New function.
11677 (x86_dr_low_get_addr, x86_dr_low_get_control)
11678 (x86_dr_low_get_status): Fetch the debug register from the thread
11679 record's context.
11680 (i386_initial_stuff): Adjust.
11681 (i386_get_thread_context): Remove current_event parameter. Don't
11682 clear debug_registers_changed nor copy DR values to
11683 debug_reg_state.
11684 (i386_set_thread_context): Delete.
11685 (i386_prepare_to_resume): New function.
11686 (i386_thread_added): Mark the thread as needing to update irs
11687 debug registers.
11688 (the_low_target): Remove i386_set_thread_context and install
11689 i386_prepare_to_resume.
11690 * win32-low.c (win32_get_thread_context): Adjust.
11691 (win32_set_thread_context): Use SetThreadContext
11692 directly.
11693 (win32_prepare_to_resume): New function.
11694 (win32_require_context): New function, factored out from ...
11695 (thread_rec): ... this.
11696 (continue_one_thread): Call win32_prepare_to_resume on each thread
11697 we're about to continue.
11698 (win32_resume): Call win32_prepare_to_resume on the event thread.
11699 * win32-low.h (struct win32_thread_info)
11700 <debug_registers_changed>: New field.
11701 (struct win32_target_ops): Change prototype of set_thread_context,
11702 delete set_thread_context and add prepare_to_resume.
11703 (win32_require_context): New declaration.
11704
a442d071
GB
117052014-10-08 Gary Benson <gbenson@redhat.com>
11706
11707 * server.h: Do not include common-exceptions.h.
11708
6f1947e8
GB
117092014-10-08 Gary Benson <gbenson@redhat.com>
11710
11711 * server.h: Do not include cleanups.h.
11712
63b434a4
JH
117132014-09-30 James Hogan <james.hogan@imgtec.com>
11714
11715 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11716 mips64-dsp-linux.c.
11717
c4d9ceb6
YQ
117182014-09-23 Yao Qi <yao@codesourcery.com>
11719
11720 * linux-low.c (lp_status_maybe_breakpoint): New function.
11721 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11722 (count_events_callback): Likewise.
11723 (select_event_lwp_callback): Likewise.
11724 (cancel_breakpoints_callback): Likewise.
11725
89a5711c
DB
117262014-09-19 Don Breazeal <donb@codesourcery.com>
11727
11728 * linux-low.c (handle_extended_wait): Call
11729 linux_ptrace_get_extended_event.
11730 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11731 linux_is_extended_waitstatus.
11732
bffc0964
JB
117332014-09-16 Joel Brobecker <brobecker@adacore.com>
11734
11735 * Makefile.in (CPPFLAGS): Define.
11736 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11737 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11738
0bfdf32f
GB
117392014-09-16 Gary Benson <gbenson@redhat.com>
11740
11741 * inferiors.h (current_inferior): Renamed as...
11742 (current_thread): New variable. All uses updated.
11743 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11744 (maybe_move_out_of_jump_pad): Likewise.
11745 (cancel_breakpoint): Likewise.
11746 (linux_low_filter_event): Likewise.
11747 (wait_for_sigstop): Likewise.
11748 (linux_resume_one_lwp): Likewise.
11749 (need_step_over_p): Likewise.
11750 (start_step_over): Likewise.
11751 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11752 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11753 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11754 and save_inferior as saved_thread.
11755 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11756 saved_thread.
11757 (regcache_invalidate_thread): Likewise.
11758 * remote-utils.c (prepare_resume_reply): Likewise.
11759 * thread-db.c (thread_db_get_tls_address): Likewise.
11760 (disable_thread_event_reporting): Likewise.
11761 (remove_thread_event_breakpoints): Likewise.
11762 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11763 as saved_thread.
11764 * target.h (set_desired_inferior): Renamed as...
11765 (set_desired_thread): New declaration. All uses updated.
11766 * server.c (myresume): Updated comment to reference thread instead
11767 of inferior.
11768 (handle_serial_event): Likewise.
11769 (handle_target_event): Likewise.
11770
361c8ade
GB
117712014-09-12 Tom Tromey <tromey@redhat.com>
11772 Gary Benson <gbenson@redhat.com>
11773
11774 * regcache.h: Include common-regcache.h.
11775 (regcache_read_pc): Don't declare.
11776 * regcache.c (get_thread_regcache_for_ptid): New function.
11777
bd9269f7
GB
117782014-09-11 Tom Tromey <tromey@redhat.com>
11779 Gary Benson <gbenson@redhat.com>
11780
11781 * symbol.c: New file.
11782 * Makefile.in (SFILES): Add symbol.c.
11783 (OBS): Add symbol.o.
11784
f8c1d06b
GB
117852014-09-11 Gary Benson <gbenson@redhat.com>
11786
11787 * target.c (target_stop_ptid, target_continue_ptid): New
11788 functions.
11789
721ec300
GB
117902014-09-11 Tom Tromey <tromey@redhat.com>
11791 Gary Benson <gbenson@redhat.com>
11792
11793 * target.h: Include target/target.h.
11794 * target.c (target_read_memory, target_read_uint32)
11795 (target_write_memory): New functions.
11796
c5e92cca
GB
117972014-09-11 Gary Benson <gbenson@redhat.com>
11798
11799 * server.h (debug_hw_points): Don't declare.
11800 * server.c (debug_hw_points): Don't define. Replace all uses
11801 with show_debug_regs.
11802 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11803 all uses with show_debug_regs.
11804
2e4bb98a
EBM
118052014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11806
11807 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11808 endianness into account.
11809 (ppc_supply_ptrace_register): Likewise.
11810
ac740bc7
JH
118112014-09-03 James Hogan <james.hogan@imgtec.com>
11812
11813 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11814 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11815
97ea6506
GB
118162014-09-03 Gary Benson <gbenson@redhat.com>
11817
11818 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11819 ALL_DEBUG_ADDRESS_REGISTERS.
11820
df7e5265
GB
118212014-09-02 Gary Benson <gbenson@redhat.com>
11822
11823 * i386-low.h: Renamed as...
11824 * x86-low.h: New file. All type, function and variable name
11825 prefixes changed from "i386_" to "x86_". All references updated.
11826 * i386-low.c: Renamed as...
11827 * x86-low.c: New file. All type, function and variable name
11828 prefixes changed from "i386_" to "x86_". All references updated.
11829
ed859da7
GB
118302014-09-02 Gary Benson <gbenson@redhat.com>
11831
11832 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11833 (x86_linux_new_thread): Likewise.
11834
860789c7
GB
118352014-08-29 Gary Benson <gbenson@redhat.com>
11836
11837 * server.h (setjmp.h): Do not include.
11838 (toplevel): Do not declare.
11839 (common-exceptions.h): Include.
11840 (cleanups.h): Likewise.
11841 * server.c (toplevel): Do not define.
11842 (exit_code): New static global.
11843 (detach_or_kill_for_exit_cleanup): New function.
11844 (main): New function. Original main renamed to...
11845 (captured_main): New function.
11846 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11847
ff55e1b5
GB
118482014-08-29 Gary Benson <gbenson@redhat.com>
11849
11850 * Makefile.in (SFILES): Add common/common-exceptions.c.
11851 (OBS): Add common-exceptions.o.
11852 (common-exceptions.o): New rule.
11853 * utils.c (prepare_to_throw_exception): New function.
11854
e9bcb658
GB
118552014-08-29 Gary Benson <gbenson@redhat.com>
11856
11857 * config.in: Regenerate.
11858 * configure: Likewise.
11859
e3180625
GB
118602014-08-29 Gary Benson <gbenson@redhat.com>
11861
11862 * Makefile.in (SFILES): Add common/cleanups.c.
11863 (OBS): cleanups.o.
11864 (cleanups.o): New rule.
11865
e3d6ba5d
GB
118662014-08-29 Gary Benson <gbenson@redhat.com>
11867
11868 * utils.c (internal_vwarning): New function.
11869
7096e886
GB
118702014-08-28 Gary Benson <gbenson@redhat.com>
11871
11872 * utils.h (fatal): Remove declaration.
11873 * utils.c (fatal): Remove function.
11874
14ce3192
GB
118752014-08-28 Gary Benson <gbenson@redhat.com>
11876
11877 * tracepoint.c (gdb_agent_init): Replace fatal with
11878 perror_with_name.
11879 (initialize_tracepoint): Likewise.
11880
50278d59
GB
118812014-08-28 Gary Benson <gbenson@redhat.com>
11882
11883 * remote-utils.c (remote_prepare): Replace fatal with error.
11884
aa96c426
GB
118852014-08-28 Gary Benson <gbenson@redhat.com>
11886
11887 * linux-low.c (linux_async): Replace fatal with warning.
11888 Tidy up and return.
11889 (linux_start_non_stop): Return -1 if linux_async failed.
11890
f7160e97
GB
118912014-08-28 Gary Benson <gbenson@redhat.com>
11892
11893 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11894 gdb_assert.
11895 (i386_dr_low_get_addr): Remove vague comment.
11896 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11897 gdb_assert.
11898
38e08fca
GB
118992014-08-28 Gary Benson <gbenson@redhat.com>
11900
11901 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11902 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11903 internal_error.
11904 (linux_resume_one_lwp): Likewise.
11905 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11906 gdb_assert.
11907 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11908 with internal_error.
11909 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11910 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11911 (find_register_by_name): Replace fatal with internal_error.
11912 (find_regno): Likewise.
11913 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11914 * thread-db.c (thread_db_create_event): Likewise.
11915 (thread_db_load_search): Likewise.
11916 (try_thread_db_load_1): Likewise.
11917 * tracepoint.c (get_jump_space_head): Replace fatal with
11918 internal_error.
11919 (claim_trampoline_space): Likewise.
11920 (have_fast_tracepoint_trampoline_buffer): Likewise.
11921 (cmd_qtstart): Likewise.
11922 (stop_tracing): Likewise.
11923 (fast_tracepoint_collecting): Likewise.
11924 (target_malloc): Likewise.
11925 (download_tracepoint): Likewise.
11926 (download_trace_state_variables): Replace check with gdb_assert.
11927 (upload_fast_traceframes): Replace fatal with internal_error.
11928
34abf635
GB
119292014-08-19 Tom Tromey <tromey@redhat.com>
11930 Gary Benson <gbenson@redhat.com>
11931
11932 * Makefile.in (SFILES): Add common/common-debug.c.
11933 (OBS): Add common-debug.o.
11934 (common-debug.o): New rule.
11935 * debug.h (debug_printf): Don't declare.
11936 * debug.c (debug_printf): Renamed and rewritten as...
11937 (debug_vprintf): New function.
11938
f6e94d78
GB
119392014-08-19 Gary Benson <gbenson@redhat.com>
11940
11941 * utils.h: Do not include print-utils.h.
11942
9239eeab
GB
119432014-08-19 Tom Tromey <tromey@redhat.com>
11944 Gary Benson <gbenson@redhat.com>
11945
11946 * server.h: Add static assertion.
11947 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11948
ef87c8bb
GB
119492014-08-19 Tom Tromey <tromey@redhat.com>
11950 Gary Benson <gbenson@redhat.com>
11951
11952 * Makefile.in (SFILES): Add common/errors.c.
11953 (OBS): Add errors.o.
11954 (IPA_OBS): Add errors-ipa.o.
11955 (errors.o): New rule.
11956 (errors-ipa.o): Likewise.
11957 * utils.h (perror_with_name, error, warning): Don't declare.
11958 * utils.c (warning): Renamed and rewritten as...
11959 (vwarning): New function.
11960 (error): Renamed and rewritten as...
11961 (verror): New function.
11962 (internal_error): Renamed and rewritten as...
11963 (internal_verror): New function.
11964
bb974a24
GB
119652014-08-07 Gary Benson <gbenson@redhat.com>
11966
11967 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11968 * configure: Regenerate.
11969 * config.in: Likewise.
11970 * server.h: Do not include errno.h.
11971 * event-loop.c: Likewise.
11972 * hostio-errno.c: Likewise.
11973 * linux-low.c: Likewise.
11974 * remote-utils.c: Likewise.
11975 * spu-low.c: Likewise.
11976 * utils.c: Likewise.
11977 * gdbreplay.c: Unconditionally include errno.h.
11978
6d3d12eb
GB
119792014-08-07 Gary Benson <gbenson@redhat.com>
11980
11981 * server.h: Do not include string.h.
11982 * event-loop.c: Likewise.
11983 * linux-low.c: Likewise.
11984 * regcache.c: Likewise.
11985 * remote-utils.c: Likewise.
11986 * spu-low.c: Likewise.
11987 * utils.c: Likewise.
11988
dccbb609
GB
119892014-08-07 Gary Benson <gbenson@redhat.com>
11990
11991 * server.h: Do not include gdb_assert.h.
11992
e76df0d0
GB
119932014-08-07 Gary Benson <gbenson@redhat.com>
11994
11995 * server.h: Do not include common-utils.h.
11996
4cb9c816
GB
119972014-08-07 Gary Benson <gbenson@redhat.com>
11998
11999 * server.h: Do not include ptid.h.
12000 * notif.h: Likewise.
12001
3995eeee
GB
120022014-08-07 Gary Benson <gbenson@redhat.com>
12003
12004 * server.h: Do not include gdb_locale.h.
12005
cb9f1a9b
GB
120062014-08-07 Gary Benson <gbenson@redhat.com>
12007
12008 * server.h: Do not include gdb/signals.h.
12009 * win32-low.c: Likewise.
12010
a5fceff8
GB
120112014-08-07 Gary Benson <gbenson@redhat.com>
12012
12013 * server.h: Do not include pathmax.h.
12014
b9391142
GB
120152014-08-07 Gary Benson <gbenson@redhat.com>
12016
12017 * server.h: Do not include libiberty.h.
12018 * linux-bfin-low.c: Likewise.
12019
0e443c87
GB
120202014-08-07 Gary Benson <gbenson@redhat.com>
12021
12022 * server.h: Do not include ansidecl.h.
12023
8ebb3f56
GB
120242014-08-07 Gary Benson <gbenson@redhat.com>
12025
12026 * linux-x86-low.c: Do not include stddef.h.
12027 * lynx-ppc-low.c: Likewise.
12028 * tracepoint.c: Likewise.
12029
8980bdf6
GB
120302014-08-07 Gary Benson <gbenson@redhat.com>
12031
12032 * server.h: Do not include stdarg.h.
12033 * nto-low.c: Likewise.
12034
d7096f71
GB
120352014-08-07 Gary Benson <gbenson@redhat.com>
12036
12037 * server.h: Do not include stdlib.h.
12038 * inferiors.c: Likewise.
12039 * linux-low.c: Likewise.
12040 * regcache.c: Likewise.
12041 * spu-low.c: Likewise.
12042 * tracepoint.c: Likewise.
12043 * utils.c: Likewise.
12044
d02f550d
GB
120452014-08-07 Gary Benson <gbenson@redhat.com>
12046
12047 * server.h: Do not include stdio.h.
12048 * linux-low.c: Likewise.
12049 * remote-utils.c: Likewise.
12050 * spu-low.c: Likewise.
12051 * utils.c: Likewise.
12052 * wincecompat.c: Likewise.
12053
87f6c4e3
GB
120542014-08-06 Gary Benson <gbenson@redhat.com>
12055
12056 * regcache.c (init_register_cache): Move conditionals inside if.
12057
7089dca4
GB
120582014-08-06 Gary Benson <gbenson@redhat.com>
12059
12060 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12061
462f517e
GB
120622014-07-31 Gary Benson <gbenson@redhat.com>
12063
12064 * ax.h: Do not include server.h.
12065 * gdbthread.h: Likewise.
12066 * lynx-low.h: Likewise.
12067 * notif.h: Likewise.
12068
976411d6
GB
120692014-07-30 Gary Benson <gbenson@redhat.com>
12070
12071 * server.h: Include common-defs.h.
12072 Do not include config.h or build-gnulib-gdbserver/config.h.
12073
d41f6d8e
GB
120742014-07-30 Gary Benson <gbenson@redhat.com>
12075
12076 * hostio-errno.c: Move server.h to top of includes list.
12077 * inferiors.c: Likewise.
12078 * linux-x86-low.c: Likewise.
12079 * notif.c: Include server.h.
12080
314c6a35
TT
120812014-07-24 Tom Tromey <tromey@redhat.com>
12082 Gary Benson <gbenson@redhat.com>
12083
12084 * server.h (CORE_ADDR): Now unsigned.
12085
69ff6be5
PA
120862014-07-16 Pedro Alves <palves@redhat.com>
12087
12088 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12089
ce9e3fe7
PA
120902014-07-15 Pedro Alves <palves@redhat.com>
12091
12092 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12093 copy.
12094
e76126e8
PA
120952014-07-11 Pedro Alves <palves@redhat.com>
12096
12097 * linux-low.c (kill_wait_lwp): New function, based on
12098 kill_one_lwp_callback, but use my_waitpid directly.
12099 (kill_one_lwp_callback, linux_kill): Use it.
12100
8e9db26e
PA
121012014-06-23 Pedro Alves <palves@redhat.com>
12102
12103 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12104 before setting DR0..DR3.
12105
698b3e08
GB
121062014-06-20 Gary Benson <gbenson@redhat.com>
12107
12108 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12109 * configure: Regenerated.
12110 * config.in: Likewise.
12111
125f8a3d
GB
121122014-06-20 Gary Benson <gbenson@redhat.com>
12113
12114 * Makefile.in (SFILES): Update locations for files moved
12115 from common to nat.
12116 (object file files): Reordered.
12117
42995dbd
GB
121182014-06-20 Gary Benson <gbenson@redhat.com>
12119
12120 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12121 (i386_dr_low_set_addr): Likewise.
12122 (i386_dr_low_get_addr): Likewise.
12123 (i386_dr_low_can_set_control): Likewise.
12124 (i386_dr_low_set_control): Likewise.
12125 (i386_dr_low_get_control): Likewise.
12126 (i386_dr_low_get_status): Likewise.
12127 (i386_get_debug_register_length): Likewise.
12128 * linux-x86-low.c (i386_dr_low_set_addr):
12129 Changed signature. Made static.
12130 (i386_dr_low_get_addr): Likewise.
12131 (i386_dr_low_set_control): Likewise.
12132 (i386_dr_low_get_control): Likewise.
12133 (i386_dr_low_get_status): Likewise.
12134 (i386_dr_low): New global variable.
12135 * win32-i386-low.c (i386_dr_low_set_addr):
12136 Changed signature. Made static.
12137 (i386_dr_low_get_addr): Likewise.
12138 (i386_dr_low_set_control): Likewise.
12139 (i386_dr_low_get_control): Likewise.
12140 (i386_dr_low_get_status): Likewise.
12141 (i386_dr_low): New global variable.
12142
e1d2394b
MS
121432014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12144
12145 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12146 * Makefile.in (AR, AR_FLAGS): Define.
12147 * configure: Regenerate.
12148
3a8ee006
GB
121492014-06-19 Gary Benson <gbenson@redhat.com>
12150
12151 * Makefile.in (i386-dregs.o): New rule.
12152 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12153 * i386-low.c (target.h): Remove include.
12154 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12155 (DR_CONTROL_SHIFT): Likewise.
12156 (DR_CONTROL_SIZE): Likewise.
12157 (DR_RW_EXECUTE): Likewise.
12158 (DR_RW_WRITE): Likewise.
12159 (DR_RW_READ): Likewise.
12160 (DR_RW_IORW): Likewise.
12161 (DR_LEN_1): Likewise.
12162 (DR_LEN_2): Likewise.
12163 (DR_LEN_4): Likewise.
12164 (DR_LEN_8): Likewise.
12165 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12166 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12167 (DR_ENABLE_SIZE): Likewise.
12168 (DR_LOCAL_SLOWDOWN): Likewise.
12169 (DR_GLOBAL_SLOWDOWN): Likewise.
12170 (DR_CONTROL_RESERVED): Likewise.
12171 (I386_DR_CONTROL_MASK): Likewise.
12172 (I386_DR_VACANT): Likewise.
12173 (I386_DR_LOCAL_ENABLE): Likewise.
12174 (I386_DR_GLOBAL_ENABLE): Likewise.
12175 (I386_DR_DISABLE): Likewise.
12176 (I386_DR_SET_RW_LEN): Likewise.
12177 (I386_DR_GET_RW_LEN): Likewise.
12178 (I386_DR_WATCH_HIT): Likewise.
12179 (i386_wp_op_t): Likewise.
12180 (i386_show_dr): Likewise.
12181 (i386_length_and_rw_bits): Likewise.
12182 (i386_insert_aligned_watchpoint): Likewise.
12183 (i386_remove_aligned_watchpoint): Likewise.
12184 (i386_handle_nonaligned_watchpoint): Likewise.
12185 i386_update_inferior_debug_regs(): Likewise.
12186 (i386_dr_insert_watchpoint): Likewise.
12187 (i386_dr_remove_watchpoint): Likewise.
12188 (i386_dr_region_ok_for_watchpoint): Likewise.
12189 (i386_dr_stopped_data_address): Likewise.
12190 (i386_dr_stopped_by_watchpoint): Likewise.
12191
8f26655c
GB
121922014-06-19 Gary Benson <gbenson@redhat.com>
12193
12194 * i386-low.c (i386_dr_show): Renamed to
12195 i386_show_dr and made static. All uses updated.
12196 (i386_dr_length_and_rw_bits): Renamed to
12197 i386_length_and_rw_bits and made static.
12198 All uses updated.
12199 (i386_dr_insert_aligned_watchpoint): Renamed to
12200 i386_insert_aligned_watchpoint and made static.
12201 All uses updated.
12202 (i386_dr_remove_aligned_watchpoint): Renamed to
12203 i386_remove_aligned_watchpoint and made static.
12204 All uses updated.
12205 (i386_dr_update_inferior_debug_regs): Renamed to
12206 i386_update_inferior_debug_regs and made static.
12207 All uses updated.
12208
b9228891
GB
122092014-06-18 Gary Benson <gbenson@redhat.com>
12210
5171def3
GB
12211 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12212 (i386_dr_low_can_set_control): Likewise.
12213 (i386_get_debug_register_length): Likewise.
12214 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12215 (i386_dr_low_can_set_control): Likewise.
12216 (i386_get_debug_register_length): Likewise.
12217
122182014-06-17 Gary Benson <gbenson@redhat.com>
12219
b9228891
GB
12220 * i386-low.h (i386-dregs.h): New include.
12221 (DR_FIRSTADDR): Now in i386-dregs.h.
12222 (DR_LASTADDR): Likewise.
12223 (DR_NADDR): Likewise.
12224 (DR_STATUS): Likewise.
12225 (DR_CONTROL): Likewise.
12226 (i386_debug_reg_state): Likewise.
12227 (i386_dr_insert_watchpoint): Likewise.
12228 (i386_dr_remove_watchpoint): Likewise.
12229 (i386_dr_region_ok_for_watchpoint): Likewise.
12230 (i386_dr_stopped_data_address): Likewise.
12231 (i386_dr_stopped_by_watchpoint): Likewise.
12232 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12233
4be83cc2
GB
122342014-06-18 Gary Benson <gbenson@redhat.com>
12235
12236 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12237 i386_dr_insert_watchpoint.
12238 (i386_low_remove_watchpoint): Renamed to
12239 i386_dr_remove_watchpoint.
12240 (i386_low_region_ok_for_watchpoint): Renamed to
12241 i386_dr_region_ok_for_watchpoint.
12242 (i386_low_stopped_data_address): Renamed to
12243 i386_dr_stopped_data_address.
12244 (i386_low_stopped_by_watchpoint): Renamed to
12245 i386_dr_stopped_by_watchpoint.
12246 * i386-low.c (i386_show_dr): Renamed to
12247 i386_dr_show and made nonstatic. All uses updated.
12248 (i386_length_and_rw_bits): Renamed to
12249 i386_dr_length_and_rw_bits and made nonstatic.
12250 All uses updated.
12251 (i386_insert_aligned_watchpoint): Renamed to
12252 i386_dr_insert_aligned_watchpoint and made nonstatic.
12253 All uses updated.
12254 (i386_remove_aligned_watchpoint): Renamed to
12255 i386_dr_remove_aligned_watchpoint and made nonstatic.
12256 All uses updated.
12257 (i386_update_inferior_debug_regs): Renamed to
12258 i386_dr_update_inferior_debug_regs and made nonstatic.
12259 All uses updated.
12260 (i386_low_insert_watchpoint): Renamed to
12261 i386_dr_insert_watchpoint. All uses updated.
12262 (i386_low_remove_watchpoint): Renamed to
12263 i386_dr_remove_watchpoint. All uses updated.
12264 (i386_low_region_ok_for_watchpoint): Renamed to
12265 i386_dr_region_ok_for_watchpoint. All uses updated.
12266 (i386_low_stopped_data_address): Renamed to
12267 i386_dr_stopped_data_address. All uses updated.
12268 (i386_low_stopped_by_watchpoint): Renamed to
12269 i386_dr_stopped_by_watchpoint. All uses updated.
12270
131aa0d4
GB
122712014-06-18 Gary Benson <gbenson@redhat.com>
12272
12273 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12274 (i386_dr_low_can_set_control): Likewise.
12275 (i386_insert_aligned_watchpoint): New check.
12276
d9305f7f
GB
122772014-06-18 Gary Benson <gbenson@redhat.com>
12278
12279 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12280 Renamed to state.
12281
e927c9fc
GB
122822014-06-18 Gary Benson <gbenson@redhat.com>
12283
12284 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12285 instead of fatal and error.
12286 (i386_handle_nonaligned_watchpoint): Likewise.
12287
1b6d4134
GB
122882014-06-18 Gary Benson <gbenson@redhat.com>
12289
12290 * i386-low.c (i386_get_debug_register_length): New macro.
12291 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12292 (i386_show_dr): Use debug_printf instead of fprintf. Use
12293 phex to format values.
12294
6e62758f
GB
122952014-06-18 Gary Benson <gbenson@redhat.com>
12296
12297 * i386-low.h: Comment changes.
12298 * i386-low.c: Likewise.
12299
fc6e2f03
GB
123002014-06-18 Gary Benson <gbenson@redhat.com>
12301
12302 * i386-low.c: Whitespace changes.
12303
f9d1eeed
TT
123042014-06-12 Tom Tromey <tromey@redhat.com>
12305
12306 * utils.c (freeargv): Remove.
12307
0b04e523
TT
123082014-06-12 Tom Tromey <tromey@redhat.com>
12309
12310 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12311 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12312 (parse_debug_format_options): Likewise.
12313 (gdbserver_usage): Likewise.
12314 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12315 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12316 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12317 against libiberty.
12318 ($(LIBGNU)): Depend on libiberty.
12319 (all-lib): Recurse into all subdirs.
12320 (install-only): Invoke "install" target in subdirs.
12321 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12322 targets.
12323 * configure: Rebuild.
12324 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12325 for vasprintf, vsnprintf, or gettimeofday.
12326 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12327 srv_tgtobj.
12328
270c9937
JB
123292014-06-05 Joel Brobecker <brobecker@adacore.com>
12330
12331 * development.sh: Delete.
12332 * Makefile.in (config.status): Adjust dependency on development.sh.
12333 * configure.ac: Adjust development.sh source call.
12334 * configure: Regenerate.
12335
0a261ed8
PA
123362014-06-02 Pedro Alves <palves@redhat.com>
12337
12338 * ax.c (gdb_free_agent_expr): New function.
12339 * ax.h (gdb_free_agent_expr): New declaration.
12340 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12341 list.
12342 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12343 static.
12344 (clear_breakpoint_conditions_and_commands): New function.
12345 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12346 (clear_breakpoint_conditions_and_commands): New declaration.
12347
e9dae05e
RR
123482014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12349
12350 * linux-aarch64-low.c (asm/ptrace.h): Include.
12351
5876f503
JK
123522014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12353
12354 Fix TLS access for -static -pthread.
12355 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12356 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12357 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12358
802e8e6d
PA
123592014-05-20 Pedro Alves <palves@redhat.com>
12360
12361 * linux-aarch64-low.c (aarch64_insert_point)
12362 (aarch64_remove_point): No longer check whether the type is
12363 supported here. Adjust to new interface.
12364 (the_low_target): Install aarch64_supports_z_point_type as
12365 supports_z_point_type method.
12366 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12367 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12368 instead of a Z packet char. Adjust.
12369 (arm_supports_z_point_type): New function.
12370 (arm_insert_point, arm_remove_point): Adjust to new interface.
12371 (the_low_target): Install arm_supports_z_point_type.
12372 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12373 (cris_insert_point, cris_remove_point): Adjust to new interface.
12374 Don't check whether the type is supported here.
12375 (the_low_target): Install cris_supports_z_point_type.
12376 * linux-low.c (linux_supports_z_point_type): New function.
12377 (linux_insert_point, linux_remove_point): Adjust to new interface.
12378 * linux-low.h (struct linux_target_ops) <insert_point,
12379 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12380 raw_breakpoint pointer parameter.
12381 <supports_z_point_type>: New method.
12382 * linux-mips-low.c (mips_supports_z_point_type): New function.
12383 (mips_insert_point, mips_remove_point): Adjust to new interface.
12384 Use mips_supports_z_point_type.
12385 (the_low_target): Install mips_supports_z_point_type.
12386 * linux-ppc-low.c (the_low_target): Install NULL as
12387 supports_z_point_type method.
12388 * linux-s390-low.c (the_low_target): Install NULL as
12389 supports_z_point_type method.
12390 * linux-sparc-low.c (the_low_target): Install NULL as
12391 supports_z_point_type method.
12392 * linux-x86-low.c (x86_supports_z_point_type): New function.
12393 (x86_insert_point): Adjust to new insert_point interface. Use
12394 insert_memory_breakpoint. Adjust to new
12395 i386_low_insert_watchpoint interface.
12396 (x86_remove_point): Adjust to remove_point interface. Use
12397 remove_memory_breakpoint. Adjust to new
12398 i386_low_remove_watchpoint interface.
12399 (the_low_target): Install x86_supports_z_point_type.
12400 * lynx-low.c (lynx_target_ops): Install NULL as
12401 supports_z_point_type callback.
12402 * nto-low.c (nto_supports_z_point_type): New.
12403 (nto_insert_point, nto_remove_point): Adjust to new interface.
12404 (nto_target_ops): Install nto_supports_z_point_type.
12405 * mem-break.c: Adjust intro comment.
12406 (struct raw_breakpoint) <raw_type, size>: New fields.
12407 <inserted>: Update comment.
12408 <shlib_disabled>: Delete field.
12409 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12410 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12411 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12412 (raw_bkpt_type_to_target_hw_bp_type): New function.
12413 (find_enabled_raw_code_breakpoint_at): New function.
12414 (find_raw_breakpoint_at): New type and size parameters. Use them.
12415 (insert_memory_breakpoint): New function, based off
12416 set_raw_breakpoint_at.
12417 (remove_memory_breakpoint): New function.
12418 (set_raw_breakpoint_at): Reimplement.
12419 (set_breakpoint): New, based on set_breakpoint_at.
12420 (set_breakpoint_at): Reimplement.
12421 (delete_raw_breakpoint): Go through the_target->remove_point
12422 instead of assuming memory breakpoints.
12423 (find_gdb_breakpoint_at): Delete.
12424 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12425 (find_gdb_breakpoint): New function.
12426 (set_gdb_breakpoint_at): Delete.
12427 (z_type_supported): New function.
12428 (set_gdb_breakpoint_1): New function, loosely based off
12429 set_gdb_breakpoint_at.
12430 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12431 (delete_gdb_breakpoint_at): Delete.
12432 (delete_gdb_breakpoint_1): New function, loosely based off
12433 delete_gdb_breakpoint_at.
12434 (delete_gdb_breakpoint): New function.
12435 (clear_gdb_breakpoint_conditions): Rename to ...
12436 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12437 breakpoint.
12438 (add_condition_to_breakpoint): Make static.
12439 (add_breakpoint_condition): Take a struct breakpoint pointer
12440 instead of an address. Adjust.
12441 (gdb_condition_true_at_breakpoint): Rename to ...
12442 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12443 z_type parameter.
12444 (gdb_condition_true_at_breakpoint): Reimplement.
12445 (add_breakpoint_commands): Take a struct breakpoint pointer
12446 instead of an address. Adjust.
12447 (gdb_no_commands_at_breakpoint): Rename to ...
12448 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12449 parameter. Return true if no breakpoint was found. Change debug
12450 output.
12451 (gdb_no_commands_at_breakpoint): Reimplement.
12452 (run_breakpoint_commands): Rename to ...
12453 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12454 and change return type to boolean.
12455 (run_breakpoint_commands): New function.
12456 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12457 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12458 breakpoint. Go through the_target->remove_point instead of
12459 assuming memory breakpoint.
12460 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12461 software and hardware breakpoints.
12462 (reinsert_raw_breakpoint): Go through the_target->insert_point
12463 instead of assuming memory breakpoint.
12464 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12465 software and hardware breakpoints.
12466 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12467 Check both software and hardware breakpoints.
12468 (validate_inserted_breakpoint): Assert the breakpoint is a
12469 software breakpoint. Set the inserted flag to -1 instead of
12470 setting shlib_disabled.
12471 (delete_disabled_breakpoints): Adjust.
12472 (validate_breakpoints): Only validate software breakpoints.
12473 Adjust to inserted flag change.
12474 (check_mem_read, check_mem_write): Skip breakpoint types other
12475 than software breakpoints. Adjust to inserted flag change.
12476 * mem-break.h (enum raw_bkpt_type): New enum.
12477 (raw_breakpoint, struct process_info): Forward declare.
12478 (Z_packet_to_target_hw_bp_type): Delete declaration.
12479 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12480 (set_gdb_breakpoint, delete_gdb_breakpoint)
12481 (clear_breakpoint_conditions): New declarations.
12482 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12483 (breakpoint_inserted_here): Update comment.
12484 (add_breakpoint_condition, add_breakpoint_commands): Replace
12485 address parameter with a breakpoint pointer parameter.
12486 (gdb_breakpoint_here): Update comment.
12487 (delete_gdb_breakpoint_at): Delete.
12488 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12489 * server.c (process_point_options): Take a struct breakpoint
12490 pointer instead of an address. Adjust.
12491 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12492 delete_gdb_breakpoint.
12493 * spu-low.c (spu_target_ops): Install NULL as
12494 supports_z_point_type method.
12495 * target.h: Include mem-break.h.
12496 (struct target_ops) <prepare_to_access_memory>: Update comment.
12497 <supports_z_point_type>: New field.
12498 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12499 instead of a char. Also take a raw breakpoint pointer.
12500 * win32-arm-low.c (the_low_target): Install NULL as
12501 supports_z_point_type.
12502 * win32-i386-low.c (i386_supports_z_point_type): New function.
12503 (i386_insert_point, i386_remove_point): Adjust to new interface.
12504 (the_low_target): Install i386_supports_z_point_type.
12505 * win32-low.c (win32_supports_z_point_type): New function.
12506 (win32_insert_point, win32_remove_point): Adjust to new interface.
12507 (win32_target_ops): Install win32_supports_z_point_type.
12508 * win32-low.h (struct win32_target_ops):
12509 <supports_z_point_type>: New method.
12510 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12511 instead of a char. Also take a raw breakpoint pointer.
12512
932539e3
PA
125132014-05-20 Pedro Alves <palves@redhat.com>
12514
12515 * mem-break.h: Include break-common.h.
12516 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12517 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12518 (Z_packet_to_target_hw_bp_type): New declaration.
12519 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12520 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12521 (Z_PACKET_ACCESS_WP): Delete macros.
12522 (Z_packet_to_hw_type): Delete function.
12523 * i386-low.h: Don't include break-common.h here.
12524 (Z_packet_to_hw_type): Delete declaration.
12525 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12526 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12527 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12528 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12529 * linux-aarch64-low.c: Don't include break-common.h here.
12530 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12531 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12532 (Z_packet_to_target_hw_bp_type): Delete function.
12533 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12534 function.
12535 (mips_insert_point, mips_remove_point): Use
12536 Z_packet_to_target_hw_bp_type.
12537
4ff0d3d8
PA
125382014-05-20 Pedro Alves <palves@redhat.com>
12539
12540 * linux-aarch64-low.c: Include break-common.h.
12541 (enum target_point_type): Delete.
12542 (Z_packet_to_point_type): Rename to ...
12543 (Z_packet_to_target_hw_bp_type): ... this, and return a
12544 target_hw_bp_type instead.
12545 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12546 instead of an enum target_point_type.
12547 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12548 breakpoint type.
12549 (aarch64_dr_state_insert_one_point)
12550 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12551 (aarch64_handle_aligned_watchpoint)
12552 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12553 Take an enum target_hw_bp_type instead of an enum
12554 target_point_type.
12555 (aarch64_supports_z_point_type): New function.
12556 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12557 use Z_packet_to_target_hw_bp_type.
12558
786dc519
JB
125592014-05-20 Joel Brobecker <brobecker@adacore.com>
12560
12561 * configure.ac: Only use -Werror by default when DEVELOPMENT
12562 is true.
12563 * configure: Regenerate.
12564
9e0aa64f
JK
125652014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12566
12567 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12568 * linux-x86-low.c (X86_64_USER_REGS): New.
12569 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12570
2b577b92
YQ
125712014-04-28 Yao Qi <yao@codesourcery.com>
12572
12573 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12574 name.
12575
94611da2
PA
125762014-04-25 Pedro Alves <palves@redhat.com>
12577
12578 PR server/16255
12579 * linux-low.c (linux_attach_fail_reason_string): New function.
12580 (linux_attach_lwp): Delete.
12581 (linux_attach_lwp_1): Rename to ...
12582 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12583 argument. Remove "initial" parameter. Return int instead of
12584 void. Don't error or warn here.
12585 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12586 failure to attach to the tgid. Call warning when failing to
12587 attach to an lwp.
12588 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12589 argument. Remove "initial" parameter. Return int instead of
12590 void. Don't error or warn here.
12591 (linux_attach_fail_reason_string): New declaration.
12592 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12593 interface change. Use linux_attach_fail_reason_string.
12594
01f9f808
MS
125952014-04-24 Michael Sturm <michael.sturm@mintel.com>
12596 Walfred Tedeschi <walfred.tedeschi@intel.com>
12597
12598 * Makefile.in: Added rules to handle new files
12599 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12600 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12601 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12602 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12603 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12604 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12605 x32-avx512-linux.o.
12606 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12607 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12608 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12609 i386/x32-avx512.xml.
12610 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12611 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12612 i386/x32-avx512-linux.xml.
12613 * i387-fp.c (num_avx512_k_registers): New constant for number
12614 of K registers.
12615 (num_avx512_zmmh_low_registers): New constant for number of
12616 lower ZMM registers (0-15).
12617 (num_avx512_zmmh_high_registers): New constant for number of
12618 higher ZMM registers (16-31).
12619 (num_avx512_ymmh_registers): New contant for number of higher
12620 YMM registers (ymm16-31 added by avx521 on x86_64).
12621 (num_avx512_xmm_registers): New constant for number of higher
12622 XMM registers (xmm16-31 added by AVX512 on x86_64).
12623 (struct i387_xsave): Add space for AVX512 registers.
12624 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12625 Add code to handle AVX512 registers.
12626 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12627 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12628 prototypei from generated file.
12629 (tdesc_amd64_avx512_linux): Likewise.
12630 (init_registers_x32_avx512_linux): Likewise.
12631 (tdesc_x32_avx512_linux): Likewise.
12632 (init_registers_i386_avx512_linux): Likewise.
12633 (tdesc_i386_avx512_linux): Likewise.
12634 (x86_64_regmap): Add AVX512 registers.
12635 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12636 mask.
12637 (initialize_low_arch): Add code to initialize AVX512 registers.
12638
51aa91f9
PA
126392014-04-23 Pedro Alves <palves@redhat.com>
12640
12641 * mem-break.c (find_gdb_breakpoint_at): Make static.
12642 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12643
a4165e94
PA
126442014-04-23 Pedro Alves <palves@redhat.com>
12645
12646 * i386-low.c: Don't include break-common.h here.
12647 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12648 prototype to take target_hw_bp_type as argument instead of a Z
12649 packet char.
12650 * i386-low.h: Include break-common.h here.
12651 (Z_packet_to_hw_type): Declare.
12652 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12653 prototypes.
12654 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12655 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12656 (x86_remove_point): Convert the packet number to a
12657 target_hw_bp_type before calling i386_low_remove_watchpoint.
12658 * win32-i386-low.c (i386_insert_point): Convert the packet number
12659 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12660 (i386_remove_point): Convert the packet number to a
12661 target_hw_bp_type before calling i386_low_remove_watchpoint.
12662
b8acf843
PA
126632014-04-23 Pedro Alves <palves@redhat.com>
12664
12665 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12666
d708bcd1
PA
126672014-04-10 Pedro Alves <palves@redhat.com>
12668
12669 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12670 Check if the condition or command is NULL before checking if the
12671 breakpoint is known. On success, return true.
12672 * mem-break.h (add_breakpoint_condition): Document return.
12673 (add_breakpoint_commands): Add describing comment.
12674 * server.c (skip_to_semicolon): New function.
12675 (process_point_options): Use it.
12676
2eec7d5b
PA
126772014-04-09 Pedro Alves <palves@redhat.com>
12678
12679 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12680 to lwpid_of.
12681
fa96cb38
PA
126822014-02-27 Pedro Alves <palves@redhat.com>
12683
12684 PR 12702
12685 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12686 macros.
12687 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12688 output.
12689 (last_thread_of_process_p): Take a PID argument instead of a
12690 thread pointer.
12691 (linux_wait_for_lwp): Delete.
12692 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12693 functions.
12694 (linux_low_filter_event): New function, party factored out from
12695 linux_wait_for_event.
12696 (linux_wait_for_event): Rename to ...
12697 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12698 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12699 sigsuspend. Check for zombie leaders.
12700 (linux_wait_for_event): Reimplement as wrapper around
12701 linux_wait_for_event_filtered.
12702 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12703 a normal or signal exit is seen, it's the whole process exiting.
12704 (wait_for_sigstop): No longer a for_each_inferior callback.
12705 Rewrite on top of linux_wait_for_event_filtered.
12706 (stop_all_lwps): Call wait_for_sigstop directly.
12707 * server.c (resume, handle_target_event): Handle
12708 TARGET_WAITKIND_NO_RESUMED.
12709
d763de10
JB
127102014-02-26 Joel Brobecker <brobecker@adacore.com>
12711
12712 * win32-low.c (psapi_get_dll_name,
12713 * win32_CreateToolhelp32Snapshot): Delete.
12714 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12715 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12716 Delete.
12717 (handle_load_dll): Add function description.
12718 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12719
850a0f76
JB
127202014-02-26 Joel Brobecker <brobecker@adacore.com>
12721
12722 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12723 Add comment.
12724 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12725 base address when calling win32_add_one_solib.
12726 (handle_load_dll): Delete local variable load_addr.
12727 Remove 0x1000 offset applied to DLL base address when calling
12728 win32_add_one_solib.
12729 (handle_unload_dll): Add comment.
12730
f25b3fc3
JB
127312014-02-26 Joel Brobecker <brobecker@adacore.com>
12732
12733 * win32-low.c (win32_add_all_dlls): Renames
12734 win32_ensure_ntdll_loaded. Rewrite function documentation.
12735 Adjust implementation to always load all DLLs.
12736 Add 0x1000 offset to DLL base address when calling
12737 win32_add_one_solib.
12738 (child_initialization_done): New static global.
12739 (do_initial_child_stuff): Set child_initialization_done to
12740 zero during child initialization, and 1 after. Replace call
12741 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12742 Add comment.
12743 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12744 (handle_unload_dll): Add function documentation.
12745 (get_child_debug_event): Ignore load and unload DLL events
12746 during child initialization.
12747
d86d4aaf
DE
127482014-02-20 Doug Evans <dje@google.com>
12749
3bc32da3 12750 Remove global all_lwps.
d86d4aaf
DE
12751 * inferiors.h (ptid_of): Move here from linux-low.h.
12752 (pid_of, lwpid_of): Ditto.
12753 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12754 parameter is a struct thread_info * now.
12755 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12756 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12757 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12758 directly.
12759 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12760 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12761 * linux-arm-low.c (update_registers_callback): Update, "entry"
12762 parameter is a struct thread_info * now.
12763 Fetch lwpid from current_inferior directly.
12764 (arm_insert_point): Pass &all_threads to find_inferior instead of
12765 &all_lwps.
12766 (arm_remove_point): Ditto.
12767 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12768 (arm_prepare_to_resume): Fetch pid from thread.
12769 (arm_read_description): Fetch lwpid from current_inferior directly.
12770 * linux-low.c (all_lwps): Delete.
12771 (delete_lwp): Delete call to remove_inferior.
12772 (handle_extended_wait): Fetch lwpid from thread.
12773 (add_lwp): Don't set lwp->entry.id. Remove call to
12774 add_inferior_to_list.
12775 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12776 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12777 (kill_one_lwp_callback): Ditto.
12778 (linux_kill): Don't dereference NULL pointer.
12779 Fetch ptid,lwpid from thread.
12780 (get_detach_signal): Fetch ptid from thread.
12781 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12782 Simplify call to regcache_invalidate_thread.
12783 (delete_lwp_callback): Update, "entry" parameter is a
12784 struct thread_info * now. Fetch pid from thread.
12785 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12786 (status_pending_p_callback): Update, "entry" parameter is a
12787 struct thread_info * now. Fetch ptid from thread.
12788 (find_lwp_pid): Update, "entry" parameter is a
12789 struct thread_info * now.
12790 (linux_wait_for_lwp): Fetch pid from thread.
12791 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12792 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12793 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12794 (dequeue_one_deferred_signal): Ditto.
12795 (cancel_breakpoint): Fetch ptid from current_inferior.
12796 (linux_wait_for_event): Pass &all_threads to find_inferior,
12797 not &all_lwps. Fetch ptid, lwpid from thread.
12798 (count_events_callback): Update, "entry" parameter is a
12799 struct thread_info * now.
12800 (select_singlestep_lwp_callback): Ditto.
12801 (select_event_lwp_callback): Ditto.
12802 (cancel_breakpoints_callback): Ditto.
12803 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12804 not &all_lwps.
12805 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12806 (unsuspend_one_lwp): Update, "entry" parameter is a
12807 struct thread_info * now.
12808 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12809 not &all_lwps.
12810 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12811 Fetch lwpid from thread, not lwp.
12812 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12813 Pass &all_threads to find_inferior, not &all_lwps.
12814 (send_sigstop): Fetch lwpid from thread, not lwp.
12815 (send_sigstop_callback): Update, "entry" parameter is a
12816 struct thread_info * now.
12817 (suspend_and_send_sigstop_callback): Ditto.
12818 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12819 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12820 struct thread_info * now.
12821 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12822 from thread, lwp.
12823 (lwp_running): Update, "entry" parameter is a
12824 struct thread_info * now.
12825 (stop_all_lwps): Fetch ptid from thread.
12826 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12827 (linux_resume_one_lwp): Fetch lwpid from thread.
12828 (linux_set_resume_request): Update, "entry" parameter is a
12829 struct thread_info * now. Fetch pid, lwpid from thread.
12830 (resume_status_pending_p): Update, "entry" parameter is a
12831 struct thread_info * now.
12832 (need_step_over_p): Ditto. Fetch lwpid from thread.
12833 (start_step_over): Fetch lwpid from thread.
12834 (linux_resume_one_thread): Update, "entry" parameter is a
12835 struct thread_info * now. Fetch lwpid from thread.
12836 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12837 (proceed_one_lwp): Update, "entry" parameter is a
12838 struct thread_info * now. Fetch lwpid from thread.
12839 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12840 struct thread_info * now.
12841 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12842 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12843 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12844 directly.
12845 (regsets_store_inferior_registers): Ditto.
12846 (fetch_register, store_register): Ditto.
12847 (linux_read_memory, linux_write_memory): Ditto.
12848 (linux_request_interrupt): Ditto.
12849 (linux_read_auxv): Ditto.
12850 (linux_xfer_siginfo): Ditto.
12851 (linux_qxfer_spu): Ditto.
12852 (linux_qxfer_libraries_svr4): Ditto.
12853 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12854 moved to inferiors.h.
12855 (get_lwp): Delete.
12856 (get_thread_lwp): Update.
12857 (struct lwp_info): Delete member "entry". Simplify comment for
12858 member "thread".
12859 (all_lwps): Delete.
12860 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12861 current_inferior directly.
12862 (update_watch_registers_callback): Update, "entry" parameter is a
12863 struct thread_info * now. Fetch pid from thread.
12864 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12865 (mips_insert_point): Fetch lwpid from current_inferior.
12866 Pass &all_threads to find_inferior, not &all_lwps.
12867 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12868 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12869 directly.
12870 (mips_stopped_data_address): Ditto.
12871 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12872 directly.
12873 * linux-tile-low.c (tile_arch_setup): Ditto.
12874 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12875 (update_debug_registers_callback): Update, "entry" parameter is a
12876 struct thread_info * now. Fetch pid from thread.
12877 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12878 Pass &all_threads to find_inferior, not &all_lwps.
12879 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12880 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12881 Pass &all_threads to find_inferior, not &all_lwps.
12882 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12883 (i386_dr_low_get_status): Ditto.
12884 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12885 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12886 (x86_linux_read_description): Ditto.
12887 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12888
3b8361aa
DE
128892014-02-20 Doug Evans <dje@google.com>
12890
12891 * inferiors.c (get_first_inferior): Fix buglet.
12892
f7667f0d
DE
128932014-02-19 Doug Evans <dje@google.com>
12894
12895 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12896 * inferiors.c (add_thread): Change result type to struct thread_info *.
12897 All callers updated.
12898 (add_lwp): Call add_thread here instead of in callers.
12899 All callers updated.
12900 * linux-low.h (get_lwp_thread): Rewrite.
12901 (struct lwp_info): New member "thread".
12902
b3312d80
DE
129032014-02-19 Doug Evans <dje@google.com>
12904
12905 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12906 All callers updated.
12907
ecc6f45c
DE
129082014-02-19 Doug Evans <dje@google.com>
12909
12910 * inferiors.c (add_thread): Fix whitespace.
12911
649ebbca
DE
129122014-02-19 Doug Evans <dje@google.com>
12913
12914 * dll.c (clear_dlls): Replace accessing list implemention details
12915 with API function.
12916 * gdbthread.h (get_first_thread): Declare.
12917 * inferiors.c (for_each_inferior_with_data): New function.
12918 (get_first_thread): New function.
12919 (find_thread_ptid): Simplify.
12920 (get_first_inferior): New function.
12921 (clear_list): Delete.
12922 (one_inferior_p): New function.
12923 (clear_inferior_list): New function.
12924 (clear_inferiors): Update.
12925 * inferiors.h (for_each_inferior_with_data): Declare.
12926 (clear_inferior_list): Declare.
12927 (one_inferior_p): Declare.
12928 (get_first_inferior): Declare.
12929 * linux-low.c (linux_wait_for_event): Replace accessing list
12930 implemention details with API function.
12931 * server.c (target_running): Ditto.
12932 (accumulate_file_name_length): New function.
12933 (emit_dll_description): New function.
12934 (handle_qxfer_libraries): Replace accessing list implemention
12935 details with API function.
12936 (handle_qxfer_threads_worker): New function.
12937 (handle_qxfer_threads_proper): Replace accessing list implemention
12938 details with API function.
12939 (handle_query): Ditto.
12940 (visit_actioned_threads_callback_ftype): New typedef.
12941 (visit_actioned_threads_data): New struct.
12942 (visit_actioned_threads): Rewrite to be find_inferior callback.
12943 (resume): Call find_inferior.
12944 (handle_status): Replace accessing list implemention
12945 details with API function.
12946 (process_serial_event): Replace accessing list implemention details
12947 with API function.
12948 * target.c (set_desired_inferior): Replace accessing list implemention
12949 details with API function.
12950 * tracepoint.c (same_process_p): New function.
12951 (gdb_agent_about_to_close): Replace accessing list implemention
12952 details with API function.
12953 * win32-low.c (child_delete_thread): Replace accessing list
12954 implemention details with API function.
12955 (match_dll_by_basename): New function.
12956 (dll_is_loaded_by_basename): New function.
12957 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12958 details call to dll_is_loaded_by_basename.
12959
80894984
DE
129602014-02-19 Doug Evans <dje@google.com>
12961
12962 * dll.h (struct dll_info): Add comment.
12963 * gdbthread.h (struct thread_info): Add comment.
12964 (current_ptid): Simplify.
12965 * inferiors.c (add_process): Update.
12966 (remove_process): Update.
12967 * inferiors.h (struct process_info): Rename member "head" to "entry".
12968 * linux-low.c (delete_lwp): Update.
12969 (add_lwp): Update.
12970 (last_thread_of_process_p): Update.
12971 (kill_one_lwp_callback, linux_kill): Update.
12972 (status_pending_p_callback): Update.
12973 (wait_for_sigstop): Update. Simplify read of ptid.
12974 (start_step_over): Update.
12975 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12976 (get_lwp_thread): Update.
12977 (struct lwp_info): Rename member "head" to "entry".
12978 * regcache.h (inferior_list_entry): Delete.
12979 * server.c (kill_inferior_callback): Update.
12980 (detach_or_kill_inferior_callback): Update.
12981 (print_started_pid): Update.
12982 (print_attached_pid): Update.
12983 (process_serial_event): Simplify read of ptid.
12984 * thread-db.c (thread_db_create_event): Update.
12985 (thread_db_get_tls_address): Update.
12986 * win32-low.c (current_inferior_ptid): Simplify.
12987
46917d26
TT
129882014-02-19 Tom Tromey <tromey@redhat.com>
12989
12990 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12991 argument.
12992 (target_supports_btrace): Update.
12993
0759a81e
YQ
129942014-02-14 Yao Qi <yao@codesourcery.com>
12995
12996 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12997 (rsp-low-ipa.o): New target.
12998
a7191e8b
TT
129992014-02-12 Tom Tromey <tromey@redhat.com>
13000
13001 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13002 convert_ascii_to_int.
13003 * regcache.c (registers_to_string): Likewise.
13004 * remote-utils.c (decode_M_packet): Likewise.
13005 * server.c (process_serial_event): Likewise.
13006
ff0e980e
TT
130072014-02-12 Tom Tromey <tromey@redhat.com>
13008
13009 * server.c (handle_query, handle_v_run): Use hex2bin, not
13010 unhexify.
13011 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13012
e9371aff
TT
130132014-02-12 Tom Tromey <tromey@redhat.com>
13014
13015 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13016 convert_int_to_ascii.
13017 * regcache.c (registers_to_string, collect_register_as_string):
13018 Likewise.
13019 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13020 Likewise.
13021 * server.c (process_serial_event): Likewise.
13022 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13023 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13024
971dc0b8
TT
130252014-02-12 Tom Tromey <tromey@redhat.com>
13026
13027 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13028 bin2hex, not hexify.
13029 * tracepoint.c (cmd_qtstatus): Likewise.
13030
0a822afb
TT
130312014-02-12 Tom Tromey <tromey@redhat.com>
13032
13033 * remote-utils.c (monitor_output): Pass explicit length to
13034 hexify.
13035
9c3d6531
TT
130362014-02-12 Tom Tromey <tromey@redhat.com>
13037
13038 * tracepoint.c: Include rsp-low.h.
13039 * server.c: Include rsp-low.h.
13040 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13041 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13042 declare.
13043 * remote-utils.c: Include rsp-low.h.
13044 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13045 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13046 (convert_int_to_ascii, convert_ascii_to_int): Move to
13047 common/rsp-low.c.
13048 * regcache.c: Include rsp-low.h.
13049 * ax.c: Include rsp-low.h.
13050 * Makefile.in (SFILES): Add common/rsp-low.c.
13051 (OBS): Add rsp-low.o.
13052 (rsp-low.o): New target.
13053
01fd3ea5
TT
130542014-02-12 Tom Tromey <tromey@redhat.com>
13055
13056 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13057 Include print-utils.h.
13058 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13059 (plongest, thirty_two, phex_nz): Remove.
13060 * Makefile.in (SFILES): Add common/print-utils.c.
13061 (OBS): Add print-utils.o.
13062 (print-utils-ipa.o): New target.
13063 (print-utils.o): New target.
13064 (IPA_OBJS): Add print-utils-ipa.o.
13065
e99dc820
TT
130662014-02-06 Tom Tromey <tromey@redhat.com>
13067
13068 * Makefile.in (SFILES): Fix indentation.
13069
ee1e2d4f
DE
130702014-02-05 Doug Evans <dje@google.com>
13071
13072 * linux-low.c (linux_wait_for_event): Improve comment.
13073 (linux_wait_1): Keep current_inferior in sync with event_child.
13074
f5a02773
DE
130752014-01-22 Doug Evans <dje@google.com>
13076
13077 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13078
87ce2a04
DE
130792014-01-22 Doug Evans <dje@google.com>
13080
13081 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13082 * configure: Regenerate.
13083 * config.in: Regenerate.
13084 * Makefile.in (SFILES): Add debug.c.
13085 (OBS): Add debug.o.
13086 * debug.c: New file.
13087 * debug.h: New file.
13088 * linux-aarch64-low.c (*): Update all debugging printfs to use
13089 debug_printf instead of fprintf.
13090 * linux-arm-low.c (*): Ditto.
13091 * linux-cris-low.c (*): Ditto.
13092 * linux-crisv32-low.c (*): Ditto.
13093 * linux-m32r-low.c (*): Ditto.
13094 * linux-sparc-low.c (*): Ditto.
13095 * linux-x86.c (*): Ditto.
13096 * linux-low.c (*): Ditto.
13097 (linux_wait_1): Add calls to debug_enter, debug_exit.
13098 (linux_wait): Remove redundant debugging printf.
13099 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13100 (linux_resume, unstop_all_lwps): Ditto.
13101 * mem-break.c (*): Update all debugging printfs to use
13102 debug_printf instead of fprintf.
13103 * remote-utils.c (*): Ditto.
13104 * thread-db.c (*): Ditto.
13105 * server.c #include <ctype.h>, "gdb_vecs.h".
13106 (debug_threads): Moved to debug.c.
13107 (*): Update all debugging printfs to use debug_printf instead of
13108 fprintf.
13109 (start_inferior): Replace call to fflush with call to debug_flush.
13110 (monitor_show_help): Mention set debug-format.
13111 (parse_debug_format_options): New function.
13112 (handle_monitor_command): Handle "monitor set debug-format".
13113 (gdbserver_usage): Mention --debug-format.
13114 (main): Parse --debug-format.
13115 * server.h (debug_threads): Declaration moved to debug.h.
13116 #include "debug.h".
13117 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13118 trace_debug_1 that uses debug_printf.
13119 (tracepoint_look_up_symbols): Update all debugging printfs to use
13120 debug_printf instead of fprintf.
13121
e671835b
BS
131222014-01-20 Baruch Siach <baruch@tkos.co.il>
13123
13124 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13125 sys/ptrace.h.
13126
b5737fa9
PA
131272014-01-17 Pedro Alves <palves@redhat.com>
13128
ea38d2a9 13129 PR build/16445
c7faa97a
PA
13130 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13131 defined after including gdb_proc_service.h.
b5737fa9 13132
40ed484e
DE
131332014-01-16 Doug Evans <dje@google.com>
13134
13135 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13136 (match_dll): Use it.
13137
969c39fb
MM
131382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13139
13140 * target.h (target_ops) <read_btrace>: Change parameters and
13141 return type to allow error reporting.
13142 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13143 trace reading errors on.
13144 * linux-low.c (linux_low_read_btrace): Pass trace reading
13145 errors on.
13146 (linux_low_disable_btrace): New.
13147
ab7f45ba
DE
131482014-01-15 Doug Evans <dje@google.com>
13149
13150 * inferiors.c (thread_id_to_gdb_id): Delete.
13151 * inferiors.h (thread_id_to_gdb_id): Delete.
13152
66af0f44
EZ
131532014-01-13 Eli Zaretskii <eliz@gnu.org>
13154
13155 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13156 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13157 versions.
13158
9939e131
PA
131592014-01-08 Pedro Alves <palves@redhat.com>
13160
13161 * server.c (handle_status): Don't discard previous queued stop
13162 replies or thread's pending status here.
13163 (main) <disconnection>: Do it here instead.
13164
b7ea362b
PA
131652014-01-08 Pedro Alves <palves@redhat.com>
13166
13167 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13168 * server.c (visit_actioned_threads, handle_pending_status): New
13169 function.
13170 (handle_v_cont): Factor out parts to ...
13171 (resume): ... this new function. If in all-stop, and a thread
13172 being resumed has a pending status, report it without actually
13173 resuming.
13174 (myresume): Adjust to use the new 'resume' function.
13175 (clear_pending_status_callback, set_pending_status_callback)
13176 (find_status_pending_thread_callback): New functions.
13177 (handle_status): Handle the case of multiple threads having
13178 interesting statuses to report. Report threads' real last signal
13179 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13180 with an interesting thread to report the status for, instead of
13181 always reporting the status of the first thread.
13182
28498c42
JB
131832014-01-01 Joel Brobecker <brobecker@adacore.com>
13184
13185 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13186 * gdbreplay.c (gdbreplay_version): Likewise.
13187
f45c82da
YZ
131882013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13189
13190 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13191 iov.iov_len with the real length in use.
13192
379a5e2d
JB
131932013-12-13 Joel Brobecker <brobecker@adacore.com>
13194
13195 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13196 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13197 for all targets that use win32-low.c.
13198 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13199 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13200
4210d83e
PA
132012013-12-13 Pedro Alves <palves@redhat.com>
13202
13203 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13204 if equal to TARGET_WAITKIND_LOADED.
13205 * win32-low.c (cached_status): New static global.
13206 (win32_wait): Add declaration.
13207 (do_initial_child_stuff): Flush all initial pending debug events
13208 up to the initial breakpoint.
13209 (win32_wait): If CACHED_STATUS was set, return that instead
13210 of doing a real wait. Remove the code resuming the execution
13211 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13212 during the initial phase. Also remove the code changing
13213 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13214 TARGET_WAITKIND_STOPPED.
13215
e7f0d979
YQ
132162013-12-11 Yao Qi <yao@codesourcery.com>
13217
13218 * notif.c (handle_notif_ack): Return 0 if no notification
13219 matches.
13220
ebcf782c
DE
132212013-11-20 Doug Evans <dje@google.com>
13222
13223 * linux-low.c (linux_set_resume_request): Fix comment.
13224
20ad9378
DE
132252013-11-20 Doug Evans <dje@google.com>
13226
13227 * linux-low.c (resume_status_pending_p): Tweak comment.
13228
a196ebeb
WT
132292013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13230
13231 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13232 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13233 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13234 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13235 (srv_amd64_regobj): Add amd64-mpx.o.
13236 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13237 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13238 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13239 * i387-fp.c (num_pl_bnd_register) Added constant.
13240 (num_pl_bnd_cfg_registers) Added constant.
13241 (struct i387_xsave) Added reserved area and MPX fields.
13242 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13243 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13244 function.
13245 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13246 (init_registers_amd64_mpx_linux): Declare new function.
13247 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13248 (x86_64_regmap): Add MPX registers.
13249 (x86_linux_read_description): Add MPX case.
13250 (initialize_low_arch): Initialize MPX targets.
13251
0080a2f6
TT
132522013-11-18 Tom Tromey <tromey@redhat.com>
13253
13254 * configure: Rebuild.
13255 * configure.ac: Don't check for stdlib.h.
13256 * gdbreplay.c: Unconditionally include stdlib.h.
13257
2978b111
TT
132582013-11-18 Tom Tromey <tromey@redhat.com>
13259
13260 * config.in: Rebuild.
13261 * configure: Rebuild.
13262 * configure.ac: Don't use AC_HEADER_DIRENT.
13263
a3d08894
TT
132642013-11-18 Tom Tromey <tromey@redhat.com>
13265
13266 * server.h: Don't check HAVE_STRING_H.
13267 * gdbreplay.c: Don't check HAVE_STRING_H.
13268 * configure: Rebuild.
13269
0a5dd17d
TT
132702013-11-18 Tom Tromey <tromey@redhat.com>
13271
13272 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13273 LIBGNU.
13274
1bd2f0ba
TT
132752013-11-08 Tom Tromey <tromey@redhat.com>
13276
13277 * configure, config.in: Rebuild.
13278 * configure.ac: Remove unused configury.
13279
3266f10b
TT
132802013-11-08 Tom Tromey <tromey@redhat.com>
13281
13282 * acinclude.m4: Include common.m4, codeset.m4.
13283 * configure, config.in: Rebuild.
13284 * configure.ac: Use GDB_AC_COMMON.
13285
6682d959
AA
132862013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13287
13288 * linux-s390-low.c (HWCAP_S390_TE): New define.
13289 (s390_arch_setup): Consider the TE field in the HWCAP for
13290 determining 'have_regset_tdb'.
13291
fd0a4d76
SDJ
132922013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13293
13294 PR gdb/16014
13295 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13296 call to sizeof.
13297
1a3d890b
PA
132982013-10-02 Pedro Alves <palves@redhat.com>
13299
13300 * server.c (process_serial_event): Don't output "GDBserver
13301 exiting" if GDB is connected through stdio.
13302 * target.c (mywait): Likewise, be silent if GDB is connected
13303 through stdio.
13304
97ad4581
JB
133052013-10-01 Joel Brobecker <brobecker@adacore.com>
13306
13307 * lynx-low.c (lynx_add_threads_after_attach): New function.
13308 (lynx_attach): Remove call to add_thread. Add call to
13309 lynx_add_threads_after_attach instead.
13310
5b4e221c
MF
133112013-09-28 Mike Frysinger <vapier@gentoo.org>
13312
13313 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13314 * config.in, configure: Regenerated.
13315
ee47b2f8
YQ
133162013-09-18 Yao Qi <yao@codesourcery.com>
13317
13318 PR server/15959
13319 * server.c (start_inferior): Clear 'resume_info'.
13320
d6707650 133212013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13322
d6707650
JW
13323 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13324 for each register.
13325
9243dd0e 133262013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13327
9243dd0e
JW
13328 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13329 linux-tile-low.o to srv_tgtobj.
13330
c623a6ef
WN
133312013-09-16 Will Newton <will.newton@linaro.org>
13332
13333 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13334 out regs.
13335
fb71d39e
PA
133362013-09-06 Pedro Alves <palves@redhat.com>
13337
13338 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13339 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13340 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13341 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13342 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13343 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13344
8e7e9910
PA
133452013-09-06 Pedro Alves <palves@redhat.com>
13346
13347 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13348 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13349
7c3a12ca
PA
133502013-09-06 Pedro Alves <palves@redhat.com>
13351
13352 * linux-amd64-ipa.c: Include tracepoint.h.
13353 * linux-i386-ipa.c: Include tracepoint.h.
13354
8eb3d7b6
RW
133552013-09-06 Ricard Wanderlof <ricardw@axis.com>
13356
13357 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13358 (ps_get_thread_area): New function.
13359
eddddb9d
RW
133602013-09-06 Ricard Wanderlof <ricardw@axis.com>
13361
13362 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13363 (initialize_low_arch): Call init_registers_crisv32 rather than
13364 init_register_crisv32.
13365
533b0600
PA
133662013-09-05 Pedro Alves <palves@redhat.com>
13367
13368 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13369 to ...
13370 * hostio.h: ... this new file.
13371 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13372 win32-low.c: Include hostio.h.
13373
0ce3d3b5
PA
133742013-09-05 Pedro Alves <palves@redhat.com>
13375
13376 * server.h (gdb_client_data, handler_func, callback_handler_func)
13377 (delete_file_handler, add_file_handler, append_callback_event)
13378 (delete_callback_event, start_event_loop, initialize_event_loop):
13379 Move to event-loop.h and include it.
13380 * event-loop.h: New file.
13381
799cdc37
PA
133822013-09-05 Pedro Alves <palves@redhat.com>
13383
13384 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13385 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13386 (loaded_dll, unloaded_dll): Move to ...
13387 * dll.h: ... this new file.
13388 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13389
6a6bbd9d
PA
133902013-09-05 Pedro Alves <palves@redhat.com>
13391
13392 * server.h (current_process, get_thread_process, all_processes)
13393 (add_inferior_to_list, for_each_inferior, current_inferior)
13394 (remove_inferior, add_process, remove_process, find_process_pid)
13395 (have_started_inferiors_p, have_attached_inferiors_p)
13396 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13397 (clear_inferiors, find_inferior, find_inferior_id)
13398 (inferior_target_data, set_inferior_target_data)
13399 (inferior_regcache_data, set_inferior_regcache_data): Move to
13400 inferiors.h, and include it.
13401 * inferiors.h: New file.
13402
f699aaba
PA
134032013-09-05 Pedro Alves <palves@redhat.com>
13404
13405 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13406 Move ...
72f4393d 13407 * ax.h: ... here.
f699aaba 13408
c144c7a0
PA
134092013-09-05 Pedro Alves <palves@redhat.com>
13410
13411 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13412 tracepoint.h.
13413 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13414 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13415 (handle_tracepoint_general_set, handle_tracepoint_query)
13416 (tracepoint_finished_step, tracepoint_was_hit)
13417 (release_while_stepping_state_list, current_traceframe)
13418 (in_readonly_region, traceframe_read_mem)
13419 (fetch_traceframe_registers, traceframe_read_sdata)
13420 (traceframe_read_info, struct fast_tpoint_collect_status)
13421 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13422 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13423 (supply_fast_tracepoint_registers)
13424 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13425 (ipa_tdesc, claim_trampoline_space)
13426 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13427 (agent_mem_read, agent_get_trace_state_variable_value)
13428 (agent_set_trace_state_variable_value, agent_tsv_read)
13429 (agent_mem_read_string, get_raw_reg_func_addr)
13430 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13431 * tracepoint.h: ... this new file.
13432
ff42e6ab
PA
134332013-09-05 Pedro Alves <palves@redhat.com>
13434
13435 * server.h (perror_with_name, error, fatal, warning, paddress)
13436 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13437 include it.
13438 * utils.h: New file.
13439
541af0f4
PA
134402013-09-05 Pedro Alves <palves@redhat.com>
13441
13442 * server.h (remote_debug, noack_mode, transport_is_reliable)
13443 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13444 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13445 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13446 (write_enn, initialize_async_io, enable_async_io)
13447 (disable_async_io, check_remote_input_interrupt_request)
13448 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13449 (dead_thread_notify, prepare_resume_reply)
13450 (decode_address_to_semicolon, decode_address, decode_m_packet)
13451 (decode_M_packet, decode_X_packet, decode_xfer_write)
13452 (decode_search_memory_packet, unhexify, hexify)
13453 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13454 (look_up_one_symbol, relocate_instruction)
13455 (monitor_output): Move to remote-utils.h, and include it.
13456 * remote-utils.h: New file.
13457
eebdf26b
PA
134582013-09-05 Pedro Alves <palves@redhat.com>
13459
13460 * server.h (_): Delete.
13461
3aafd2ff
PA
134622013-09-02 Pedro Alves <palves@redhat.com>
13463
13464 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13465 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13466 allocated.
13467 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13468
cee83bcb
PM
134692013-09-02 Pierre Muller <muller@sourceware.org>
13470
13471 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13472 or WriteProcessMemory complete successfully and handle
13473 ERROR_PARTIAL_COPY error.
13474
9a13b2fa
PA
134752013-09-02 Pedro Alves <palves@redhat.com>
13476
13477 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13478 error instead of EIO.
13479
602e3198
JK
134802013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13481
13482 PR server/15604
13483 * linux-low.c: Include filestuff.h.
13484 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13485 * lynx-low.c: Include filestuff.h.
13486 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13487 * server.c: Include filestuff.h.
13488 (main): Call notice_open_fds.
13489 * spu-low.c: Include filestuff.h.
13490 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13491
96d7229d
LM
134922013-08-22 Luis Machado <lgustavo@codesourcery.com>
13493
13494 * Makefile.in: Explain why ../target and ../nat are not
13495 listed as include file search paths.
13496 (linux-waitpid.o): New object file rule.
13497 * configure.srv (srv_native_linux_obj): New variable.
13498 Replace all occurrences of linux native object files with
13499 $srv_native_linux_obj.
13500 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13501 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13502 (linux_enable_event_reporting): Remove declaration.
13503 (my_waitpid): Moved to common/linux-waitpid.c.
13504 (linux_wait_for_event): Pass ptid when calling
13505 linux_enable_event_reporting.
13506 (linux_supports_tracefork_flag): Remove.
13507 (linux_enable_event_reporting): Likewise.
13508 (linux_tracefork_grandchild): Remove.
13509 (STACK_SIZE): Moved to common/linux-ptrace.c.
13510 (linux_tracefork_child): Remove.
13511 (linux_test_for_tracefork): Remove.
13512 (linux_look_up_symbols): Call linux_supports_traceclone.
13513 (initialize_low): Remove call to linux_test_for_tracefork.
13514 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13515 common/linux-ptrace.h.
13516 (PTRACE_TYPE_ARG4): Likewise.
13517 Include linux-ptrace.h.
13518
32940073
PA
135192013-08-21 Pedro Alves <palves@redhat.com>
13520
13521 * config.in: Renegerate.
13522
33b60d58 135232013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13524
33b60d58
LM
13525 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13526 (SFILES): Remove $(srcdir)/common/target-common.c and
13527 add $(srcdir)/target/waitstatus.c.
13528 (OBS): Remove target-common.o and add waitstatus.o.
13529 (server_h): Remove $(srcdir)/../common/target-common.h and
13530 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13531 and $(srcdir)/../target/waitstatus.h.
13532 (target-common.o): Remove.
13533 (waitstatus.o): New target object file.
13534 * target.h: Do not include target-common.h and
13535 include target/resume.h, target/wait.h and
13536 target/waitstatus.h.
13537
b8e1b30e
LM
135382013-08-13 Luis Machado <lgustavo@codesourcery.com>
13539
13540 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13541 to PTRACE_TYPE_ARG3.
13542 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13543 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13544 PTRACE_TYPE_ARG4.
13545 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13546 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13547
7a60ad40
YQ
135482013-07-27 Jie Zhang <jie@codesourcery.com>
13549 Daniel Jacobowitz <dan@codesourcery.com>
13550 Yao Qi <yao@codesourcery.com>
13551
13552 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13553 (mips-linux-watch.o): New rule.
13554 (mips_linux_watch_h): New variable.
13555 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13556 srv_tgtobj.
13557 * linux-mips-low.c: Include mips-linux-watch.h.
13558 (struct arch_process_info, struct arch_lwp_info): New.
13559 (update_watch_registers_callback): New function.
13560 (mips_linux_new_process, mips_linux_new_thread) New functions.
13561 (mips_linux_prepare_to_resume, mips_insert_point): New
13562 functions.
13563 (mips_remove_point, mips_stopped_by_watchpoint): New
13564 functions.
13565 (rsp_bp_type_to_target_hw_bp_type): New function.
13566 (mips_stopped_data_address): New function.
13567 (the_low_target): Add watchpoint support functions.
13568
de6f69ad
YQ
135692013-07-27 Yao Qi <yao@codesourcery.com>
13570
13571 * i386-low.c: Include break-common.h.
13572 (enum target_hw_bp_type): Remove.
13573
3360c0bf
LM
135742013-07-24 Luis Machado <lgustavo@codesourcery.com>
13575
13576 * Makefile.in (SFILES): /common/target-common.c.
13577 (OBS): Add target-common.o.
13578 (server_h): Add $(srcdir)/../common/target-common.h.
13579 (target-common.o): New target.
13580 * server.c (queue_stop_reply_callback): Free
13581 status string after use.
13582 * target.c (target_waitstatus_to_string): Remove.
13583 * target.h: Include target-common.h.
13584 (resume_kind): Likewise.
13585 (target_waitkind): Likewise.
13586 (target_waitstatus): Likewise.
13587 (TARGET_WNOHANG): Likewise.
13588
bd885420
YQ
135892013-07-04 Yao Qi <yao@codesourcery.com>
13590
13591 * Makefile.in (host_alias): Use @host_noncanonical@.
13592 (target_alias): Use @target_noncanonical@.
13593 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13594 ACX_NONCANONICAL_HOST.
13595 * configure: Regenerated.
13596
13597 Revert:
13598 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13599
13600 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13601 * configure: Rebuild.
13602 * Makefile.in (version_host, version_target): Get from configure.
13603 (version.c): Use $(version_host) and $(version_target).
13604
17ef446e
PA
136052013-07-03 Pedro Alves <palves@redhat.com>
13606
13607 * Makefile.in (config.status): Depend on development.sh.
13608 * acinclude.m4: Include libmcheck.m4.
13609 * configure: Regenerate.
13610
7a9a7487
MG
136112013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13612
13613 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13614 attribute inside the parentheses.
13615 (winapi_DebugSetProcessKillOnExit): Ditto.
13616 (winapi_DebugBreakProcess): Ditto.
13617 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13618
49b64de6
MG
136192013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13620
13621 * notif.h (notif_event): Add a dummy member to avoid compiler
13622 errors.
13623
d5749ee7
PA
136242013-07-01 Pedro Alves <palves@redhat.com>
13625
13626 * hostio.c (HOSTIO_PATH_MAX): Define.
13627 (require_filename, handle_open, handle_unlink, handle_readlink):
13628 Use it.
13629
d8d2a3ee
PA
136302013-07-01 Pedro Alves <palves@redhat.com>
13631
13632 * server.h: Include "pathmax.h".
13633 * linux-low.c: Don't include sys/param.h.
13634 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13635 MAXPATHLEN.
13636 * win32-low.c: Don't include sys/param.h.
13637 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13638
bc7dea8d
PA
136392013-07-01 Pedro Alves <palves@redhat.com>
13640
13641 * event-loop.c: Don't check HAVE_UNISTD_H before including
13642 <unistd.h>.
13643 * gdbreplay.c: Likewise.
13644 * remote-utils.c: Likewise.
13645 * server.c: Likewise.
13646 * configure.ac: Don't check for unistd.h.
13647 * configure: Regenerate.
13648
d6c2da54
TT
136492013-06-28 Tom Tromey <tromey@redhat.com>
13650
13651 * Makefile.in (version.c): Use version.in, not
13652 common/version.in.
13653
257b6bec
MG
136542013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13655
13656 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13657 * configure: Rebuild.
13658 * Makefile.in (version_host, version_target): Get from configure.
13659 (version.c): Use $(version_host) and $(version_target).
13660
86ebe149
DK
136612013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13662
13663 Fix trace-status to output user name without trailing colon.
13664 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13665
f30aa5af
DK
136662013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13667
13668 Fix trace-status to output proper start-time and stop-time.
13669 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13670 output start time and stop time in hex as gdb expects.
13671
28a93511
YQ
136722013-06-26 Pedro Alves <pedro@codesourcery.com>
13673
13674 * tracepoint.c (build_traceframe_info_xml): Output trace state
13675 variables present in the trace buffer.
13676
01208463
TT
136772013-06-24 Tom Tromey <tromey@redhat.com>
13678
13679 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13680 create-version.sh.
13681 (version.o): Remove.
13682 * gdbreplay.c: Include version.h.
13683 (version, host_name): Don't declare.
13684 * server.h: Include version.h.
13685 (version, host_name): Don't declare.
13686
760256f9
PA
136872013-06-12 Pedro Alves <palves@redhat.com>
13688
13689 * linux-x86-low.c (linux_is_elf64): Delete global.
13690 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13691 with local linux_pid_exe_is_elf_64_file use.
13692
030031ee
PA
136932013-06-11 Pedro Alves <palves@redhat.com>
13694
13695 * linux-low.c (regset_disabled, disable_regset): New functions.
13696 (regsets_fetch_inferior_registers)
13697 (regsets_store_inferior_registers): Use them.
13698 (initialize_regsets_info); Don't allocate the disabled_regsets
13699 array here.
13700 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13701 comment.
13702
5da6eb0a
PA
137032013-06-11 Pedro Alves <palves@redhat.com>
13704
13705 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13706 xmalloc.
13707
7e5aaa09
PA
137082013-06-11 Pedro Alves <palves@redhat.com>
13709
13710 * linux-x86-low.c (initialize_low_arch): Call
13711 init_registers_x32_avx_linux.
13712
d878444c
JK
137132013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13714
13715 Fix compatibility with Android Bionic.
13716 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13717 it is not empty.
13718
3aee8918
PA
137192013-06-07 Pedro Alves <palves@redhat.com>
13720
5f2b57b5 13721 PR server/14823
3aee8918
PA
13722 * Makefile.in (OBS): Add tdesc.o.
13723 (IPA_OBJS): Add tdesc-ipa.o.
13724 (tdesc-ipa.o): New rule.
13725 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13726 interface.
13727 * linux-low.c (new_inferior): Delete.
13728 (disabled_regsets, num_regsets): Delete.
13729 (linux_add_process): Adjust to set the new per-process
13730 new_inferior flag.
13731 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13732 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13733 was a stop. When calling arch_setup, switch the current inferior
13734 to the thread that got an event.
13735 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13736 (regsets_fetch_inferior_registers)
13737 (regsets_store_inferior_registers): New regsets_info parameter.
13738 Adjust to use it.
13739 (linux_register_in_regsets): New regs_info parameter. Adjust to
13740 use it.
13741 (register_addr, fetch_register, store_register): New usrregs_info
13742 parameter. Adjust to use it.
13743 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13744 parameter regs_info. Adjust to use it.
13745 (linux_fetch_registers): Get the current inferior's regs_info, and
13746 adjust to use it.
13747 (linux_store_registers): Ditto.
13748 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13749 (initialize_low): Don't initialize the target_regsets here. Call
13750 initialize_low_arch.
13751 * linux-low.h (target_regsets): Delete declaration.
13752 (struct regsets_info): New.
13753 (struct usrregs_info): New.
13754 (struct regs_info): New.
13755 (struct process_info_private) <new_inferior>: New field.
13756 (struct linux_target_ops): Delete the num_regs, regmap, and
13757 regset_bitmap fields. New field regs_info.
13758 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13759 * i387-fp.c (num_xmm_registers): Delete.
13760 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13761 calls to new interface.
13762 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13763 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13764 Infer the number of xmm registers from the regcache's target
13765 description.
13766 * i387-fp.h (num_xmm_registers): Delete.
13767 * inferiors.c (add_thread): Don't install the thread's regcache
13768 here.
13769 * proc-service.c (gregset_info): Fetch the current inferior's
13770 regs_info. Adjust to use it.
13771 * regcache.c: Include tdesc.h.
13772 (register_bytes, reg_defs, num_registers)
13773 (gdbserver_expedite_regs): Delete.
13774 (get_thread_regcache): If the thread doesn't have a regcache yet,
13775 create one, instead of aborting gdbserver.
13776 (regcache_invalidate_one): Rename to ...
13777 (regcache_invalidate_thread): ... this.
13778 (regcache_invalidate_one): New.
13779 (regcache_invalidate): Only invalidate registers of the current
13780 process.
13781 (init_register_cache): Add target_desc parameter, and use it.
13782 (new_register_cache): Ditto. Assert the target description has a
13783 non zero registers_size.
13784 (regcache_cpy): Add assertions. Adjust.
13785 (realloc_register_cache, set_register_cache): Delete.
13786 (registers_to_string, registers_from_string): Adjust.
13787 (find_register_by_name, find_regno, find_register_by_number)
13788 (register_cache_size): Add target_desc parameter, and use it.
13789 (free_register_cache_thread, free_register_cache_thread_one)
13790 (regcache_release, register_cache_size): New.
13791 (register_size): Add target_desc parameter, and use it.
13792 (register_data, supply_register, supply_register_zeroed)
13793 (supply_regblock, supply_register_by_name, collect_register)
13794 (collect_register_as_string, collect_register_by_name): Adjust.
13795 * regcache.h (struct target_desc): Forward declare.
13796 (struct regcache) <tdesc>: New field.
13797 (init_register_cache, new_register_cache): Add target_desc
13798 parameter.
13799 (regcache_invalidate_thread): Declare.
13800 (regcache_invalidate_one): Delete declaration.
13801 (regcache_release): Declare.
13802 (find_register_by_number, register_cache_size, register_size)
13803 (find_regno): Add target_desc parameter.
13804 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13805 declarations.
13806 * remote-utils.c: Include tdesc.h.
13807 (outreg, prepare_resume_reply): Adjust.
13808 * server.c: Include tdesc.h.
13809 (gdbserver_xmltarget): Delete declaration.
13810 (get_features_xml, process_serial_event): Adjust.
13811 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13812 declare.
13813 (struct process_info) <tdesc>: New field.
13814 (ipa_tdesc): Declare.
13815 * tdesc.c: New file.
13816 * tdesc.h: New file.
13817 * tracepoint.c: Include tdesc.h.
13818 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13819 (get_context_regcache): Adjust to pass ipa_tdesc down.
13820 (do_action_at_tracepoint): Adjust to get the register cache size
13821 from the context regcache's description.
13822 (traceframe_walk_blocks): Adjust to get the register cache size
13823 from the current trace frame's description.
13824 (traceframe_get_pc): Adjust to get current trace frame's
13825 description and pass it down.
13826 (gdb_collect): Adjust to get the register cache size from the
13827 IPA's description.
13828 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13829 (gdbserver_xmltarget): Delete.
13830 (initialize_low_tracepoint): Set the ipa's target description.
13831 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13832 (initialize_low_tracepoint): Set the ipa's target description.
13833 * linux-x86-low.c: Include tdesc.h.
13834 [__x86_64__] (is_64bit_tdesc): New.
13835 (ps_get_thread_area, x86_get_thread_area): Use it.
13836 (i386_cannot_store_register): Rename to ...
13837 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13838 (i386_cannot_fetch_register): Rename to ...
13839 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13840 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13841 to new interface.
13842 (target_regsets): Rename to ...
13843 (x86_regsets): ... this.
13844 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13845 interface.
13846 (x86_siginfo_fixup): Use is_64bit_tdesc.
13847 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13848 (tdesc_x32_avx_linux, tdesc_x32_linux)
13849 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13850 Declare.
13851 (x86_linux_update_xmltarget): Delete.
13852 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13853 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13854 (AMD64_LINUX_USER64_CS): New.
13855 (x86_linux_read_description): New, based on
13856 x86_linux_update_xmltarget.
13857 (same_process_callback): New.
13858 (x86_arch_setup_process_callback): New.
13859 (x86_linux_update_xmltarget): New.
13860 (x86_regsets_info): New.
13861 (amd64_linux_regs_info): New.
13862 (i386_linux_usrregs_info): New.
13863 (i386_linux_regs_info): New.
13864 (x86_linux_regs_info): New.
13865 (x86_arch_setup): Reimplement.
13866 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13867 (x86_emit_ops): Ditto.
13868 (the_low_target): Adjust. Install x86_linux_regs_info,
13869 x86_cannot_fetch_register, and x86_cannot_store_register.
13870 (initialize_low_arch): New.
13871 * linux-ia64-low.c (tdesc_ia64): Declare.
13872 (ia64_fetch_register): Adjust.
13873 (ia64_usrregs_info, regs_info): New globals.
13874 (ia64_regs_info): New function.
13875 (the_low_target): Adjust.
13876 (initialize_low_arch): New function.
13877 * linux-sparc-low.c (tdesc_sparc64): Declare.
13878 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13879 Adjust.
13880 (sparc_arch_setup): New function.
13881 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13882 (the_low_target): Adjust.
13883 (initialize_low_arch): New function.
13884 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13885 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13886 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13887 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13888 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13889 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13890 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13891 (tdesc_powerpc_isa205_vsx64l): Declare.
13892 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13893 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13894 (ppc_set_pc, ppc_get_hwcap): Adjust.
13895 (ppc_usrregs_info): Forward declare.
13896 (!__powerpc64__) ppc_regmap_adjusted: New global.
13897 (ppc_arch_setup): Adjust to the current process'es target
13898 description.
13899 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13900 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13901 (ppc_store_evrregset): Adjust.
13902 (target_regsets): Rename to ...
13903 (ppc_regsets): ... this, and make static.
13904 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13905 (ppc_regs_info): New function.
13906 (the_low_target): Adjust.
13907 (initialize_low_arch): New function.
13908 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13909 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13910 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13911 (tdesc_s390x_linux64v2): Declare.
13912 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13913 (s390_fill_gregset, s390_store_last_break): Adjust.
13914 (target_regsets): Rename to ...
13915 (s390_regsets): ... this, and make static.
13916 (s390_get_pc, s390_set_pc): Adjust.
13917 (s390_get_hwcap): New target_desc parameter, and use it.
13918 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13919 (s390_arch_setup): Adjust to set the current process'es target
13920 description. Don't adjust the regmap.
13921 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13922 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13923 (regs_info_3264): New globals.
13924 (s390_regs_info): New function.
13925 (the_low_target): Adjust.
13926 (initialize_low_arch): New function.
13927 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13928 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13929 [__mips64] (init_registers_mips_linux)
13930 (init_registers_mips_dsp_linux): Delete defines.
13931 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13932 (have_dsp): New global.
13933 (mips_read_description): New, based on mips_arch_setup.
13934 (mips_arch_setup): Reimplement.
13935 (get_usrregs_info): New function.
13936 (mips_cannot_fetch_register, mips_cannot_store_register)
13937 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13938 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13939 (target_regsets): Rename to ...
13940 (mips_regsets): ... this, and make static.
13941 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13942 (dsp_regs_info, regs_info): New globals.
13943 (mips_regs_info): New function.
13944 (the_low_target): Adjust.
13945 (initialize_low_arch): New function.
13946 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13947 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13948 Declare.
13949 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13950 (arm_read_description): New, with bits factored from
13951 arm_arch_setup.
13952 (arm_arch_setup): Reimplement.
13953 (target_regsets): Rename to ...
13954 (arm_regsets): ... this, and make static.
13955 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13956 (arm_regs_info): New function.
13957 (the_low_target): Adjust.
13958 (initialize_low_arch): New function.
13959 * linux-m68k-low.c (tdesc_m68k): Declare.
13960 (target_regsets): Rename to ...
13961 (m68k_regsets): ... this, and make static.
13962 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13963 (m68k_regs_info): New function.
13964 (m68k_arch_setup): New function.
13965 (the_low_target): Adjust.
13966 (initialize_low_arch): New function.
13967 * linux-sh-low.c (tdesc_sharch): Declare.
13968 (target_regsets): Rename to ...
13969 (sh_regsets): ... this, and make static.
13970 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13971 (sh_regs_info, sh_arch_setup): New functions.
13972 (the_low_target): Adjust.
13973 (initialize_low_arch): New function.
13974 * linux-bfin-low.c (tdesc_bfin): Declare.
13975 (bfin_arch_setup): New function.
13976 (bfin_usrregs_info, regs_info): New globals.
13977 (bfin_regs_info): New function.
13978 (the_low_target): Adjust.
13979 (initialize_low_arch): New function.
13980 * linux-cris-low.c (tdesc_cris): Declare.
13981 (cris_arch_setup): New function.
13982 (cris_usrregs_info, regs_info): New globals.
13983 (cris_regs_info): New function.
13984 (the_low_target): Adjust.
13985 (initialize_low_arch): New function.
13986 * linux-cris-low.c (tdesc_crisv32): Declare.
13987 (cris_arch_setup): New function.
13988 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13989 (cris_regs_info): New function.
13990 (the_low_target): Adjust.
13991 (initialize_low_arch): New function.
13992 * linux-m32r-low.c (tdesc_m32r): Declare.
13993 (m32r_arch_setup): New function.
13994 (m32r_usrregs_info, regs_info): New globals.
13995 (m32r_regs_info): Adjust.
13996 (initialize_low_arch): New function.
13997 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13998 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13999 (tic6x_usrregs_info): Forward declare.
14000 (tic6x_read_description): New function, based on ...
14001 (tic6x_arch_setup): ... this. Reimplement.
14002 (target_regsets): Rename to ...
14003 (tic6x_regsets): ... this, and make static.
14004 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14005 (tic6x_regs_info): New function.
14006 (the_low_target): Adjust.
14007 (initialize_low_arch): New function.
14008 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14009 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14010 (target_regsets): Rename to ...
14011 (xtensa_regsets): ... this, and make static.
14012 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14013 globals.
14014 (xtensa_arch_setup, xtensa_regs_info): New functions.
14015 (the_low_target): Adjust.
14016 (initialize_low_arch): New function.
14017 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14018 (nios2_arch_setup): Set the current process'es tdesc.
14019 (target_regsets): Rename to ...
14020 (nios2_regsets): ... this.
14021 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14022 (nios2_regs_info): New function.
14023 (the_low_target): Adjust.
14024 (initialize_low_arch): New function.
a261b8f5
PA
14025 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14026 (aarch64_arch_setup): Set the current process'es tdesc.
14027 (target_regsets): Rename to ...
14028 (aarch64_regsets): ... this.
14029 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14030 (aarch64_regs_info): New function.
14031 (the_low_target): Adjust.
14032 (initialize_low_arch): New function.
3aee8918
PA
14033 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14034 globals.
14035 (target_regsets): Rename to ...
14036 (tile_regsets): ... this.
14037 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14038 (tile_regs_info): New function.
14039 (tile_arch_setup): Set the current process'es tdesc.
14040 (the_low_target): Adjust.
14041 (initialize_low_arch): New function.
14042 * spu-low.c (tdesc_spu): Declare.
14043 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14044 * win32-arm-low.c (tdesc_arm): Declare.
14045 (arm_arch_setup): New function.
14046 (the_low_target): Install arm_arch_setup instead of
14047 init_registers_arm.
14048 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14049 (init_windows_x86): Rename to ...
14050 (i386_arch_setup): ... this. Set `win32_tdesc'.
14051 (the_low_target): Adjust.
14052 * win32-low.c (win32_tdesc): New global.
14053 (child_add_thread): Don't create the thread cache here.
14054 (do_initial_child_stuff): Set the new process'es tdesc.
14055 * win32-low.h (struct target_desc): Forward declare.
14056 (win32_tdesc): Declare.
14057 * lynx-i386-low.c (tdesc_i386): Declare global.
14058 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14059 * lynx-low.c (lynx_tdesc): New global.
14060 (lynx_add_process): Set the new process'es tdesc.
14061 * lynx-low.h (struct target_desc): Forward declare.
14062 (lynx_tdesc): Declare global.
14063 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14064 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14065 * nto-low.c (nto_tdesc): New global.
14066 (do_attach): Set the new process'es tdesc.
14067 * nto-low.h (struct target_desc): Forward declare.
14068 (nto_tdesc): Declare.
14069 * nto-x86-low.c (tdesc_i386): Declare.
14070 (nto_x86_arch_setup): Set `nto_tdesc'.
14071
b1fbec62
GB
140722013-06-04 Gary Benson <gbenson@redhat.com>
14073
14074 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14075 to qSupported response when appropriate.
14076 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14077 with nonzero-length annex.
14078 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14079 arguments supplied in annex.
14080
d1ec4ce7
DE
140812013-05-31 Doug Evans <dje@google.com>
14082
ac44adcb 14083 PR server/15594
d1ec4ce7
DE
14084 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14085 64 bits in 64-cross-32 environment.
14086
9b25f2d3
PA
140872013-05-28 Pedro Alves <palves@redhat.com>
14088
14089 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14090 (aarch64-without-fpu.c): Delete rule.
14091 * configure.srv (aarch64*-*-linux*): Remove references to
14092 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14093 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14094 declaration.
14095
6740dc9c
PA
140962013-05-24 Pedro Alves <palves@redhat.com>
14097
14098 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14099 instead of strchr/decode_address. Error if the range isn't split
14100 with a ','. Don't assume there's be a ':' in the action.
14101
c2d6af84
PA
141022013-05-23 Yao Qi <yao@codesourcery.com>
14103 Pedro Alves <palves@redhat.com>
14104
14105 * linux-low.c (lwp_in_step_range): New function.
14106 (linux_wait_1): If the thread was range stepping and stopped
14107 outside the stepping range, report the stop to GDB. Otherwise,
14108 continue stepping. Add range stepping debug output.
14109 (linux_set_resume_request): Copy the step range from the resume
14110 request to the lwp.
14111 (linux_supports_range_stepping): New.
14112 (linux_target_ops) <supports_range_stepping>: Set to
14113 linux_supports_range_stepping.
14114 * linux-low.h (struct linux_target_ops)
14115 <supports_range_stepping>: New field.
14116 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14117 * linux-x86-low.c (x86_supports_range_stepping): New.
14118 (the_low_target) <supports_range_stepping>: Set to
14119 x86_supports_range_stepping.
14120 * server.c (handle_v_cont): Handle 'r' action.
14121 (handle_v_requests): Append ";r" if the target supports range
14122 stepping.
14123 * target.h (struct thread_resume) <step_range_start,
14124 step_range_end>: New fields.
14125 (struct target_ops) <supports_range_stepping>:
14126 New field.
14127 (target_supports_range_stepping): New macro.
14128
58794e1a
JB
141292013-05-17 Joel Brobecker <brobecker@adacore.com>
14130
14131 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14132 confusion in comment.
14133
d631c5a7
JB
141342013-05-17 Joel Brobecker <brobecker@adacore.com>
14135
14136 * lynx-low.c (struct process_info_private): New type.
14137 (lynx_add_process): New function.
14138 (lynx_create_inferior, lynx_attach): Replace calls to
14139 add_process by calls to lynx_add_process.
14140 (lynx_resume): If PTID is null, then try using
14141 current_process()->private->last_wait_event_ptid.
14142 Add comments.
14143 (lynx_clear_inferiors): Delete. The contents of that function
14144 has been inlined in lynx_mourn;
14145 (lynx_wait_1): Save the ptid in the process's private data.
14146 (lynx_mourn): Free the process' private data. Replace call
14147 to lynx_clear_inferiors by call to clear_inferiors.
14148
96f7a20f
YQ
141492013-05-17 Yao Qi <yao@codesourcery.com>
14150
14151 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14152 the right place.
14153
db0dfaa0
LM
141542013-05-16 Luis Machado <lgustavo@codesourcery.com>
14155
14156 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14157 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14158 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14159 PT_TEXT_END_ADDR guards. Update comments.
14160 (linux_target_op) <read_offsets>: Conditionally define to
14161 linux_read_offsets if the target is UCLIBC and if it defines
14162 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14163
68f5f838
SL
141642013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14165 Andrew Jenner <andrew@codesourcery.com>
14166
14167 * Makefile.in (SFILES): Add linux-nios2-low.c.
14168 (clean): Add action to delete nios2-linux.c.
14169 (nios2-linux.c): New rule.
14170 * configure.srv: Add nios2*-*-linux*.
14171 * linux-nios2-low.c: New.
14172
1ebff1fd
HAQ
141732013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14174
14175 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14176
f6150862
HZ
141772013-04-25 Hui Zhu <hui@codesourcery.com>
14178
14179 PR gdb/15186
f6150862
HZ
14180 * ax.c (ax_printf): Add fflush.
14181
614c279d
TT
141822013-04-22 Tom Tromey <tromey@redhat.com>
14183
14184 * Makefile.in (SFILES): Add filestuff.c.
14185 (OBS): Add filestuff.o.
14186 (filestuff.o): New target.
14187 * config.in, configure: Rebuild.
14188 * configure.ac: Check for fdwalk, pipe2.
14189
7d4e5717
PA
141902013-04-17 Pedro Alves <palves@redhat.com>
14191
14192 * configure.ac (USE_THREAD_DB): Delete variable.
14193 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14194 Don't AC_SUBST USE_THREAD_DB.
14195 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14196 * config.in, configure: Regenerate.
14197
d5c93e41
PA
141982013-04-16 Pedro Alves <palves@redhat.com>
14199
14200 * linux-low.h (struct lwp_info) <thread_known>: Move under
14201 the USE_THREAD_DB #ifdef.
14202
04f5fe89
PA
142032013-04-16 Pedro Alves <palves@redhat.com>
14204
14205 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14206 (linux-low.o): Delete rule.
14207 * linux-low.h: Always include "gdb_thread_db.h" instead of
14208 conditionally including thread_db.h.
14209 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14210 HAVE_THREAD_DB_H.
14211
480b27bf
JK
142122013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14213
14214 * Makefile.in (install-only): Fix make install regression.
14215
43662968
JK
142162013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14217
14218 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14219 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14220 installation.
14221 * gdbserver.1: Remove.
14222
3e74e146
PA
142232013-03-22 Pedro Alves <palves@redhat.com>
14224
14225 * linux-low.c (handle_extended_wait): Don't call
14226 linux_enable_event_reporting.
14227
a8347a2a
TT
142282013-03-15 Tony Theodore <tonyt@logyst.com>
14229
14230 PR build/9098:
14231 * Makefile.in (SHELL): Use @SHELL@.
14232
eeb56fa7
SDJ
142332013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14234
14235 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14236 compiler warning.
14237
4fa7e2ff
JB
142382013-03-13 Joel Brobecker <brobecker@adacore.com>
14239
14240 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14241 Remove extraneous NULL element.
14242
8ddb1965
YQ
142432013-03-13 Yao Qi <yao@codesourcery.com>
14244
14245 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14246 'V' block in trace frame.
14247
9accd112
MM
142482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14249
14250 * target.h (struct target_ops): Add btrace ops.
14251 (target_supports_btrace): New macro.
14252 (target_enable_btrace): New macro.
14253 (target_disable_btrace): New macro.
14254 (target_read_btrace): New macro.
14255 * gdbthread.h (struct thread_info): Add btrace field.
14256 * server.c: Include btrace-common.h.
14257 (handle_btrace_general_set): New function.
14258 (handle_btrace_enable): New function.
14259 (handle_btrace_disable): New function.
14260 (handle_general_set): Call handle_btrace_general_set.
14261 (handle_qxfer_btrace): New function.
14262 (struct qxfer qxfer_packets[]): Add btrace entry.
14263 * inferiors.c (remove_thread): Disable btrace.
14264 * linux-low: Include linux-btrace.h.
14265 (linux_low_enable_btrace): New function.
14266 (linux_low_read_btrace): New function.
14267 (linux_target_ops): Add btrace ops.
14268 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14269 Add srv_linux_btrace=yes.
14270 (x86_64-*-linux*): Add linux-btrace.o.
14271 Add srv_linux_btrace=yes.
14272 * configure.ac: Define HAVE_LINUX_BTRACE.
14273 * config.in: Regenerated.
14274 * configure: Regenerated.
14275
5cc22e4c
MM
142762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14277
14278 * server.c (handle_qxfer): Preserve error message if -3 is
14279 returned.
14280 (qxfer): Document the -3 return value.
14281
7c97f91e
MM
142822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14283
14284 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14285 (linux_btrace_h): New variable.
14286 (linux-btrace.o): New rule.
14287
be9a119c 142882013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14289 Hafiz Abid Qadeer <abidh@codesourcery.com>
14290
14291 * tracepoint.c (trace_buffer_size): New global.
14292 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14293 (init_trace_buffer): Change to one-argument function. Allocate
14294 trace buffer memory.
14295 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14296 handle QTBuffer:size packet.
14297 (cmd_bigqtbuffer_size): New function.
14298 (initialize_tracepoint): Call init_trace_buffer with
14299 DEFAULT_TRACE_BUFFER_SIZE.
14300 * server.c (handle_query): Add QTBuffer:size in the
14301 supported packets.
14302
e64f7499
YQ
143032013-03-07 Yao Qi <yao@codesourcery.com>
14304
14305 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14306 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14307 of -1.
14308 (cmd_qtsp): Adjust condition. Do post increment.
14309 Set cur_action and cur_step_action back to 0.
14310
f0ae6fc3
PA
143112013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14312
14313 PR server/15236
14314 * linux-low.c (linux_write_memory): Return early success if LEN is
14315 zero.
14316
b5b0b0af
CV
143172013-03-05 Corinna Vinschen <vinschen@redhat.de>
14318
334ad4a8 14319 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14320
589bc927
TT
143212013-02-28 Tom Tromey <tromey@redhat.com>
14322
14323 * configure.ac: Invoke AC_SYS_LARGEFILE.
14324 * configure, config.in: Rebuild.
14325
dfe07582
CV
143262013-02-28 Corinna Vinschen <vinschen@redhat.com>
14327
14328 * win32-low.c: Throughout, fix format strings and casts of
14329 printf-like functions to avoid type related warnings on all
14330 platforms.
14331 (get_child_debug_event): Print dwDebugEventCode as hex since
14332 that's how it's usually documented.
14333
736cd585
YQ
143342013-02-28 Yao Qi <yao@codesourcery.com>
14335
14336 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14337 pulongest.
14338
e1f58301
JW
143392013-02-27 Jiong Wang <jiwang@tilera.com>
14340
14341 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14342 (reg-tilegx32.c): New rule.
14343 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14344 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14345 different register info initializer according to elf class.
14346 (init_registers_tilgx32): New function. The tilegx32 register info
14347 initializer.
14348 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14349 (tile_store_gregset): Likewise.
14350
d171ca78
YQ
143512013-02-27 Yao Qi <yao@codesourcery.com>
14352
14353 * server.c (process_point_options): Print debug message when
14354 debug_threads is true.
14355
282bbdf3
YQ
143562013-02-26 Yao Qi <yao@codesourcery.com>
14357
14358 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14359
aca22551
PA
143602013-02-19 Pedro Alves <palves@redhat.com>
14361 Kai Tietz <ktietz@redhat.com>
14362
14363 PR gdb/15161
14364
14365 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14366 instead of strtoul to extract address from packet.
14367 (process_serial_event) <'z'>: Likewise.
14368
4f3cee1c
YQ
143692013-02-18 Yao Qi <yao@codesourcery.com>
14370
14371 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14372
8e1d55a3
PA
143732013-02-14 Pedro Alves <palves@redhat.com>
14374
14375 Plug memory leak.
14376
14377 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14378 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14379
458820da
PA
143802013-02-14 Pedro Alves <palves@redhat.com>
14381
14382 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14383
baea0dae
PA
143842013-02-14 Pedro Alves <palves@redhat.com>
14385
14386 * tracepoint.c (save_string): Delete.
14387 (add_tracepoint_action): Use savestring instead of save_string.
14388
0b1afbb3
PA
143892013-02-12 Pedro Alves <palves@redhat.com>
14390
14391 * linux-xtensa-low.c: Ditto.
14392 * xtensa-xtregs.c: Ditto.
14393
8a4ac37e
PA
143942013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14395
14396 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14397 thread_db.
14398
148de6bb
MS
143992013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14400
14401 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14402 aarch64_num_wp_regs and aarch64_num_bp_regs to
14403 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14404
55fac6e0
MS
144052013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14406
14407 * linux-aarch64-low.c (ps_get_thread_area): Replace
14408 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14409
176eb98c
MS
144102013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14411 Marcus Shawcroft <marcus.shawcroft@arm.com>
14412 Nigel Stephens <nigel.stephens@arm.com>
14413 Yufeng Zhang <yufeng.zhang@arm.com>
14414
14415 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14416 (aarch64.c, aarch64-without-fpu.c): New targets.
14417 * configure.srv (aarch64*-*-linux*): New.
14418 * linux-aarch64-low.c: New file.
14419
56f7af9c
MS
144202013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14421
43aaf8b6 14422 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14423 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14424 (dequeue_one_deferred_signal, linux_resume_one_thread)
14425 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14426 (linux_tracefork_grandchild, linux_test_for_tracefork)
14427 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14428 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14429 where the argument is 0.
14430
60f662b0
YQ
144312013-01-25 Yao Qi <yao@codesourcery.com>
14432
14433 * event-loop.c: Include "queue.h".
14434 (gdb_event_p): New typedef.
14435 (struct gdb_event) <next_event>: Remove.
14436 (event_queue): Change to QUEUE(gdb_event_p).
14437 (async_queue_event): Remove.
14438 (gdb_event_xfree): New.
14439 (initialize_event_loop): New.
14440 (process_event): Use API from QUEUE.
14441 (wait_for_event): Likewise.
14442 * server.c (main): Call initialize_event_loop.
14443 * server.h (initialize_event_loop): Declare.
14444
5ae4861a
YQ
144452013-01-18 Yao Qi <yao@codesourcery.com>
14446
14447 * ax.h (struct eval_agent_expr_context): New.
14448 (gdb_eval_agent_expr): Update declaration.
14449 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14450 TFRAME. Add new argument CTX.
14451 * server.h (struct eval_agent_expr_context): Declare.
14452 (agent_mem_read, agent_tsv_read): Update declaration.
14453 (agent_mem_read_string): Likewise.
14454 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14455 (add_traceframe_block): Add new argument TPOINT.
14456 Increase TPOINT->traceframe_usage.
14457 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14458 eval_tracepoint_agent_expr.
14459 (condition_true_at_tracepoint): Likewise.
14460 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14461 (agent_mem_read_string, agent_tsv_read): Likewise.
14462
85e00e85
YQ
144632013-01-16 Yao Qi <yao@codesourcery.com>
14464
14465 * linux-low.c (linux_resume_one_lwp): Don't check
14466 'lwp->bp_reinsert != 0'.
14467
4039cf45
JB
144682013-01-07 Joel Brobecker <brobecker@adacore.com>
14469 Pedro Alves <palves@redhat.com>
14470
14471 * lynx-low.c (ptrace_request_to_str): Define a temporary
14472 macro and use it to simplify this function's implementation.
14473
9044dee2
JB
144742013-01-07 Joel Brobecker <brobecker@adacore.com>
14475
14476 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14477 sets errno.
14478
e6352c8f
JB
144792013-01-07 Joel Brobecker <brobecker@adacore.com>
14480
14481 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14482
50681a27
JB
144832013-01-07 Joel Brobecker <brobecker@adacore.com>
14484
14485 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14486
3f6e77ef
JB
144872013-01-07 Joel Brobecker <brobecker@adacore.com>
14488
14489 * lynx-low.c (lynx_resume): Use the resume_info parameter
14490 to determine the ptid for the lynx_ptrace call, unless
14491 it is equal to minus_one_ptid, in which case we use the
14492 ptid of the current_inferior.
14493 (lynx_wait_1): After having received a thread create/exit
14494 event, resume the inferior's execution using the signaling
14495 thread's ptid, rather than the old ptid.
14496
7fda33ae
JB
144972013-01-07 Joel Brobecker <brobecker@adacore.com>
14498
14499 * lynx-low.c (lynx_resume): Delete variable ret.
14500
b9786c74
JB
145012013-01-01 Joel Brobecker <brobecker@adacore.com>
14502
14503 * gdbreplay.c (gdbreplay_version): Update copyright year.
14504 * server.c (gdbserver_version): Likewise.
14505
8b93d60f
JB
145062012-12-17 Joel Brobecker <brobecker@adacore.com>
14507
14508 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14509 new thread.
14510
037335a7
JB
145112012-12-17 Joel Brobecker <brobecker@adacore.com>
14512
14513 * lynx-low.c (ptrace_request_to_str): Add handling for
14514 PTRACE_GETTRACESIG.
14515
52d4cbd8
JB
145162012-12-17 Joel Brobecker <brobecker@adacore.com>
14517
14518 * lynx-low.c (lynx_attach): Delete variable new_process.
14519
ab8f6ca9
JB
145202012-12-17 Joel Brobecker <brobecker@adacore.com>
14521
14522 * lynx-low.c (lynx_create_inferior): Delete variable
14523 new_process.
14524
78cbc024
JB
145252012-12-17 Joel Brobecker <brobecker@adacore.com>
14526
14527 * lynx-low.c (ptrace_request_to_str): Do not handle
14528 PTRACE_GETTHREADLIST if this macro does not exist.
14529
14a00470
YQ
145302012-12-15 Yao Qi <yao@codesourcery.com>
14531
14532 * Makefile.in (OBS): Add notif.o.
14533 * notif.c, notif.h: New.
14534 * server.c: Include "notif.h".
14535 (struct vstop_notif) <next>: Remove.
14536 <base>: New field.
14537 (queue_stop_reply): Update.
14538 (push_event, send_next_stop_reply): Remove.
14539 (discard_queued_stop_replies): Update.
14540 (notif_stop): New variable.
14541 (handle_v_stopped): Remove.
14542 (handle_v_requests): Don't call handle_v_stopped. Call
14543 handle_ack_notif instead.
14544 (queue_stop_reply_callback): Call notif_event_enque instead
14545 of queue_stop_reply.
14546 (handle_status): Don't call send_next_stop_reply, call
14547 notif_write_event instead.
14548 (kill_inferior_callback): Likewise.
14549 (detach_or_kill_inferior_callback): Likewise.
14550 (main): Call initialize_notif.
14551 (process_serial_event): Call QUEUE_is_empty.
14552 (handle_target_event): Call notif_push instead of push event.
14553 * server.h (push_event): Remove declaration.
14554
61c125b9
TT
145552012-12-10 Tom Tromey <tromey@redhat.com>
14556
14557 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14558 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14559 macros.
14560 (.c.o): Rewrite.
14561 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14562 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14563 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14564 (amd64-linux-ipa.o, ax.o): Rewrite.
14565 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14566 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14567 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14568 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14569 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14570 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14571 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14572 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14573 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14574 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14575 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14576 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14577 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14578 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14579 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14580 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14581 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14582 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14583 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14584 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14585 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14586 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14587 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14588 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14589 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14590 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14591 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14592 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14593 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14594 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14595 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14596 (reg-tilegx.o): Remove.
14597 (all_object_files): New macro.
14598 Include .deps files.
14599 * aclocal.m4, configure: Rebuild.
14600 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14601 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14602 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14603
e90e9ad9
TT
146042012-12-05 Tom Tromey <tromey@redhat.com>
14605
14606 PR gdb/14917:
14607 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14608
02d403bf 146092012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14610
14611 * configure.ac: Check for linux/perf_event.h.
14612 * config.in: Regenerated.
14613 * configure: Regenerated.
14614
0270a750
PA
146152012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14616
14617 * hostio.c (handle_readlink): Decrease buffer size
14618 parameter passed to readlink by one byte.
14619
8c29b58e
YQ
146202012-11-26 Yao Qi <yao@codesourcery.com>
14621
14622 * configure.ac (build_warnings): Append '-Wempty-body'.
14623 * configure: Regenerated.
14624 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14625 body.
14626
8bdce1ff
PM
146272012-11-15 Pierre Muller <muller@sourceware.org>
14628
14629 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14630 * config.in: Regenerate.
14631 * configure: Regenerate.
14632 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14633 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14634 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14635 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14636 header.
14637 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14638 instead of <sys/wait.h> header.
14639 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14640
02d403bf 146412012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14642
14643 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14644 (various make rules): Remove -DGDBSERVER
14645
fbd5db48
YQ
146462012-11-09 Yao Qi <yao@codesourcery.com>
14647
14648 * spu-low.c (current_ptid): Move it to ..
14649 * gdbthread.h: ... here. New.
14650 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14651 * server.c (myresume, process_serial_event): Likewise.
14652 * thread-db.c (thread_db_find_new_threads): Likewise.
14653 * tracepoint.c (run_inferior_command): Likewise.
14654
b3dc46ff
AB
146552012-10-01 Andrew Burgess <aburgess@broadcom.com>
14656
14657 * server.c (handle_search_memory_1): Include access length in
14658 warning message.
14659
07c04788
HPN
146602012-09-05 Michael Brandt <michael.brandt@axis.com>
14661
14662 * linux-crisv32-low.c: Fix compile errors.
14663
918d227b
YQ
146642012-09-04 Yao Qi <yao@codesourcery.com>
14665
14666 * tracepoint.c (cmd_qtsv): Adjust debug message.
14667 Don't check CUR_TPOINT.
14668
18c1b81a
YQ
146692012-08-28 Yao Qi <yao@codesourcery.com>
14670
14671 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14672 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14673 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14674 Remove declarations of xmalloc, xreallloc, xstrdup and
14675 freeargv.
14676 * Makefile.in (libiberty_h): New.
14677 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14678 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14679
dc82f37b
YQ
146802012-08-23 Yao Qi <yao@codesourcery.com>
14681
14682 * server.h: Remove declaration of 'xsnprintf'.
14683
406b1477
KS
146842012-08-22 Keith Seitz <keiths@redhat.com>
14685
14686 * server.h: Include build-gnulib-gbserver/config.h.
14687 * gdbreplay.c: Likewise.
14688
e6712ff1
DE
146892012-08-08 Doug Evans <dje@google.com>
14690
14691 * Makefile.in (SFILES): Add gdb_vecs.c.
14692 (OBS): Add gdb_vecs.o.
14693 (gdb_vecs_h, host_defs_h): New variables.
14694 (thread-db.o): Add $(gdb_vecs_h) dependency.
14695 (gdb_vecs.o): New rule.
14696 * thread-db.c: #include "gdb_vecs.h".
14697 (thread_db_load_search): Use a vector to iterate over path elements.
14698 Handle text appearing after "$pdir".
14699
14700 * configure.ac: Add check for strstr.
14701 * config.in: Regenerate.
14702 * configure: Regenerate.
14703
7c3270ae
UW
147042012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14705
14706 * hostio.c (handle_pread): If pread fails, fall back to attempting
14707 lseek/read.
14708 (handle_pwrite): Likewise for pwrite.
14709
b62e2b27
UW
147102012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14711
14712 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14713 between unsupported TYPE and unimplementable ADDR/LEN combination.
14714 (arm_insert_point): Act on new return value.
14715
78a99e91
PA
147162012-07-31 Pedro Alves <palves@redhat.com>
14717
14718 * server.c (process_point_options): Only skip tokens if we find
14719 one that is unrecognized. Don't treat 'X' specially while
14720 skipping unrecognized tokens.
14721
fcf303ab
UW
147222012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14723
14724 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14725 to 4-byte-align HW breakpoint addresses for Thumb.
14726
7255706c
YQ
147272012-07-27 Yao Qi <yao@codesourcery.com>
14728
14729 PR remote/14161.
14730
14731 * server.h: Declare gdb_agent_about_to_close.
14732 * target.c (kill_inferior): Include "agent.h".
14733 New. Send command 'kill'.
14734 * target.h (kill_inferior): Removed macro.
14735 * tracepoint.c (gdb_agent_about_to_close): New.
14736 (gdb_agent_helper_thread): Handle command 'close'.
14737 Wait endlessly until the inferior stops.
14738 Install gdb_agent_remove_socket to atexit hook.
14739 (agent_socket_name): New static variable.
14740 (gdb_agent_socket_init): Replace local variable 'name' with
14741 'agent_socket_name'.
14742 (gdb_agent_remove_socket): New.
14743
5a3f286f
YQ
147442012-07-27 Yao Qi <yao@codesourcery.com>
14745
14746 * server.c (process_point_options): Stop at 'X' when parsing.
14747
961bd387
ME
147482012-07-19 Michael Eager <eager@eagercon.com>
14749
a261b8f5 14750 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14751 to hw_execute.
14752 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14753 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14754 hardware breakpoint.
14755
aa7c7447
JK
147562012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14757
14758 * gdbserver/linux-low.c (initialize_low): Call
14759 linux_ptrace_init_warnings.
14760
7f216e7c
DE
147612012-07-02 Doug Evans <dje@google.com>
14762
14763 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14764 pointer to int.
14765
d3ce09f5
SS
147662012-07-02 Stan Shebs <stan@codesourcery.com>
14767
14768 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14769 (ax.o): Add it to build rule.
14770 (ax-ipa.o): Ditto.
14771 (OBS): Add format.o.
14772 (IPA_OBS): Add format.o.
14773 * server.c (handle_query): Claim support for breakpoint commands.
14774 (process_point_options): Add command case.
14775 (process_serial_event): Leave running if there are printfs in
14776 effect.
14777 * mem-break.h (any_persistent_commands): Declare.
14778 (add_breakpoint_commands): Declare.
14779 (gdb_no_commands_at_breakpoint): Declare.
14780 (run_breakpoint_commands): Declare.
14781 * mem-break.c (struct point_command_list): New struct.
14782 (struct breakpoint): New field command_list.
14783 (any_persistent_commands): New function.
14784 (add_commands_to_breakpoint): New function.
14785 (add_breakpoint_commands): New function.
14786 (gdb_no_commands_at_breakpoint): New function.
14787 (run_breakpoint_commands): New function.
14788 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14789 locally.
14790 * ax.c: Include format.h.
14791 (ax_printf): New function.
14792 (gdb_eval_agent_expr): Add printf opcode.
14793
2f8f6aed
YQ
147942012-06-13 Yao Qi <yao@codesourcery.com>
14795
14796 * server.c (start_inferior): Remove duplicated writes to fields
14797 'last_resume_kind' and 'last_status' of 'current_inferior'.
14798
0c9070b3
YQ
147992012-06-12 Yao Qi <yao@codesourcery.com>
14800 Pedro Alves <palves@redhat.com>
14801
14802 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14803 comment.
14804 * server.c (handle_v_cont): Extend comment.
14805
c52daf70
YQ
148062012-06-11 Yao Qi <yao@codesourcery.com>
14807
14808 * linux-low.c (linux_attach): Add 'static'.
14809
d38bbb0a
YQ
148102012-06-06 Yao Qi <yao@codesourcery.com>
14811
14812 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14813
89dc0afd
JK
148142012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14815
14816 Fix gcc -flto compilation warning.
14817 * server.c (main): Make variable multi_mode and attach volatile.
14818
75f62ce7
TJB
148192012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14820
14821 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14822 if the platform doesn't know about it.
14823
65f479b6
PA
148242012-05-30 Jeff Kenton <jkenton@tilera.com>
14825
14826 * Makefile.in (SFILES): Add linux-tile-low.c.
14827 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14828 * configure.srv: Handle tilegx-*-linux*.
14829 * linux-tile-low.c: New file.
14830
0c5bf5a9
JK
148312012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14832
14833 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14834
a493e3e2
PA
148352012-05-24 Pedro Alves <palves@redhat.com>
14836
14837 PR gdb/7205
14838
43aaf8b6 14839 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14840
2ea28649
PA
148412012-05-24 Pedro Alves <palves@redhat.com>
14842
14843 PR gdb/7205
14844
14845 Replace target_signal with gdb_signal throughout.
14846
8d409d16
MR
148472012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14848
14849 * linux-low.c (linux_store_registers): Avoid the copying sequence
14850 when no data has been retrieved by ptrace.
14851
23512c01
MGD
148522012-05-22 Will Deacon <will.deacon@arm.com>
14853
14854 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14855 Include asm/ptrace.h.
14856 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14857 already defined.
14858
4934b29e
MR
148592012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14860
14861 * linux-low.c (linux_store_registers): Don't re-retrieve data
14862 with ptrace that has already been obtained from /proc. Always
14863 copy any data retrieved with ptrace to the buffer supplied.
14864
bde24c0a
PA
148652012-05-11 Yao Qi <yao@codesourcery.com>
14866 Pedro Alves <palves@redhat.com>
14867
14868 * linux-low.c (enum stopping_threads_kind): New.
14869 (stopping_threads): Change type to `enum stopping_threads_kind'.
14870 (handle_extended_wait): If stopping and suspending threads, leave
14871 the new_lwp suspended too.
14872 (linux_wait_for_event): Adjust.
14873 (stop_all_lwps): Set `stopping_threads' to
14874 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14875 whether we're suspending threads or just stopping them. Assert no
14876 recursion happens.
14877
623b6bdf
YQ
148782012-04-29 Yao Qi <yao@codesourcery.com>
14879
14880 * server.h: Move some code to ...
14881 * gdbthread.h: ... here. New.
14882 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14883 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14884 (nto-low.o, win32-low.o): Likewise.
14885 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14886 * regcache.c, remote-utils.c, server.c: Likewise.
14887 * target.c, tracepoint.c, win32-low.c: Likewise.
14888
f15f9948
TJB
148892012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14890
14891 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14892 (PTRACE_ARG4_TYPE): Likewise.
14893 (PTRACE_XFER_TYPE): Likewise.
14894 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14895 ptrace to PTRACE_ARG3_TYPE.
14896 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14897 (PTRACE_ARG4_TYPE): Likewise.
14898 (PTRACE_XFER_TYPE): Likewise.
14899 (linux_detach_one_lwp): Cast fourth argument of
14900 ptrace to long then PTRACE_ARG4_TYPE.
14901 (regsets_fetch_inferior_registers): Cast third argument of
14902 ptrace to long then PTRACE_ARG3_TYPE.
14903 (regsets_store_inferior_registers): Likewise.
14904
38ea300a
PA
149052012-04-20 Pedro Alves <palves@redhat.com>
14906
14907 * configure: Regenerate.
14908
c971b7fa
PA
149092012-04-19 Pedro Alves <palves@redhat.com>
14910
43aaf8b6 14911 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14912 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14913 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14914 (all, install-only, uninstall, clean-info, all-lib, clean): No
14915 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14916 (maintainer-clean realclean distclean): Use subdir_do.
14917 (subdir_do): New.
14918 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14919 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14920 * acinclude.m4: Include acx_configure_dir.m4.
14921 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14922 calls. Call AC_PROG_RANLIB. Configure gnulib using
14923 ACX_CONFIGURE_DIR.
14924 (GNULIB): New.
14925 (GNULIB_STDINT_H): Adjust.
14926 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14927 * gdbreplay.c: Include build-gnulib/config.h.
14928 * server.h: Likewise.
14929 * aclocal.m4: Regenerate.
14930 * config.in: Regenerate.
14931 * configure: Regenerate.
c971b7fa 14932
809277f8
PA
149332012-04-19 Pedro Alves <palves@redhat.com>
14934
14935 * Makefile.in (LIBGNU, INCGNU): Adjust.
14936 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14937 (all, install-only, uninstall, clean-info, all-lib, clean)
14938 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14939 * configure.ac: Adjust AC_OUTPUT output.
14940 * aclocal.m4: Regenerate.
14941 * configure: Regenerate.
14942
fd9bb8b8
PA
149432012-04-19 Pedro Alves <palves@redhat.com>
14944
14945 * Makefile.in (generated_files): New.
14946 (server_h): Remove the explicit dependency on config.h, and depend
14947 on $generated_files.
14948
1c298c66
PA
149492012-04-19 Pedro Alves <palves@redhat.com>
14950
14951 * Makefile.in (INCGNU): Add -Ignulib.
14952
57c4b50b
PA
149532012-04-19 Pedro Alves <palves@redhat.com>
14954
14955 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14956 (INCGNU): ... this, and spell out -I here.
14957 (GNULIB_LIB): Rename to ...
14958 (LIBGNU): ... this.
14959 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14960
1030e047
PA
149612012-04-19 Pedro Alves <palves@redhat.com>
14962
14963 * config.in: Regenerate.
14964
447d4319
PA
149652012-04-19 Pedro Alves <palves@redhat.com>
14966
14967 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14968 * server.h (memmem): Remove declaration.
14969 * config.in: Regenerate.
14970 * configure: Regenerate.
14971
aad9eab9
YQ
149722012-04-19 Yao Qi <yao@codesourcery.com>
14973
14974 * Makefile.in (SFILES): Add common/vec.c.
14975 (OBS): Add vec.o.
14976 (vec.o): New rule.
14977
3e10640f
YQ
149782012-04-19 Yao Qi <yao@codesourcery.com>
14979
14980 * remote-utils.c (prepare_resume_reply): Replace with macro
14981 target_core_of_thread.
14982 * server.c (handle_qxfer_threads_proper): Likewise.
14983 * target.h (traget_core_of_thread): New macro.
14984
71622373
PA
149852012-04-18 Pedro Alves <palves@redhat.com>
14986
14987 * aclocal.m4: Regenerate.
14988 * configure: Regenerate.
14989
80d26939
YQ
149902012-04-16 Yao Qi <yao@codesourcery.com>
14991
14992 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14993 duplicated on address.
14994
42476b70
YQ
149952012-04-16 Yao Qi <yao@codesourcery.com>
14996
14997 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14998 (struct tracepoint_action_ops) <send>: New field.
14999 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15000 (agent_expr_send, x_tracepoint_action_send): New.
15001 (l_tracepoint_action_send): New.
15002 (cmd_qtdp): Download and install tracepoint
15003 according to `use_agent'.
15004 (run_inferior_command): Add one more parameter `len'.
15005 Update callers.
15006 (tracepoint_send_agent): New.
15007 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15008
7bc83639
YQ
150092012-04-16 Yao Qi <yao@codesourcery.com>
15010
15011 * tracepoint.c (download_tracepoints): Moved to ...
15012 (cmd_qtstart): ... here.
15013
5f18041e
YQ
150142012-04-14 Yao Qi <yao@codesourcery.com>
15015
15016 * tracepoint.c: Include inttypes.h.
15017 (struct collect_memory_action): Use sized types.
15018 (struct tracepoint): Likewise.
15019 (cmd_qtdp, stop_tracing): Update print specifiers.
15020 (cmd_qtp, response_tracepoint): Likewise.
15021 (collect_data_at_tracepoint): Likewise.
15022 (collect_data_at_step): Likewise.
15023
55a8c076
YQ
150242012-04-14 Yao Qi <yao@codesourcery.com>
15025
15026 Import gnulib module inttypes.
15027 * aclocal.m4, config.in, configure: Regenerated.
15028
dc750257
YQ
150292012-04-14 Yao Qi <yao@codesourcery.com>
15030
15031 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15032 Makefile and config.status at last.
15033
0ab5faf9
YQ
150342012-04-13 Yao Qi <yao@codesourcery.com>
15035
15036 * tracepoint.c: Include stdint.h unconditionally.
15037
18f5fd81
TJB
150382012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15039
15040 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15041 on BFD_HAVE_SYS_PROCFS_TYPE.
15042 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15043 * configure: Regenerate.
15044 * config.in: Likewise.
15045
4d47af5c
L
150462012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15047
15048 * Makefile.in (clean): Also remove x32.c x32-linux.c
15049 x32-avx.c x32-avx-linux.c.
15050 (x32.o): New target.
15051 (x32.c): Likewise.
15052 (x32-linux.o): Likewise.
15053 (x32-linux.c): Likewise.
15054 (x32-avx.o): Likewise.
15055 (x32-avx.c): Likewise.
15056 (x32-avx-linux.o): Likewise.
15057 (x32-avx-linux.c): Likewise.
15058
15059 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15060 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15061 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15062 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15063 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15064 i386/x32-avx-linux.xml.
15065
15066 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15067 (init_registers_x32_avx_linux): Likwise.
15068 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15069 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15070
ecedbe58
PA
150712012-04-13 Pedro Alves <palves@redhat.com>
15072
15073 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15074 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15075 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15076 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15077 the sub-make.
15078
c92b5177
L
150792012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15080
15081 * linux-x86-low.c (compat_x32_clock_t): New.
15082 (compat_x32_siginfo_t): Likewise.
15083 (compat_x32_siginfo_from_siginfo): Likewise.
15084 (siginfo_from_compat_x32_siginfo): Likewise.
15085 (linux_is_elf64): Likewise.
15086 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15087 and siginfo_from_compat_x32_siginfo for x32.
15088 (x86_arch_setup): Set linux_is_elf64.
15089
214d508e
L
150902012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15091
15092 PR gdb/13969
15093 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15094 e_machine field.
15095 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15096 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15097 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15098 compatible with process.
15099
c9a1864a
YQ
151002012-04-12 Yao Qi <yao@codesourcery.com>
15101
15102 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15103 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15104 (install-only, install-info, clean): Handle sub dir gnulib.
15105 (all-lib, am--refresh): New targets.
15106 (memmem.o): Remove target.
15107 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15108 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15109 (AC_REPLACE_FUNCS): Remove memmem.
15110 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15111 (AC_OUTPUT): Generate Makefile in gnulib/.
15112 * aclocal.m4, config.in, configure: Regenerated.
15113
367ba2c2
MR
151142012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15115
15116 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15117
9d236627
PA
151182012-04-05 Pedro Alves <palves@redhat.com>
15119
15120 -Werror=strict-aliasing
15121
15122 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15123 pointer.
15124
111217b3
PA
151252012-04-04 Pedro Alves <palves@redhat.com>
15126
15127 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15128 (sparc_store_gregset_from_stack, sparc_store_gregset)
15129 (sparc_breakpoint_at): Fix formatting.
15130
8365dcf5
TJB
151312012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15132
15133 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15134 are available.
15135 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15136 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15137 * config.in: Regenerate.
15138 * configure: Likewise.
15139
689cc2ae
PA
151402012-03-29 Pedro Alves <palves@redhat.com>
15141
15142 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15143 Correct ptrace arguments.
15144
c14dfd32
PA
151452012-03-28 Pedro Alves <palves@redhat.com>
15146
15147 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15148 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15149 (IA64_FR1_REGNUM): New defines.
15150 (ia64_fetch_register): New.
15151 (the_low_target): Install it.
15152 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15153 field.
15154 * linux-low.c (linux_fetch_registers): Try the
15155 the_low_target.fetch_register hook first.
15156
15157 * linux-arm-low.c (the_low_target): Adjust.
15158 * linux-bfin-low.c (the_low_target): Adjust.
15159 * linux-cris-low.c (the_low_target): Adjust.
15160 * linux-crisv32-low.c (the_low_target): Adjust.
15161 * linux-m32r-low.c (the_low_target): Adjust.
15162 * linux-m68k-low.c (the_low_target): Adjust.
15163 * linux-mips-low.c (the_low_target): Adjust.
15164 * linux-ppc-low.c (the_low_target): Adjust.
15165 * linux-s390-low.c (the_low_target): Adjust.
15166 * linux-sh-low.c (the_low_target): Adjust.
15167 * linux-sparc-low.c (the_low_target): Adjust.
15168 * linux-tic6x-low.c (the_low_target): Adjust.
15169 * linux-x86-low.c (the_low_target): Adjust.
15170 * linux-xtensa-low.c (the_low_target): Adjust.
15171
63c88e13
PA
151722012-03-26 Pedro Alves <palves@redhat.com>
15173
15174 * server.c (handle_qxfer_libraries): Don't bail early if
15175 the_target->qxfer_libraries_svr4 is not NULL.
15176
fb723180
PA
151772012-03-26 Pedro Alves <palves@redhat.com>
15178
15179 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15180
0afae3cf
PA
151812012-03-23 Pedro Alves <palves@redhat.com>
15182
15183 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15184 "library-list-svr4" element's start tag when the the DSO list is
15185 empty.
15186
485f1ee4
PA
151872012-03-23 Pedro Alves <palves@redhat.com>
15188
15189 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15190 a variable whose type size is the same as the inferior's pointer
15191 size.
15192
a5362b9a
TS
151932012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15194
15195 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15196 struct siginfo.
15197 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15198 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15199 * linux-low.h: Include <signal.h>.
15200 (struct siginfo): Remove forward declaration.
15201 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15202 struct siginfo.
15203
d226c142
MF
152042012-03-21 Mike Frysinger <vapier@gentoo.org>
15205
15206 * .gitignore: Ignore more files.
15207
122f36ef
PA
152082012-03-19 Pedro Alves <palves@redhat.com>
15209 Jan Kratochvil <jan.kratochvil@redhat.com>
15210
15211 * server.c (cont_thread, general_thread): Add describing comments.
15212 (start_inferior): Clear `cont_thread'.
15213 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15214 of a process.
15215
fc3e5175
YQ
152162012-03-15 Yao Qi <yao@codesourcery.com>
15217
15218 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15219 handling to ...
15220 (cmd_qtdp): ... here.
15221
8d0d92cd
YQ
152222012-03-15 Yao Qi <yao@codesourcery.com>
15223
15224 * tracepoint.c (struct tracepoint_action_ops): New.
15225 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15226 (m_tracepoint_action_download): New.
15227 (r_tracepoint_action_download): New.
15228 (x_tracepoint_action_download): New.
15229 (l_tracepoint_action_download): New.
15230 (add_tracepoint_action): Install `action->ops' according type.
15231 (download_tracepoint_1): Move code `download' function pointer
15232 of various tracepoint_action_ops.
15233
87b0bb13
JK
152342012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15235
15236 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15237 linux_ptrace_attach_warnings.
15238
5f572dec
JK
152392012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15240
15241 * Makefile.in (linux-ptrace.o): New.
15242 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15243 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15244 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15245 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15246 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15247 of these targets.
15248 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15249
f4647387
YQ
152502012-03-08 Yao Qi <yao@codesourcery.com>
15251 Pedro Alves <palves@redhat.com>
15252
15253 Fix PR server/13392.
15254 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15255 offset of JMP insn.
15256 * tracepoint.c (remove_tracepoint): New.
15257 (cmd_qtdp): Call remove_tracepoint when failed to install.
15258
9b224c5e
PA
152592012-03-07 Pedro Alves <palves@redhat.com>
15260
15261 * linux-low.c (get_detach_signal): New.
15262 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15263 Pass on pending signals to PTRACE_DETACH. Check the result of the
15264 ptrace call.
15265 * server.c (program_signals, program_signals_p): New.
15266 (handle_general_set): Handle QProgramSignals.
15267 * server.h (program_signals, program_signals_p): Declare.
15268
e237a7e2
JK
152692012-03-05 Pedro Alves <palves@redhat.com>
15270 Jan Kratochvil <jan.kratochvil@redhat.com>
15271
15272 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15273 New comment why.
15274
5808517f
YQ
152752012-03-03 Yao Qi <yao@codesourcery.com>
15276
15277 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15278 agent_look_up_symbols.
15279
58b4daa5
YQ
152802012-03-03 Yao Qi <yao@codesourcery.com>
15281
15282 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15283 (linux-x86-low.o): Likewise.
15284 * server.h: Remove in_process_agent_loaded.
15285 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15286 common/agent.c.
15287 Update callers.
15288
8ffcbaaf
YQ
152892012-03-03 Yao Qi <yao@codesourcery.com>
15290
15291 * tracepoint.c (gdb_agent_capability): New global.
15292 (in_process_agent_loaded_ust): Renamed to
15293 `in_process_agent_supports_ust'.
15294 Update callers.
15295 (in_process_agent_supports_ust): Call agent_capability_check.
15296 (clear_installed_tracepoints): Assert that agent supports
15297 agent.
15298
d1feda86
YQ
152992012-03-03 Yao Qi <yao@codesourcery.com>
15300
15301 * linux-low.c (linux_supports_agent): New.
15302 (linux_target_ops): Initialize field `supports_agent' with
15303 linux_supports_agent.
15304 * target.h (struct target_ops) <supports_agent>: New.
15305 (target_supports_agent): New macro.
15306 * server.c (handle_general_set): Handle packet 'QAgent'.
15307 (handle_query): Send `QAgent+'.
15308 * Makefile.in (server.o): Depends on agent.h.
15309
2fa291ac
YQ
153102012-03-03 Yao Qi <yao@codesourcery.com>
15311
15312 * Makefile.in (OBS): Add agent.o.
15313 Add new rule for agent.o.
15314 Track dependence of tracepoint.c on agent.h.
15315 * tracepoint.c (run_inferior_command_1):
15316 (run_inferior_command): Call agent_run_command.
15317 (gdb_ust_connect_sync_socket): Deleted. Move it to
15318 common/agent.c.
15319 (resume_thread, stop_thread): Likewise.
15320 (gdb_ust_socket_init): Renamed to ...
15321 (gdb_agent_socket_init): ... New.
15322 (gdb_ust_thread): Renamed to ...
15323 (gdb_agent_helper_thread): ... New.
15324 (gdb_ust_init): Move some code to ...
15325 (gdb_agent_init): ... here. New.
15326 [HAVE_UST]: Call gdb_ust_init.
15327 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15328 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15329 * config.in, configure: Regenerated.
15330
05044653
PA
153312012-03-02 Pedro Alves <palves@redhat.com>
15332
15333 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15334 * linux-low.c (struct simple_pid_list): New.
15335 (stopped_pids): New a struct simple_pid_list pointer.
15336 (add_to_pid_list, pull_pid_from_list): New.
15337 (handle_extended_wait): Don't assume the first signal new children
15338 report is SIGSTOP. Adjust call to pull_pid_from_list.
15339 (linux_wait_for_lwp): Adjust.
15340
8d00225b
YQ
153412012-03-02 Yao Qi <yao@codesourcery.com>
15342
15343 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15344 debug log.
15345
19560ba5
YQ
153462012-03-02 Yao Qi <yao@codesourcery.com>
15347
15348 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15349 `stop_pc' and `tpoint'. Update caller.
15350
1faeff08
MR
153512012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15352
15353 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15354 * linux-low.c (use_linux_regsets): New macro.
15355 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15356 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15357 (linux_register_in_regsets): New function.
15358 (usr_fetch_inferior_registers): Skip registers covered by
15359 regsets.
15360 (usr_store_inferior_registers): Likewise.
15361 (usr_fetch_inferior_registers): New macro.
15362 (usr_store_inferior_registers): Likewise.
15363 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15364 (linux_store_registers): Likewise.
15365 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15366 prototype.
15367 (init_registers_mips64_dsp_linux): Likewise.
15368 (init_registers_mips_linux): New macro.
15369 (init_registers_mips_dsp_linux): Likewise.
15370 (mips_dsp_num_regs): Likewise.
15371 (DSP_BASE, DSP_CONTROL): New fallback macros.
15372 (mips_base_regs): New macro.
15373 (mips_regmap): Use it. Fix the size.
15374 (mips_dsp_regmap): New variable.
15375 (mips_dsp_regset_bitmap): Likewise.
15376 (mips_arch_setup): New function.
15377 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15378 than mips_regmap.
15379 (mips_cannot_store_register): Likewise.
15380 (the_low_target): Update .arch_setup, .num_regs and .regmap
15381 initializers. Add .regset_bitmap initializer.
15382 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15383 initializer.
15384 * linux-bfin-low.c (the_low_target): Likewise.
15385 * linux-cris-low.c (the_low_target): Likewise.
15386 * linux-crisv32-low.c (the_low_target): Likewise.
15387 * linux-ia64-low.c (the_low_target): Likewise.
15388 * linux-m32r-low.c (the_low_target): Likewise.
15389 * linux-m68k-low.c (the_low_target): Likewise.
15390 * linux-ppc-low.c (the_low_target): Likewise.
15391 * linux-s390-low.c (the_low_target): Likewise.
15392 * linux-sh-low.c (the_low_target): Likewise.
15393 * linux-sparc-low.c (the_low_target): Likewise.
15394 * linux-tic6x-low.c (the_low_target): Likewise.
15395 * linux-x86-low.c (the_low_target): Likewise.
15396 * linux-xtensa-low.c (the_low_target): Likewise.
15397 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15398 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15399 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15400 srv_xmlfiles.
15401 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15402 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15403
c03e6ccc
YQ
154042012-02-29 Yao Qi <yao@codesourcery.com>
15405 Pedro Alves <palves@redhat.com>
15406
15407 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15408 `step_over_finished' is true.
15409
644cebc9
PA
154102012-02-27 Pedro Alves <palves@redhat.com>
15411
15412 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15413 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15414
c14d7ab2
PA
154152012-02-27 Pedro Alves <palves@redhat.com>
15416
15417 PR server/9684
15418 * linux-low.c (pid_is_stopped): New.
15419 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15420
412c89dd
LM
154212012-02-25 Luis Machado <lgustavo@codesourcery.com>
15422
15423 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15424 of conditions.
15425
b745defe
MR
154262012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15427
15428 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15429
9f3a5c85
LM
154302012-02-24 Luis Machado <lgustavo@codesourcery>
15431
15432 * server.c (handle_query): Advertise support for target-side
15433 breakpoint condition evaluation.
15434 (process_point_options): New function.
15435 (process_serial_event): When inserting a breakpoint, check for
15436 a target-side condition that should be evaluated.
15437
15438 * mem-break.c: Include regcache.h and ax.h.
15439 (point_cond_list_t): New data structure.
15440 (breakpoint) <cond_list>: New field.
15441 (find_gdb_breakpoint_at): Make non-static.
15442 (delete_gdb_breakpoint_at): Clear any target-side
15443 conditions.
15444 (clear_gdb_breakpoint_conditions): New function.
15445 (add_condition_to_breakpoint): Likewise.
15446 (add_breakpoint_condition): Likewise.
15447 (gdb_condition_true_at_breakpoint): Likewise.
15448 (gdb_breakpoint_here): Return result directly instead
15449 of going through a local variable.
15450
15451 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15452 (clear_gdb_breakpoint_conditions): Likewise.
15453 (add_breakpoint_condition): Likewise.
15454 (gdb_condition_true_at_breakpoint): Likewise.
15455
15456 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15457 (need_step_over_p): Take target-side breakpoint condition into
15458 consideration.
15459
5e1dc496
LM
154602012-02-24 Luis Machado <lgustavo@codesourcery>
15461
15462 * server.h: Include tracepoint.h.
15463 (agent_mem_read, agent_get_trace_state_variable_value,
15464 agent_set_trace_state_variable_value,
15465 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15466 get_set_tsv_func_addr): New prototypes.
15467
15468 * ax.h: New include file.
15469 * ax.c: New source file.
15470
15471 * tracepoint.c: Include ax.h.
15472 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15473 agent_expr, eval_result_type): Move to ax.h.
15474 (parse_agent_expr): Rename to ...
15475 (gdb_parse_agent_expr): ... this, make it non-static and move
15476 to ax.h.
15477 (unparse_agent_expr) Rename to ...
15478 (gdb_unparse_agent_expr): ... this, make it non-static and move
15479 to ax.h.
15480 (eval_agent_expr): Rename to ...
15481 (eval_tracepoint_agent_expr): ... this.
15482 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15483 forward declarations.
15484 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15485 (agent_get_trace_state_variable_value): New function.
15486 (agent_set_trace_state_variable_value): New function.
15487 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15488 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15489 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15490 (condition_true_at_tracepoint): Likewise.
15491 (parse_agent_expr): Rename to ...
15492 (gdb_parse_agent_expr): ... this and move to ax.c.
15493 (unparse_agent_expr): Rename to ...
15494 (gdb_unparse_agent_expr): ... this and move to ax.c.
15495 (gdb_agent_op_name): Move to ax.c.
15496 (eval_agent_expr): Rename to ...
15497 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15498 and move to ax.c.
15499 (eval_tracepoint_agent_expr): New function.
15500 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15501 non-static.
5e1dc496
LM
15502 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15503 ax.c.
15504 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15505 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15506 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15507 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15508 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15509 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15510 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15511 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15512 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15513 (compile_bytecodes): Remove forward declaration.
15514 (is_goto_target): Move to ax.c.
15515 (compile_bytecodes): Move to ax.c and call
15516 agent_get_trace_state_variable_value (...) and
15517 agent_set_trace_state_variable_value (...).
15518
15519 * Makefile.in: Update ax.c and IPA dependencies.
15520
277e4e52
PA
155212012-02-24 Pedro Alves <palves@redhat.com>
15522
15523 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15524 (cmd_bigqtbuffer_circular): ... this. Only handle
15525 'QTBuffer:circular:'.
15526 (handle_tracepoint_general_set): Adjust.
15527
bf4c19f7
YQ
155282012-02-16 Yao Qi <yao@codesourcery.com>
15529
15530 * inferiors.c: Move code to ...
15531 * dll.c: .... here. New.
15532 * server.h: Declare clear_dlls.
15533 * Makefile.in (SFILES): Add dll.c.
15534 (OBS): Add dll.o
15535 (dll.o): New rule.
15536
d73f2619
YQ
155372012-02-11 Yao Qi <yao@codesourcery.com>
15538
15539 * server.c: (handle_monitor_command): Add a new parameter
15540 `own_buf'.
15541 (handle_query): Update caller.
15542
f8255c2a
JB
155432012-02-09 Joel Brobecker <brobecker@adacore.com>
15544
15545 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15546 * configure, config.in: Regenerate.
15547 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15548 is not defined.
15549
da84f473
PA
155502012-02-02 Pedro Alves <palves@redhat.com>
15551
15552 Try SIGKILL first, then PTRACE_KILL.
15553 * linux-low.c (linux_kill_one_lwp): New.
15554 (linux_kill_one_lwp): Rename to ...
15555 (kill_one_lwp_callback): ... this. Use the new
15556 linux_kill_one_lwp.
15557
e886a173
PA
155582012-02-02 Pedro Alves <palves@redhat.com>
15559
15560 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15561 inferior.
15562
be07f1a2
PA
155632012-01-27 Pedro Alves <palves@redhat.com>
15564
15565 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15566 (elf_64_file_p): Make static.
15567 (linux_pid_exe_is_elf_64_file): New.
15568 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15569 Delete declarations.
15570 (linux_pid_exe_is_elf_64_file): Declare.
15571 * linux-x86-low.c (x86_arch_setup): Use
15572 linux_pid_exe_is_elf_64_file.
15573
d8301ad1
JK
155742012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15575
15576 * linux-low.c (linux_wait_for_event_1): Rename to ...
15577 (linux_wait_for_event): ... here and merge it with former
15578 linux_wait_for_event - new variable wait_ptid, use it.
15579 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15580
01b17894
PA
155812012-01-23 Pedro Alves <palves@redhat.com>
15582
15583 * server.c (main): Avoid yet another case of infinite loop while
15584 detaching/killing after a longjmp.
15585
e825046f
JK
155862012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15587
15588 Code cleanup.
15589 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15590
b9e7b9c3
UW
155912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15592
15593 * hostio.c (handle_readlink): New function.
15594 (handle_vFile): Call it to handle "vFile:readlink" packets.
15595
901f9912
UW
155962012-01-20 Pedro Alves <palves@redhat.com>
15597 Ulrich Weigand <ulrich.weigand@linaro.org>
15598
15599 * server.c (handle_v_requests): Only support vAttach and vRun to
15600 start multiple processes when in extended protocol mode.
15601
fc1ab1a0
PA
156022012-01-17 Pedro Alves <palves@redhat.com>
15603
15604 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15605 memalign plus mprotect to allocate the scratch buffer.
15606
7d5d4e98
PA
156072012-01-13 Pedro Alves <palves@redhat.com>
15608
15609 * server.c (attach_inferior): Clear `cont_thread'.
15610
f128d5e9
PA
156112012-01-13 Pedro Alves <palves@redhat.com>
15612
15613 * server.c (main): Avoid infinite loop while detaching/killing
15614 after a longjmp.
15615
06db92f0
DE
156162012-01-09 Doug Evans <dje@google.com>
15617
15618 * server.c (start_inferior): Set last_ptid in --wrapper case.
15619
32d92999
YQ
156202012-01-06 Yao Qi <yao@codesourcery.com>
15621
15622 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15623 defined.
15624 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15625
5e0a92a9
YQ
156262012-01-04 Yao Qi <yao@codesourcery.com>
15627
15628 * tracepoint.c (cmd_qtdp): Print debug message
15629 for static tracepoint.
15630
ae639e8c
YQ
156312012-01-04 Yao Qi <yao@codesourcery.com>
15632
15633 * tracepoint.c (trace_vdebug): Differentiate debug message
15634 between gdbserver and IPA.
15635
f72429c5
YQ
156362012-01-03 Yao Qi <yao@codesourcery.com>
15637
15638 * tracepoint.c (tracepoint_was_hit): Don't collect for
15639 static tracepoint.
15640
12c3e59c
JB
156412012-01-02 Joel Brobecker <brobecker@adacore.com>
15642
15643 * terminal.h: Reformat copyright header.
15644
67827812
JB
156452012-01-02 Joel Brobecker <brobecker@adacore.com>
15646
15647 * server.c (gdbserver_version): Update copyright year.
15648 * gdbreplay.c (gdbreplay_version): Likewise.
15649
3e52c33d
JK
156502011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15651
15652 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15653
15654 Revert:
15655 2011-12-18 Hui Zhu <teawater@gmail.com>
15656 * linux-low.c (linux_create_inferior): Save return value to ret.
15657
66f1260e
HZ
156582011-12-18 Hui Zhu <teawater@gmail.com>
15659
15660 * linux-low.c (linux_create_inferior): Save return value to ret.
15661
e77616d7
DE
156622011-12-16 Doug Evans <dje@google.com>
15663
e7b06c57
DE
15664 * linux-low.c (linux_create_inferior): If stdio connection,
15665 redirect stdin from /dev/null, stdout to stderr.
15666 * remote-utils.c (remote_is_stdio): New static global.
15667 (remote_connection_is_stdio): New function.
15668 (remote_prepare): Handle stdio connection.
15669 (remote_open): Ditto.
15670 (remote_close): Don't close stdin for stdio connections.
15671 (read_prim,write_prim): New functions. Replace all calls to
15672 read/write to these.
15673 * server.c (main): Watch for "-" argument. Move call to
15674 remote_prepare before start_inferior.
15675 * server.h (STDIO_CONNECTION_NAME): New macro.
15676 (remote_connection_is_stdio): Declare.
15677
e77616d7
DE
15678 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15679 in debugging output.
15680
82067193
YQ
156812011-12-15 Yao Qi <yao@codesourcery.com>
15682
15683 * tracepoint.c: Include sys/syscall.h.
15684 (gdb_ust_thread): Remove preprocessor conditional.
15685
82bfbe7e
PA
156862011-12-14 Pedro Alves <pedro@codesourcery.com>
15687
15688 * linux-low.c (linux_detach_one_lwp): Call
15689 the_low_target.prepare_to_resume before detaching.
15690
712c6575
YQ
156912011-12-14 Yao Qi <yao@codesourcery.com>
15692
15693 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15694 of write.
15695
d54d1edf
YQ
156962011-12-14 Yao Qi <yao@codesourcery.com>
15697
15698 * i386-low.c (i386_low_stopped_data_address): Initialize local
15699 variable `control'.
15700
6210a125
PA
157012011-12-13 Pedro Alves <pedro@codesourcery.com>
15702
15703 PR remote/13492
15704
15705 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15706 DR_CONTROL unless necessary. Extend comments.
15707 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15708 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15709
2ece8244
YQ
157102011-12-13 Yao Qi <yao@codesourcery.com>
15711
15712 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15713 macros.
15714 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15715
784867a5
JK
157162011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15717
15718 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15719 Print new debug message for such case.
15720
6bf36717
JK
157212011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15722
15723 Fix overlapping memcpy.
15724 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15725 the read_inferior_memory transfer.
15726 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15727 write_inferior_memory transfer.
15728 (set_fast_tracepoint_jump): New variable buf. Use it for the
15729 read_inferior_memory and write_inferior_memory transfers.
15730 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15731 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15732 Use it for the write_inferior_memory transfer.
15733 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15734 buffers.
15735
50275556
MR
157362011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15737
15738 * linux-low.c (fetch_register, store_register): Make code
15739 consistent, fix formatting.
15740
7325beb4
MR
157412011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15742
15743 * linux-low.c (usr_store_inferior_registers): Factor out code
15744 to handle individual registers into...
15745 (store_register): ... this new function.
15746
c642a434
UW
157472011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15748
15749 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15750 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15751 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15752 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15753 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15754 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15755 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15756 (srv_xmlfiles): Add new XML files.
15757
15758 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15759 and <sys/uio.h>.
15760 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15761 (init_registers_s390_linux32v1): Add prototype.
15762 (init_registers_s390_linux32v2): Likewise.
15763 (init_registers_s390_linux64v1): Likewise.
15764 (init_registers_s390_linux64v2): Likewise.
15765 (init_registers_s390x_linux64v1): Likewise.
15766 (init_registers_s390x_linux64v2): Likewise.
15767 (s390_num_regs): Increment to 52.
15768 (s390_regmap): Add orig_r2 register.
15769 (s390_num_regs_3264): Increment to 68.
15770 (s390_regmap_3264): Add orig_r2 register.
15771 (s390_collect_ptrace_register): Handle orig_r2 register.
15772 (s390_supply_ptrace_register): Likewise.
15773 (s390_fill_last_break): New function.
15774 (s390_store_last_break): Likewise.
15775 (s390_fill_system_call): New function.
15776 (s390_store_system_call): Likewise.
15777 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15778 register sets.
15779 (s390_check_regset): New function.
15780 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15781 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15782 Update target_regsets for available register sets.
15783
2268b414
JK
157842011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15785 Jan Kratochvil <jan.kratochvil@redhat.com>
15786
15787 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15788 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15789 New.
15790 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15791 * linux-low.h (struct process_info_private): New member r_debug.
15792 * server.c (handle_qxfer_libraries): Call
15793 the_target->qxfer_libraries_svr4.
15794 (handle_qxfer_libraries_svr4): New function.
15795 (qxfer_packets): New entry "libraries-svr4".
15796 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15797 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15798 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15799 PACKET_qXfer_libraries_svr4.
15800
d6db1fab
UW
158012011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15802
15803 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15804 PSW address/mask between 8-byte and 16-byte formats.
15805 (s390_supply_ptrace_register): Likewise.
15806 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15807 basic addressing mode bit.
15808
242f5f1c
SS
158092011-11-24 Stan Shebs <stan@codesourcery.com>
15810
15811 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15812
f196051f
SS
158132011-11-17 Stan Shebs <stan@codesourcery.com>
15814
15815 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15816 (tracing_start_time): New global.
15817 (tracing_stop_time): New global.
15818 (tracing_user_name): New global.
15819 (tracing_notes): New global.
15820 (tracing_stop_note): New global.
15821 (cmd_qtstart): Set traceframe_usage, start_time.
15822 (stop_tracing): Set stop_time.
15823 (cmd_qtstatus): Report additional status.
15824 (cmd_qtp): New function.
15825 (handle_tracepoint_query): Call it.
15826 (cmd_qtnotes): New function.
15827 (handle_tracepoint_general_set): Call it.
15828 (get_timestamp): Rename from tsv_get_timestamp.
15829
405f8e94
SS
158302011-11-14 Stan Shebs <stan@codesourcery.com>
15831 Kwok Cheung Yeung <kcy@codesourcery.com>
15832
15833 * linux-x86-low.c (small_jump_insn): New.
15834 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15835 trampoline and error message, build a trampoline and issue a small
15836 jump instruction to it.
15837 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15838 trampoline and error message.
15839 (x86_get_min_fast_tracepoint_insn_len): New.
15840 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15841 * linux-low.h (struct linux_target_ops): Add arguments to
15842 install_fast_tracepoint_jump_pad operation, add new operation.
15843 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15844 arguments.
15845 (linux_get_min_fast_tracepoint_insn_len): New function.
15846 (linux_target_op): Add new operation.
15847 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15848 (gdb_trampoline_buffer_end): Ditto.
15849 (gdb_trampoline_buffer_error): Ditto.
15850 (struct ipa_sym_addresses): Add fields for new IPA variables.
15851 (symbol_list): Add entries for new IPA variables.
15852 (struct tracepoint): Add fields to hold the address range of the
15853 trampoline used by the tracepoint.
15854 (trampoline_buffer_head): New static variable.
15855 (trampoline_buffer_tail): Ditto.
15856 (claim_trampoline_space): New function.
15857 (have_fast_tracepoint_trampoline_buffer): New function.
15858 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15859 structure.
15860 (install_fast_tracepoint): Ditto, also add error buffer argument.
15861 (cmd_qtminftpilen): New function.
15862 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15863 (fast_tracepoint_from_trampoline_address): New function.
15864 (fast_tracepoint_collecting): Handle trampoline as part of jump
15865 pad space.
15866 (set_trampoline_buffer_space): New function.
15867 (initialize_tracepoint): Initialize new IPA variables.
15868 * target.h (struct target_ops): Add arguments to
15869 install_fast_tracepoint_jump_pad operation, add new
15870 get_min_fast_tracepoint_insn_len operation.
15871 (target_get_min_fast_tracepoint_insn_len): New.
15872 (install_fast_tracepoint_jump_pad): Add arguments.
15873 * server.h (IPA_BUFSIZ): Define.
15874 * linux-i386-ipa.c: Include extra header files.
15875 (initialize_fast_tracepoint_trampoline_buffer): New function.
15876 (initialize_low_tracepoint): Call it.
15877 * server.h (set_trampoline_buffer_space): Declare.
15878 (claim_trampoline_space): Ditto.
15879 (have_fast_tracepoint_trampoline_buffer): Ditto.
15880
1e4d1764
YQ
158812011-11-14 Yao Qi <yao@codesourcery.com>
15882
15883 * server.c (handle_query): Handle InstallInTrace for qSupported.
15884 * tracepoint.c (add_tracepoint): Sort list.
15885 (install_tracepoint, download_tracepoint): New.
15886 (cmd_qtdp): Call them to install and download tracepoints.
15887 (sort_tracepoints): Removed.
15888 (cmd_qtstart): Update.
15889
5c73ff4e
YQ
158902011-11-14 Yao Qi <yao@codesourcery.com>
15891
15892 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15893 * mem-break.h: Declare.
15894 * tracepoint.c (cmd_qtstart): Move some code to ...
15895 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15896 New.
15897 (download_tracepoints): Move some code to ...
15898 (download_tracepoint_1): ... here. New.
15899
86a30030
YQ
159002011-11-08 Yao Qi <yao@codesourcery.com>
15901
15902 * remote-utils.c (relocate_instruction): A comment fix.
15903
8d26e50c
JB
159042011-11-07 Joel Brobecker <brobecker@adacore.com>
15905
15906 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15907 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15908 dr_status_mirror and dr_control_mirror from debug_reg_state.
15909 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15910 (i386_initial_stuff): Remove use of deleted globals.
15911 (i386_get_thread_context, i386_set_thread_context,
15912 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15913 from debug_reg_state.
15914
a59306a3
YQ
159152011-11-05 Yao Qi <yao@codesourcery.com>
15916
15917 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15918 address as TPOINT's.
15919
3065dfb6
SS
159202011-11-02 Stan Shebs <stan@codesourcery.com>
15921
15922 * tracepoint.c (agent_mem_read_string): New function.
15923 (eval_agent_expr): Call it for tracenz.
15924 * server.c (handle_query): Report support for tracenz.
15925
fd0d8c7c
YQ
159262011-11-02 Yao Qi <yao@codesourcery.com>
15927
15928 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15929
609086b1
YQ
159302011-11-02 Yao Qi <yao@codesourcery.com>
15931
15932 * target.h: Fix a typo in comment.
15933
b9fd1791
PA
159342011-10-31 Pedro Alves <pedro@codesourcery.com>
15935
15936 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15937 clobber the breakpoints' shadows with fast tracepoint jumps.
15938 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15939 * target.c (write_inferior_memory): Also pass MYADDR down to
15940 check_mem_write.
15941
03583c20
UW
159422011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15943
15944 * configure.ac: Check support for personality routine.
15945 * configure: Regenerate.
15946 * config.in: Likewise.
15947 * linux-low.c: Include <sys/personality.h>.
15948 Define ADDR_NO_RANDOMIZE if necessary.
15949 (linux_create_inferior): Disable address space randomization when
15950 forking inferior, if requested.
15951 (linux_supports_disable_randomization): New function.
15952 (linux_target_ops): Install it.
15953 * server.h (disable_randomization): Declare.
15954 * server.c (disable_randomization): New global variable.
15955 (handle_general_set): Handle QDisableRandomization.
15956 (handle_query): Likewise for qSupported.
15957 (main): Support --disable-randomization and --no-disable-randomization
15958 command line arguments.
15959 * target.h (struct target_ops): Add supports_disable_randomization.
15960 (target_supports_disable_randomization): New macro.
15961
723b724b
MF
159622011-09-29 Mike Frysinger <vapier@gentoo.org>
15963
15964 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15965 ifdef check.
15966 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15967 [!PT_GETDSBT] (target_loadmap): New definition.
15968 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15969 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15970 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15971 and PT_GETDSBT to LINUX_LOADMAP.
15972 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15973 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15974
55329a5c 159752011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15976
15977 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15978 (arm_linux_hwbp_cap): New static variable.
15979 (arm_linux_get_hwbp_cap): Replace by ...
15980 (arm_linux_init_hwbp_cap): ... this new function.
15981 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15982 (arm_linux_get_hw_watchpoint_count): Likewise.
15983 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15984 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15985 (arm_prepare_to_resume): Use perror_with_name instead of error.
15986
55329a5c 159872011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15988
15989 * linux-arm-low.c: Include <signal.h>.
15990 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15991 (struct arm_linux_hwbp_cap): New data type.
15992 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15993 (struct arm_linux_hw_breakpoint): New data type.
15994 (MAX_BPTS, MAX_WPTS): Define.
15995 (struct arch_process_info, struct arch_lwp_info): New data types.
15996 (arm_linux_get_hwbp_cap): New function.
15997 (arm_linux_get_hw_breakpoint_count): Likewise.
15998 (arm_linux_get_hw_watchpoint_count): Likewise.
15999 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16000 (arm_hwbp_control_initialize): Likewise.
16001 (arm_hwbp_control_is_enabled): Likewise.
16002 (arm_hwbp_control_is_initialized): Likewise.
16003 (arm_hwbp_control_disable): Likewise.
16004 (arm_linux_hw_breakpoint_equal): Likewise.
16005 (arm_linux_hw_point_initialize): Likewise.
16006 (struct update_registers_data): New data structure.
16007 (update_registers_callback: New function.
16008 (arm_insert_point): Likewise.
16009 (arm_remove_point): Likewise.
16010 (arm_stopped_by_watchpoint): Likewise.
16011 (arm_stopped_data_address): Likewise.
16012 (arm_new_process): Likewise.
16013 (arm_new_thread): Likewise.
16014 (arm_prepare_to_resume): Likewise.
16015 (the_low_target): Register arm_insert_point, arm_remove_point,
16016 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16017 arm_new_thread, and arm_prepare_to_resume.
16018
6b9801d4
SS
160192011-09-15 Stan Shebs <stan@codesourcery.com>
16020
16021 * server.h (struct emit_ops): Add compare-goto fields.
16022 * tracepoint.c (gdb_agent_op_sizes): New table.
16023 (emit_eq_goto): New function.
16024 (emit_ne_goto): New function.
16025 (emit_lt_goto): New function.
16026 (emit_le_goto): New function.
16027 (emit_gt_goto): New function.
16028 (emit_ge_goto): New function.
16029 (is_goto_target): New function.
16030 (compile_bytecodes): Recognize special cases of compare-goto
16031 combinations and call specialized emitters for them.
16032 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16033 (amd64_emit_ne_goto): New function.
16034 (amd64_emit_lt_goto): New function.
16035 (amd64_emit_le_goto): New function.
16036 (amd64_emit_gt_goto): New function.
16037 (amd64_emit_ge_goto): New function.
16038 (amd64_emit_ops): Add the new functions.
16039 (i386_emit_eq_goto): New function.
16040 (i386_emit_ne_goto): New function.
16041 (i386_emit_lt_goto): New function.
16042 (i386_emit_le_goto): New function.
16043 (i386_emit_gt_goto): New function.
16044 (i386_emit_ge_goto): New function.
16045 (i386_emit_ops): Add the new functions.
16046
bf15cbda
SS
160472011-09-08 Stan Shebs <stan@codesourcery.com>
16048
16049 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16050 (i386_emit_epilogue): Restore %ebx.
16051
943ca1dd
JZ
160522011-08-31 Jie Zhang <jzhang918@gmail.com>
16053
16054 * server.c (step_thread): Remove definition.
16055 (process_serial_event): Don't handle Hs.
16056 * server.h (step_thread): Remove declaration.
16057 * target.c (set_desired_inferior): Remove use of step_thread.
16058
e3deef73
LM
160592011-08-24 Luis Machado <lgustavo@codesourcery.com>
16060
16061 * linux-low.c: Include linux-procfs.h.
16062 (linux_attach_lwp_1): Update comments.
16063 (linux_attach): Scan for existing threads when attaching to a
16064 process that is the tgid.
16065 * Makefile.in: Update dependencies.
16066
13da1c97
LM
160672011-08-24 Luis Machado <lgustavo@codesourcery.com>
16068
16069 * configure.srv: Add linux-procfs.o dependencies.
16070
881127c9
YQ
160712011-08-14 Yao Qi <yao@codesourcery.com>
16072
16073 * target.h (struct target_ops): Fix indent.
16074 * win32-low.c (win32_target_ops): Fix comment.
16075
58dbd541
YQ
160762011-08-14 Andrew Jenner <andrew@codesourcery.com>
16077 Yao Qi <yao@codesourcery.com>
16078
16079 * Makefile.in (clean): Remove tic6x-*.c files.
16080 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16081 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16082 (tic6x-c64xp-linux.c): Likewise.
16083 * configure.srv: Add support for tic6x-*-uclinux.
16084 * linux-tic6x-low.c: New.
16085 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16086
78d85199
YQ
160872011-08-14 Andrew Stubbs <ams@codesourcery.com>
16088 Yao Qi <yao@codesourcery.com>
16089
16090 * target.h (struct target_ops): Add read_loadmap.
16091 * linux-low.c (struct target_loadseg): New type.
16092 (struct target_loadmap): New type.
16093 (linux_read_loadmap): New function.
16094 (linux_target_ops): Add linux_read_loadmap.
16095 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16096 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16097 to NULL.
78d85199 16098
a959a88d
EZ
160992011-08-05 Eli Zaretskii <eliz@gnu.org>
16100
16101 * win32-low.c: Include <stdint.h>.
16102
1ced966e
PA
161032011-07-22 Pedro Alves <pedro@codesourcery.com>
16104
16105 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16106 to the inferior here.
16107 (i386_remove_aligned_watchpoint): Ditto.
16108 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16109 fit part of the watchpoint in the debug registers.
16110 (i386_update_inferior_debug_regs): New.
16111 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16112 registers, and only update the inferior on success.
16113 (i386_low_remove_watchpoint): Ditto.
16114
d26e3629
KY
161152011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16116
16117 * linux-low.c (compare_ints, unique, list_threads, show_process,
16118 linux_core_of_thread): Delete.
16119 (linux_target_ops): Change linux_core_of_thread to
16120 linux_common_core_of_thread.
16121 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16122 * utils.c (malloc_failure): Change type of argument.
16123 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16124 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16125 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16126 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16127 (IPA_OBJS): Add common-utils-ipa.o.
16128 (ptid_h, linux_osdata_h): New macros.
16129 (server_h): Add common/common-utils.h, common/xml-utils.h,
16130 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16131 common/ptid.h.
16132 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16133 ptid.o, buffer.o): New rules.
16134 (linux-low.o): Add common/linux-osdata.h as a dependency.
16135 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16136 * configure.ac: Add AC_HEADER_DIRENT check.
16137 * config.in: Regenerate.
16138 * configure: Regenerate.
16139 * remote-utils.c (xml_escape_text): Delete.
16140 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16141 buffer_xml_printf): Move to common/buffer.c.
16142 * server.c (main): Remove call to initialize_inferiors.
16143 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16144 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16145 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16146 internal_error, gdb_assert, gdb_assert_fail): Delete.
16147 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16148 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16149 common/buffer.h.
16150 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16151 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16152 initialize_inferiors): Delete.
16153
2275a1a7
PA
161542011-07-20 Pedro Alves <pedro@codesourcery.com>
16155
16156 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16157 symbol error.
16158
0a5b1e09
PA
161592011-05-31 Pedro Alves <pedro@codesourcery.com>
16160
16161 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16162 assertion.
16163 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16164
6938fd34
YQ
161652011-05-26 Yao Qi <yao@codesourcery.com>
16166
16167 * Makefile.in (thread-db.o): Track dependence to
16168 common/gdb_thread_db.h.
16169 * thread-db.c: include gdb_thread_db.h from right place.
16170
b481f9e0
TT
161712011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16172
16173 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16174 __FILE__ and __LINE__ to internal_error.
16175
98a5dd13
DE
161762011-05-13 Doug Evans <dje@google.com>
16177
16178 * thread-db.c (try_thread_db_load_from_sdir): New function.
16179 (try_thread_db_load_from_dir): New function.
16180 (thread_db_load_search): Handle $sdir, ignore $pdir.
16181 Remove trying of system directories if search of
16182 libthread-db-search-path fails, that is now done via $sdir.
16183
d248b706
KY
161842011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16185
16186 * server.c (handle_query): Add EnableDisableTracepoints to the list
16187 of supported features.
43aaf8b6 16188 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16189 tracepoints.
43aaf8b6
PA
16190 (cmd_qtenable_disable): New.
16191 (cmd_qtstart): Install tracepoints even if disabled.
16192 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16193 receiving a QTEnable or QTDisable packet.
16194 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16195 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16196 tracepoints.
16197 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16198
84e578fb
DE
161992011-05-10 Doug Evans <dje@google.com>
16200
16201 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16202
71f55dd8
DE
162032011-05-04 Doug Evans <dje@google.com>
16204
16205 * linux-low.c (linux_join): Skip process lookup.
16206 * spu-low.c (spu_join): Ditto.
16207 * server.c (join_inferiors_callback): Delete.
16208 (process_serial_event): For 'D' packet (detach) call join_inferior
16209 directly.
16210
4d393d60
JM
162112011-05-04 Joseph Myers <joseph@codesourcery.com>
16212
16213 * README: Don't mention xscale*-*-linux*.
16214 * configure.srv (xscale*-*-linux*): Don't handle target.
16215
b00ad6ff
NF
162162011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16217
16218 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16219 casting pointers.
16220 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16221 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16222 (i386_emit_void_call_2): Likewise.
16223
af96c192
YQ
162242011-04-26 Yao Qi <yao@codesourcery.com>
16225
43aaf8b6
PA
16226 * linux-low.c: Move common macros to linux-ptrace.h.
16227 Include linux-ptrace.h.
af96c192
YQ
16228 * Makefile.in (linux_ptrace_h): New.
16229 (linux-low.o): Depends on linux-ptrace.h.
16230
03f2bd59
JK
162312011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16232
16233 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16234 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16235 (remote_prepare): New function with most of the TCP code from ...
16236 (remote_open): ... here. Detect PORT here unconditionally. Move also
16237 setting transport_is_reliable.
16238 * server.c (run_once): New variable.
16239 (gdbserver_usage): Document it.
16240 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16241 the first run if RUN_ONCE.
16242 * server.h (run_once, remote_prepare): New declarations.
16243
7a9dd1b2
TT
162442011-04-19 Tom Tromey <tromey@redhat.com>
16245
16246 * win32-low.c (handle_load_dll): Remove duplicate "the".
16247
81239425
PM
162482011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16249
16250 Remove support for old Cygwin 1.5 versions.
16251 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16252 function to avoid warning.
16253 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16254 warning.
16255
9e0627f1
PM
162562011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16257
16258 * gdbserver/server.h (Macro _): Define it if not available.
16259
588eebee
MS
162602011-03-14 Michael Snyder <msnyder@vmware.com>
16261
348af9f7 16262 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16263
43f70d4c
JB
162642011-03-10 Joel Brobecker <brobecker@adacore.com>
16265
16266 * Makefile.in (maintainer-clean realclean distclean): Remove
16267 "make ... subdir_do" command.
16268
348af9f7
MS
162692011-03-10 Michael Snyder <msnyder@vmware.com>
16270
16271 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16272
16273 * server.c (handle_v_run): Free alloced buffer on early return.
16274
e637a4f5
YQ
162752011-03-09 Yao Qi <yao@codesourcery.com>
16276
16277 Revert:
16278 2011-03-04 Yao Qi <yao@codesourcery.com>
16279
16280 * Makefile.in: Remove GNU make feature --directory.
16281
16282 2011-03-05 Yao Qi <yao@codesourcery.com>
16283
16284 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16285 (subdir_do): New make target. Copied from gdb/Makefile.
16286 (maintainer-clean, realclean, distclean, clean): Call corresponding
16287 make targets in common/Makefile.
16288
16289 2011-02-11 Yao Qi <yao@codesourcery.com>
16290
16291 * configure.ac: Call AC_PROG_RANLIB.
16292 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16293 * configure: Regenerate.
16294
e6edda56
JK
162952011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16296
16297 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16298
e5141119
JB
162992011-03-06 Yao Qi <yao@codesourcery.com>
16300
16301 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16302
64794aa4
JB
163032011-03-05 Yao Qi <yao@codesourcery.com>
16304
16305 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16306 (subdir_do): New make target. Copied from gdb/Makefile.
16307 (maintainer-clean, realclean, distclean, clean): Call corresponding
16308 make targets in common/Makefile.
16309
7a762829
YQ
163102011-03-04 Yao Qi <yao@codesourcery.com>
16311
16312 * Makefile.in: Remove GNU make feature --directory.
16313
348af9f7
MS
163142011-03-04 Michael Snyder <msnyder@vmware.com>
16315
16316 * server.c (queue_stop_reply): Call xmalloc not malloc.
16317
163182011-03-02 Michael Snyder <msnyder@vmware.com>
16319
16320 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16321
9f72fee2
MS
163222011-02-28 Michael Snyder <msnyder@vmware.com>
16323
588eebee
MS
16324 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16325 (cmd_qtframe): Ditto.
16326 (cmd_qtbuffer): Ditto.
16327 (cmd_bigqtbuffer): Ditto.
16328
9f72fee2
MS
16329 * utils.c (decimal2str): Initialize 'width' to nine, then
16330 don't mess with it.
16331
8040bd49
UW
163322011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16333
16334 * hostio.c (require_data): Free *data, not data.
16335
7e52cbd0
JK
163362011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16337
16338 * hostio.c (require_data): Use free, not xfree.
16339
9130f83e
MS
163402011-02-27 Michael Snyder <msnyder@vmware.com>
16341
4b812f4e
MS
16342 * server.c (handle_query): Discard unused value.
16343
9130f83e
MS
16344 * hostio.c (require_data): Free malloc memory before returning
16345 error.
16346
69d37113
MS
163472011-02-26 Michael Snyder <msnyder@vmware.com>
16348
16349 * linux-low.c (list_threads): Call closedir for dirent.
16350
35f5825a
MS
163512011-02-27 Michael Snyder <msnyder@vmware.com>
16352
2a589cef
MS
16353 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16354 a case statement falls through.
16355
0adea5f7
MS
16356 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16357
35f5825a
MS
16358 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16359 in comparison.
16360
238f1c74
MS
163612011-02-26 Michael Snyder <msnyder@vmware.com>
16362
16363 * utils.c (decimal2str): Eliminate dead code and dead param.
16364 (pulongest): Drop dead param from call to decimal2str.
16365 (plongest): Ditto.
16366
633ff500
JB
163672011-02-24 Joel Brobecker <brobecker@adacore.com>
16368
16369 Revert the following patch (not approved yet):
16370 2011-02-21 Hui Zhu <teawater@gmail.com>
16371 * tracepoint.c (tp_printf): New function.
16372 (eval_agent_expr): Handle gdb_agent_op_printf.
16373
f9c6ff72
HZ
163742011-02-21 Hui Zhu <teawater@gmail.com>
16375
16376 * tracepoint.c (tp_printf): New function.
16377 (eval_agent_expr): Handle gdb_agent_op_printf.
16378
94d5e490
TT
163792011-02-18 Tom Tromey <tromey@redhat.com>
16380
16381 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16382 (tracepoint.o): Likewise.
16383 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16384 (gdb_agent_op_names): Likewise.
16385
c7f96d2b
TT
163862011-02-18 Tom Tromey <tromey@redhat.com>
16387
16388 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16389 gdb_agent_op_rot>: New constants.
16390 (gdb_agent_op_names): Add pick and roll.
16391 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16392 cases.
16393
0feedb2c
JK
163942011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16395
16396 * aclocal.m4: Regenerated with aclocal-1.11.1.
16397
b3b9301e
PA
163982011-02-14 Pedro Alves <pedro@codesourcery.com>
16399
16400 * server.c (handle_qxfer_traceframe_info): New.
16401 (qxfer_packets): Register "traceframe-info".
16402 (handle_query): Report support for qXfer:traceframe-info:read+.
16403 * tracepoint.c (match_blocktype): New.
16404 (traceframe_find_block_type): Rename to ...
16405 (traceframe_walk_blocks): ... this. Add callback filter argument,
16406 and use it.
16407 (traceframe_find_block_type): New, reimplemented on top of
16408 traceframe_walk_blocks.
16409 (build_traceframe_info_xml): New.
16410 (traceframe_read_info): New.
16411 * server.h (traceframe_read_info): Declare.
16412
4f3e6fb7
YQ
164132011-02-11 Yao Qi <yao@codesourcery.com>
16414
16415 * configure.ac: Call AC_PROG_RANLIB.
16416 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16417 * configure: Regenerate.
16418
764880b7
PA
164192011-02-07 Pedro Alves <pedro@codesourcery.com>
16420
16421 * server.c (gdb_read_memory): Change return semantics to allow
16422 partial transfers.
16423 (handle_search_memory_1): Adjust.
16424 (process_serial_event) <'m' packet>: Handle partial transfers.
16425 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16426
1c79eb8a
PA
164272011-01-28 Pedro Alves <pedro@codesourcery.com>
16428
16429 * regcache.c (init_register_cache): Initialize
16430 regcache->register_status.
16431 (free_register_cache): Release regcache->register_status.
16432 (regcache_cpy): Copy register_status.
16433 (registers_to_string): Print 'x's for unavailable registers.
16434 (supply_register): Mark the register's status valid or
16435 unavailable, depending on whether a buffer was passed in or not.
16436 (supply_register_zeroed): New.
16437 (supply_regblock): Mark the registers' status valid or
16438 unavailable, depending on whether a buffer was passed in or not.
16439 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16440 (struct regcache): New `register_status' field.
16441 (supply_register_zeroed): Declare.
16442 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16443 supply_register_zeroed, rather than passing a NULL buffer to
16444 supply_register.
16445 * tracepoint.c (fetch_traceframe_registers): Update comment.
16446
85724a0e
PA
164472011-01-28 Pedro Alves <pedro@codesourcery.com>
16448
16449 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16450 buffer explicit.
16451
d08aafef
PA
164522011-01-25 Pedro Alves <pedro@codesourcery.com>
16453
16454 * server.h (decode_xfer_write): Change prototype.
16455 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16456 and don't extract the annex here.
16457 * server.c (decode_xfer_read): Remove `annex' parameter,
16458 and don't extract the annex here.
16459 (decode_xfer): New.
16460 (struct qxfer): New.
16461 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16462 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16463 (handle_qxfer_statictrace): New functions, abstracted out from
16464 handle_query, and made to use the struct qxfer interface.
16465 (handle_threads_qxfer_proper): Rename to ...
16466 (handle_qxfer_threads_proper): ... this.
16467 (handle_threads_qxfer): Rename to ...
16468 (handle_qxfer_threads): ... this. Adjust.
16469 (qxfer_packets): New array.
16470 (handle_qxfer): New function.
16471 (handle_query): Use handle_qxfer.
16472
493e2a69
MS
164732011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16474
16475 * gdbreplay.c: Shorten lines of >= 80 columns.
16476 * linux-low.c: Ditto.
16477 * linux-ppc-low.c: Ditto.
16478 * linux-s390-low.c: Ditto.
16479 * linux-sparc-low.c: Ditto.
16480 * linux-x86-low.c: Ditto.
16481 * linux-xtensa-low.c: Ditto.
16482 * mem-break.c: Ditto.
16483 * nto-low.c: Ditto.
16484 * regcache.h: Ditto.
16485 * remote-utils.c: Ditto.
16486 * server.c: Ditto.
16487 * server.h: Ditto.
16488 * thread-db.c: Ditto.
16489 * tracepoint.c: Ditto.
16490 * utils.c: Ditto.
16491 * win32-low.h: Ditto.
16492
44944448
JB
164932011-01-05 Joel Brobecker <brobecker@adacore.com>
16494
16495 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16496 update.
16497
71ce852c
JB
164982011-01-01 Joel Brobecker <brobecker@adacore.com>
16499
16500 * server.c (gdbserver_version): Update copyright year in version
16501 output.
16502 * gdbreplay.c (gdbreplay_version): Ditto.
16503
eb826dc6
MF
165042010-12-29 Jie Zhang <jie.zhang@analog.com>
16505
16506 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16507 * linux-bfin-low.c: New file.
16508 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16509 PT_DATA_ADDR for BFIN targets.
16510 * Makefile.in (SFILES): Add linux-bfin-low.c.
16511 (clean): Remove reg-bfin.c.
16512 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16513 * README: Mention supported Blackfin targets.
16514
39ab222a
MF
165152010-12-23 Mike Frysinger <vapier@gentoo.org>
16516
16517 * .gitignore: New file.
16518
a1f2ce7d
MF
165192010-11-16 Mike Frysinger <vapier@gentoo.org>
16520
16521 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16522
f474844c
JZ
165232010-10-22 Jie Zhang <jie@codesourcery.com>
16524
16525 * Makefile.in: Add FLAGS_TO_PASS variable.
16526 (install): Remove dependency of install-only and recursively
16527 invoke make for install-only.
16528
f1048712
DE
165292010-10-04 Doug Evans <dje@google.com>
16530
16531 * Makefile.in (uninstall): Use $(DESTDIR).
16532
b53a1623
PA
165332010-09-24 Pedro Alves <pedro@codesourcery.com>
16534
e6ee044d
PA
16535 PR gdb/11842
16536
b53a1623
PA
16537 * linux-x86-low.c (compat_siginfo_from_siginfo)
16538 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16539 si_code is < 0. Check for si_code == SI_TIMER before checking for
16540 si_code < 0.
16541
fa1bd1e4
JB
165422010-09-13 Joel Brobecker <brobecker@adacore.com>
16543
16544 * lynx-i386-low.c: New file.
16545 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16546
47fac8f8
JB
165472010-09-13 Joel Brobecker <brobecker@adacore.com>
16548
16549 * lynx-low.c (ptrace_request_to_str): Remove handling for
16550 request values that have been removed in LynxOS 5.x.
16551
1adfc54d
JB
165522010-09-13 Joel Brobecker <brobecker@adacore.com>
16553
16554 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16555 <ptrace.h>
16556
c2a66c29
NS
165572010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16558
16559 * configure.ac: Add --enable-inprocess-agent option.
16560 * configure: Rebuilt.
16561
32fcada3
YQ
165622010-09-06 Yao Qi <yao@codesourcery.com>
16563
16564 * linux-low.c (linux_kill): Remove unused variable.
16565 (linux_stabilize_threads): Likewise.
16566 * server.c (start_inferior): Likewise.
16567 (queue_stop_reply_callback): Likewise.
16568 * tracepoint.c (do_action_at_tracepoint): Likewise.
16569
0cccb683
YQ
165702010-09-06 Yao Qi <yao@codesourcery.com>
16571
16572 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16573 on return.
16574
423ec54c
JK
165752010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16576
16577 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16578
12ac6819
PA
165792010-09-06 Pedro Alves <pedro@codesourcery.com>
16580
16581 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16582 "$(IPA_DEPFILES)".
16583
8ed54b31
JB
165842010-09-01 Joel Brobecker <brobecker@adacore.com>
16585
16586 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16587 gdbserver/lynx-ppc-low.c: New files.
16588 * Makefile.in (lynx_low_h): New variable.
16589 (lynx-low.o, lynx-ppc-low.o): New rules.
16590 * configure.ac: On LynxOS, link with -lnetinet.
16591 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16592 * configure: regenerate.
16593
bb0116a4
JB
165942010-09-01 Joel Brobecker <brobecker@adacore.com>
16595
16596 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16597 * configure.ac: Add check for vasprintf and vsnprintf.
16598 * configure, config.in: Regenerate.
16599 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16600
a778ab81 166012010-09-01 Joel Brobecker <brobecker@adacore.com>
16602
16603 * gdbreplay.c: Move include of alloca.h up, next to include of
16604 malloc.h.
16605 * server.h: Add include of malloc.h.
16606 * mem-break.c: Remove include of malloc.h.
16607 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16608
8b034a19 166092010-09-01 Joel Brobecker <brobecker@adacore.com>
16610
16611 * Makefile.in (memmem.o): Build with -Wno-error.
16612
166132010-09-01 Joel Brobecker <brobecker@adacore.com>
16614
16615 * utils.c (xsnprintf): Make non-static.
16616 * server.h: Add xsnprintf declaration.
16617 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16618 replace calls to snprintf by calls to xsnprintf throughout.
16619
166202010-09-01 Joel Brobecker <brobecker@adacore.com>
16621
16622 * configure.ac: Add configure check for alloca.
16623 * configure, config.in: Regenerate.
16624 * server.h: Include alloca.h if it exists.
16625 * gdbreplay.c: Include alloca.h if it exists.
16626
1a981360
PA
166272010-08-28 Pedro Alves <pedro@codesourcery.com>
16628
16629 * linux-low.c (__SIGRTMIN): Define if not already defined.
16630 (linux_create_inferior): Check for __ANDROID__ rather than
16631 __SIGRTMIN.
16632 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16633 are already deferred.
16634 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16635 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16636 stopped and already has a pending signal to report.
16637 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16638 a pending signal to report or is moving out of a jump pad.
16639 (linux_init_signals): Check for __ANDROID__ rather than
16640 __SIGRTMIN.
16641
b4d51a55
PA
166422010-08-28 Pedro Alves <pedro@codesourcery.com>
16643
16644 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16645 debug_threads check. Avoid a linear search when not doing debug
16646 output.
16647
ec48365d
PA
166482010-08-27 Pedro Alves <pedro@codesourcery.com>
16649
16650 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16651 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16652 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16653 (process_event): Change local fd's type to gdb_fildes_t.
16654 (create_file_handler): Adjust prototype.
16655 (delete_file_handler): Adjust prototype.
16656 (handle_file_event): Adjust prototype. Use pfildes.
16657 (create_file_event): Adjsut prototype.
16658 * remote-utils.c (remote_desc, listen_desc): Change type to
16659 gdb_fildes_t.
16660 * server.h: New gdb_fildes_t typedef.
16661 [USE_WIN32API]: Include winsock2.h.
16662 (delete_file_handler, add_file_handler): Adjust prototypes.
16663 (pfildes): Declare.
16664 * utils.c (pfildes): New.
16665
854d88f0
PA
166662010-08-27 Pedro Alves <pedro@codesourcery.com>
16667
16668 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16669 * configure: Regenerate.
16670
0146f85b
PA
166712010-08-27 Pedro Alves <pedro@codesourcery.com>
16672
16673 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16674 (linux_done_accessing_memory): ... this.
16675 (linux_target_ops): Adjust.
16676 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16677 * nto-low.c (nto_target_ops): Adjust comment.
16678 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16679 * spu-low.c (spu_target_ops): Adjust comment.
16680 * target.h (target_ops): Rename unprepare_to_access_memory field
16681 to done_accessing_memory.
16682 (unprepare_to_access_memory): Rename to ...
16683 (done_accessing_memory): ... this.
16684
90d74c30
PA
166852010-08-26 Pedro Alves <pedro@codesourcery.com>
16686
16687 * linux-low.c (linux_prepare_to_access_memory): New.
16688 (linux_unprepare_to_access_memory): New.
16689 (linux_target_ops): Install them.
16690 * server.c (read_memory): Rename to ...
16691 (gdb_read_memory): ... this. Use
16692 prepare_to_access_memory/prepare_to_access_memory.
16693 (write_memory): Rename to ...
16694 (gdb_write_memory): ... this. Use
16695 prepare_to_access_memory/prepare_to_access_memory.
16696 (handle_search_memory_1): Adjust.
16697 (process_serial_event): Adjust.
16698 * target.h (struct target_ops): New fields
16699 prepare_to_access_memory and unprepare_to_access_memory.
16700 (prepare_to_access_memory, unprepare_to_access_memory): New.
16701 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16702 prepare_to_access_memory/prepare_to_access_memory.
16703 * nto-low.c (nto_target_ops): Adjust.
16704 * spu-low.c (spu_target_ops): Adjust.
16705 * win32-low.c (win32_target_ops): Adjust.
16706
fd467969
PA
167072010-08-26 Pedro Alves <pedro@codesourcery.com>
16708
16709 * Makefile.in (WARN_CFLAGS): Get it from configure.
16710 (WERROR_CFLAGS): New.
16711 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16712 * configure.ac: Introduce --enable-werror, which adds -Werror to
16713 the compiler command line. Enabled by default. Disable with
16714 --disable-werror. Add -Wdeclaration-after-statement
16715 Wpointer-arith and -Wformat-nonliteral to warning flags.
16716 * configure: Regenerate.
16717
331e2f5f
PA
167182010-08-26 Pedro Alves <pedro@codesourcery.com>
16719
16720 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16721
e581f2b4
PA
167222010-08-26 Pedro Alves <pedro@codesourcery.com>
16723
16724 * gdbreplay.c (remote_error): New.
16725 (gdbchar): New.
16726 (expect): Use gdbchar. Check for error reading from GDB.
16727 Clarify sync error output.
16728 (play): Check for errors writing to GDB.
16729 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16730 * remote-utils.c (getpkt): Check for errors writing to the remote
16731 descriptor.
16732
3c11dd79
PA
167332010-08-25 Pedro Alves <pedro@codesourcery.com>
16734
16735 * linux-low.c (linux_wait_1): Move non-debugging code out of
16736 `debug_threads' control.
16737
d20a8ad9
PA
167382010-08-25 Pedro Alves <pedro@codesourcery.com>
16739
16740 * linux-low.c (linux_wait_1): Don't set last_status here.
16741 * server.c (push_event, queue_stop_reply_callback): Assert we're
16742 not pushing a TARGET_WAITKIND_IGNORE event.
16743 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16744 (myresume, handle_target_event): Set the thread's last_resume_kind
16745 and last_status from the target returned status.
16746
964e4306
PA
167472010-08-25 Pedro Alves <pedro@codesourcery.com>
16748
16749 PR threads/10729
16750
16751 * linux-x86-low.c (update_debug_registers_callback): New.
16752 (i386_dr_low_set_addr): Use it.
16753 (i386_dr_low_get_addr): New.
16754 (i386_dr_low_set_control): Use update_debug_registers_callback.
16755 (i386_dr_low_get_control): New.
16756 (i386_dr_low_get_status): Adjust.
16757 * linux-low.c (linux_stop_lwp): New.
16758 * linux-low.h (linux_stop_lwp): Declare.
16759
16760 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16761 argument instead of a i386_debug_reg_state.
16762 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16763 a i386_debug_reg_state.
16764 (i386_insert_aligned_watchpoint): Adjust.
16765 (i386_remove_aligned_watchpoint): Adjust.
16766 (i386_low_stopped_data_address): Read the debug registers from the
16767 inferior instead of from the mirrors.
16768 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16769 (i386_dr_low_get_addr): Declare.
16770 (i386_dr_low_get_control): Declare.
16771 (i386_dr_low_get_status): Change prototype.
16772
16773 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16774 (i386_dr_low_get_addr): New.
16775 (i386_dr_low_get_control): New.
16776 (i386_dr_low_get_status): Adjust prototype. Return
16777 dr_status_mirror.
16778 (i386_initial_stuff): Clear dr_status_mirror and
16779 dr_control_mirror.
16780 (i386_get_thread_context): Adjust.
16781 (i386_set_thread_context): Adjust.
16782 (i386_thread_added): Adjust.
16783
5f21a75b
PA
167842010-08-24 Pedro Alves <pedro@codesourcery.com>
16785
16786 * linux-low.h (linux_thread_area): Delete declaration.
16787
3e4c1235
TS
167882010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16789
16790 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16791 after its termination.
16792
1971b033
PA
167932010-08-09 Pedro Alves <pedro@codesourcery.com>
16794
16795 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16796 (gdb_wants_all_stopped): Delete.
16797 (linux_wait_1): Don't call them.
16798 * server.c (handle_v_cont): Tag all threads as want-stopped.
16799 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16800 stopped as "client-wants-stopped".
16801
310444ac
PA
168022010-07-31 Pedro Alves <pedro@codesourcery.com>
16803
16804 * Makefile.in (signals_h): New.
16805 (server_h): Depend on it.
16806 (server.o): Don't depend on $(signals_def).
16807 (signals.o): Depend on $(signals_def).
16808
a19cae16
JK
168092010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16810
16811 * Makefile.in (signals_def): New.
16812 (server_h): Append include/gdb/signals.h and signals_def.
16813 (server.o): Append signals_def.
16814
30d50328
JK
168152010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16816
16817 * server.c (handle_target_event): Use target_signal_to_host for
16818 resume_info.sig initialization.
16819 * target.h (struct thread_resume) <sig>: New comment.
16820
5c3216e2
OS
168212010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16822
c6f46ca0
OS
16823 * server.c (handle_query): strcpy() the returned string from paddress()
16824 instead of sprintf().
5c3216e2
OS
16825 * utils.c (paddress): Return phex_nz().
16826
6bd31874
JB
168272010-07-07 Joel Brobecker <brobecker@adacore.com>
16828
16829 * server.c (handle_v_cont): Call mourn_inferior if process
16830 just exited.
16831 (myresume): Likewise.
16832
0fb4aa4b
PA
168332010-07-01 Pedro Alves <pedro@codesourcery.com>
16834
16835 Static tracepoints, and integration with UST.
16836
16837 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16838 * mem-break.c (uninsert_all_breakpoints)
16839 (reinsert_all_breakpoints): New.
16840 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16841 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16842 (gdb_agent_ust_loaded, helper_thread_id)
16843 (gdb_agent_helper_thread_id): New macros.
16844 (struct ipa_sym_addresses): Add addr_ust_loaded,
16845 addr_helper_thread_id, addr_cmd_buf.
16846 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16847 (in_process_agent_loaded_ust): New.
16848 (write_e_ust_not_loaded): New.
16849 (maybe_write_ipa_ust_not_loaded): New.
16850 (struct collect_static_trace_data_action): New.
16851 (enum tracepoint_type) <static_tracepoint>: New.
16852 (struct tracepoint) <handle>: Mention static tracepoints.
16853 (struct static_tracepoint_ctx): New.
16854 (CMD_BUF_SIZE): New.
16855 (add_tracepoint_action): Handle static tracepoint actions.
16856 (unprobe_marker_at): New.
16857 (clear_installed_tracepoints): Handle static tracepoints.
16858 (cmd_qtdp): Handle static tracepoints.
16859 (probe_marker_at): New.
16860 (cmd_qtstart): Handle static tracepoints.
16861 (response_tracepoint): Handle static tracepoints.
16862 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16863 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16864 (get_context_regcache): Handle static tracepoints.
16865 (do_action_at_tracepoint): Handle static tracepoint actions.
16866 (traceframe_find_block_type): Handle static trace data blocks.
16867 (traceframe_read_sdata): New.
16868 (download_tracepoints): Download static tracepoint actions.
16869 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16870 (GDB_PROBE_NAME): New.
16871 (ust_ops): New.
16872 (GET_UST_SYM): New.
16873 (USTF): New.
16874 (dlsym_ust): New.
16875 (ust_marker_to_static_tracepoint): New.
16876 (gdb_probe): New.
16877 (collect_ust_data_at_tracepoint): New.
16878 (gdb_ust_probe): New.
16879 (UNIX_PATH_MAX, SOCK_DIR): New.
16880 (gdb_ust_connect_sync_socket): New.
16881 (resume_thread, stop_thread): New.
16882 (run_inferior_command): New.
16883 (init_named_socket): New.
16884 (gdb_ust_socket_init): New.
16885 (cstr_to_hexstr): New.
16886 (next_st): New.
16887 (first_marker, next_marker): New.
16888 (response_ust_marker): New.
16889 (cmd_qtfstm, cmd_qtsstm): New.
16890 (unprobe_marker_at, probe_marker_at): New.
16891 (cmd_qtstmat, gdb_ust_thread): New.
16892 (gdb_ust_init): New.
16893 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16894 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16895 (ST_REGENTRY): New.
16896 (x86_64_st_collect_regmap): New.
16897 (X86_64_NUM_ST_COLLECT_GREGS): New.
16898 (AMD64_RIP_REGNUM): New.
16899 (supply_static_tracepoint_registers): New.
16900 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16901 (ST_REGENTRY): New.
16902 (i386_st_collect_regmap): New.
16903 (i386_NUM_ST_COLLECT_GREGS): New.
16904 (supply_static_tracepoint_registers): New.
16905 * server.c (handle_query): Handle qXfer:statictrace:read.
16906 <qSupported>: Report support for StaticTracepoints, and
16907 qXfer:statictrace:read features.
16908 * server.h (traceframe_read_sdata)
16909 (supply_static_tracepoint_registers): Declare.
16910 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16911 (unpack_varlen_hex): Include in IPA build.
16912 * Makefile.in (ustlibs, ustinc): New.
16913 (IPA_OBJS): Add remote-utils-ipa.o.
16914 ($(IPA_LIB)): Link -ldl and -lpthread.
16915 (UST_CFLAGS): New.
16916 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16917 * config.in, configure: Regenerate.
16918
9e4344e5
PA
169192010-06-20 Ian Lance Taylor <iant@google.com>
16920 Pedro Alves <pedro@codesourcery.com>
16921
16922 * linux-x86-low.c (always_true): Delete.
16923 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16924 trying to fool the compiler with always_true.
16925
c6beb2cb
PA
169262010-06-20 Pedro Alves <pedro@codesourcery.com>
16927
16928 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16929 conditions in gdbserver.
16930
d2ed6730
UW
169312010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16932
16933 * spu-low.c (spu_read_memory): Wrap around local store limit.
16934 (spu_write_memory): Likewise.
16935
4e29fb54
PA
169362010-06-15 Pedro Alves <pedro@codesourcery.com>
16937
16938 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16939 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16940 LONGEST uses.
16941 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16942 uses.
16943 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16944 uses with LONGEST uses.
16945
6a271cae
PA
169462010-06-14 Stan Shebs <stan@codesourcery.com>
16947 Pedro Alves <pedro@codesourcery.com>
16948
16949 Bytecode compiler.
16950
16951 * linux-x86-low.c: Include limits.h.
16952 (add_insns): New.
16953 (always_true): New.
16954 (EMIT_ASM): New.
16955 (EMIT_ASM32): New.
16956 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16957 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16958 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16959 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16960 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16961 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16962 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16963 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16964 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16965 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16966 (amd64_emit_void_call_2): New.
16967 (amd64_emit_ops): New.
16968 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16969 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16970 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16971 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16972 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16973 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16974 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16975 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16976 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16977 (i386_emit_stack_adjust, i386_emit_int_call_1)
16978 (i386_emit_void_call_2): New.
16979 (i386_emit_ops): New.
16980 (x86_emit_ops): New.
16981 (the_low_target): Install x86_emit_ops.
16982 * server.h (struct emit_ops): New.
16983 (get_raw_reg_func_addr): Declare.
16984 (current_insn_ptr, emit_error): Declare.
16985 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16986 (set_trace_state_variable_value): New defines.
16987 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16988 addr_get_trace_state_variable_value and
16989 addr_set_trace_state_variable_value.
16990 (symbol_list): New fields for get_raw_reg,
16991 get_trace_state_variable_value and set_trace_state_variable_value.
16992 (condfn): New typedef.
16993 (struct tracepoint): New field `compiled_cond'.
16994 (do_action_at_tracepoint): Clear compiled_cond.
16995 (get_trace_state_variable_value, set_trace_state_variable_value):
16996 Export in the IPA.
16997 (condition_true_at_tracepoint): If there's a compiled condition,
16998 run that.
16999 (current_insn_ptr, emit_error): New globals.
17000 (struct bytecode_address): New.
17001 (get_raw_reg_func_addr): New.
17002 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17003 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17004 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17005 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17006 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17007 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17008 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17009 (compile_tracepoint_condition, compile_bytecodes): New.
17010 * target.h (emit_ops): Forward declare.
17011 (struct target_ops): New field emit_ops.
17012 (target_emit_ops): New.
17013 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17014 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17015 * linux-low.c (linux_emit_ops): New.
17016 (linux_target_ops): Install it.
17017 * linux-low.h (struct linux_target_ops): New field emit_ops.
17018
92b72907
UW
170192010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17020
17021 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17022 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17023
fa593d66
PA
170242010-06-01 Pedro Alves <pedro@codesourcery.com>
17025 Stan Shebs <stan@codesourcery.com>
17026
17027 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17028 (all): Depend on $(extra_libraries).
17029 (install-only): Install the IPA.
17030 (IPA_OBJS, IPA_LIB): New.
17031 (clean): Remove the IPA lib.
17032 (IPAGENT_CFLAGS): New.
17033 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17034 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17035 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17036 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17037 * configure.ac: Check for atomic builtins support in the compiler.
17038 (IPA_DEPFILES, extra_libraries): Define.
17039 * configure.srv (ipa_obj): Add description.
17040 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17041 (i[34567]86-*-linux*): Set ipa_obj.
17042 (x86_64-*-linux*): Set ipa_obj.
17043 * linux-low.c (stabilizing_threads): New.
17044 (supports_fast_tracepoints): New.
17045 (linux_detach): Stabilize threads before detaching.
17046 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17047 the lwp is either not stabilizing, or is moving out of a jump pad.
17048 (linux_fast_tracepoint_collecting): New.
17049 (maybe_move_out_of_jump_pad): New.
17050 (enqueue_one_deferred_signal): New.
17051 (dequeue_one_deferred_signal): New.
17052 (linux_wait_for_event_1): If moving out of a jump pad, defer
17053 pending signals to later.
17054 (linux_stabilize_threads): New.
17055 (linux_wait_1): Check if threads need moving out of jump pads, and
17056 do it if so.
17057 (stuck_in_jump_pad_callback): New.
17058 (move_out_of_jump_pad_callback): New.
17059 (lwp_running): New.
17060 (linux_resume_one_lwp): Handle moving out of jump pads.
17061 (linux_set_resume_request): Dequeue deferred signals.
17062 (need_step_over_p): Also step over fast tracepoint jumps.
17063 (start_step_over): Also uninsert fast tracepoint jumps.
17064 (finish_step_over): Also reinsert fast tracepoint jumps.
17065 (linux_install_fast_tracepoint_jump): New.
17066 (linux_target_ops): Install linux_stabilize_threads and
17067 linux_install_fast_tracepoint_jump_pad.
17068 * linux-low.h (linux_target_ops) <get_thread_area,
17069 install_fast_tracepoint_jump_pad>: New fields.
17070 (struct lwp_info) <collecting_fast_tracepoint,
17071 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17072 (linux_get_thread_area): Declare.
17073 * linux-x86-low.c (jump_insn): New.
17074 (x86_get_thread_area): New.
17075 (append_insns): New.
17076 (push_opcode): New.
17077 (amd64_install_fast_tracepoint_jump_pad): New.
17078 (i386_install_fast_tracepoint_jump_pad): New.
17079 (x86_install_fast_tracepoint_jump_pad): New.
17080 (the_low_target): Install x86_get_thread_area and
17081 x86_install_fast_tracepoint_jump_pad.
17082 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17083 (struct fast_tracepoint_jump): New.
17084 (fast_tracepoint_jump_insn): New.
17085 (fast_tracepoint_jump_shadow): New.
17086 (find_fast_tracepoint_jump_at): New.
17087 (fast_tracepoint_jump_here): New.
17088 (delete_fast_tracepoint_jump): New.
17089 (set_fast_tracepoint_jump): New.
17090 (uninsert_fast_tracepoint_jumps_at): New.
17091 (reinsert_fast_tracepoint_jumps_at): New.
17092 (set_breakpoint_at): Use write_inferior_memory.
17093 (uninsert_raw_breakpoint): Use write_inferior_memory.
17094 (check_mem_read): Mask out fast tracepoint jumps.
17095 (check_mem_write): Mask out fast tracepoint jumps.
17096 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17097 (set_fast_tracepoint_jump): Declare.
17098 (delete_fast_tracepoint_jump)
17099 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17100 (reinsert_fast_tracepoint_jumps_at): Declare.
17101 * regcache.c: Don't compile many functions when building the
17102 in-process agent library.
17103 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17104 the register buffer in the heap.
17105 (free_register_cache): If the register buffer isn't owned by the
17106 regcache, don't free it.
17107 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17108 pre-existing register caches.
17109 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17110 type.
17111 (convert_ascii_to_int): : Constify `from' parameter type.
17112 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17113 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17114 the needed buffer in-place.
17115 (relocate_instruction): New.
17116 * server.c (handle_query) <qSymbols>: If the target supports
17117 tracepoints, give it a chance of looking up symbols. Report
17118 support for fast tracepoints.
17119 (handle_status): Stabilize threads.
17120 (process_serial_event): Adjust.
17121 * server.h (struct fast_tracepoint_jump): Forward declare.
17122 (struct process_info) <fast_tracepoint_jumps>: New field.
17123 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17124 (decode_X_packet, decode_M_packet): Adjust.
17125 (relocate_instruction): Declare.
17126 (in_process_agent_loaded): Declare.
17127 (tracepoint_look_up_symbols): Declare.
17128 (struct fast_tpoint_collect_status): Declare.
17129 (fast_tracepoint_collecting): Declare.
17130 (force_unlock_trace_buffer): Declare.
17131 (handle_tracepoint_bkpts): Declare.
17132 (initialize_low_tracepoint)
17133 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17134 * target.h (struct target_ops) <stabilize_threads,
17135 install_fast_tracepoint_jump_pad>: New fields.
17136 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17137 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17138 [HAVE_STDINT_H]: Include stdint.h.
17139 (trace_debug_1): Rename to ...
17140 (trace_vdebug): ... this.
17141 (trace_debug): Rename to ...
17142 (trace_debug_1): ... this. Add `level' parameter.
17143 (trace_debug): New.
17144 (ATTR_USED, ATTR_NOINLINE): New.
17145 (IP_AGENT_EXPORT): New.
17146 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17147 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17148 (about_to_request_buffer_space, trace_buffer_is_full)
17149 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17150 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17151 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17152 (traceframe_write_count, traceframes_created)
17153 (trace_state_variables)
17154 New renaming defines.
17155 (struct ipa_sym_addresses): New.
17156 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17157 (symbol_list): New.
17158 (ipa_sym_addrs): New.
17159 (all_tracepoint_symbols_looked_up): New.
17160 (in_process_agent_loaded): New.
17161 (write_e_ipa_not_loaded): New.
17162 (maybe_write_ipa_not_loaded): New.
17163 (tracepoint_look_up_symbols): New.
17164 (debug_threads) [IN_PROCESS_AGENT]: New.
17165 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17166 (UNKNOWN_SIDE_EFFECTS): New.
17167 (stop_tracing): New.
17168 (flush_trace_buffer): New.
17169 (stop_tracing_bkpt): New.
17170 (flush_trace_buffer_bkpt): New.
17171 (read_inferior_integer): New.
17172 (read_inferior_uinteger): New.
17173 (read_inferior_data_pointer): New.
17174 (write_inferior_data_pointer): New.
17175 (write_inferior_integer): New.
17176 (write_inferior_uinteger): New.
17177 (struct collect_static_trace_data_action): Delete.
17178 (enum tracepoint_type): New.
17179 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17180 <actions_str, step_actions, step_actions_str>: Only include in
17181 GDBserver.
fa593d66
PA
17182 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17183 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17184 (tracepoints): Use IP_AGENT_EXPORT.
17185 (last_tracepoint): Don't include in the IPA.
17186 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17187 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17188 (alloced_trace_state_variables): New.
17189 (trace_state_variables): Use IP_AGENT_EXPORT.
17190 (traceframe_t): Delete unused variable.
17191 (circular_trace_buffer): Don't include in the IPA.
17192 (trace_buffer_start): Delete.
17193 (struct trace_buffer_control): New.
17194 (trace_buffer_free): Delete.
17195 (struct ipa_trace_buffer_control): New.
17196 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17197 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17198 New.
17199 (trace_buffer_ctrl): New.
17200 (TRACE_BUFFER_CTRL_CURR): New.
17201 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17202 Reimplement as macros.
17203 (trace_buffer_wrap): Delete.
17204 (traceframe_write_count, traceframe_read_count)
17205 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17206 (struct tracepoint_hit_ctx) <type>: New field.
17207 (struct fast_tracepoint_ctx): New.
17208 (memory_barrier): New.
17209 (cmpxchg): New.
17210 (record_tracepoint_error): Update atomically in the IPA.
17211 (clear_inferior_trace_buffer): New.
17212 (about_to_request_buffer_space): New.
17213 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17214 updating the same buffer.
17215 (add_tracepoint): Default the tracepoint's type to trap
17216 tracepoint, and orig_size to -1.
17217 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17218 internal variables.
17219 (create_trace_state_variable): New parameter `gdb'. Handle it.
17220 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17221 (cmd_qtdp): Handle fast tracepoints.
17222 (cmd_qtdv): Adjust.
17223 (max_jump_pad_size): New.
17224 (gdb_jump_pad_head): New.
17225 (get_jump_space_head): New.
17226 (claim_jump_space): New.
17227 (sort_tracepoints): New.
17228 (MAX_JUMP_SIZE): New.
17229 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17230 IPA.
17231 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17232 support. Upload fast traceframes, and delete internal IPA
17233 breakpoints.
17234 (stop_tracing_handler): New.
17235 (flush_trace_buffer_handler): New.
17236 (cmd_qtstop): Upload fast tracepoints.
17237 (response_tracepoint): Handle fast tracepoints.
17238 (tracepoint_finished_step): Upload fast traceframes. Set the
17239 tracepoint hit context's tracepoint type.
17240 (handle_tracepoint_bkpts): New.
17241 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17242 type. Add comment about fast tracepoints.
17243 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17244 non-existing action_str field.
17245 (get_context_regcache): Handle fast tracepoints.
17246 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17247 to the regcache.
17248 (fast_tracepoint_from_jump_pad_address): New.
17249 (fast_tracepoint_from_ipa_tpoint_address): New.
17250 (collecting_t): New.
17251 (force_unlock_trace_buffer): New.
17252 (fast_tracepoint_collecting): New.
17253 (collecting): New.
17254 (gdb_collect): New.
17255 (write_inferior_data_ptr): New.
17256 (target_tp_heap): New.
17257 (target_malloc): New.
17258 (download_agent_expr): New.
17259 (UALIGN): New.
17260 (download_tracepoints): New.
17261 (download_trace_state_variables): New.
17262 (upload_fast_traceframes): New.
17263 (IPA_FIRST_TRACEFRAME): New.
17264 (IPA_NEXT_TRACEFRAME_1): New.
17265 (IPA_NEXT_TRACEFRAME): New.
17266 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17267 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17268 (gdb_jump_pad_buffer_end): New.
17269 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17270 (initialize_tracepoint): Adjust.
17271 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17272 buffer. Initialize the low module.
17273 * utils.c (PREFIX, TOOLNAME): New.
17274 (malloc_failure): Use PREFIX.
17275 (error): In the IPA, an error causes an exit.
17276 (fatal, warning): Use PREFIX.
17277 (internal_error): Use TOOLNAME.
17278 (NUMCELLS): Increase to 10.
17279 * configure, config.in: Regenerate.
17280
d149dd1d
PA
172812010-06-01 Pedro Alves <pedro@codesourcery.com>
17282
17283 * server.c (handle_query) <qSupported>: Do two passes over the
17284 qSupported string to avoid nesting strtok.
17285
f6528abd
JK
172862010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17287
17288 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17289 (CDEPS): New.
17290 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17291 -Wl,--dynamic-list.
17292 * configure: Regenerate.
17293 * proc-service.list: New.
17294
ca2a87a0
JK
172952010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17296
17297 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17298 New comment.
17299
363a6e9f
OS
173002010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17301
17302 * gdbreplay.c (remote_open): Check error return from socket() call by
17303 its equality to -1 not by it being negative.
17304 * remote-utils.c (remote_open): Likewise.
17305
d23b6cb1
PA
173062010-05-23 Pedro Alves <pedro@codesourcery.com>
17307
17308 * config.h: Regenerate.
17309
28d3cf85
MK
173102010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17311
17312 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17313 doesn't provide PTRACE_GET_THREAD_AREA.
17314
fea36a59
MK
173152010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17316
17317 * linux-m68k-low.c: Include <asm/ptrace.h>
17318 (ps_get_thread_area): Implement.
17319
24b066ba
DE
173202010-05-03 Doug Evans <dje@google.com>
17321
17322 * event-loop.c (struct callback_event): New struct.
17323 (callback_list): New global.
17324 (append_callback_event, delete_callback_event): New functions.
17325 (process_callback): New function.
17326 (start_event_loop): Call it.
17327 * remote-utils.c (NOT_SCHEDULED): Define.
17328 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17329 moved out of readchar.
17330 (readchar): Rewrite. Call reschedule before returning.
17331 (reset_readchar): New function.
17332 (remote_close): Call it.
17333 (process_remaining, reschedule): New functions.
17334 * server.h (callback_handler_func): New typedef.
17335 (append_callback_event, delete_callback_event): Declare.
17336
9836d6ea
PA
173372010-05-03 Pedro Alves <pedro@codesourcery.com>
17338
17339 * proc-service.c (ps_pglobal_lookup): Use
17340 thread_db_look_up_one_symbol.
17341 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17342 parameter. Use it instead of all_symbols_looked_up.
17343 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17344 field.
17345 (all_symbols_looked_up): Don't declare.
17346 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17347 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17348 field.
17349 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17350 Set all_symbols_looked_up here.
17351 (thread_db_look_up_one_symbol): New.
17352 (thread_db_get_tls_address): Adjust.
17353 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17354 thread_db object on the heap, and tentatively set it in the
17355 process structure.
17356 (thread_db_init): Don't set all_symbols_looked_up here.
17357 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17358
7984d532
PA
173592010-05-03 Pedro Alves <pedro@codesourcery.com>
17360
17361 * linux-low.c (linux_kill, linux_detach): Adjust.
17362 (status_pending_p_callback): Remove redundant statement. Check
17363 for !TARGET_WAITIKIND_IGNORE, instead of
17364 TARGET_WAITKIND_STOPPED.
17365 (handle_tracepoints): Make sure LWP is locked. Adjust.
17366 (linux_wait_for_event_1): Adjust.
17367 (linux_cancel_breakpoints): New.
17368 (unsuspend_one_lwp): New.
17369 (unsuspend_all_lwps): New.
17370 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17371 (send_sigstop_callback): Change return type to int, add new
17372 `except' parameter and handle it.
17373 (suspend_and_send_sigstop_callback): New.
17374 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17375 pass them down. If SUSPEND, also increment the lwp's suspend
17376 count.
17377 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17378 (need_step_over_p): Don't consider suspended LWPs.
17379 (start_step_over): Adjust.
17380 (proceed_one_lwp): Change return type to int, add new `except'
17381 parameter and handle it.
17382 (unsuspend_and_proceed_one_lwp): New.
17383 (proceed_all_lwps): Use find_inferior instead of
17384 for_each_inferior.
17385 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17386 also decrement the suspend count of LWPs. Pass `except' down,
17387 instead of hacking its suspend count.
17388 (linux_pause_all): Add `freeze' parameter. Adjust.
17389 (linux_unpause_all): New.
17390 (linux_target_ops): Install linux_unpause_all.
17391 * server.c (handle_status): Adjust.
17392 * target.h (struct target_ops): New fields `unpause_all' and
17393 `cancel_breakpoints'. Add new parameter to `pause_all'.
17394 (pause_all): Add new `freeze' parameter.
17395 (unpause_all): New.
17396 (cancel_breakpoints): New.
17397 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17398 cancel breakpoints.
17399 (cmd_qtstart): Pause threads.
17400 (stop_tracing): Pause threads, and cancel breakpoints.
17401 * win32-low.c (win32_target_ops): Adjust.
17402
e471f25b
PA
174032010-05-03 Pedro Alves <pedro@codesourcery.com>
17404
17405 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17406 the inferior right away from here...
17407 (linux_wait_1): ... to here, and adjust to check the thread's
17408 last_resume_kind instead of the lwp's step or stop_expected flags.
17409
1915ef4f
PA
174102010-05-02 Pedro Alves <pedro@codesourcery.com>
17411
17412 * README: Use consistent `GDB' and `GDBserver' spellings.
17413
f9e39928
PA
174142010-05-02 Pedro Alves <pedro@codesourcery.com>
17415
17416 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17417 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17418 (linux_detach_one_lwp): Assume the lwp is stopped.
17419 (any_thread_of): Delete.
17420 (linux_detach): Stop all lwps here. Don't blindly delete all
17421 breakpoints.
17422 (delete_lwp_callback): New.
17423 (linux_mourn): Delete all lwps of the process that is gone.
17424 (linux_wait_1): Don't delete the last lwp of the process here.
17425 * mem-break.h (mark_breakpoints_out): Declare.
17426 * mem-break.c (mark_breakpoints_out): New.
17427 (free_all_breakpoints): Use it.
17428 * server.c (handle_target_event): If the process is gone, mark
17429 breakpoints out.
17430 * thread-db.c (struct thread_db) <create_bp>: New field.
17431 (thread_db_enable_reporting): Fix prototype. Store a thread event
17432 breakpoint reference in the thread_db struct.
17433 (thread_db_load_search): Clear the thread_db object.
17434 (try_thread_db_load_1): Ditto.
17435 (switch_to_process): New.
17436 (disable_thread_event_reporting): Use it.
17437 (remove_thread_event_breakpoints): New.
17438 (thread_db_detach, thread_db_mourn): Use it.
17439
1e7fc18c
PA
174402010-05-01 Pedro Alves <pedro@codesourcery.com>
17441
17442 * linux-low.c (linux_enable_event_reporting): New.
17443 (linux_wait_for_event_1, handle_extended_wait): Use it.
17444
02fc4de7
PA
174452010-04-30 Pedro Alves <pedro@codesourcery.com>
17446
17447 * linux-low.c (linux_kill_one_lwp, linux_kill)
17448 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17449 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17450 SIGSTOP even if the LWP is stopped.
17451 (send_sigstop_callback): New.
17452 (stop_all_lwps): Use send_sigstop_callback instead.
17453 (linux_resume_one_thread): Adjust.
17454 (proceed_one_lwp): Still proceed an LWP that the client has
17455 requested to stop, if we haven't reported it as stopped yet. Make
17456 sure that LWPs the client want stopped, have a pending SIGSTOP.
17457
bc3b5632
DE
174582010-04-26 Doug Evans <dje@google.com>
17459
ae1ada35
DE
17460 * server.c (handle_general_set): Make static.
17461
bc3b5632
DE
17462 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17463 Print received char after testing for error/eof instead of before.
17464 (input_interrupt): Tweak comment.
17465
65730243
DE
174662010-04-23 Doug Evans <dje@google.com>
17467
17468 * server.c (start_inferior): Print inferior argv if --debug.
17469
a8ae7dc0
AR
174702010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17471
17472 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17473 * nto-x86-low.c: Include server.h
17474
1c07cc19
PM
174752010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17476
17477 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17478 be consistent with other sources of this directory.
17479 (init_registers_amd64): Correct name of source file of this function
17480 in the comment.
17481
e0a61e09
PM
174822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17483
17484 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17485 64-bit executables.
17486
54709339
PM
174872010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17488
17489 * win32-i386-low.c: Add 64-bit support.
17490 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17491 (init_registers_amd64): Declare.
17492 (mappings): Add 64-bit version of array.
17493 (init_windows_x86): New function.
17494 (the_low_target): Change init_arch field to init_windows_x86.
17495
e8f0053d
PM
174962010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17497
17498 * win32-low.c: Adapt to support also 64-bit architecture.
17499 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17500 (get_image_name): Use SIZE_T type for local variable `done'.
17501 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17502 (toolhelp_get_dll_name): Idem.
17503 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17504 Use uintptr_t typecast to avoid warning.
17505 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17506 (handle_exception): Use phex_nz to avoid warning.
17507 (win32_wait): Remove unused local variable `process'.
17508
c481e77e
PM
175092010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17510
17511 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17512 `amd64-avx.o'.
17513
12ea4b69
PM
175142010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17515
17516 * configure.ac: Use `ws2_32' library for srv_mingw.
17517 * configure: Regenerate.
17518 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17519 * remote-utils.c: Likewise.
17520
f6d1620c
L
175212010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17522
17523 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17524 if __x86_64__ is defined.
17525
8e642873
PM
175262010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17527
17528 * configure: Regenerate.
17529
711e434b
PM
175302010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17531
17532 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17533 * target.h (target_ops): New get_tib_address field.
17534 * win32-low.h (win32_thread_info): Add thread_local_base field.
17535 * win32-low.c (child_add_thread): Add tlb argument.
17536 Set thread_local_base field to TLB.
17537 (get_child_debug_event): Adapt to child_add_thread change.
17538 (win32_get_tib_address): New function.
17539 (win32_target_ops): Set get_tib_address field to
17540 win32_get_tib_address.
17541 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17542
505106cd
PA
175432010-04-12 Pedro Alves <pedro@codesourcery.com>
17544
505106cd
PA
17545 * linux-low.c (linux_mourn): Also remove the process.
17546 * server.c (handle_target_event): Don't remove the process here.
17547 * nto-low.c (nto_mourn): New.
17548 (nto_target_ops): Install it.
17549 * spu-low.c (spu_mourn): New.
17550 (spu_target_ops): Install it.
17551 * win32-low.c (win32_mourn): New.
17552 (win32_target_ops): Install it.
17553
e8470a06
PA
175542010-04-12 Pedro Alves <pedro@codesourcery.com>
17555
17556 * server.h (buffer_xml_printf): Remove redundant `;'.
17557
45ba0d02
PA
175582010-04-12 Pedro Alves <pedro@codesourcery.com>
17559
17560 * regcache.c (set_register_cache): Invalidate regcaches before
17561 changing the register cache layout.
17562 (regcache_invalidate_one): Allow a NULL regcache.
17563 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17564 regcaches before changing the register cache layout or the target
17565 regsets.
17566
59e04013
L
175672010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17568
17569 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17570 variable warning on Linux/x86-64.
17571
8336d594
PA
175722010-04-11 Pedro Alves <pedro@codesourcery.com>
17573
17574 GDBserver disconnected tracing support.
17575
17576 * linux-low.c (linux_remove_process): Delete.
17577 (add_lwp): Don't set last_resume_kind here.
17578 (linux_kill): Use `mourn'.
17579 (linux_detach): Use `thread_db_detach', and `mourn'.
17580 (linux_mourn): New.
17581 (linux_attach_lwp_1): Adjust comment.
17582 (linux_attach): last_resume_kind moved the thread_info; adjust.
17583 (status_pending_p_callback): Adjust.
17584 (linux_wait_for_event_1): Adjust.
17585 (count_events_callback, select_singlestep_lwp_callback)
17586 (select_event_lwp_callback, cancel_breakpoints_callback)
17587 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17588 (proceed_one_lwp): Adjust.
17589 (linux_async): Add debug output.
17590 (linux_thread_stopped): New.
17591 (linux_pause_all): New.
17592 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17593 linux_pause_all.
17594 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17595 (thread_db_free): Delete declaration.
17596 (thread_db_detach, thread_db_mourn): Declare.
17597 * thread-db.c (thread_db_init): Use thread_db_mourn.
17598 (thread_db_free): Delete, split in two.
17599 (disable_thread_event_reporting): New.
17600 (thread_db_detach): New.
17601 (thread_db_mourn): New.
17602
17603 * server.h (struct thread_info) <last_resume_kind>: New field.
17604 <attached>: Add comment.
17605 <gdb_detached>: New field.
17606 (handler_func): Change return type to int.
17607 (handle_serial_event, handle_target_event): Ditto.
17608 (gdb_connected): Declare.
17609 (tracing): Delete.
17610 (disconnected_tracing): Declare.
17611 (stop_tracing): Declare.
17612
17613 * server.c (handle_query) <qSupported>: Report support for
17614 disconnected tracing.
17615 (queue_stop_reply_callback): Account for running threads.
17616 (gdb_wants_thread_stopped): New.
17617 (gdb_wants_all_threads_stopped): New.
17618 (gdb_reattached_process): New.
17619 (handle_status): Clear the `gdb_detached' flag of all processes.
17620 In all-stop, stop all threads.
17621 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17622 (process_serial_event): If the remote connection breaks, or if an
17623 exit was forced with "monitor exit", force an event loop exit.
17624 Handle disconnected tracing on detach.
17625 (handle_serial_event): Adjust.
17626 (handle_target_event): If GDB isn't connected, forward events back
17627 to the inferior, unless the last process exited, in which case,
17628 exit gdbserver. Adjust interface.
17629
17630 * remote-utils.c (remote_open): Don't block in accept. Instead
17631 register an event loop source on the listen socket file
17632 descriptor. Refactor bits into ...
17633 (listen_desc): ... this new global.
17634 (gdb_connected): ... this new function.
17635 (enable_async_notification): ... this new function.
17636 (handle_accept_event): ... this new function.
17637 (remote_close): Clear remote_desc.
17638
17639 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17640
17641 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17642 New fields.
17643 (mourn_inferior): Define.
17644 (target_process_qsupported): Avoid the dangling else problem.
17645 (thread_stopped): Define.
17646 (pause_all): Define.
17647 (target_waitstatus_to_string): Declare.
17648 * target.c (target_waitstatus_to_string): New.
17649
17650 * tracepoint.c (tracing): Make extern.
17651 (disconnected_tracing): New.
17652 (stop_tracing): Make extern. Handle tracing stops due to GDB
17653 disconnecting.
17654 (cmd_qtdisconnected): New.
17655 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17656 (handle_tracepoint_general_set): Handle QTDisconnected.
17657
17658 * event-loop.c (event_handler_func): Change return type to int.
17659 (process_event): Bail out if the event handler wants the event
17660 loop to stop.
17661 (handle_file_event): Ditto.
17662 (start_event_loop): Bail out if the event handler wants the event
17663 loop to stop.
17664
17665 * nto-low.c (nto_target_ops): Adjust.
17666 * spu-low.c (spu_wait): Don't remove the process here.
17667 (spu_target_ops): Adjust.
17668 * win32-low.c (win32_wait): Don't remove the process here.
17669 (win32_target_ops): Adjust.
17670
5d267c4c
PA
176712010-04-11 Pedro Alves <pedro@codesourcery.com>
17672
17673 * regcache.c (realloc_register_cache): Invalidate inferior's
17674 regcache before recreating it.
17675
623ccd72
PA
176762010-04-09 Pedro Alves <pedro@codesourcery.com>
17677
17678 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17679
219f2f23
PA
176802010-04-09 Stan Shebs <stan@codesourcery.com>
17681 Pedro Alves <pedro@codesourcery.com>
17682
17683 * server.h (LONGEST): New.
17684 (struct thread_info) <while_stepping>: New field.
17685 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17686 Declare.
17687 (initialize_tracepoint, handle_tracepoint_general_set)
17688 (handle_tracepoint_query, tracepoint_finished_step)
17689 (tracepoint_was_hit, release_while_stepping_state_list):
17690 (current_traceframe): Declare.
17691 * server.c (handle_general_set): Handle tracepoint packets.
17692 (read_memory): New.
17693 (write_memory): New.
17694 (handle_search_memory_1): Use read_memory.
17695 (handle_query): Report support for conditional tracepoints, trace
17696 state variables, and tracepoint sources. Handle tracepoint
17697 queries.
17698 (main): Initialize the tracepoints module.
17699 (process_serial_event): Handle traceframe reads/writes.
17700
17701 * linux-low.c (handle_tracepoints): New.
17702 (linux_wait_1): Call it.
17703 (linux_resume_one_lwp): Handle while-stepping.
17704 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17705 (linux_target_ops): Install them.
17706 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17707 New field.
17708 * linux-x86-low.c (x86_supports_tracepoints): New.
17709 (the_low_target). Install it.
17710
17711 * mem-break.h (delete_breakpoint): Declare.
17712 * mem-break.c (delete_breakpoint): Make external.
17713
17714 * target.h (struct target_ops): Add `supports_tracepoints',
17715 `read_pc', and `write_pc' fields.
17716 (target_supports_tracepoints): Define.
17717 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17718 (phex_nz): New.
17719
17720 * regcache.h (struct regcache) <registers_owned>: New field.
17721 (init_register_cache, regcache_cpy): Declare.
17722 (regcache_read_pc, regcache_write_pc): Declare.
17723 (register_cache_size): Declare.
17724 (supply_regblock): Declare.
17725 * regcache.c (init_register_cache): New.
17726 (new_register_cache): Use it.
17727 (regcache_cpy): New.
17728 (register_cache_size): New.
17729 (supply_regblock): New.
17730 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17731
219f2f23
PA
17732 * tracepoint.c: New.
17733
17734 * Makefile.in (OBS): Add tracepoint.o.
17735 (tracepoint.o): New rule.
17736
3a13a53b
L
177372010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17738
17739 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17740 (i386-mmx.o): New.
17741 (i386-mmx.c): Likewise.
17742 (i386-mmx-linux.o): Likewise.
17743 (i386-mmx-linux.c): Likewise.
17744
17745 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17746 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17747 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17748 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17749
17750 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17751 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17752 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17753
1570b33e
L
177542010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17755
17756 * Makefile.in (clean): Updated.
17757 (i386-avx.o): New.
17758 (i386-avx.c): Likewise.
17759 (i386-avx-linux.o): Likewise.
17760 (i386-avx-linux.c): Likewise.
17761 (amd64-avx.o): Likewise.
17762 (amd64-avx.c): Likewise.
17763 (amd64-avx-linux.o): Likewise.
17764 (amd64-avx-linux.c): Likewise.
17765
17766 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17767 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17768 (srv_amd64_regobj): Add amd64-avx.o.
17769 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17770 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17771 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17772 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17773 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17774 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17775 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17776
17777 * i387-fp.c: Include "i386-xstate.h".
17778 (i387_xsave): New.
17779 (i387_cache_to_xsave): Likewise.
17780 (i387_xsave_to_cache): Likewise.
17781 (x86_xcr0): Likewise.
17782
17783 * i387-fp.h (i387_cache_to_xsave): Likewise.
17784 (i387_xsave_to_cache): Likewise.
17785 (x86_xcr0): Likewise.
17786
17787 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17788 * linux-crisv32-low.c (target_regsets): Likewise.
17789 * linux-m68k-low.c (target_regsets): Likewise.
17790 * linux-mips-low.c (target_regsets): Likewise.
17791 * linux-ppc-low.c (target_regsets): Likewise.
17792 * linux-s390-low.c (target_regsets): Likewise.
17793 * linux-sh-low.c (target_regsets): Likewise.
17794 * linux-sparc-low.c (target_regsets): Likewise.
17795 * linux-xtensa-low.c (target_regsets): Likewise.
17796
17797 * linux-low.c: Include <sys/uio.h>.
17798 (regsets_fetch_inferior_registers): Support nt_type.
17799 (regsets_store_inferior_registers): Likewise.
17800 (linux_process_qsupported): New.
17801 (linux_target_ops): Add linux_process_qsupported.
17802
17803 * linux-low.h (regset_info): Add nt_type.
17804 (linux_target_ops): Add process_qsupported.
17805
17806 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17807 and <sys/uio.h>.
17808 (init_registers_i386_avx_linux): New.
17809 (init_registers_amd64_avx_linux): Likewise.
17810 (xmltarget_i386_linux_no_xml): Likewise.
17811 (xmltarget_amd64_linux_no_xml): Likewise.
17812 (PTRACE_GETREGSET): Likewise.
17813 (PTRACE_SETREGSET): Likewise.
17814 (x86_fill_xstateregset): Likewise.
17815 (x86_store_xstateregset): Likewise.
17816 (use_xml): Likewise.
17817 (x86_linux_update_xmltarget): Likewise.
17818 (x86_linux_process_qsupported): Likewise.
17819 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17820 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17821 init_registers_i386_linux here. Call
17822 x86_linux_update_xmltarget.
17823 (the_low_target): Add x86_linux_process_qsupported.
17824
17825 * server.c (handle_query): Call target_process_qsupported.
17826
17827 * target.h (target_ops): Add process_qsupported.
17828 (target_process_qsupported): New.
17829
fc7238bb
PA
178302010-04-03 Pedro Alves <pedro@codesourcery.com>
17831
17832 * inferiors.c (add_thread): Set last_status kind to
17833 TARGET_WAITKIND_IGNORE.
17834 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17835 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17836 (linux_wait_1): Move `thread' local definition to block that uses
17837 it. Don't NULL initialize `event_child'.
17838 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17839 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17840 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17841
bdabb078
PA
178422010-04-01 Pedro Alves <pedro@codesourcery.com>
17843
17844 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17845 an extended waitstatus, or by a watchpoint.
17846 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17847 thread was stepping or has been stopped by a watchpoint.
17848
d3bbe7a0
PA
178492010-04-01 Pedro Alves <pedro@codesourcery.com>
17850
17851 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17852 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17853 of another, then delete the previous, and validate all
17854 breakpoints.
17855 (validate_inserted_breakpoint): New.
17856 (delete_disabled_breakpoints): New.
17857 (validate_breakpoints): New.
17858 (check_mem_read): Validate breakpoints before trusting their
17859 shadow. Delete disabled breakpoints.
17860 (check_mem_write): Validate breakpoints before trusting they
17861 should be inserted. Delete disabled breakpoints.
17862 * mem-break.h (validate_breakpoints):
17863 * server.c (handle_query): Validate breakpoints when we see a
17864 qSymbol query.
17865
8b07ae33
PA
178662010-04-01 Pedro Alves <pedro@codesourcery.com>
17867
17868 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17869 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17870 if we could tell there's a GDB breakpoint at stop_pc.
17871 (need_step_over_p): Don't do a step over if we find a GDB
17872 breakpoint at the resume PC.
17873
17874 * mem-break.c (struct raw_breakpoint): New.
17875 (enum bkpt_type): New type `gdb_breakpoint'.
17876 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17877 fields. New field `raw'.
17878 (find_raw_breakpoint_at): New.
17879 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17880 breakpoint instead.
17881 (set_breakpoint_at): Adjust.
17882 (delete_raw_breakpoint): New.
17883 (release_breakpoint): New.
17884 (delete_breakpoint): Rename to...
17885 (delete_breakpoint_1): ... this. Add proc parameter. Use
17886 release_breakpoint. Return ENOENT.
17887 (delete_breakpoint): Reimplement.
17888 (find_breakpoint_at): Delete.
17889 (find_gdb_breakpoint_at): New.
17890 (delete_breakpoint_at): Delete.
17891 (set_gdb_breakpoint_at): New.
17892 (delete_gdb_breakpoint_at): New.
17893 (gdb_breakpoint_here): New.
17894 (set_reinsert_breakpoint): Use release_breakpoint.
17895 (uninsert_breakpoint): Rename to ...
17896 (uninsert_raw_breakpoint): ... this.
17897 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17898 (reinsert_raw_breakpoint): Change parameter type to
17899 raw_breakpoint.
17900 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17901 instead.
17902 (check_breakpoints): Adjust. Use release_breakpoint.
17903 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17904 (breakpoint_inserted_here): Ditto.
17905 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17906 Don't trust the breakpoint's shadow if it is not inserted.
17907 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17908 (delete_all_breakpoints): Adjust.
17909 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17910 use delete_breakpoint_1.
17911
17912 * mem-break.h (breakpoints_supported): Delete declaration.
17913 (set_gdb_breakpoint_at): Declare.
17914 (gdb_breakpoint_here): Declare.
17915 (delete_breakpoint_at): Delete.
17916 (delete_gdb_breakpoint_at): Declare.
17917
17918 * server.h (struct raw_breakpoint): Forward declare.
17919 (struct process_info): New field `raw_breakpoints'.
17920
17921 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17922 breakpoints.
17923
6bf5e0ba
PA
179242010-03-24 Pedro Alves <pedro@codesourcery.com>
17925
17926 * linux-low.c (status_pending_p_callback): Fix comment.
17927 (linux_wait_for_event_1): Move most of the internal breakpoint
17928 handling from here...
17929 (linux_wait_1): ... to here.
17930 (count_events_callback): New.
17931 (select_singlestep_lwp_callback): New.
17932 (select_event_lwp_callback): New.
17933 (cancel_breakpoints_callback): New.
17934 (select_event_lwp): New.
17935 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17936 priority to all LWPs that have had events that should be reported
17937 to the client. Cancel breakpoints when about to reporting the
17938 event to the client, not while stopping lwps. No longer cancel
17939 finished single-steps here.
17940 (cancel_finished_single_step): Delete.
17941 (cancel_finished_single_steps): Delete.
17942
414a389f
PA
179432010-03-24 Pedro Alves <pedro@codesourcery.com>
17944
17945 * mem-break.c (enum bkpt_type): New.
17946 (struct breakpoint): New field `type'.
17947 (set_breakpoint_at): Change return type to struct breakpoint
17948 pointer. Set type to `other_breakpoint' by default.
17949 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17950 in the breakpoint list.
17951 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17952 (reinsert_breakpoint): Rename to ...
17953 (reinsert_raw_breakpoint): ... this.
17954 (reinsert_breakpoints_at): Adjust.
17955 * mem-break.h (struct breakpoint): Declare.
17956 (set_breakpoint_at): Change return type to struct breakpoint
17957 pointer.
17958
2280c721
PA
179592010-03-24 Pedro Alves <pedro@codesourcery.com>
17960
17961 * server.c (handle_query): Assign, not compare.
17962
d50171e4
PA
179632010-03-24 Pedro Alves <pedro@codesourcery.com>
17964
17965 Teach linux gdbserver to step-over-breakpoints.
17966
17967 * linux-low.c (can_hardware_single_step): New.
17968 (supports_breakpoints): New.
17969 (handle_extended_wait): If stopping threads, read the stop pc of
17970 the new cloned LWP.
17971 (get_pc): New.
17972 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17973 low target doesn't support retrieving the PC.
17974 (add_lwp): Set last_resume_kind to resume_continue.
17975 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17976 (linux_attach): Don't clear stop_expected. Set the lwp's
17977 last_resume_kind to resume_stop.
17978 (linux_detach_one_lwp): Don't check for removed breakpoints.
17979 (check_removed_breakpoint): Delete.
17980 (status_pending_p): Rename to ...
17981 (status_pending_p_callback): ... this. Don't check for removed
17982 breakpoints. Don't consider threads that are stopped from GDB's
17983 perspective.
17984 (linux_wait_for_lwp): Always read the stop_pc here.
17985 (cancel_breakpoint): New.
17986 (step_over_bkpt): New global.
17987 (linux_wait_for_event_1): Implement stepping over breakpoints.
17988 (gdb_wants_lwp_stopped): New.
17989 (gdb_wants_all_stopped): New.
17990 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17991 single-step traps here. Store the thread's last reported target
17992 wait status.
17993 (send_sigstop): Don't clear stop_expected. Always set it,
17994 instead.
17995 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17996 (cancel_finished_single_step): New.
17997 (cancel_finished_single_steps): New.
17998 (wait_for_sigstop): Don't cancel finished single-step traps here.
17999 (linux_resume_one_lwp): Don't check for removed breakpoints.
18000 Don't set `step' on non-hardware step archs.
18001 (linux_set_resume_request): Ignore resume_stop requests if already
18002 stopping or stopped. Set the lwp's last_resume_kind.
18003 (resume_status_pending_p): Don't check for removed breakpoints.
18004 (need_step_over_p): New.
18005 (start_step_over): New.
18006 (finish_step_over): New.
18007 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18008 requests. Clear the thread's last reported target waitstatus.
18009 Don't use the `suspended' flag. Don't consider pending breakpoints.
18010 (linux_resume): Start a step-over if necessary.
18011 (proceed_one_lwp): New.
18012 (proceed_all_lwps): New.
18013 (unstop_all_lwps): New.
18014 * linux-low.h (struct lwp_info): Rewrite comment for the
18015 `suspended' flag. Add the `stop_pc' field. Delete the
18016 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18017 Add `'last_resume_kind' and `need_step_over' fields.
18018 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18019 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18020 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18021 (set_raw_breakpoint_at): New.
18022 (set_breakpoint_at): Rewrite to use it.
18023 (reinsert_breakpoint_handler): Delete.
18024 (set_reinsert_breakpoint): New.
18025 (reinsert_breakpoint_by_bp): Delete.
18026 (delete_reinsert_breakpoints): New.
18027 (uninsert_breakpoint): Rewrite.
18028 (uninsert_breakpoints_at): New.
18029 (reinsert_breakpoint): Rewrite.
18030 (reinsert_breakpoints_at): New.
18031 (check_breakpoints): Rewrite.
18032 (breakpoint_here): New.
18033 (breakpoint_inserted_here): New.
18034 (check_mem_read): Adjust.
18035 * mem-break.h (breakpoints_supported, breakpoint_here)
18036 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18037 (reinsert_breakpoint_by_bp): Delete declaration.
18038 (delete_reinsert_breakpoints): Declare.
18039 (reinsert_breakpoint): Delete declaration.
18040 (reinsert_breakpoints_at): Declare.
18041 (uninsert_breakpoint): Delete declaration.
18042 (uninsert_breakpoints_at): Declare.
18043 (check_breakpoints): Adjust prototype.
18044 * server.h: Adjust include order.
18045 (struct thread_info): Declare here. Add a `last_status' field.
18046
30ba68cb
MS
180472010-03-23 Michael Snyder <msnyder@vmware.com>
18048
18049 * server.c (crc32): New function.
18050 (handle_query): Add handling for 'qCRC:' request.
18051
b9a881c2
PA
180522010-03-23 Pedro Alves <pedro@codesourcery.com>
18053
18054 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18055 lwp had been stopped by a watchpoint.
18056
e92d13d5
PA
180572010-03-16 Pedro Alves <pedro@codesourcery.com>
18058
18059 * server.h (internal_error): Declare.
18060 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18061 * utils.c (internal_error): New function.
18062
64daa791
AS
180632010-03-15 Andreas Schwab <schwab@redhat.com>
18064
18065 * configure.srv: Fix typo setting srv_regobj.
18066
f52cd8cd
PA
180672010-03-15 Pedro Alves <pedro@codesourcery.com>
18068
18069 * linux-low.c (fetch_register): Avoid passing a non string literal
18070 format to `error'.
18071 (usr_store_inferior_registers): Ditto.
18072
93ae6fdc
PA
180732010-03-14 Pedro Alves <pedro@codesourcery.com>
18074
18075 * linux-low.c (linux_write_memory): Bail out early if peeking
18076 memory failed.
18077
c3adc08c
PA
180782010-03-14 Pedro Alves <pedro@codesourcery.com>
18079
18080 * linux-low.h (struct lwp_info): New fields
18081 `stopped_by_watchpoint' and `stopped_data_address'.
18082 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18083 here, and cache them in the lwp object.
18084 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18085 directly.
18086 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18087 field.
18088 (linux_stopped_by_watchpoint): Rewrite.
18089 (linux_stopped_data_address): Rewrite.
18090
bce522a2
PA
180912010-03-06 Simo Melenius <simo.melenius@iki.fi>
18092
18093 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18094 switching the current inferior, not before.
18095
90884b2b
L
180962010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18097
18098 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18099 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18100 i386-linux.c and amd64-linux.c.
18101 (reg-i386.o): Removed.
18102 (reg-i386.c): Likewise.
18103 (reg-i386-linux.o): Likewise.
18104 (reg-i386-linux.c): Likewise.
18105 (reg-x86-64.o): Likewise.
18106 (reg-x86-64.c): Likewise.
18107 (reg-x86-64-linux.o): Likewise.
18108 (reg-x86-64-linux.c): Likewise.
18109 (i386.o): New.
18110 (i386.c): Likewise.
18111 (i386-linux.o): Likewise.
18112 (i386-linux.c): Likewise.
18113 (amd64.o): Likewise.
18114 (amd64.c): Likewise.
18115 (amd64-linux.o): Likewise.
18116 (amd64-linux.c): Likewise.
18117
18118 * configure.srv (srv_i386_regobj): New.
18119 (srv_i386_linux_regobj): Likewise.
18120 (srv_amd64_regobj): Likewise.
18121 (srv_amd64_linux_regobj): Likewise.
18122 (srv_i386_32bit_xmlfiles): Likewise.
18123 (srv_i386_64bit_xmlfiles): Likewise.
18124 (srv_i386_xmlfiles): Likewise.
18125 (srv_amd64_xmlfiles): Likewise.
18126 (srv_i386_linux_xmlfiles): Likewise.
18127 (srv_amd64_linux_xmlfiles): Likewise.
18128 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18129 srv_xmlfiles to $srv_i386_xmlfiles.
18130 (i[34567]86-*-mingw32ce*): Likewise.
18131 (i[34567]86-*-mingw*): Likewise.
18132 (i[34567]86-*-nto*): Likewise.
18133 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18134 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18135 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18136 (x86_64-*-linux*): Likewise.
18137
18138 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18139 (init_registers_amd64_linux): New.
18140 (x86_arch_setup): Replace init_registers_x86_64_linux with
18141 init_registers_amd64_linux.
18142
193f13e6
MK
181432010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18144
18145 * configure.ac: Check for libdl. If it is not available link against
18146 static libthread_db.
18147 * configure: Regenerate.
18148
85d721b8
PA
181492010-02-22 Pedro Alves <pedro@codesourcery.com>
18150
18151 PR9605
18152
18153 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18154 handing a read watchpoint.
18155 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18156
6076632b
DE
181572010-02-12 Doug Evans <dje@google.com>
18158
18159 * linux-low.c (linux_supports_tracefork_flag): Document.
18160 (linux_look_up_symbols): Add comment.
18161
3327ccf7
L
181622010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18163
18164 * regcache.c (supply_register): Clear regcache if buf is NULL.
18165
0718675c 181662010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18167 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18168
18169 * inferiors.c (find_inferior): Add function documentation.
18170 (unloaded_dll): Handle the case where the unloaded dll has not
18171 been previously registered in the dll list.
18172
177321bd
DJ
181732010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18174
18175 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18176 (thumb2_breakpoint): New.
18177 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18178
2b009048
DJ
181792010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18180
18181 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18182 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18183 breakpoints.
18184
3be029c7
PA
181852010-01-21 Pedro Alves <pedro@codesourcery.com>
18186
18187 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18188
18f5de3b
JK
181892010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18190
18191 * linux-s390-low.c (s390_collect_ptrace_register)
18192 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18193
3743bb4f
DE
181942010-01-21 Doug Evans <dje@google.com>
18195
14ce3065
DE
18196 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18197 (PTRACE_ARG4_TYPE): New macro.
18198 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18199 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18200 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18201 (usr_store_inferior_registers): Ditto.
18202 (linux_read_memory, linux_write_memory): Ditto.
18203 (linux_test_for_tracefork): Ditto.
18204
3743bb4f
DE
18205 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18206 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18207
8b315be5
PA
182082010-01-21 Pedro Alves <pedro@codesourcery.com>
18209
18210 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18211 target.
18212
85492558
PA
182132010-01-21 Pedro Alves <pedro@codesourcery.com>
18214
18215 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18216 prototype to take a regcache. Adjust.
18217
442ea881
PA
182182010-01-20 Pedro Alves <pedro@codesourcery.com>
18219
18220 * regcache.h (struct thread_info): Forward declare.
18221 (struct regcache): New.
18222 (new_register_cache): Adjust prototype.
18223 (get_thread_regcache): Declare.
18224 (free_register_cache): Adjust prototype.
18225 (registers_to_string, registers_from_string): Ditto.
18226 (supply_register, supply_register_by_name, collect_register)
18227 (collect_register_as_string, collect_register_by_name): Ditto.
18228 * regcache.c (struct inferior_regcache_data): Delete.
18229 (get_regcache): Rename to ...
18230 (get_thread_regcache): ... this. Adjust. Switch inferior before
18231 fetching registers.
18232 (regcache_invalidate_one): Adjust.
18233 (regcache_invalidate): Fix prototype.
18234 (new_register_cache): Return the new register cache.
18235 (free_register_cache): Change prototype.
18236 (realloc_register_cache): Adjust.
18237 (registers_to_string): Change prototype to take a regcache. Adjust.
18238 (registers_from_string): Ditto.
18239 (register_data): Ditto.
18240 (supply_register): Ditto.
18241 (supply_register_by_name): Ditto.
18242 (collect_register): Ditto.
18243 (collect_register_as_string): Ditto.
18244 (collect_register_by_name): Ditto.
18245 * server.c (process_serial_event): Adjust.
18246 * linux-low.h (regset_fill_func, regset_store_func): Change
18247 prototype.
18248 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18249 Change prototype.
18250 * linux-low.c (get_stop_pc): Adjust.
18251 (check_removed_breakpoint): Adjust.
18252 (linux_wait_for_event): Adjust.
18253 (linux_resume_one_lwp): Adjust.
18254 (fetch_register): Add regcache parameter. Adjust.
18255 (usr_store_inferior_registers): Ditto.
18256 (regsets_fetch_inferior_registers): Ditto.
18257 (regsets_store_inferior_registers): Ditto.
18258 (linux_fetch_registers, linux_store_registers): Ditto.
18259 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18260 regcache. Adjust.
43aaf8b6
PA
18261 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18262 Ditto.
442ea881
PA
18263 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18264 prototype to take a regcache.
18265 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18266 * remote-utils.c (convert_ascii_to_int, outreg)
18267 (prepare_resume_reply): Change prototype to take a regcache.
18268 Adjust.
18269 * target.h (struct target_ops) <fetch_registers, store_registers>:
18270 Change prototype to take a regcache.
18271 (fetch_inferior_registers, store_inferior_registers): Change
18272 prototype to take a regcache. Adjust.
18273 * proc-service.c (ps_lgetregs): Adjust.
18274 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18275 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18276 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18277 take a regcache. Adjust.
18278 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18279 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18280 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18281 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18282 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18283 (cris_cannot_fetch_register):
18284 (cris_breakpoint_at): Change prototype to take a regcache.
18285 Adjust.
18286 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18287 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18288 to take a regcache. Adjust.
18289 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18290 Adjust.
18291 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18292 take a regcache. Adjust.
18293 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18294 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18295 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18296 * linux-mips-low.c (mips_get_pc):
18297 (mips_set_pc): Change prototype to take a regcache. Adjust.
18298 (mips_reinsert_addr): Adjust.
18299 (mips_collect_register): Change prototype to take a regcache.
18300 Adjust.
18301 (mips_supply_register):
18302 (mips_collect_register_32bit, mips_supply_register_32bit)
18303 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18304 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18305 * linux-ppc-low.c (ppc_supply_ptrace_register)
18306 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18307 (parse_spufs_run): Adjust.
18308 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18309 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18310 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18311 take a regcache. Adjust.
18312 * linux-s390-low.c (s390_collect_ptrace_register)
18313 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18314 (s390_set_pc): Change prototype to take a regcache. Adjust.
18315 (s390_arch_setup): Adjust.
18316 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18317 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18318 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18319 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18320 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18321 regcache. Adjust.
18322 (sparc_breakpoint_at): Adjust.
18323 * linux-xtensa-low.c (xtensa_fill_gregset):
18324 (xtensa_store_gregset):
18325 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18326 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18327 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18328 prototype to take a regcache. Adjust.
18329 * win32-arm-low.c (arm_fetch_inferior_register)
18330 (arm_store_inferior_register): Change prototype to take a
18331 regcache. Adjust.
18332 * win32-i386-low.c (i386_fetch_inferior_register)
18333 (i386_store_inferior_register): Change prototype to take a
18334 regcache. Adjust.
18335 * win32-low.c (child_fetch_inferior_registers)
18336 (child_store_inferior_registers): Change prototype to take a
18337 regcache. Adjust.
18338 (win32_wait): Adjust.
18339 (win32_fetch_inferior_registers): Change prototype to take a
18340 regcache. Adjust.
18341 (win32_store_inferior_registers): Adjust.
18342 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18343 store_inferior_register>: Change prototype to take a regcache.
18344
60c3d7b0
DE
183452010-01-20 Doug Evans <dje@google.com>
18346
18347 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18348 #ifdef.
18349 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18350 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18351
dc146f7c
VP
183522010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18353
18354 * linux-low.c (linux_core_of_thread): New.
18355 (compare_ints, show_process, list_threads): New.
18356 (linux_qxfer_osdata): Report threads and cores.
18357 (linux_target_op): Register linux_core_of_thread.
18358 * remote-utils.c (prepare_resume_reply): Report the core.
18359 (buffer_xml_printf): Support %d specifier.
18360 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18361 New.
18362 (handle_query): Handle qXfer:threads. Announce availability
18363 thereof.
18364 * target.h (struct target_ops): New field core_of_thread.
18365
7803799a
UW
183662010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18367
18368 * Makefile.in (clean): Remove new generated files.
18369 (reg-s390.o, reg-s390.c): Remove rules.
18370 (reg-s390x.o, reg-s390x.c): Likewise.
18371 (s390-linux32.o, s390-linux32.c): Add rules.
18372 (s390-linux64.o, s390-linux64.c): Likewise.
18373 (s390x-linux64.o, s390x-linux64.c): Likewise.
18374 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18375 * linux-s390-low.c: Include <elf.h>.
18376 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18377 (init_registers_s390): Remove prototype.
18378 (init_registers_s390x): Likewise.
18379 (init_registers_s390_linux32): Add prototype.
18380 (init_registers_s390_linux64): Likewise.
18381 (init_registers_s390x_linux64): Likewise.
18382 (s390_num_regs_3264): New define.
18383 (s390_regmap_3264): New global variable.
18384 (s390_cannot_fetch_register): Remove obsolete check.
18385 (s390_cannot_store_register): Likewise.
18386 (s390_collect_ptrace_register): Handle upper/lower register halves.
18387 (s390_supply_ptrace_register): Likewise.
18388 (s390_fill_gregset): Update to register number changes.
18389 (s390_get_hwcap): New routine.
18390 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18391 Install appropriate regmap and register set.
18392
6e7ffa39
JB
183932010-01-01 Joel Brobecker <brobecker@adacore.com>
18394
18395 * server.c (gdbserver_version): Update copyright year to 2010.
18396 * gdbreplay.c (gdbreplay_version): Likewise.
18397
957f3f49
DE
183982009-12-28 Doug Evans <dje@google.com>
18399
18400 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18401 elf/external.h. Include <elf.h> instead but only if necessary.
18402
ca5c370d
PA
184032009-12-28 Pedro Alves <pedro@codesourcery.com>
18404
18405 * linux-low.c (linux_remove_process): Remove `detaching'
18406 parameter. Don't release/detach from thread_db here.
18407 (linux_kill): Release/detach from thread_db here, ...
18408 (linux_detach): ... and here, before actually detaching.
18409 (linux_wait_1): ... and here, when a process exits.
18410 * thread-db.c (any_thread_of): New.
18411 (thread_db_free): Switch the current inferior to a thread of the
18412 passed in process.
18413
4ee62156
DE
184142009-12-21 Doug Evans <dje@google.com>
18415
d90e6a88
DE
18416 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18417
c5f62d5f
DE
18418 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18419 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18420 warning ifndef __NR_tkill. Move setting of errno there too.
18421 Delete unnecessary resetting of errno after syscall.
18422 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18423
10e86dd7
DE
18424 * configure.ac: Check for dladdr.
18425 * config.in: Regenerate.
18426 * configure: Regenerate.
18427 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18428 (try_thread_db_load): Update.
18429
4ee62156
DE
18430 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18431
00f515da
DE
184322009-12-18 Doug Evans <dje@google.com>
18433
e9464885
DE
18434 * event-loop.c: Include unistd.h if it exists.
18435
07d4f67e
DE
18436 * linux-low.c (my_waitpid): Move definition away from being in
18437 between linux_tracefork_child/linux_test_for_tracefork.
18438
00f515da
DE
18439 * gdb_proc_service.h (psaddr_t): Fix type.
18440 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18441 signature to match glibc.
18442
1de1badb
DE
184432009-12-16 Doug Evans <dje@google.com>
18444
18445 * linux-low.c (linux_read_memory): Fix argument to read.
18446
aeeb81d1
PA
184472009-11-26 Pedro Alves <pedro@codesourcery.com>
18448
18449 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18450 events, don't leave current_inferior pointing at null.
18451
10357975
PA
184522009-11-26 Pedro Alves <pedro@codesourcery.com>
18453
18454 * win32-low.c (LOG): Delete.
18455 (OUTMSG): Output to stderr.
18456 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18457 on compile time LOG macro.
18458 (win32_wait): Fix debug output.
18459
cf6e3471
PA
184602009-11-26 Pedro Alves <pedro@codesourcery.com>
18461
18462 * win32-low.c (win32_add_one_solib): If the dll name is
18463 "ntdll.dll", prepend the system directory to the dll path.
18464
0c85e18e
MK
184652009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18466
18467 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18468
9ac544ce 184692009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18470 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18471
18472 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18473 * configure.ac: Check for __mcoldfire__ and set
18474 gdb_cv_m68k_is_coldfire.
18475 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18476 reg-cf.o and reg-m68k.o.
18477 * configure: Regenerated.
18478
fd7dd3e6
PA
184792009-11-16 Pedro Alves <pedro@codesourcery.com>
18480
18481 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18482 Pass it to thread_db_free.
18483 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18484 proper `detaching' argument to linux_remove_process.
18485 * linux-low.h (thread_db_free): Add `detaching' parameter.
18486 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18487 to thread_db_free.
18488 (thread_db_free): Add `detaching' parameter. Only
18489 call td_ta_clear_event if detaching from process.
18490
75aa492e
MK
184912009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18492
18493 * thread-db.c (thread_db_free): Fix typo.
18494
21e1bee4
PP
184952009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18496
18497 PR gdb/10838
18498 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18499
8838b45e
NS
185002009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18501
18502 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18503 with an i686 compiler.
18504 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18505 needed.
18506 * configure: Rebuilt.
18507
8a35fb51
SL
185082009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18509
18510 PR gdb/10783
18511
18512 * server.c (handle_search_memory_1): Correct read_addr initialization
18513 in loop for searching subsequent chunks.
18514
96f15937
PP
185152009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18516
18517 * configure.ac: New --with-libthread-db option.
18518 * thread-db.c: Allow direct dependence on libthread_db.
18519 (thread_db_free): Adjust.
18520 * config.in: Regenerate.
18521 * configure: Likewise.
889bf7c5 18522
5f7d1694
PP
185232009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18524
18525 PR gdb/10757
18526 * thread-db.c (attach_thread): New function.
18527 (maybe_attach_thread): Return success/failure.
18528 (find_new_threads_callback): Adjust.
889bf7c5
PA
18529 (thread_db_find_new_threads): Loop until no new threads.
18530
88e3b899
PA
185312009-10-13 Pedro Alves <pedro@codesourcery.com>
18532
18533 * proc-service.c (ps_lgetregs): Formatting.
18534
cdbfd419
PP
185352009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18536
18537 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18538 * configure.ac: Adjust.
18539 * linux-low.h (struct process_info_private): Move members to struct
18540 thread_db.
18541 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18542 * linux-low.c (linux_remove_process): Adjust.
18543 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18544 * server.c (handle_query): Move code ...
18545 (handle_monitor_command): ... here. New function.
18546 * target.h (struct target_ops): New member.
18547 * thread-db.c (struct thread_db): New.
18548 (libthread_db_search_path): New variable.
18549 (thread_db_create_event, thread_db_enable_reporting)
18550 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18551 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18552 (try_thread_db_load_1, dladdr_to_soname): New functions.
18553 (try_thread_db_load, thread_db_load_search): New functions.
18554 (thread_db_init): Search for libthread_db.
18555 (thread_db_free): New function.
18556 (thread_db_handle_monitor_command): Likewise.
18557 * config.in: Regenerate.
18558 * configure: Regenerate.
889bf7c5 18559
4168d2d6
UW
185602009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18561
18562 * spu-low.c (spu_kill): Wait for inferior to terminate.
18563 Call clear_inferiors.
18564 (spu_detach): Call clear_inferiors.
18565
81ecdfbb
RW
185662009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18567
18568 * aclocal.m4: Regenerate.
18569 * config.in: Likewise.
18570 * configure: Likewise.
18571
0b9ff2c0
UW
185722009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18573
18574 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18575 (parse_spufs_run): New function.
18576 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18577 (ppc_breakpoint_at): Handle SPU breakpoints.
18578
efcbbd14
UW
185792009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18580
18581 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18582 (SPUFS_MAGIC): Define.
18583 (spu_enumerate_spu_ids): New function.
18584 (linux_qxfer_spu): New function.
18585 (linux_target_ops): Install linux_qxfer_spu.
18586
f4d9bade
UW
185872009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18588
18589 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18590 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18591 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18592 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18593 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18594 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18595 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18596 (init_registers_powerpc_cell32l): Add prototype.
18597 (init_registers_powerpc_cell64l): Likewise.
18598 (ppc_arch_setup): Detect Cell/B.E. architecture.
18599
96e946ca
RW
186002009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18601
18602 * Makefile.in (datarootdir): New variable.
18603
58d6951d
DJ
186042009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18605
18606 * linux-low.c (linux_write_memory): Update debugging output.
18607 * Makefile.in (clean): Add new descriptions.
18608 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18609 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18610 * configure.srv: Add new files for arm*-*-linux*.
18611 * linux-arm-low.c: Add new declarations.
18612 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18613 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18614 (HWCAP_VFPv3D16): New.
18615 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18616 instead of __IWMMXT__.
18617 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18618 (arm_arch_setup): New.
18619 (target_regsets): Remove #ifdef. Add VFP regset.
18620 (the_low_target): Use arm_arch_setup.
18621
12b42a12
DJ
186222009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18623
18624 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18625 the main thread again.
18626
ac8c974e
AR
186272009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18628
18629 Adding Neutrino gdbserver.
18630 * configure: Regenerated.
18631 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18632 * configure.srv (i[34567]86-*-nto*): New target.
18633 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18634 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18635 (nto_comctrl) [__QNX__]: New function.
18636 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18637
4424e0c3 186382009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18639
18640 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18641 srv_tgtobj.
18642
912cf4ba
PA
186432009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18644 Pedro Alves <pedro@codesourcery.com>
18645
18646 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18647 don't support CONTEXT_EXTENDED_REGISTERS.
18648 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18649 (the_low_target): Install them.
18650 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18651 failing with ERROR_PIPE_NOT_CONNECTED.
18652
aa5ca48f
DE
186532009-06-30 Doug Evans <dje@google.com>
18654 Pierre Muller <muller@ics.u-strasbg.fr>
18655
18656 Add h/w watchpoint support to x86-linux, win32-i386.
18657 * Makefile.in (SFILES): Add i386-low.c
18658 (i386_low_h): Define.
18659 (i386-low.o): Add dependencies.
18660 (linux-x86-low.o): Add i386-low.h dependency.
18661 (win32-i386-low.o): Ditto.
18662 * i386-low.c: New file.
18663 * i386-low.h: New file.
18664 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18665 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18666 * linux-low.c (linux_add_process): Initialize arch_private.
18667 (linux_remove_process): Free arch_private.
18668 (add_lwp): Initialize arch_private.
18669 (delete_lwp): Free arch_private.
18670 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18671 provided.
18672 * linux-low.h (process_info_private): New member arch_private.
18673 (lwp_info): New member arch_private.
18674 (linux_target_ops): New members new_process, new_thread,
18675 prepare_to_resume.
18676 (ptid_of): New macro.
18677 * linux-x86-low.c: Include stddef.h, i386-low.h.
18678 (arch_process_info): New struct.
18679 (arch_lwp_info): New struct.
18680 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18681 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18682 (i386_dr_low_get_status): New function.
18683 (x86_insert_point, x86_remove_point): New functions.
18684 (x86_stopped_by_watchpoint): New function.
18685 (x86_stopped_data_address): New function.
18686 (x86_linux_new_process, x86_linux_new_thread): New functions.
18687 (x86_linux_prepare_to_resume): New function.
18688 (the_low_target): Add entries for insert_point, remove_point,
18689 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18690 prepare_to_resume.
18691 * server.c (debug_hw_points): New global.
18692 (monitor_show_help): Document set debug-hw-points.
18693 (handle_query): Process "set debug-hw-points".
18694 * server.h (debug_hw_points): Declare.
18695 (paddress): Declare.
18696 * utils.c (NUMCELLS, CELLSIZE): New macros.
18697 (get_sell, xsnprintf, paddress): New functions.
18698 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18699 remove_point, stopped_by_watchpoint, stopped_data_address.
18700 * win32-i386-low.c: Include i386-low.h.
18701 (debug_reg_state): Replaces dr.
18702 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18703 (i386_dr_low_get_status): New function.
18704 (i386_insert_point, i386_remove_point): New functions.
18705 (i386_stopped_by_watchpoint): New function.
18706 (i386_stopped_data_address): New function.
18707 (i386_initial_stuff): Update.
18708 (get_thread_context,set_thread_context,i386_thread_added): Update.
18709 (the_low_target): Add entries for insert_point,
18710 remove_point, stopped_by_watchpoint, stopped_data_address.
18711 * win32-low.c (win32_insert_watchpoint): New function.
18712 (win32_remove_watchpoint): New function.
18713 (win32_stopped_by_watchpoint): New function.
18714 (win32_stopped_data_address): New function.
18715 (win32_target_ops): Add entries for insert_watchpoint,
18716 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18717 * win32-low.h (win32_target_ops): New members insert_point,
18718 remove_point, stopped_by_watchpoint, stopped_data_address.
18719
d993e290
PA
187202009-06-25 Pedro Alves <pedro@codesourcery.com>
18721
18722 * server.c (process_serial_event): Re-return unsupported, not
18723 error, if the type isn't recognized. Re-allow supporting only
18724 insert or remove packets. Also call require_running for
18725 breakpoints. Add missing break statement to default case. Tidy.
18726 * target.h (struct target_ops): Rename insert_watchpoint to
18727 insert_point, and remove_watchpoint to remove_point.
18728
18729 * linux-low.h (struct linux_target_ops): Likewise.
18730 * linux-low.c (linux_insert_watchpoint): Rename to ...
18731 (linux_insert_point): ... this. Adjust.
18732 (linux_remove_watchpoint): Rename to ...
18733 (linux_remove_point): ... this. Adjust.
18734 (linux_target_ops): Adjust.
18735 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18736 (cris_insert_point): ... this.
18737 (cris_remove_watchpoint): Rename to ...
18738 (cris_remove_point): ... this.
18739 (the_low_target): Adjust.
18740
0f54c268
PM
187412009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18742
18743 * server.c (handle_v_kill): Pass signal_pid to
18744 kill_inferior if multi_process is zero.
18745
c6314022
AR
187462009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18747
18748 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18749 * target.h (target_ops): Comment for *_watchpoint to make it clear
18750 the functions can get types '0' and '1'.
18751
4463ce24
AR
187522009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18753
18754 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18755 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18756 * regcache.c (get_regcache): Likewise.
18757 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18758 * win32-low.c (child_fetch_inferior_registers): Remove check for
18759 regno 0.
18760
cf8fd78b
PA
187612009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18762 Pedro Alves <pedro@codesourcery.com>
18763
18764 * target.h (struct target_ops) <supports_multi_process>: New
18765 callback.
18766 (target_supports_multi_process): New.
18767 * server.c (handle_query): Even if GDB reports support, only
18768 enable multi-process if the target also supports it. Report
18769 multi-process support only if the target backend supports it.
18770 * linux-low.c (linux_supports_multi_process): New function.
18771 (linux_target_ops): Install it as target_supports_multi_process
18772 callback.
18773
47c0c975
DE
187742009-05-24 Doug Evans <dje@google.com>
18775
e09875d4
DE
18776 Global renaming of find_thread_pid to find_thread_ptid.
18777 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18778 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18779 All callers updated.
18780
e27d73f6
DE
18781 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18782 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18783 directly.
18784
47c0c975
DE
18785 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18786 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18787 (linux_resume_one_lwp): Ditto.
18788
2acc282a
DE
187892009-05-23 Doug Evans <dje@google.com>
18790
18791 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18792 from struct inferior_list_entry * to struct lwp_info *.
18793 All callers updated.
18794
9f1036c1
DE
187952009-05-13 Doug Evans <dje@google.com>
18796
18797 * linux-x86-low.c: Don't include assert.h.
18798 (x86_siginfo_fixup): Use fatal, not assert.
18799 (x86_arch_setup): Fix comment.
18800
d0722149
DE
188012009-05-12 Doug Evans <dje@google.com>
18802
18803 Biarch support for i386/amd64 gdbserver.
18804 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18805 Add linux-x86-low.c.
18806 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18807 (linux-x86-low.o): Add.
18808 * linux-x86-64-low.c: Delete.
18809 * linux-i386-low.c: Delete.
18810 * linux-x86-low.c: New file.
18811 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18812 linux-x86-low.o.
18813 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18814 linux-x86-low.o.
18815 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18816 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18817 (linux_child_pid_to_exec_file): New function.
18818 (elf_64_header_p, elf_64_file_p): New functions.
18819 (siginfo_fixup): New function.
18820 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18821 give target a chance to convert layout.
18822 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18823 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18824
fdeb2a12
DE
188252009-05-07 Doug Evans <dje@google.com>
18826
18827 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18828 (regsets_store_inferior_registers): Ditto.
18829
a6dbe5df
PA
188302009-05-06 Pedro Alves <pedro@codesourcery.com>
18831
18832 PR server/10048
18833
18834 * linux-low.c (must_set_ptrace_flags): Delete.
18835 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18836 of the global.
18837 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18838 `lwp->must_set_ptrace_flags' instead.
ba42693b 18839 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18840 (linux_wait_1): ... not here.
18841
5091eb23
DE
188422009-04-30 Doug Evans <dje@google.com>
18843
9f767825
DE
18844 * inferiors.c (started_inferior_callback): New function.
18845 (attached_inferior_callback): New function.
18846 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18847 * server.c (print_started_pid, print_attached_pid): New functions.
18848 (detach_or_kill_for_exit): New function.
18849 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18850 * server.h (have_started_inferiors_p): Declare.
18851 (have_attached_inferiors_p): Declare.
18852
5091eb23
DE
18853 * inferiors.c (remove_process): Fix memory leak, free process.
18854 * linux-low.c (linux_remove_process): New function.
18855 (linux_kill): Call it instead of remove_process.
18856 (linux_detach, linux_wait_1): Ditto.
18857
155c8968
PA
188582009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18859
18860 * configure.srv: Add x86 Windows CE target.
18861
7fe519cb
UW
188622009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18863
18864 * inferiors.c (get_thread_process): Make global.
18865 * server.h (get_thread_process): Add prototype.
18866 * thread-db.c (find_one_thread): Use get_thread_process
18867 instead of current_process.
18868 (thread_db_get_tls_address): Do not crash if called when
18869 thread layer is not yet initialized.
18870
5472f405
UW
188712009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18872
18873 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18874 * spu-low.c (current_tid): Rename to ...
18875 (current_ptid): ... this.
18876 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18877 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18878 ptid_get_lwp (current_ptid) instead of current_tid.
18879 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18880 instead of current_tid. Use find_process_pid to verify pid
18881 argument is valid. Pass proper argument to remove_process.
18882 (spu_thread_alive): Compare current_ptid instead of current_tid.
18883 (spu_resume): Likewise.
18884
55ac2b99
PA
188852009-04-02 Pedro Alves <pedro@codesourcery.com>
18886
18887 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18888 variable.
18889
95954743
PA
188902009-04-01 Pedro Alves <pedro@codesourcery.com>
18891
18892 Implement the multiprocess extensions, and add linux multiprocess
18893 support.
18894
18895 * server.h (ULONGEST): Declare.
18896 (struct ptid, ptid_t): New.
18897 (minus_one_ptid, null_ptid): Declare.
18898 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18899 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18900 (struct inferior_list_entry): Change `id' type from unsigned from
18901 to ptid_t.
18902 (struct sym_cache, struct breakpoint, struct
18903 process_info_private): Forward declare.
18904 (struct process_info): Declare.
18905 (current_process): Declare.
18906 (all_processes): Declare.
18907 (initialize_inferiors): Declare.
18908 (add_thread): Adjust to use ptid_t.
18909 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18910 (add_process, remove_process, find_thread_pid): Declare.
18911 (find_inferior_id): Adjust to use ptid_t.
18912 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18913 (multi_process): Declare.
18914 (push_event): Adjust to use ptid_t.
18915 (read_ptid, write_ptid): Declare.
18916 (prepare_resume_reply): Adjust to use ptid_t.
18917 (clear_symbol_cache): Declare.
18918 * inferiors.c (all_processes): New.
18919 (null_ptid, minus_one_ptid): New.
18920 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18921 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18922 (add_thread): Change unsigned long to ptid. Remove gdb_id
18923 parameter. Adjust.
18924 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18925 (gdb_id_to_thread): Rename to ...
18926 (find_thread_pid): ... this. Change unsigned long to ptid.
18927 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18928 (loaded_dll, pull_pid_from_list): Adjust.
18929 (add_process, remove_process, find_process_pid)
18930 (get_thread_process, current_process, initialize_inferiors): New.
18931 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18932 (struct target_waitstatus) <related_pid>: Ditto.
18933 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18934 return type to int.
18935 (struct target_ops) <join>: Add `pid' argument.
18936 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18937 (struct target_ops) <wait>: Add `ptid' field. Change return type
18938 to ptid.
18939 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18940 (mywait): Add `ptid' argument. Change return type to ptid_t.
18941 (target_pid_to_str): Declare.
18942 * target.c (set_desired_inferior): Adjust to use ptids.
18943 (mywait): Add new `ptid' argument. Adjust.
18944 (target_pid_to_str): New.
18945 * mem-break.h (free_all_breakpoints): Declare.
18946 * mem-break.c (breakpoints): Delelete.
18947 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18948 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18949 to use per-process breakpoint list.
18950 (free_all_breakpoints): New.
18951 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18952 (symbol_cache, all_symbols_looked_up): Delete.
18953 (hexchars): New.
18954 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18955 read_ptid): New.
18956 (prepare_resume_reply): Change ptid argument's type from unsigned
18957 long to ptid_t. Adjust. Implement W;process and X;process.
18958 (free_sym_cache, clear_symbol_cache): New.
18959 (look_up_one_symbol): Adjust to per-process symbol cache. *
18960 * server.c (cont_thread, general_thread, step_thread): Change type
18961 to ptid_t.
18962 (attached): Delete.
18963 (multi_process): New.
18964 (last_ptid): Change type to ptid_t.
18965 (struct vstop_notif) <ptid>: Change type to ptid_t.
18966 (queue_stop_reply, push_event): Change `ptid' argument's type to
18967 ptid_t.
18968 (discard_queued_stop_replies): Add `pid' argument.
18969 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18970 changes. Don't reference the `attached' global.
18971 (attach_inferior): Adjust to mywait interface changes.
18972 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18973 features. Handle and report "multiprocess+". Handle
18974 "qAttached:PID".
18975 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18976 changes.
18977 (handle_v_kill): New.
18978 (handle_v_stopped): Adjust to use target_pid_to_str.
18979 (handle_v_requests): Allow multiple attaches and runs when
18980 multiprocess extensions are in effect. Handle "vKill".
18981 (myresume): Adjust to use ptids.
18982 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18983 (handle_status): Adjust to discard_queued_stop_replies interface
18984 change.
18985 (first_thread_of, kill_inferior_callback)
18986 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18987 (main): Call initialize_inferiors. Adjust to use ptids, killing
18988 and detaching from all inferiors. Handle multiprocess packet
18989 variants.
18990 * linux-low.h: Include gdb_proc_service.h.
18991 (struct process_info_private): New.
18992 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18993 <lwpid_of>: Use ptid_get_lwp.
18994 (get_lwp_thread): Adjust.
18995 (struct lwp_info): Add `dead' member.
18996 (find_lwp_pid): Declare.
18997 * linux-low.c (thread_db_active): Delete.
18998 (new_inferior): Adjust comment.
18999 (inferior_pid): Delete.
19000 (linux_add_process): New.
19001 (handle_extended_wait): Adjust.
19002 (add_lwp): Change unsigned long to ptid.
19003 (linux_create_inferior): Add process to processes table. Adjust
19004 to use ptids. Don't set new_inferior here.
19005 (linux_attach_lwp): Rename to ...
19006 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19007 it. Adjust to use ptids.
19008 (linux_attach_lwp): New.
19009 (linux_attach): Add process to processes table. Don't set
19010 new_inferior here.
19011 (struct counter): New.
19012 (second_thread_of_pid_p, last_thread_of_process_p): New.
19013 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19014 multiple processes.
19015 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19016 processes. Remove process from process table.
19017 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19018 to multiple processes.
19019 (any_thread_of): New.
19020 (linux_detach): Add `pid' argument, and handle it. Remove process
19021 from processes table.
19022 (linux_join): Add `pid' argument. Handle it.
19023 (linux_thread_alive): Change unsighed long argument to ptid_t.
19024 Consider dead lwps as not being alive.
19025 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19026 threads we're not interested in.
19027 (same_lwp, find_lwp_pid): New.
19028 (linux_wait_for_lwp): Change `pid' argument's type from int to
19029 ptid_t. Adjust.
19030 (linux_wait_for_event): Rename to ...
19031 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19032 from int to ptid_t. Adjust.
19033 (linux_wait_for_event): New.
19034 (linux_wait_1): Add `ptid' argument. Change return type to
19035 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19036 that exit from the process table.
19037 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19038 Adjust.
19039 (mark_lwp_dead): New.
19040 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19041 stopping all threads, mark its main lwp as dead.
19042 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19043 ptids.
19044 (fetch_register, usr_store_inferior_registers)
19045 (regsets_fetch_inferior_registers)
19046 (regsets_store_inferior_registers, linux_read_memory)
19047 (linux_write_memory): Inline `inferior_pid'.
19048 (linux_look_up_symbols): Adjust to use per-process
19049 `thread_db_active'.
19050 (linux_request_interrupt): Adjust to use ptids.
19051 (linux_read_auxv): Inline `inferior_pid'.
19052 (initialize_low): Don't reference thread_db_active.
19053 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19054 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19055 (ps_getpid): Return the pid of the current inferior.
19056 * thread-db.c (proc_handle, thread_agent): Delete.
19057 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19058 per-process data.
19059 (find_one_thread): Change argument type to ptid_t. Adjust to
19060 per-process data.
19061 (maybe_attach_thread): Adjust to per-process data and ptids.
19062 (thread_db_find_new_threads): Ditto.
19063 (thread_db_init): Ditto.
19064 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19065 processes table. Adjust to use ptids.
19066 (spu_kill, spu_detach): Adjust interface. Remove process from
19067 processes table.
19068 (spu_join, spu_thread_alive): Adjust interface.
19069 (spu_wait): Adjust interface. Remove process from processes
19070 table. Adjust to use ptids.
19071 * win32-low.c (current_inferior_tid): Delete.
19072 (current_inferior_ptid): New.
19073 (debug_event_ptid): New.
19074 (thread_rec): Take a ptid. Adjust.
19075 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19076 (child_delete_thread): Ditto.
19077 (do_initial_child_stuff): Add `attached' argument. Add process to
19078 processes table.
19079 (child_fetch_inferior_registers, child_store_inferior_registers):
19080 Adjust.
19081 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19082 (win32_attach): Pass 1 to do_initial_child_stuff.
19083 (win32_kill): Adjust interface. Remove process from processes
19084 table.
19085 (win32_detach): Ditto.
19086 (win32_join): Adjust interface.
19087 (win32_thread_alive): Take a ptid.
19088 (win32_resume): Adjust to use ptids.
19089 (get_child_debug_event): Ditto.
19090 (win32_wait): Adjust interface. Remove exiting process from
19091 processes table.
19092
bd99dc85
PA
190932009-04-01 Pedro Alves <pedro@codesourcery.com>
19094
19095 Non-stop mode support.
19096
19097 * server.h (non_stop): Declare.
19098 (gdb_client_data, handler_func): Declare.
19099 (delete_file_handler, add_file_handler, start_event_loop):
19100 Declare.
19101 (handle_serial_event, handle_target_event, push_event)
19102 (putpkt_notif): Declare.
19103 * target.h (enum resume_kind): New.
19104 (struct thread_resume): Replace `step' field by `kind' field.
19105 (TARGET_WNOHANG): Define.
19106 (struct target_ops) <wait>: Add `options' argument.
19107 <supports_non_stop, async, start_non_stop>: New fields.
19108 (target_supports_non_stop, target_async): New.
19109 (start_non_stop): Declare.
19110 (mywait): Add `options' argument.
19111 * target.c (mywait): Add `options' argument. Print child exit
19112 notifications here.
19113 (start_non_stop): New.
19114 * server.c (non_stop, own_buf, mem_buf): New globals.
19115 (struct vstop_notif): New.
19116 (notif_queue): New global.
19117 (queue_stop_reply, push_event, discard_queued_stop_replies)
19118 (send_next_stop_reply): New.
19119 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19120 interface changes.
19121 (attach_inferior): In non-stop mode, don't wait for the target
19122 here.
19123 (handle_general_set): Handle QNonStop.
19124 (handle_query): When handling qC, return the current general
19125 thread, instead of the first thread of the list.
19126 (handle_query): If the backend supports non-stop mode, include
19127 QNonStop+ in the qSupported query response.
19128 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19129 and non-stop mode.
19130 (handle_v_attach, handle_v_run): Handle non-stop mode.
19131 (handle_v_stopped): New.
19132 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19133 (myresume): Adjust to use resume_kind. Handle non-stop.
19134 (queue_stop_reply_callback): New.
19135 (handle_status): Handle non-stop mode.
19136 (main): Clear non_stop flag on reconnection. Use the event-loop.
19137 Refactor serial protocol handling from here ...
19138 (process_serial_event): ... to this new function. When GDB
19139 selects any thread, select one here. In non-stop mode, wait until
19140 GDB acks all pending events before exiting.
19141 (handle_serial_event, handle_target_event): New.
19142 * remote-utils.c (remote_open): Install remote_desc in the event
19143 loop.
19144 (remote_close): Remove remote_desc from the event loop.
19145 (putpkt_binary): Rename to...
19146 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19147 (putpkt_binary): New as wrapper around putpkt_binary_1.
19148 (putpkt_notif): New.
19149 (prepare_resume_reply): In non-stop mode, don't change the
19150 general_thread.
19151 * event-loop.c: New.
19152 * Makefile.in (OBJ): Add event-loop.o.
19153 (event-loop.o): New rule.
19154
19155 * linux-low.h (pid_of): Moved here.
19156 (lwpid_of): New.
19157 (get_lwp_thread): Use lwpid_of.
19158 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19159 * linux-low.c (pid_of): Delete.
19160 (inferior_pid): Use lwpid_of.
19161 (linux_event_pipe): New.
19162 (target_is_async_p): New.
19163 (delete_lwp): New.
19164 (handle_extended_wait): Use lwpid_of.
19165 (add_lwp): Don't set lwpid field.
19166 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19167 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19168 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19169 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19170 first. Adjust to linux_wait_for_event interface changes. Use
19171 lwpid_of.
19172 (linux_detach): Don't delete the main lwp here.
19173 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19174 (status_pending_p): Don't consider explicitly suspended lwps.
19175 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19176 pointer. Add OPTIONS argument. Change return type to int. Use
19177 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19178 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19179 pointer. Add status pointer argument. Return a pid instead of a
19180 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19181 changes. In non-stop mode, don't switch to a random thread.
19182 (linux_wait): Rename to...
19183 (linux_wait_1): ... this. Add target_options argument, and handle
19184 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19185 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19186 clean exit and signal exit code. Don't stop all threads in
19187 non-stop mode. In all-stop mode, only stop all threads when
19188 reporting a stop to GDB. Handle explicit thread stop requests.
19189 (async_file_flush, async_file_mark): New.
19190 (linux_wait): New.
19191 (send_sigstop): Use lwpid_of.
19192 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19193 interface changes. In non-stop mode, don't switch to a random
19194 thread.
19195 (linux_resume_one_lwp): Use lwpid_of.
19196 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19197 (linux_resume_one_thread): ... this. Handle resume_stop. In
19198 non-stop mode, don't look for pending flag in all threads.
19199 (resume_status_pending_p): Don't consider explicitly suspended
19200 threads.
19201 (my_waitpid): Reimplement. Emulate __WALL.
19202 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19203 Use lwpid_of.
19204 (sigchld_handler, linux_supports_non_stop, linux_async)
19205 (linux_start_non_stop): New.
19206 (linux_target_ops): Register linux_supports_non_stop, linux_async
19207 and linux_start_non_stop.
19208 (initialize_low): Install SIGCHLD handler.
19209 * thread-db.c (thread_db_create_event, find_one_thread)
19210 (thread_db_get_tls_address): Use lwpid_of.
19211 * win32-low.c (win32_detach): Adjust to use resume_kind.
19212 (win32_wait): Add `options' argument.
19213 * spu-low.c (spu_resume): Adjust to use resume_kind.
19214 (spu_wait): Add `options' argument.
19215
5b1c542e
PA
192162009-04-01 Pedro Alves <pedro@codesourcery.com>
19217
19218 Decouple target code from remote protocol.
19219
19220 * target.h (enum target_waitkind): New.
19221 (struct target_waitstatus): New.
19222 (struct target_ops) <wait>: Return an unsigned long. Take a
19223 target_waitstatus pointer instead of a char pointer.
19224 (mywait): Likewise.
19225 * target.c (mywait): Change prototype to return an unsigned long.
19226 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19227 * server.h (thread_from_wait, old_thread_from_wait): Delete
19228 declarations.
19229 (prepare_resume_reply): Change prototype to take a
19230 target_waitstatus.
19231 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19232 (last_status, last_ptid): New.
19233 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19234 pid instead of a signal.
19235 (attach_inferior): Remove "status" and "signal" parameters.
19236 Adjust.
19237 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19238 not as an address.
19239 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19240 (handle_v_requests, myresume): Remove "status" and "signal"
19241 parameters. Adjust.
19242 (handle_status): New.
19243 (main): Delete local `status'. Adjust.
19244 * remote-utils.c: Include target.h.
19245 (prepare_resume_reply): Change prototype to take a
19246 target_waitstatus. Adjust.
19247
19248 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19249 interface.
19250 * spu-low.c (spu_wait): Adjust.
19251 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19252 Delete.
19253 (win32_wait): Adjust.
19254
2bd7c093
PA
192552009-04-01 Pedro Alves <pedro@codesourcery.com>
19256
19257 * target.h (struct thread_resume): Delete leave_stopped member.
19258 (struct target_ops): Add a `n' argument to the `resume' callback.
19259 * server.c (start_inferior): Adjust.
19260 (handle_v_cont, myresume): Adjust.
19261 * linux-low.c (check_removed_breakpoint): Adjust to resume
19262 interface change, and to removed leave_stopped field.
19263 (resume_ptr): Delete.
19264 (struct thread_resume_array): New.
19265 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19266 resume interface change.
19267 (linux_continue_one_thread, linux_queue_one_thread)
19268 (resume_status_pending_p): Check if the resume field is NULL
19269 instead of checking the leave_stopped member.
19270 (linux_resume): Adjust to the target resume interface change.
19271 * spu-low.c (spu_resume): Adjust to the target resume interface
19272 change.
19273 * win32-low.c (win32_detach, win32_resume): Ditto.
19274
c35fafde
PA
192752009-04-01 Pedro Alves <pedro@codesourcery.com>
19276
19277 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19278 flag.
19279 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19280 pending.
19281 (linux_continue_one_thread): Only preserve the stepping flag if
19282 there's a pending breakpoint.
19283
0a59d50b
PA
192842009-03-31 Pedro Alves <pedro@codesourcery.com>
19285
19286 * server.c (main): After the inferior having exited, call
19287 remote_close before exiting gdbserver.
19288
f04c6d38
TJB
192892009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19290
19291 Fix size of FPSCR in Power 7 processors.
19292 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19293 (PPC_FEATURE_HAS_DFP): New #define.
19294 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19295 size of the FPSCR.
19296
78e5cee6
PA
192972009-03-23 Pedro Alves <pedro@codesourcery.com>
19298
19299 * server.c (handle_query) Whitespace and formatting.
19300
1b3f6016
PA
193012009-03-22 Pedro Alves <pedro@codesourcery.com>
19302
19303 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19304 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19305 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19306 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19307 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19308 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19309 Makefile.in, configure.ac: Fix whitespace throughout.
19310 * configure: Regenerate.
19311
a07b2135
PA
193122009-03-22 Pedro Alves <pedro@codesourcery.com>
19313
19314 * inferiors.c (find_inferior): Make it safe for the callback
19315 function to delete the currently iterated inferior.
19316
67cc2626
PA
193172009-03-22 Pedro Alves <pedro@codesourcery.com>
19318
19319 * Makefile.in (linuw_low_h): Move higher.
19320 (thread-db.o): Depend on $(linux_low_h).
19321
54a0b537
PA
193222009-03-17 Pedro Alves <pedro@codesourcery.com>
19323
19324 Rename "process" to "lwp" throughout.
19325
19326 * linux-low.c (all_processes): Rename to...
19327 (all_lwps): ... this.
19328 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19329 (add_process): Rename to ...
19330 (add_lwp): ... this. Adjust.
19331 (linux_create_inferior): Adjust.
19332 (linux_attach_lwp): Adjust.
19333 (linux_attach): Adjust.
19334 (linux_kill_one_process): Rename to ...
19335 (linux_kill_one_lwp): ... this. Adjust.
19336 (linux_kill): Adjust.
19337 (linux_detach_one_process): Rename to ...
19338 (linux_detach_one_lwp): ... this. Adjust.
19339 (linux_detach): Adjust.
19340 (check_removed_breakpoint): Adjust.
19341 (status_pending_p): Adjust.
19342 (linux_wait_for_process): Rename to ...
19343 (linux_wait_for_lwp): ... this. Adjust.
19344 (linux_wait_for_event): Adjust.
19345 (send_sigstop): Adjust.
19346 (wait_for_sigstop): Adjust.
19347 (stop_all_processes): Rename to ...
19348 (stop_all_lwps): ... this.
19349 (linux_resume_one_process): Rename to ...
19350 (linux_resume_one_lwp): ... this. Adjust.
19351 (linux_set_resume_request, linux_continue_one_thread)
19352 (linux_queue_one_thread, resume_status_pending_p)
19353 (usr_store_inferior_registers, regsets_store_inferior_registers)
19354 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19355 Adjust.
19356 * linux-low.h (get_process): Rename to ...
19357 (get_lwp): ... this. Adjust.
19358 (get_thread_process): Rename to ...
19359 (get_thread_lwp): ... this. Adjust.
19360 (get_process_thread): Rename to ...
19361 (get_lwp_thread): ... this. Adjust.
19362 (struct process_info): Rename to ...
19363 (struct lwp_info): ... this.
19364 (all_processes): Rename to ...
19365 (all_lwps): ... this.
19366 * proc-service.c (ps_lgetregs): Adjust.
19367 * thread-db.c (thread_db_create_event, find_one_thread)
19368 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19369
0b16c5cf
PA
193702009-03-14 Pedro Alves <pedro@codesourcery.com>
19371
19372 * server.c (handle_query): Handle "qAttached".
19373
32de4b9d
NS
193742009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19375
19376 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19377 GPLv3, update license URL.
19378
2aecd87f
DE
193792009-03-01 Doug Evans <dje@google.com>
19380
93efd302 19381 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19382 (server_h): Add gdb_signals.h.
19383 (signals.o): Update.
19384 * server.h (target_signal_from_host,target_signal_to_host_p)
19385 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19386
86b1f9c5
PM
193872009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19388
19389 * remote-utils.c (getpkt): Also generate remote-debug
19390 information if noack_mode is set.
19391
4aa995e1
PA
193922009-02-06 Pedro Alves <pedro@codesourcery.com>
19393
19394 * server.c (handle_query): Report qXfer:siginfo:read and
19395 qXfer:siginfo:write as supported and handle them.
19396 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19397 * linux-low.c (linux_xfer_siginfo): New.
19398 (linux_target_ops): Set it.
19399
62709adf
PA
194002009-01-26 Pedro Alves <pedro@codesourcery.com>
19401
19402 * server.c (gdbserver_usage): Mention --remote-debug.
19403 (main): Accept '--remote-debug' switch.
19404
aef93bd7
DE
194052009-01-18 Doug Evans <dje@google.com>
19406
19407 * regcache.c (new_register_cache): No need to check result of xcalloc.
19408 * server.c (handle_search_memory): Back out calls to xmalloc,
19409 result is checked and error is returned to user upon failure.
19410 (handle_query): Ditto. Add more checks for result of malloc.
19411 (handle_v_cont): Check result of malloc, report error back to
19412 user upon failure.
19413 (handle_v_run): Ditto. Call freeargv.
19414 * server.h (freeargv): Declare.
19415 * utils.c (freeargv): New fn.
19416
54363045
DE
194172009-01-15 Doug Evans <dje@google.com>
19418
f626972c
DE
19419 * gdbreplay.c (perror_with_name): Make arg const char *.
19420 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19421 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19422 * utils.c (perror_with_name): Make arg const char *.
54363045 19423
18aae699
PA
194242009-01-14 Pedro Alves <pedro@codesourcery.com>
19425
19426 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19427 when handling a EXIT_PROCESS_DEBUG_EVENT.
19428
ff703abe
JB
194292009-01-06 Joel Brobecker <brobecker@adacore.com>
19430
19431 * gdbreplay.c (gdbreplay_version): Update copyright year.
19432 * server.c (gdbserver_version): Likewise.
19433
f21cc1a2 194342009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19435
19436 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19437 (handle_extended_wait): Improve comment.
0e21c1ec 19438
bca929d3
DE
194392008-12-13 Doug Evans <dje@google.com>
19440
19441 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19442 * server.h (ATTR_MALLOC): New macro.
19443 (xmalloc,xcalloc,xstrdup): Declare.
19444 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19445 * inferiors.c: Ditto.
19446 * linux-low.c: Ditto.
19447 * mem-break.c: Ditto.
19448 * regcache.c: Ditto.
19449 * remote-utils.c: Ditto.
19450 * server.c: Ditto.
19451 * target.c: Ditto.
19452 * win32-low.c: Ditto.
19453
97438e3f
DE
194542008-12-12 Doug Evans <dje@google.com>
19455
896c7fbb
DE
19456 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19457 in debugging printf.
19458
97438e3f
DE
19459 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19460
e3b886f8
DE
194612008-12-09 Doug Evans <dje@google.com>
19462
19463 * linux-low.h (struct process_info): Delete member tid, unused.
19464 * thread-db.c (find_one_thread): Update.
19465 (maybe_attach_thread): Update.
19466
07e059b5
VP
194672008-12-02 Pedro Alves <pedro@codesourcery.com>
19468
889bf7c5
PA
19469 * target.h (struct target_ops): Add qxfer_osdata member.
19470 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19471 and dirent.h.
19472 (linux_qxfer_osdata): New functions.
19473 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19474 callback.
19475 * server.c (handle_query): Handle "qXfer:osdata:read:".
19476 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19477 (buffer_xml_printf): New functions.
19478 * server.h (struct buffer): New.
19479 (buffer_grow_str, buffer_grow_str0): New macros.
19480 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19481 (buffer_xml_printf): Declare.
07e059b5 19482
4cab47ab
DE
194832008-11-24 Doug Evans <dje@google.com>
19484
19485 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19486
f142445f
DJ
194872008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19488
19489 * server.c (handle_v_run): Always use the supplied argument list.
19490
d0107bb6 194912008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19492
d0107bb6
BW
19493 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19494 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19495
2c4ad781
TJB
194962008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19497
19498 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19499 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19500 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19501 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19502 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19503 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19504 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19505 XML target descriptions.
19506 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19507 when inferior is running on an ISA 2.05 or later processor. Add
19508 special case to return offset for full 64-bit slot of FPSCR when
19509 in 32-bits.
19510
dfb64f85
DJ
195112008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19512
19513 * Makefile.in (SFILES, clean): Added sparc64 files.
19514 (reg-sparc64.o, reg-sparc64.c): New.
19515 * configure.srv (sparc*-*-linux*): New configuration.
19516 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19517 syscall arguments for SPARC.
19518 (regsets_store_inferior_registers): Likewise.
19519 * linux-sparc-low.c: New file.
19520
66b6e1dd
DE
195212008-10-21 Doug Evans <dje@google.com>
19522
19523 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19524 (READLINE_DIR,READLINE_DEP): Delete.
19525 (INTERNAL_CFLAGS): Update.
19526 (LINTFLAGS): Update.
19527
9b710a42
PA
195282008-10-10 Pedro Alves <pedro@codesourcery.com>
19529
19530 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19531 whole argv from the last run, not just argv[0].
19532
5822d809
PA
195332008-09-08 Pedro Alves <pedro@codesourcery.com>
19534
19535 * regcache.c (new_register_cache): Return NULL if the register
19536 cache size isn't known yet.
19537 (free_register_cache): Avoid dereferencing a NULL regcache.
19538
74aac56f
DJ
195392008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19540
19541 * configure.srv: Merge MIPS and MIPS64.
19542
400b20f5
MR
195432008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19544
19545 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19546
677c5bb1
LM
195472008-08-18 Luis Machado <luisgpm@br.ibm.com>
19548
19549 * Makefile.in: Add required vsx dependencies.
19550
19551 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19552 Declare init_registers_powerpc_vsx32l.
19553 Declare init_registers_powerpc_vsx64l.
19554 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19555 (ppc_arch_setup): Check for VSX in hwcap.
19556 (ppc_fill_vsxregset): New function.
19557 (ppc_store_vsxregset): New function.
19558 Add new VSX entry in regset_info target_regsets.
19559
19560 * configure.srv: Add new VSX dependencies.
19561
a6f3e723
SL
195622008-08-12 Pedro Alves <pedro@codesourcery.com>
19563
19564 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19565 (remote_open): Set or clear transport_is_reliable.
19566 (putpkt_binary): Don't expect acks in noack mode.
19567 (getpkt): Don't send ack/nac in noack mode.
19568 * server.c (handle_general_set): Handle QStartNoAckMode.
19569 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19570 qSupported.
19571 (main): Reset noack_mode on every connection.
19572 * server.h (noack_mode): Declare.
19573
a417dc56
RW
195742008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19575
19576 * Makefile.in (GDBREPLAY_OBS): New variable.
19577 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19578
3221518c
UW
195792008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19580 Daniel Jacobowitz <dan@codesourcery.com>
19581
19582 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19583 (usr_store_inferior_registers): Likewise.
19584 (regsets_store_inferior_registers): Likewise.
19585
ec56be1b
PA
195862008-07-31 Rolf Jansen <rj@surtec.com>
19587 Pedro Alves <pedro@codesourcery.com>
19588
19589 * configure.ac: Check for memmem declaration.
19590 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19591 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19592 (disable_packet_qfThreadInfo): Unconditionally compile.
19593 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19594 * configure, config.in: Regenerate.
19595
2fe5e3ff
DE
195962008-07-28 Doug Kwan <dougkwan@google.com>
19597
19598 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19599 (linux_write_memory): Remove declaration of errno.
19600
836acd6d
UW
196012008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19602
19603 * linux-low.c (handle_extended_wait): Do not use "status"
19604 variable uninitialized.
19605
aeba519e
PA
196062008-07-07 Pedro Alves <pedro@codesourcery.com>
19607
19608 * server.c (handle_v_attach): Inhibit reporting dll changes.
19609
db42f210
PA
196102008-06-27 Pedro Alves <pedro@codesourcery.com>
19611
19612 * remote-utils.c (prepare_resume_reply): If requested, don't
19613 output "thread:TID" in the T stop reply.
19614
19615 * server.c (disable_packet_vCont, disable_packet_Tthread)
19616 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19617 (handle_query): If requested, disable support for qC, qfThreadInfo
19618 and qsThreadInfo.
19619 (handle_v_requests): If requested, disable support for vCont.
19620 (gdbserver_show_disableable): New.
19621 (main): Handle --disable-packet and --disable-packet=LIST.
19622
19623 * server.h (disable_packet_vCont, disable_packet_Tthread)
19624 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19625
8e4c5421
CD
196262008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19627
19628 * server.c (gdbserver_usage): Mention --version.
19629
6e23a804
DJ
196302008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19631
19632 * Makefile.in (gdbreplay.o): New rule.
19633
90aa6a40
JM
196342008-06-06 Joseph Myers <joseph@codesourcery.com>
19635
19636 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19637 message, not gdbserver.
19638
c16158bc 196392008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19640 Nathan Sidwell <nathan@codesourcery.com>
19641 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19642
19643 * acinclude.m4: Include ../../config/acx.m4.
19644 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19645 * configure, config.in: Regenerate.
19646 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19647 * server.c (gdbserver_version): Print PKGVERSION.
19648 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19649 (main): Adjust gdbserver_usage calls.
19650 * gdbreplay.c (version, host_name): Add declarations.
19651 (gdbreplay_version, gdbreplay_usage): New.
19652 (main): Accept --version and --help options.
19653
aeb75bf5
DJ
196542008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19655
19656 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19657 (arm_breakpoint_at): Handle Thumb.
19658 (the_low_target): Add comment.
19659
76b233dd
UW
196602008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19661
19662 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19663
08388c79
DE
196642008-05-09 Doug Evans <dje@google.com>
19665
a3c83fae
DE
19666 * server.h (decode_search_memory_packet): Declare.
19667 * remote-utils.c (decode_search_memory_packet): New fn.
19668 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19669 (handle_search_memory): New fn.
19670 (handle_query): Process qSearch:memory packets.
19671
bb9c3d36
UW
196722008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19673
19674 * regcache.c (registers_length): Remove.
19675 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19676 full register packet.
19677 * regcache.h (registers_length): Remove prototype.
19678 * server.h (PBUFSIZ): Define to 16384.
19679
7284e1be
UW
196802008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19681
19682 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19683 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19684 powerpc-64l.o, and powerpc-altivec64l.o.
19685 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19686 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19687 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19688 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19689 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19690 to srv_xmlfiles.
19691
19692 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19693 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19694 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19695 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19696 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19697 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19698 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19699 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19700 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19701 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19702 (clean): Update.
19703
19704 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19705 (init_registers_powerpc_32l): ... this new prototype.
19706 (init_registers_powerpc_32): Remove, replace by ...
19707 (init_registers_powerpc_altivec32l): ... this new prototype.
19708 (init_registers_powerpc_e500): Remove, replace by ...
19709 (init_registers_powerpc_e500l): ... this new prototype.
19710 (init_registers_ppc64): Remove, replace by ...
19711 (init_registers_powerpc_64l): ... this new prototype.
19712 (init_registers_powerpc_64): Remove, replace by ...
19713 (init_registers_powerpc_altivec64l): ... this new prototype.
19714 (ppc_num_regs): Set to 73.
19715 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19716 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19717 (ppc_cannot_store_register): Handle orig_r3 and trap.
19718 (ppc_arch_setup): Update init_registers_... calls.
19719 (ppc_fill_gregset): Handle orig_r3 and trap.
19720
19721 * inferiors.c (clear_inferiors): Reset current_inferior.
19722
fdc59709
PB
197232008-04-23 Paolo Bonzini <bonzini@gnu.org>
19724
889bf7c5
PA
19725 * acinclude.m4: Add override.m4.
19726 * configure: Regenerate.
fdc59709 19727
c9b2f845
UW
197282008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19729
19730 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19731 initial call to init_register_ppc64.
19732
550512b8
UW
197332008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19734
43aaf8b6
PA
19735 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19736 single powerpc*-*-linux* case.
550512b8
UW
19737 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19738
b6430ec3
UW
197392008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19740
19741 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19742 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19743 from reg_xmlfiles.
19744 * linux-ppc-low.c: Include <elf.h>.
19745 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19746 (ppc_hwcap): New global variable.
19747 (ppc_regmap): Remove __SPE__ #ifdef sections.
19748 (ppc_regmap_e500): New global variable.
19749 (ppc_cannot_store_register): Update __SPE__ special case.
19750 (ppc_get_hwcap): New function.
19751 (ppc_arch_setup): Use it to determine whether inferior supports
19752 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19753 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19754 Do not access registers if target does not support AltiVec.
19755 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19756 Do not access registers if target does not support SPE.
19757 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19758
52fa2412
UW
197592008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19760
19761 * linux-low.c (disabled_regsets, num_regsets): New.
19762 (use_regsets_p): Delete.
19763 (linux_wait_for_process): Clear disabled_regsets.
19764 (regsets_fetch_inferior_registers): Check and set it.
19765 (regsets_store_inferior_registers): Likewise.
19766 (linux_fetch_registers, linux_store_registers): Do not use
19767 use_regsets_p.
19768 (initialize_low): Allocate disabled_regsets.
19769
e28b3332
DJ
197702008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19771
19772 * Makefile.in (LIBOBJS): New.
19773 (OBS): Use LIBOBJS.
19774 (memmem.o): New rule.
19775 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19776 * configure: Regenerated.
19777
4536995d
UW
197782008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19779
19780 * server.c (handle_query): Never return "unsupported" for
19781 qXfer:features:read queries.
19782
221c031f
UW
197832008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19784
19785 * server.c (get_features_xml): Fix inverted condition.
19786 (handle_query): Always support qXfer:feature:read.
19787
ccd213ac
DJ
197882008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19789
19790 * server.c (wrapper_argv): New.
19791 (start_inferior): Handle wrapper_argv. If set, expect an extra
19792 trap.
19793 (gdbserver_usage): Document --wrapper.
19794 (main): Parse --wrapper.
19795
6fe305f7
UW
197962008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19797
19798 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19799 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19800 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19801 (ppc_set_pc): Likewise.
19802 (ppc_arch_setup): New function.
19803 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19804 of collect_register.
889bf7c5 19805 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19806
5b0a002e
UW
198072008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19808
19809 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19810 instead of linux-ppc64-low.o.
19811 * linux-ppc64-low.c: Remove file.
19812 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19813 (linux-ppc64-low.o): Remove rule.
19814
19815 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19816 (init_registers_powerpc_64): Likewise.
19817 (ppc_regmap): Conditionally define depending on __powerpc64__.
19818 (ppc_cannot_store_register): Do not special-case "fpscr" when
19819 compiled on __powerpc64__.
19820 (ppc_collect_ptrace_register): New function.
19821 (ppc_supply_ptrace_register): New function.
19822 (ppc_breakpoint): Change type to "unsigned int".
19823 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19824 (the_low_target): Conditionally provide initializers for the
889bf7c5 19825 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19826 collect_ptrace_register and supply_ptrace_register members.
19827
9b4b61c8
UW
198282008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19829
19830 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19831 * server.c (gdbserver_xmltarget): Define.
19832 (get_features_xml): Use it to replace "target.xml" and arch_string.
19833
19834 * configure.srv: Remove srv_xmltarget. Add XML files that were
19835 mentioned there to srv_xmlfiles instead. Remove conditional tests
19836 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19837 srv_xmlfiles and srv_regobj to include all possible choices.
19838 * configure.ac (srv_xmltarget): Remove.
19839 (srv_xmlfiles): Do not add "target.xml".
19840 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19841 checks for supplementary target information.
19842 * configure: Regenerate.
19843 * Makefile.in (XML_TARGET): Remove.
19844 (target.xml): Remove rule.
19845 (clean): Do not clean up target.xml.
19846 (.PRECIOUS): Do not mention target.xml.
19847
19848 * target.h (struct target_ops): Remove arch_string member.
19849 * linux-low.c (linux_arch_string): Remove.
19850 (linux_target_ops): Remove arch_string initializer.
19851 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19852 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19853 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19854 * spu-low.c (spu_arch_string): Remove.
19855 (spu_target_ops): Remove arch_string initializer.
19856 * win32-low.c (win32_arch_string): Remove.
19857 (win32_target_ops): Remove arch_string initializer.
19858 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19859 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19860 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19861
ee1a7ae4
UW
198622008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19863
19864 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19865 by collect_ptrace_register and supply_ptrace_register hooks.
19866 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19867 instead of checking for the_low_target.left_pad_xfer.
19868 (usr_store_inferior_registers): Use collect_ptrace_register callback
19869 instead of checking for the_low_target.left_pad_xfer.
19870
19871 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19872 (s390_supply_ptrace_register): Likewise.
19873 (s390_fill_gregset): Call s390_collect_ptrace_register.
19874 (the_low_target): Update.
19875
19876 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19877 (ppc_supply_ptrace_register): Likewise.
19878 (the_low_target): Update.
19879
19880 * linux-i386-low.c (the_low_target): Update.
19881 * linux-x86-64-low.c (the_low_target): Update.
19882
d61ddec4
UW
198832008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19884
19885 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19886 reg-s390.o and reg-s390x.o.
19887
19888 * linux-low.c (new_inferior): New global variable.
19889 (linux_create_inferior, linux_attach): Set it.
19890 (linux_wait_for_process): Call the_low_target.arch_setup after the
19891 target has stopped for the first time.
19892 (initialize_low): Do not call the_low_target.arch_setup.
19893
19894 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19895 (s390_set_pc): Likewise.
19896 (s390_arch_setup): New function.
19897 (the_low_target): Use s390_arch_setup as arch_setup routine.
19898
19899 * regcache.c (realloc_register_cache): New function.
19900 (set_register_cache): Call it for each existing regcache.
19901
d05b4ac3
UW
199022008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19903
19904 * server.h (init_registers): Remove prototype.
19905
19906 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19907 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19908 instead of init_registers ().
19909 * linux-arm-low.c (init_registers_arm): Add prototype.
19910 (init_registers_arm_with_iwmmxt): Likewise.
19911 (the_low_target): Add initializer for arch_setup field.
19912 * linux-cris-low.c (init_registers_cris): Add prototype.
19913 (the_low_target): Add initializer for arch_setup field.
19914 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19915 (the_low_target): Add initializer for arch_setup field.
19916 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19917 (the_low_target): Add initializer for arch_setup field.
19918 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19919 (the_low_target): Add initializer for arch_setup field.
19920 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19921 (the_low_target): Add initializer for arch_setup field.
19922 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19923 (the_low_target): Add initializer for arch_setup field.
19924 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19925 (init_registers_mips64_linux): Likewise.
19926 (the_low_target): Add initializer for arch_setup field.
19927 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19928 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19929 (the_low_target): Add initializer for arch_setup field.
19930 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19931 (init_registers_powerpc_64): Likewise.
19932 (the_low_target): Add initializer for arch_setup field.
19933 * linux-s390-low.c (init_registers_s390): Add prototype.
19934 (init_registers_s390x): Likewise.
19935 (the_low_target): Add initializer for arch_setup field.
19936 * linux-sh-low.c (init_registers_sh): Add prototype.
19937 (the_low_target): Add initializer for arch_setup field.
19938 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19939 (the_low_target): Add initializer for arch_setup field.
19940 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19941 (the_low_target): Add initializer for arch_setup field.
19942
19943 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19944 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19945 instead of init_registers ().
19946 * win32-arm-low.c (init_registers_arm): Add prototype.
19947 (the_low_target): Add initializer for arch_setup field.
19948 * win32-i386-low.c (init_registers_i386): Add prototype.
19949 (the_low_target): Add initializer for arch_setup field.
19950
19951 * spu-low.c (init_registers_spu): Add prototype.
19952 (initialize_low): Call initialie_registers_spu () instead of
19953 initialize_registers ().
19954
fd96d250
PA
199552008-02-19 Pedro Alves <pedro@codesourcery.com>
19956
19957 * server.c (handle_v_requests): When handling the vRun and vAttach
19958 packets, if already debugging a process, don't kill it. Return an
19959 error instead.
19960
d41b6bb4
DJ
199612008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19962
19963 * server.c (handle_query): Correct length check.
19964
5ac588cf
PA
199652008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19966
19967 * win32-low.c (do_initial_child_stuff): Add process handle
19968 parameter. Set current_process_handle and current_process_id from the
19969 parameters. Clear globals.
19970 (win32_create_inferior): Don't set current_process_handle and
19971 current_process_id here. Instead pass them on the call to
19972 do_initial_child_stuff.
19973 (win32_attach): Likewise.
19974 (win32_clear_inferiors): New.
19975 (win32_kill): Don't close the current process handle or the
19976 current thread handle here. Instead call win32_clear_inferiors.
19977 (win32_detach): Don't open a new handle to the process. Call
19978 win32_clear_inferiors.
19979 (win32_join): Don't rely on current_process_handle; open a new
19980 handle using the process id.
19981 (win32_wait): Call win32_clear_inferiors when the inferior process
19982 has exited.
19983
ecd7ecbc
DJ
199842008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19985
19986 * server.c (monitor_show_help): Add "exit".
19987
1525d545
MG
199882008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19989
ecd7ecbc 19990 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19991 (clean): Add reg-xtensa.c.
19992 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19993 * configure.srv (xtensa*-*-linux*) New target.
19994 * linux-xtensa-low.c: New.
19995 * xtensa-xtregs.c: New.
1525d545 19996
59a016f0
PA
199972008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19998
19999 * hostio.c: Don't include errno.h.
20000 (errno_to_fileio_errno): Move to hostio-errno.
20001 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20002 error number outputting to the target->hostio_last_error callback.
20003 (hostio_packet_error): Use FILEIO_EINVAL directly.
20004 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20005 calls to hostio_error.
20006 * hostio-errno.c: New.
20007 * server.h (hostio_last_error_from_errno): Declare.
20008 * target.h (target_ops): Add hostio_last_error member.
20009 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20010 as hostio_last_error handler.
889bf7c5 20011 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20012 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20013 (wince_hostio_last_error): New functions.
20014 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20015 as hostio_last_error handler.
20016 (win32_target_ops) [!_WIN32_WCE]: Register
20017 hostio_last_error_from_errno as hostio_last_error handler.
20018 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20019 (hostio-errno.o): New rule.
20020 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20021 * configure.srv (srv_hostio_err_objs): New variable. Default to
20022 hostio-errno.o.
20023 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20024 * configure: Regenerate.
20025
2d717e4f
DJ
200262008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20027
20028 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20029 (linux_kill, linux_detach): Clean up the process list.
20030 * remote-utils.c (remote_open): Improve port number parsing.
20031 (putpkt_binary, input_interrupt): Only send interrupts if the target
20032 is running.
20033 * server.c (extended_protocol): Make static.
20034 (attached): Define earlier.
20035 (exit_requested, response_needed, program_argv): New variables.
20036 (target_running): New.
20037 (start_inferior): Clear attached here.
20038 (attach_inferior): Set attached here.
20039 (require_running): Define.
20040 (handle_query): Use require_running and target_running. Implement
20041 "monitor exit".
20042 (handle_v_attach, handle_v_run): New.
20043 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20044 (gdbserver_usage): Update.
20045 (main): Redo argument parsing. Handle --debug and --multi. Handle
20046 --attach along with other options or after the port. Save
20047 program_argv. Support no initial program. Resynchronize
20048 communication with GDB after an error. Handle "monitor exit".
20049 Use require_running and target_running. Always allow the extended
20050 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20051 restart in extended mode.
20052 * README: Refer to the GDB manual. Update --attach usage.
20053
7407e2de
AS
200542007-12-20 Andreas Schwab <schwab@suse.de>
20055
20056 * linux-low.c (STACK_SIZE): Define.
20057 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20058 (linux_test_for_tracefork): Likewise.
20059
b65d95c5
DJ
200602007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20061
20062 * linux-low.c (linux_wait_for_event): Update messages. Do not
20063 reinsert auto-delete breakpoints.
20064 * mem-break.c (struct breakpoint): Change return type of handler to
20065 int.
20066 (set_breakpoint_at): Update handler type.
20067 (reinsert_breakpoint_handler): Return 1 instead of calling
20068 delete_breakpoint.
20069 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20070 setting a new one.
20071 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20072 * mem-break.h (set_breakpoint_at): Update handler type.
20073 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20074 * win32-low.c (auto_delete_breakpoint): New.
20075 (get_child_debug_event): Use it.
20076
4e799345
DJ
200772007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20078
20079 * configure.ac: Check for pread and pwrite.
20080 * hostio.c (handle_pread): Fall back to lseek and read.
20081 (handle_pwrite): Fall back to lseek and write.
20082 * config.in, configure: Regenerated.
20083
27524b67
DJ
200842007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20085
20086 * server.c (myresume): Add own_buf argument.
20087 (main): Update calls.
20088
a20d5e98
DJ
200892007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20090
20091 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20092 * remote-utils.c (remote_open): Do not call disable_async_io.
20093 (block_async_io): Delete.
20094 (unblock_async_io): Make static.
20095 (initialize_async_io): New.
20096 * server.c (handle_v_cont): Handle async I/O here.
20097 (myresume): Likewise. Move other common resume tasks here...
20098 (main): ... from here. Call initialize_async_io. Disable async
20099 I/O before the main loop.
20100 * server.h (initialize_async_io): Declare.
20101 (block_async_io, unblock_async_io): Delete prototypes.
20102 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20103
b79d787e
DJ
201042007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20105
20106 * remote-utils.c (readchar): Allow binary data in received messages.
20107
d97903b2
PA
201082007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20109
20110 * win32-low.c (attaching): New global.
20111 (win32_create_inferior): Clear the `attaching' global.
20112 (win32_attach): Set the `attaching' global.
20113 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20114 attaching. Only set a breakpoint at the entry point if not
20115 attaching.
20116
311de423
PA
201172007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20118
20119 * server.c (main): Don't report dll events on the initial
20120 connection on attaches.
20121
6c2d16d2
PA
201222007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20123
20124 * server.c (main): Relax numerical bases supported for the pid of
20125 the --attach command line argument.
20126
5ca906e6
PA
201272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20128
20129 * win32-low.c (win32_attach): Call OpenProcess before
20130 DebugActiveProcess, not after. Add last error output to error
20131 call.
20132
9c6c8194
PA
201332007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20134
20135 * win32-low.c (win32_get_thread_context)
20136 (win32_set_thread_context): New functions.
20137 (thread_rec): Use win32_get_thread_context.
20138 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20139 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20140 field.
20141
4d5d1aaa
PA
201422007-12-03 Leo Zayas
20143 Pedro Alves <pedro_alves@portugalmail.pt>
20144
20145 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20146 global variables.
20147 (child_add_thread): Minor cleanup.
20148 (child_continue): Resume artificially suspended threads before
20149 calling ContinueDebugEvent.
20150 (suspend_one_thread): New.
20151 (fake_breakpoint_event): New.
20152 (get_child_debug_event): Change return type to int. Check here if
20153 gdb sent an interrupt request. If a soft interrupt was requested,
20154 fake a breakpoint event. Return 0 if there is no event to handle,
20155 and 1 otherwise.
20156 (win32_wait): Don't check here if gdb sent an interrupt request.
20157 Ensure there is a valid event to handle.
20158 (win32_request_interrupt): Add soft interruption method as last
20159 resort.
20160
c436e841
PA
201612007-12-03 Leo Zayas
20162 Pedro Alves <pedro_alves@portugalmail.pt>
20163
20164 * win32-low.h (win32_thread_info): Add descriptions to the
20165 structure members. Replace `suspend_count' counter by a
20166 `suspended' flag.
20167 * win32-low.c (thread_rec): Update condition of when to get the
20168 context from the inferior. Rely on ContextFlags being set if it
20169 has already been retrieved. Only suspend the inferior thread if
20170 we haven't already. Warn if that fails.
20171 (continue_one_thread): s/suspend_count/suspended/. Only call
20172 ResumeThread once. Warn if that fails.
20173
e7b5fa67
PA
201742007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20175
20176 * win32-low.c (win32_wait): Don't read from the inferior when it
20177 has already exited.
20178
a385171d
PA
201792007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20180
20181 * Makefile.in (win32_low_h): New variable.
20182 (win32-low.o): Add dependency on $(win32_low_h).
20183 (win32-arm-low.o, win32-i386-low.o): New rules.
20184
f80c84b3
DJ
201852007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20186
20187 * hostio.c: Correct copyright year.
20188
a6b151f1
DJ
201892007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20190
20191 * Makefile.in (OBS): Add hostio.o.
20192 (hostio.o): New rule.
20193 * server.h (handle_vFile): Declare.
20194 * hostio.c: New file.
20195 * server.c (handle_v_requests): Take packet_len and new_packet_len
20196 for binary packets. Call handle_vFile.
20197 (main): Update call to handle_v_requests.
20198
f9387fc3
DJ
201992007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20200
20201 * linux-low.c: Include <sched.h>.
20202
51c2684e
DJ
202032007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20204
20205 * linux-low.c (linux_tracefork_grandchild): New.
20206 (linux_tracefork_child): Use clone.
20207 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20208
75f83163
JB
202092007-10-31 Joel Brobecker <brobecker@adacore.com>
20210
20211 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20212
da5898ce
DJ
202132007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20214
20215 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20216
24a09b5f
DJ
202172007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20218
20219 * inferiors.c (change_inferior_id): Delete.
20220 (add_pid_to_list, pull_pid_from_list): New.
20221 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20222 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20223 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20224 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20225 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20226 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20227 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20228 (using_threads): Always set to 1.
20229 (handle_extended_wait): New.
20230 (add_process): Do not set TID.
20231 (linux_create_inferior): Set must_set_ptrace_flags.
20232 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20233 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20234 (linux_thread_alive): Rename TID argument to LWPID.
20235 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20236 (linux_wait_for_event): Do not use TID or check using_threads. Update
20237 call to dead_thread_notify. Call handle_extended_wait.
20238 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20239 (send_sigstop): Delete sigstop_sent.
20240 (wait_for_sigstop): Avoid TID.
20241 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20242 (linux_test_for_tracefork): New.
20243 (linux_lookup_signals): Use thread_db_active and
20244 linux_supports_tracefork_flag.
20245 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20246 * linux-low.h (get_process_thread): Avoid TID.
20247 (struct process_ifo): Move thread_known and tid to the end. Remove
20248 sigstop_sent.
20249 (linux_attach_lwp, thread_db_init): Update prototypes.
20250 * server.h (change_inferior_id): Delete prototype.
20251 (add_pid_to_list, pull_pid_from_list): New prototypes.
20252 * thread-db.c (thread_db_use_events): New.
20253 (find_first_thread): Rename to...
20254 (find_one_thread): ...this. Update callers and messages. Do not
20255 call fatal. Check thread_db_use_events. Do not call
20256 change_inferior_id or new_thread_notify.
20257 (maybe_attach_thread): Update. Do not call new_thread_notify.
20258 (thread_db_init): Set thread_db_use_events. Check use_events.
20259 * utils.c (fatal, warning): Correct message prefix.
20260
30ed0a8f
DJ
202612007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20262
20263 * Makefile.in (clean): Remove new files.
20264 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20265 (powerpc-64.o, powerpc-64.c): New rules.
20266 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20267 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20268 with SPE.
20269 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20270 SPE targets.
20271 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20272 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20273 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20274 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20275 (target_regsets): Add AltiVec and SPE register sets.
20276 * configure.ac: Check for AltiVec and SPE.
20277 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20278 (ppc_fill_vrregset, ppc_store_vrregset): New.
20279 (target_regsets): Add AltiVec register set.
20280 * configure: Regenerated.
20281
fd462a61
DJ
202822007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20283
20284 * linux-low.c (O_LARGEFILE): Define.
20285 (linux_read_memory): Use /proc/PID/mem.
20286 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20287 * configure, config.in: Regenerated.
20288
69f223ed
DJ
202892007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20290
20291 * linux-low.c (linux_wait_for_event): Do not pass signals while
20292 single-stepping.
20293
aec18585
PA
202942007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20295
20296 * win32-low.c (create_process): New.
20297 (win32_create_inferior): Use create_process instead of
20298 CreateProcess. If create_process failed retry appending an ".exe"
20299 suffix. Store the GetLastError result immediatelly after
20300 create_process calls and use it on the call to error.
20301
34d86ddd
PA
203022007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20303
20304 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20305
5a0e3bd0
JB
203062007-08-23 Joel Brobecker <brobecker@adacore.com>
20307
20308 * configure.ac: Switch license to GPLv3.
20309
f88c79e6
MS
203102007-08-01 Michael Snyder <msnyder@access-company.com>
20311
20312 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20313
6b3d9b83
PA
203142007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20315
20316 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20317 typedef.
20318 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20319 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20320 CloseToolhelp32Snapshot.
20321 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20322 CloseToolhelp32Snapshot.
20323
c588c53c
MS
203242007-07-27 Michael Snyder <michael.snyder@access-company.com>
20325
20326 * server.c (main): Check for inferior exit before main loop.
20327
aa0403d9
PA
203282007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20329
20330 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20331 instead of on tmp_desc.
20332
255e7678
DJ
203332007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20334 Daniel Jacobowitz <dan@codesourcery.com>
20335
20336 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20337 (add_thread): Minor cleanups.
20338 (clear_inferiors): Move lower in the file. Clear the DLL
20339 list.
20340 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20341 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20342 (xml_escape_text): New.
20343 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20344 for qSupported.
20345 (handle_v_cont): Report errors.
20346 (gdbserver_version): Update.
20347 (main): Correct size of own_buf. Do not report initial DLL events.
20348 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20349 (unloaded_dll, xml_escape_text): New.
20350 * win32-low.c (enum target_waitkind): Update comments.
20351 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20352 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20353 (win32_EnumProcessModules, win32_GetModuleInformation)
20354 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20355 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20356 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20357 (win32_Module32First, win32_Module32Next, load_toolhelp)
20358 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20359 (get_child_debug_event): Handle DLL events.
20360 (win32_wait): Likewise.
20361
0d37add9
DJ
203622007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20363
20364 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20365 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20366
45e2715e
PA
203672007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20368
20369 * win32-low.c (handle_output_debug_string): Ignore event if not
20370 waiting.
20371
c5674cf1
PA
203722007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20373
20374 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20375
2bbe3cc1
DJ
203762007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20377
20378 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20379
ae13219e
DJ
203802007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20381
20382 * inferiors.c (change_inferior_id): Add comment.
20383 * linux-low.c (check_removed_breakpoint): Add an early
20384 prototype. Improve debug output.
20385 (linux_attach): Doc update.
20386 (linux_detach_one_process, linux_detach): Clean up before releasing
20387 each process.
20388 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20389 * linux-low.h (struct process_info): Doc improvement.
20390 * mem-break.c (delete_all_breakpoints): New.
20391 * mem-break.h (delete_all_breakpoints): New prototype.
20392 * thread-db.c (find_first_thread): New.
20393 (thread_db_create_event): Call it instead of
20394 thread_db_find_new_threads. Clean up unused variables.
20395 (maybe_attach_thread): Remove first thread handling.
20396 (thread_db_find_new_threads): Use find_first_thread.
20397 (thread_db_get_tls_address): Likewise.
20398
4105de34
DJ
203992007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20400
20401 * thread-db.c (thread_db_find_new_threads): Add prototype.
20402 (thread_db_create_event): Check for the main thread before adding
20403 a new thread.
20404 (maybe_attach_thread): Only enable event reporting if TID == 0.
20405 (thread_db_get_tls_address): Check for new threads.
20406
2b876972
DJ
204072007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20408
20409 * linux-low.c (linux_create_inferior): Try execv before execvp.
20410 * spu-low.c (spu_create_inferior): Likewise.
20411
7a245884
DJ
204122007-06-13 Mike Frysinger <vapier@gentoo.org>
20413
20414 * linux-low.c (linux_create_inferior): Change execv to execvp.
20415 * spu-low.c (spu_create_inferior): Likewies.
20416
117ce543
DJ
204172007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20418
20419 * Makefile.in (clean): Clean new files instead of deleted ones.
20420 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20421 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20422 rules.
20423 * configure.srv: Specify XML files and new regformats for MIPS and
20424 MIPS64 GNU/Linux.
20425 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20426 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20427 an entry for the restart register.
20428 (mips_cannot_fetch_register, mips_cannot_store_register)
20429 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20430 register names to match the XML descriptions.
20431 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20432 restart register instead of $0.
20433
0e7f50da
UW
204342007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20435 Markus Deuling <deuling@de.ibm.com>
20436
20437 * remote-utils.c (decode_xfer_write): New function.
20438 * server.h (decode_xfer_write): Add prototype.
20439 * server.c (handle_query): Add PACKET_LEN argument. Support
20440 qXfer:spu:read and qXfer:spu:write packets.
20441 (main): Pass packet_len to handle_query.
20442 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20443 * target.h (target_ops): Add qxfer_spu.
20444
374c1d38
UW
204452007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20446
20447 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20448 accessing non-seekable spufs files.
20449
bb63802a
UW
204502007-05-16 Markus Deuling <deuling@de.ibm.com>
20451
889bf7c5 20452 * server.c (handle_query): Add reply for qC packet.
bb63802a 20453
7390519e
PA
204542007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20455 Leo Zayas <lerele@champenstudios@com>
20456
20457 * server.h (check_remote_input_interrupt_request): New function.
20458 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20459 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20460 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20461 (check_remote_input_interrupt_request): New function.
20462 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20463 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20464 winapi_GenerateConsoleCtrlEvent): New typedefs.
20465 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20466 to 250 ms.
20467 (win32_wait): Check for remote interrupt request
20468 with check_remote_input_interrupt_request.
20469 (win32_request_interrupt): New function.
20470 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20471
34b34921
PA
204722007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20473
20474 * win32-low.c (debug_registers_changed,
20475 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20476 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20477 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20478 (thread_rec): Get context using the low target.
20479 (child_add_thread): Call thread_added on the low target,
20480 which does the same thing.
20481 (regptr): Delete.
20482 (do_initial_child_stuff): Remove debug registers references.
20483 Set context using the low target. Resume threads after
20484 setting the contexts.
20485 (child_continue): Remove dead variable. Remove debug
20486 registers references.
20487 (child_fetch_inferior_registers): Go through the low target.
20488 (do_child_store_inferior_registers): Remove.
20489 (child_store_inferior_registers): Go through the low target.
20490 (win32_resume): Remove debug registers references.
20491 Set context using the low target.
20492 (handle_exception): Change return type to void. Don't record
20493 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20494 first chance exception.
889bf7c5 20495 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20496 goto loop. Always return after waiting for debug event.
20497 (win32_wait): Convert to switch statement. Handle spurious
20498 events.
20499
20500 * win32-i386-low.c (debug_registers_changed,
20501 debug_registers_used): New.
20502 (initial_stuff): Rename to ...
20503 (i386_initial_stuff): ... this. Clear debug registers
20504 state variables.
20505 (store_debug_registers): Delete.
20506 (i386_get_thread_context): New.
20507 (load_debug_registers): Delete.
20508 (i386_set_thread_context): New.
20509 (i386_thread_added): New.
20510 (single_step): Rename to ...
20511 (i386_single_step): ... this.
20512 (do_fetch_inferior_registers): Rename to ...
20513 (i386_fetch_inferior_register): ... this.
20514 (i386_store_inferior_register): New.
20515 (the_low_target): Adapt to new interface.
20516
20517 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20518 (arm_get_thread_context): New.
20519 (arm_set_thread_context): New.
20520 (regptr): New.
20521 (do_fetch_inferior_registers): Rename to ...
20522 (arm_fetch_inferior_register): ... this.
20523 (arm_store_inferior_register): New.
20524 (arm_wince_breakpoint): Reimplement as unsigned long.
20525 (arm_wince_breakpoint_len): Define.
20526 (the_low_target): Adapt to new interface.
20527
20528 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20529 load_debug_registers. Add get_thread_context, set_thread_context,
20530 thread_added and store_inferior_register. Rename
20531 fetch_inferior_registers to fetch_inferior_register.
20532 (regptr): Remove declaration.
20533
dd6953e1
PA
205342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20535
20536 * linux-low.c (linux_detach): Change return type to int. Return 0.
20537 * spu-low.c (spu_detach): Likewise.
20538
444d6139
PA
205392007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20540
20541 * target.h (target_ops): Change return type of detach to int.
20542 Add join.
20543 (join_inferior): New.
20544 * server.c (main): Don't skip detach support on mingw32.
20545 If the inferior doesn't support detaching return error.
20546 Call join_inferior instead of using waitpid.
20547 * linux-low.c (linux_join): New.
20548 (linux_target_op): Add linux_join.
20549 * spu-low.c (spu_join): New.
20550 (spu_target_ops): Add spu_join.
20551 * win32-low.c (win32_detach): Adapt to new interface.
20552 Reopen current_process_handle before detaching. Issue a child
20553 resume before detaching.
20554 (win32_join): New.
20555 (win32_target_op): Add win32_join.
20556
1d5315fe
PA
205572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20558
20559 * win32-low.c (win32-attach): Fix return value.
20560 * target.h (target_ops): Describe ATTACH return values.
20561
bf914831
PA
205622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20563
20564 * win32-low.c (GETPROCADDRESS): Define.
20565 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20566 (winapi_DebugSetProcessKillOnExit): Likewise.
20567 (win32_create_inferior): Force usage of ansi CreateProcessA.
20568 (win32_attach): Use GETPROCADDRESS.
20569 (win32_detach): Likewise.
20570
f72f3e60
PA
205712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20572
20573 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20574
ed50f18f
PA
205752007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20576
20577 * win32-low.c: Commit leftover changes from 2007-03-29.
20578
0c2ead7e
DJ
205792007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20580
20581 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20582 fields short instead of int. Add explicit padding.
20583 (i387_cache_to_fsave): Remove unnecessary casts.
20584 (i387_fsave_to_cache): Doc fix.
20585 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20586
73725ff3
DJ
205872007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20588
20589 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20590 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20591
d99f33d8
PA
205922007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20593
20594 * configure.srv (arm*-*-mingw32ce*): Move near the other
20595 arm targets.
20596
68070c10
PA
205972007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20598
2482afc6 20599 * configure.ac: Add errno checking.
68070c10
PA
20600 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20601 sys/file.h and malloc.h.
20602 (AC_CHECK_DECLS): Add perror.
20603 (srv_mingwce): Handle.
2482afc6 20604 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20605 win32-i386-low.o to srv_tgtobj.
20606 (i[34567]86-*-mingw*): Likewise.
20607 (arm*-*-mingw32ce*): Add case.
20608 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20609 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20610 [__MINGW32CE__] (strerror): New function.
20611 [__MINGW32CE__] (errno): Define to GetLastError.
20612 [__MINGW32CE__] (COUNTOF): New macro.
20613 (remote_open): Remove extra close call.
20614 * mem-break.c (delete_breakpoint_at): New function.
20615 * mem-break.h (delete_breakpoint_at): Declare.
20616 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20617 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20618 [USE_WIN32API] (read, write): Add char* casts.
20619 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20620 * server.h: Include wincecompat.h on Windows CE.
20621 [HAVE_ERRNO_H]: Check.
20622 (perror): Declare if not declared.
20623 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20624 (perror_with_name): Remove errno declaration.
20625 * wincecompat.h: New.
20626 * wincecompat.c: New.
20627 * win32-low.h: New.
20628 * win32-arm-low.c: New.
20629 * win32-i386-low.c: New.
20630 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20631 (OUTMSG2): Make it safe.
20632 (_T): New macro.
20633 (COUNTOF): New macro.
20634 (NUM_REGS): Get it from the low target.
20635 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20636 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20637 (thread_rec): Let low target handle debug registers.
20638 (child_add_thread): Likewise.
20639 (child_init_thread_list): Likewise.
20640 (continue_one_thread): Likewise.
20641 (regptr): New.
20642 (do_child_fetch_inferior_registers): Move to ...
20643 * win32-i386-low.c: ... here, and rename to ...
20644 (do_fetch_inferior_registers): ... this.
889bf7c5 20645 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20646 Go through the low target.
20647 (do_child_store_inferior_registers): Use regptr.
20648 (strwinerror): New function.
20649 (win32_create_inferior): Handle Windows CE.
20650 Use strwinerror instead of strerror on Windows error
20651 codes. Add program to the error output.
20652 Don't close the main thread handle on Windows CE.
20653 (win32_attach): Use coredll.dll on Windows CE.
20654 (win32_kill): Close current process and current
20655 thread handles.
20656 (win32_detach): Use coredll.dll on Windows CE.
20657 (win32_resume): Let low target handle debug registers, and
20658 step request.
20659 (handle_exception): Add/Remove initial breakpoint. Avoid
20660 non-existant WSTOPSIG on Windows CE.
20661 (win32_read_inferior_memory): Cast to remove warning.
20662 (win32_arch_string): Go through the low target.
20663 (initialize_low): Call set_breakpoint_data with the low
20664 target's breakpoint.
20665 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20666 FOP_REGNUM, mappings): Move to ...
20667 * win32-i386-low.c: ... here.
20668 * win32-low.c (win32_thread_info): Move to ...
20669 * win32-low.h: ... here.
20670 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20671 win32-arm-low.c and wincecompat.c.
20672 (all:): Add $EXEEXT.
20673 (install-only:): Likewise.
20674 (gdbserver:): Likewise.
20675 (gdbreplay:): Likewise.
20676 * config.in: Regenerate.
20677 * configure: Regenerate.
20678
41093d81
PA
206792007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20680
20681 * win32-low.c: Rename typedef thread_info to
20682 win32_thread_info throughout.
20683
544afa54
PA
206842007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20685
20686 * win32-i386-low.c: Rename to ...
20687 * win32-low.c: ... this.
20688 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20689 * Makefile.in: Likewise.
20690
bce7165d
PA
206912007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20692
20693 * remote-utils.c (monitor_output): Constify msg parameter.
20694 * server.h (monitor_output): Likewise.
20695 * win32-i386-low.c (handle_output_debug_string): New.
20696 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20697 handle_output_debug_string.
20698 (get_child_debug_event): Likewise.
20699
506c7aa0
DJ
207002007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20701
20702 * server.c (main): Correct strtoul check.
20703
42c81e2a
DJ
207042007-03-27 Jon Ringle <jon@ringle.org>
20705
20706 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20707
9453113a
DJ
207082007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20709
20710 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20711
64a69107
DJ
207122007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20713
20714 * terminal.h: Check HAVE_SGTTY_H.
20715
207162007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20717
20718 * remote-utils.c (remote_open): Print out the assigned port number.
20719
c74d0ad8
DJ
207202007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20721
20722 * remote-utils.c (monitor_output): New function.
20723 * server.c (debug_threads): Define here.
20724 (monitor_show_help): New function.
20725 (handle_query): Handle qRcmd.
20726 (main): Do not handle 'd' packet.
20727 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20728 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20729 of debug_threads.
20730
de7c3b4a
PA
207312007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20732
20733 * Makefile.in (EXEEXT): New.
20734 (clean): Use $(EXEEXT).
20735
ef57601b
PA
207362007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20737
20738 * target.h (target_ops): Rename send_signal to request_interrupt,
20739 and remove enum target_signal parameter.
20740 * linux-low.c (linux_request_interrupt): Rename from
20741 linux_send_signal, and always send SIGINT.
20742 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20743 and always send SIGINT.
20744 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20745 of send_signal.
20746 (input_interrupt): Likewise.
20747
820f2bda
PA
207482007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20749
20750 * server.c (get_features_xml): Check if target implemented
20751 arch_string.
20752 * win32-i386-low.c (win32_arch_string): New.
20753 (win32_target_ops): Add win32_arch_string as arch_string member.
20754
ab39bf24
UW
207552007-02-22 Markus Deuling <deuling@de.ibm.com>
20756
20757 * spu-low.c (spu_arch_string): New.
20758 (spu_target_ops): Add spu_arch_string.
20759
61ff6e04
DJ
207602007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20761
20762 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20763 * configure.ac: Do not check for terminal.h.
20764 * configure, config.in: Regenerated.
20765
fb1e4ffc
DJ
207662007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20767
20768 * Makefile.in (OBS): Add $(XML_BUILTIN).
20769 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20770 (clean): Update.
20771 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20772 (arm-with-iwmmxt.c): New.
20773 * config.in, configure: Regenerate.
20774 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20775 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20776 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20777 (arm*-*-linux*): Add iWMMXt and regset support.
20778 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20779 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20780 (arm_store_wmmxregset, target_regsets): New.
20781 * server.c (get_features_xml): Take annex argument. Check builtin
20782 XML documents.
20783 (handle_query): Handle multiple annexes.
20784
0f48aa01
DJ
207852007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20786
20787 * remote-utils.c [USE_WIN32API] (read, write): Define.
20788 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20789 write.
20790
23181151
DJ
207912007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20792
20793 * linux-i386-low.c (the_low_target): Set arch_string.
20794 * linux-x86-64-low.c (the_low_target): Likewise.
20795 * linux-low.c (linux_arch_string): New.
20796 (linux_target_ops): Add it.
20797 * linux-low.h (struct linux_target_ops): Add arch_string.
20798 * server.c (write_qxfer_response): Use const void * for DATA.
20799 (get_features_xml): New.
20800 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20801 * target.h (struct target_ops): Add arch_string method.
20802
9d606399
DJ
208032007-01-03 Denis Pilat <denis.pilat@st.com>
20804 Daniel Jacobowitz <dan@codesourcery.com>
20805
20806 * linux-low.c (linux_kill): Handle being called with no threads.
20807 * win32-i386-low.c (win32_kill): Likewise.
20808 (get_child_debug_event): Clear current_process_handle.
20809
208102006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20811 Daniel Jacobowitz <dan@codesourcery.com>
20812
20813 * remote-utils.c (remote_open): Check the type of specified
20814 serial port devices before opening them.
20815 * server.c (main): Kill the inferior if an error occurs during
20816 the first remote_open.
20817
a5e13d24
DJ
208182006-12-05 Markus Deuling <deuling@de.ibm.com>
20819
20820 * README: Update supported targets.
20821
186947f7
DJ
208222006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20823
20824 * Makefile.in (clean): Remove reg-mips64.c.
20825 (reg-mips64.c, reg-mips64.o): New rules.
20826 * configure.srv: Handle mips64. Include regset support for mips.
20827 * linux-mips-low.c (union mips_register): New.
20828 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20829 (mips_breakpoint, mips_breakpoint_at): Use int.
20830 (mips_collect_register, mips_supply_register)
20831 (mips_collect_register_32bit, mips_supply_register_32bit)
20832 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20833 (mips_store_fpregset, target_regsets): New.
20834 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20835
a13e2c95
UW
208362006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20837
20838 * configure.srv: Add target "spu*-*-*".
20839 * Makefile.in (clean): Remove reg-spu.c.
20840 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20841 * spu-low.c: New file.
20842
cb7283db
DJ
208432006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * configure.ac: Correct td_thr_tls_get_addr test.
20846 * configure: Regenerated.
20847
89be2091
DJ
208482006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20849
20850 * linux-low.c (linux_wait_for_event): Reformat. Use the
20851 pass_signals array.
20852 * remote-utils.c (decode_address_to_semicolon): New.
20853 * server.c (pass_signals, handle_general_set): New.
20854 (handle_query): Mention QPassSignals for qSupported.
20855 (main): Call handle_general_set.
20856 * server.h (pass_signals, decode_address_to_semicolon): New.
20857
000ef4f0
DJ
208582006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20859
20860 * server.c (handle_query): Correct error handling for read_auxv.
20861
b7149293
UW
208622005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20863
20864 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20865 and srv_linux_thread_db to yes.
20866 * linux-s390-low.c (s390_fill_gregset): New function.
20867 (target_regsets): Define data structure.
20868
dae5f5cf
DJ
208692006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20870
20871 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20872 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20873 * config.in, configure: Regenerated.
20874 * inferiors.c (gdb_id_to_thread): New function.
20875 (gdb_id_to_thread_id): Use it.
20876 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20877 * linux-low.h (struct process_info): Add th member.
20878 (thread_db_get_tls_address): New prototype.
20879 * remote-utils.c (decode_address): Make non-static.
20880 * server.c (handle_query): Handle qGetTLSAddr.
20881 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20882 * target.h (struct target_ops): Add get_tls_address.
20883 * thread-db.c (maybe_attach_thread): Save the thread handle.
20884 (thread_db_get_tls_address): New.
20885
32ca6d61
DJ
208862006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20887
20888 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20889 (linux_resume_one_process): Take a siginfo_t *. Update all
20890 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20891 (struct pending_signals): Add a siginfo_t.
20892 (linux_wait_for_process): Always set last_status.
20893 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20894 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20895 * linux-low.h (struct process_info): Add last_status.
20896
5ffff7c1
DJ
208972006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20898
20899 * remote-utils.c (try_rle): New function.
20900 (putpkt_binary): Use it.
20901
8695c747
DJ
209022006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20903
20904 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20905 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20906 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20907 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20908 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20909 point registers.
20910
290fadea
RS
209112006-08-08 Richard Sandiford <richard@codesourcery.com>
20912
20913 * server.c (terminal_fd): New variable.
20914 (old_foreground_pgrp): Likewise.
20915 (restore_old_foreground_pgrp): New function.
20916 (start_inferior): Record the terminal file descriptor in terminal_fd
20917 and its original foreground group in old_foreground_pgrp. Register
20918 restore_old_foreground_pgrp with atexit().
20919
9f2e1e63
DJ
209202006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20921
20922 * server.c (handle_query): Correct qPart to qXfer.
20923
b80864fb
DJ
209242006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20925
20926 * configure.ac: Check for more headers which are missing on
20927 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20928 * configure.srv: Add Cygwin and mingw32.
20929 * remote-utils.c: Don't include headers unconditionally which
20930 are missing on mingw32. Include <winsock.h> for mingw32.
20931 (remote_open): Adjust for mingw32 support. Flush
20932 standard error after writing to it.
20933 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20934 (unblock_async_io, enable_async_io, disable_async_io)
20935 (readchar, getpkt): Update for Winsock support.
20936 (prepare_resume_reply): Expect a protocol signal number.
20937 * server.c: Disable <sys/wait.h> on mingw32.
20938 (start_inferior): Adjust for mingw32 support. Flush
20939 standard error after writing to it.
20940 (attach_inferior): Likewise. Use protocol signal
20941 numbers.
20942 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20943 and names.
20944 * win32-i386-low.c: New file.
20945 * Makefile.in (XM_CLIBS): Set.
20946 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20947 (win32-i386-low.o): New dependency rule.
20948 * linux-low.c (linux_wait): Use target signal numbers.
20949 * target.h (struct target_ops): Doc fix.
20950 * server.h (target_signal_to_name): New prototype.
20951 * gdbreplay.c: Don't include headers unconditionally which
20952 are missing on mingw32. Include <winsock.h> for mingw32.
20953 (remote_close, remote_open): Adjust for Winsock support.
20954 * configure, config.in: Regenerated.
20955
0876f84a
DJ
209562006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20957
20958 * server.c (decode_xfer_read, write_qxfer_response): New.
20959 (handle_query): Take a packet length argument. Handle
20960 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20961 the qSupported response.
20962 (main): Update call to handle_query.
20963
01f9e8fa
DJ
209642006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20965
20966 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20967 (putpkt_binary): Renamed from putpkt and adjusted for binary
20968 data.
20969 (putpkt): New wrapper for putpkt_binary.
20970 (readchar): Don't mask off the high bit.
20971 (decode_X_packet): New function.
20972 * server.c (main): Call putpkt_binary if a handler sets the packet
20973 length. Save the length of the incoming packet. Handle 'X'.
20974 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20975
be2a5f71
DJ
209762006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20977
20978 * server.c (handle_query): Handle qSupported.
20979
ea025f5f
DJ
209802006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * remote-utils.c (all_symbols_looked_up): New variable.
20983 (look_up_one_symbol): Check it.
20984 * server.h (look_up_one_symbol): New declaration.
20985 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20986
9308fc88
DJ
209872006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20988
20989 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20990 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20991 (PTRACE_GET_THREAD_AREA): Define.
20992 (ps_get_thread_area): New function.
20993
52fb6437
NS
209942006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20995
20996 * configure.srv (m68k*-*-uclinux*): New target.
20997 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20998 (linux_resume_one_process): Remove extraneous cast.
20999 (linux_read_offsets): New.
21000 (linux_target_op): Add linux_read_offsets on mmuless systems.
21001 * server.c (handle_query): Add qOffsets logic.
21002 * target.h (struct target_ops): Add read_offsets.
21003
21b0f40c
DJ
210042006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21005
21006 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21007 (PTRACE_GET_THREAD_AREA): Define.
21008 (ps_get_thread_area): New function.
21009 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21010 (linux-x86-64-low.o): Update.
21011
0050a760
DJ
210122006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21013
21014 * configure.ac: Remove checks for prfpregset_t.
21015 * gdb_proc_service.h: New file.
21016 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21017 new "gdb_proc_service.h".
21018 * proc-service.c: Likewise.
21019 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21020 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21021 * Makefile.in (gdb_proc_service_h): Updated.
21022 * configure, config.in: Regenerated.
21023
b92a518e
DJ
210242006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21025
21026 * remote-utils.c (prepare_resume_reply): Move declaration
21027 of gdb_id_from_wait to the top of the block.
21028
545587ee
DJ
210292006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21030
21031 * linux-low.c (regsets_store_inferior_registers): Read the regset
21032 from the target before filling it.
21033
9db87ebd
DJ
210342006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21035
21036 * server.c (attach_inferior): Return SIGTRAP for a successful
21037 attach.
21038
dd24457d
DJ
210392006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21040
21041 * Makefile.in (OBS): Add version.o.
21042 (STAGESTUFF): Delete.
21043 (version.o): Add dependencies.
21044 (version.c): Replace rule.
21045 (clean): Remove version.c.
21046 * server.c (gdbserver_version): New.
21047 (gdbserver_usage): Use printf.
21048 (main): Handle --version and --help.
21049 * server.h (version, host_name): Add declarations.
21050
6f0f660e
EZ
210512005-12-23 Eli Zaretskii <eliz@gnu.org>
21052
889bf7c5
PA
21053 * linux-arm-low.c:
21054 * linux-arm-low.c:
21055 * inferiors.c:
21056 * i387-fp.h:
21057 * i387-fp.c:
21058 * gdbreplay.c:
21059 * regcache.c:
21060 * proc-service.c:
21061 * mem-break.h:
21062 * mem-break.c:
21063 * linux-x86-64-low.c:
21064 * linux-sh-low.c:
21065 * linux-s390-low.c:
21066 * linux-ppc64-low.c:
21067 * linux-ppc-low.c:
21068 * linux-mips-low.c:
21069 * linux-m68k-low.c:
21070 * linux-m32r-low.c:
21071 * linux-low.h:
21072 * linux-low.c:
21073 * linux-ia64-low.c:
21074 * linux-i386-low.c:
21075 * linux-crisv32-low.c:
21076 * thread-db.c:
21077 * terminal.h:
21078 * target.h:
21079 * target.c:
21080 * server.h:
21081 * server.c:
21082 * remote-utils.c:
21083 * regcache.h:
21084 * utils.c:
21085 * Makefile.in:
21086 * configure.ac:
6f0f660e
EZ
21087 * gdbserver.1: Add (C) after Copyright. Update the FSF
21088 address.
21089
9d1fb177
DJ
210902005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21091
21092 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21093 (arm_breakpoint_at): Recognize both breakpoints.
21094 (the_low_target): Use the correct breakpoint instruction.
21095
011a70c2
DJ
210962005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21097
21098 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21099 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21100 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21101 (the_low_target): Update.
21102
7fb85e41
AS
211032005-10-25 Andreas Schwab <schwab@suse.de>
21104
21105 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21106
21107 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21108 (ia64_num_regs): Reduce to 462.
21109
3db0444b
DJ
211102005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21111
21112 * acinclude.m4: Correct quoting.
21113 * aclocal.m4: Regenerated.
21114
21115 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21116 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21117 (thread_db_init): Call thread_db_err_str.
21118 * configure.ac: Check for TD_VERSION.
21119 * config.in, configure: Regenerated.
21120
bee0189a
DJ
211212005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21122
21123 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21124
e9d25b98
DJ
211252005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21126
21127 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21128 is not available. Define HAVE_PTRACE_GETREGS if it is.
21129 * config.in, configure: Regenerated.
21130 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21131 * linux-i386-low.c, linux-m68k-low.c: Update to use
21132 HAVE_PTRACE_GETREGS.
21133 * linux-low.c (regsets_fetch_inferior_registers)
21134 (regsets_store_inferior_registers): Only return 0 if we processed
21135 GENERAL_REGS.
21136 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21137 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21138
a06660f7
DJ
211392005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21140
21141 * inferiors.c (struct thread_info): Add gdb_id.
21142 (add_thread): Add gdb_id argument.
21143 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21144 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21145 calls to add_thread.
21146 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21147 * server.c (handle_query): Use thread_to_gdb_id.
21148 (handle_v_cont, main): Use gdb_id_to_thread_id.
21149 * server.h (add_thread): Update prototype.
21150 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21151 prototypes.
21152
5a1f5858
DJ
211532005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21154
21155 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21156 left-padded registers.
21157 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21158 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21159
e122f1f5
SE
211602005-07-01 Steve Ellcey <sje@cup.hp.com>
21161
21162 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21163 * configure: Regenerate.
21164 * config.in: Regenerate.
21165 * server.h (NEED_DECLARATION_STRERROR):
21166 Replace with !HAVE_DECL_STRERROR.
21167
d592fa2f
DJ
211682005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21169
21170 * linux-low.c (linux_wait, linux_send_signal): Don't test
21171 an unsigned long variable for > 0 if it could be MAX_ULONG.
21172 * server.c (myresume): Likewise.
21173 * target.c (set_desired_inferior): Likewise.
21174
ccbd4912
MK
211752005-06-13 Mark Kettenis <kettenis@gnu.org>
21176
21177 * configure.ac: Simplify and improve check for socklen_t.
21178 * configure, config.in: Regenerate.
21179
f450004a
DJ
211802005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21181
21182 * acconfig.h: Remove.
21183 * configure.ac: Add a test for socklen_t. Use three-argument
21184 AC_DEFINE throughout.
21185 * config.in: Regenerated using autoheader 2.59.
21186 * configure: Regenerated.
21187
21188 * gdbreplay.c (socklen_t): Provide a default.
21189 (remote_open): Use socklen_t.
21190 * remote-utils.c (socklen_t): Provide a default.
21191 (remote_open): Use socklen_t.
21192 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21193 unsigned char.
21194
21195 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21196 char for buffers.
21197 * linux-low.c (linux_read_memory, linux_write_memory)
21198 (linux_read_auxv): Likewise.
21199 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21200 (check_mem_write): Likewise.
21201 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21202 Likewise.
21203 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21204 (registers_from_string, register_data): Likewise.
21205 * server.c (handle_query, main): Likewise.
21206 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21207 (decode_M_packet): Likewise.
21208 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21209 * target.h (struct target_ops): Update read_memory, write_memory,
21210 and read_auxv.
21211 (read_inferior_memory, write_inferior_memory): Update.
21212 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21213 to unsigned char *.
21214 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21215 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21216 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21217 linux-s390-low.c, linux-sh-low.c: Update for changes in
21218 read_inferior_memory and the_low_target->breakpoint.
21219
eee84df1
DJ
212202005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21221
21222 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21223 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21224 * configure.srv: Add powerpc64-*-linux*.
21225 * linux-ppc64-low.c: New file.
21226
45b134e5
OF
212272005-05-23 Orjan Friberg <orjanf@axis.com>
21228
21229 * linux-cris-low.c: New file with support for CRIS.
21230 * linux-crisv32-low.c: Ditto for CRISv32.
21231 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21232 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21233 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21234 reg-crisv32.o, and reg-crisv32.c to make rules.
21235 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21236 recognized targets.
21237
48d93c75
UW
212382005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21239
21240 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21241 of sizeof (PTRACE_XFER_TYPE).
21242 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21243
e013ee27
OF
212442005-05-12 Orjan Friberg <orjanf@axis.com>
21245
889bf7c5 21246 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21247 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21248 pointers for hardware watchpoint support.
21249 * linux-low.h (struct linux_target_ops): Ditto.
21250 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21251 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21252 to linux_target_ops.
21253 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21254 reply packet.
21255 * server.c (main): Recognize 'Z' and 'z' packets.
21256
b0ded00b
UW
212572005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21258
21259 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21260 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21261 (the_low_target): Add new members.
21262
8643e2ad
DJ
212632005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21264
21265 * proc-service.c (ps_lgetregs): Search all_processes instead of
21266 all_threads.
21267
fc620387
DJ
212682005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21269
21270 * server.c (start_inferior): Change return type to int.
21271 (attach_inferior): Change sigptr to int *.
21272 (handle_v_cont, handle_v_requests): Change signal to int *.
21273 (main): Change signal to int.
21274
212752005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21276
21277 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21278 * configure.srv: Add m32r*-*-linux*.
21279 * linux-m32r-low.c: New file.
21280
e0e76420
DJ
212812005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21282
21283 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21284
a1928bad
DJ
212852005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21286
21287 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21288 Take unsigned long arguments for PIDs.
21289 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21290 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21291 (wait_for_sigstop, linux_resume_one_process)
21292 (regsets_fetch_inferior_registers, linux_send_signal)
21293 (linux_read_auxv): Likewise. Update the types of variables holding
21294 PIDs. Update format string specifiers.
21295 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21296 * remote-utils.c (prepare_resume_reply): Likewise.
21297 * server.c (cont_thread, general_thread, step_thread)
21298 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21299 unsigned long.
21300 (handle_query): Update format specifiers.
21301 (handle_v_cont, main): Use strtoul for thread IDs.
21302 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21303 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21304 (general_thread, step_thread, thread_from_wait)
21305 (old_thread_from_wait): Update.
21306 * target.h (struct thread_resume): Use unsigned long for THREAD.
21307 (struct target_ops): Use unsigned long for arguments to attach and
21308 thread_alive.
21309
dcdb98d2
DJ
213102005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21311
21312 * acinclude.m4: Include bfd/bfd.m4 directly.
21313 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21314 <agriffis@toolchain.org>.
21315 * aclocal.m4, configure: Regenerated.
21316
bec39cab
AC
213172005-01-07 Andrew Cagney <cagney@gnu.org>
21318
21319 * configure.ac: Rename configure.in, require autoconf 2.59.
21320 * configure: Re-generate.
21321
434c4c77
DJ
213222004-12-08 Daniel Jacobowitz <dan@debian.org>
21323
21324 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21325 LIBS when finished.
21326 * aclocal.m4: Regenerated.
21327 * configure: Regenerated.
21328
db1d3e1b
AS
213292004-11-21 Andreas Schwab <schwab@suse.de>
21330
21331 * linux-m68k-low.c (m68k_num_gregs): Define.
21332 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21333 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21334 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21335 (m68k_breakpoint_at): New. Add to the_low_target.
21336
21337 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21338 srv_linux_thread_db to yes.
21339
43360365
JB
213402004-10-20 Joel Brobecker <brobecker@gnat.com>
21341
21342 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21343 (ARCH_SET_FS): Likewise.
21344 (ARCH_GET_FS): Likewise.
21345 (ARCH_GET_GS): Likewise.
21346
fd500816
DJ
213472004-10-16 Daniel Jacobowitz <dan@debian.org>
21348
21349 * linux-i386-low.c (ps_get_thread_area): New.
21350 * linux-x86-64-low.c (ps_get_thread_area): New.
21351 * linux-low.c: Include <sys/syscall.h>.
21352 (linux_kill_one_process): Don't kill the first thread here.
21353 (linux_kill): Kill the first thread here.
21354 (kill_lwp): New function.
21355 (send_sigstop, linux_send_signal): Use it.
21356 * proc-service.c: Clean up #ifdefs.
21357 (fpregset_info): Delete.
21358 (ps_lgetregs): Update and enable implementation.
21359 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21360 implementations.
21361 * remote-utils.c (struct sym_cache, symbol_cache): New.
21362 (input_interrupt): Print a clearer message.
21363 (async_io_enabled): New variable.
21364 (enable_async_io, disable_async_io): Use it. Update comments.
21365 (look_up_one_symbol): Use the symbol cache.
21366 * thread-db.c (thread_db_look_up_symbols): New function.
21367 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21368
f6de3c42
DJ
213692004-10-16 Daniel Jacobowitz <dan@debian.org>
21370
21371 * configure.in: Test for -rdynamic.
21372 * configure: Regenerated.
21373 * Makefile (INTERNAL_LDFLAGS): New.
21374 (gdbserver, gdbreplay): Use it.
21375
2c0fc042
AC
213762004-09-02 Andrew Cagney <cagney@gnu.org>
21377
21378 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21379
075b3282
DJ
213802004-03-23 Daniel Jacobowitz <drow@mvista.com>
21381
21382 * linux-low.c (linux_wait): Clear all_processes list also.
21383
fa6a77dc
DJ
213842004-03-12 Daniel Jacobowitz <drow@mvista.com>
21385
21386 * linux-low.c: Include <errno.h>. Remove extern declaration of
21387 errno.
21388
6d782a97
DJ
213892004-03-12 Daniel Jacobowitz <drow@mvista.com>
21390
21391 * gdbreplay.c, server.h, utils.c: Update copyright years.
21392
3a7fb99b
DJ
213932004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21394
21395 * server.c (main): Print child status or termination signal from
21396 variable 'signal', not 'sig'.
21397
c3e735a6
DJ
213982004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21399
21400 * linux-low.c (linux_read_memory): Change return type to
21401 int. Check for and return error from ptrace().
21402 * target.c (read_inferior_memory): Change return type to int. Pass
21403 back return status from the_target->read_memory().
21404 * target.h (struct target_ops): Adapt *read_memory() prototype.
21405 Update comment.
21406 (read_inferior_memory): Adapt prototype.
21407 * server.c (main): Return an error packet if
21408 read_inferior_memory() returns an error.
21409
a59d1c82
DJ
214102004-03-04 Daniel Jacobowitz <drow@mvista.com>
21411
21412 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21413 Unify with other clean targets.
21414
dc3f8883
DJ
214152004-02-29 Daniel Jacobowitz <drow@mvista.com>
21416
21417 * server.c (handle_v_cont): Call set_desired_inferior.
21418
89a208da
DJ
214192004-02-29 Daniel Jacobowitz <drow@mvista.com>
21420
21421 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21422
62ea82f5
DJ
214232004-02-29 Daniel Jacobowitz <drow@mvista.com>
21424
21425 * linux-low.c (linux_wait): Unblock async I/O.
21426 (linux_resume): Block and enable async I/O.
21427 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21428 * server.h (block_async_io, unblock_async_io): Add prototypes.
21429
6910d122
DJ
214302004-02-29 Daniel Jacobowitz <drow@mvista.com>
21431
21432 * remote-utils.c (remote_open): Print a status notice after
21433 opening a TCP port.
21434 * server.c (attach_inferior): Print a status notice after
21435 attaching.
21436
214372004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21438
21439 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21440
c89dc5d4
DJ
214412004-02-26 Daniel Jacobowitz <drow@mvista.com>
21442
21443 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21444 error packet.
21445 * server.c, target.h: Update copyright years.
21446
4b8dad4a
RM
214472004-02-25 Roland McGrath <roland@redhat.com>
21448
21449 * target.h (struct target_ops): New member `read_auxv'.
21450 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21451 * linux-low.c (linux_read_auxv): New function.
21452 (linux_target_ops): Initialize `read_auxv' member to that.
21453
d7446758
JB
214542004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21455
21456 Committed by Jim Blandy <jimb@redhat.com>.
21457
21458 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21459 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21460 instead of GPR_SIZE to distiguish s390 and s390x targets.
21461
5544ad89
DJ
214622004-01-31 Daniel Jacobowitz <drow@mvista.com>
21463
21464 * linux-low.c: Update copyright year.
21465 (check_removed_breakpoint): Clear pending_is_breakpoint.
21466 (linux_set_resume_request, linux_queue_one_thread)
21467 (resume_status_pending_p): New functions.
21468 (linux_continue_one_thread): Use process->resume.
21469 (linux_resume): Only resume threads if there are no pending events.
21470 * linux-low.h (struct process_info): Add resume request
21471 pointer.
21472
2a68b70e
DJ
214732004-01-30 Daniel Jacobowitz <drow@mvista.com>
21474
21475 * regcache.c (new_register_cache): Clear the allocated register
21476 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21477
64386c31
DJ
214782003-10-13 Daniel Jacobowitz <drow@mvista.com>
21479
21480 * linux-low.c (linux_resume): Take a struct thread_resume *
21481 argument.
21482 (linux_wait): Update call.
21483 (resume_ptr): New static variable.
21484 (linux_continue_one_thread): Renamed from
21485 linux_continue_one_process. Use resume_ptr.
21486 (linux_resume): Use linux_continue_one_thread.
21487 * server.c (handle_v_cont, handle_v_requests): New functions.
21488 (myresume): New function.
21489 (main): Handle 'v' case.
21490 * target.h (struct thread_resume): New type.
21491 (struct target_ops): Change argument of "resume" to struct
21492 thread_resume *.
21493 (myresume): Delete macro.
21494
c938e9b0
L
214952003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21496
21497 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21498 (uninstall): Support DESTDIR.
21499
7f313d07
BC
21500Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21501
21502 * configure.srv: Add xscale*linux copy of arm*linux entry.
21503
3b2fc2ea
DJ
215042003-07-24 Daniel Jacobowitz <drow@mvista.com>
21505
21506 * linux-arm-low.c (arm_reinsert_addr): New function.
21507 (the_low_target): Add arm_reinsert_addr.
21508
1c0a559e
MK
215092003-07-08 Mark Kettenis <kettenis@gnu.org>
21510
21511 * mem-break.c: Remove whitespace at end of file.
21512
43d5792c
DJ
215132003-06-28 Daniel Jacobowitz <drow@mvista.com>
21514
21515 * configure.in: Check whether we need to prototype strerror.
21516 * server.h: Optionally prototype strerror.
21517 * gdbreplay.c (perror_with_name): Use strerror.
21518 * linux-low.c (linux_attach_lwp): Use strerror.
21519 * utils.c (perror_with_name): Use strerror.
21520 * config.in, configure: Regenerated.
21521
c8a86edf
DJ
215222003-06-28 Daniel Jacobowitz <drow@mvista.com>
21523
21524 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21525 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21526
73d37363
DJ
215272003-06-20 Daniel Jacobowitz <drow@mvista.com>
21528
21529 * Makefile.in (SFILES): Update.
21530 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21531 low-sun3.c: Remove files.
21532
6ad8ae5c
DJ
215332003-06-17 Daniel Jacobowitz <drow@mvista.com>
21534
21535 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21536 (linux_detach_one_process, linux_detach): New functions.
21537 (linux_target_ops): Add linux_detach.
21538 * server.c (main): Handle 'D' packet.
21539 * target.h (struct target_ops): Add "detach" member.
21540 (detach_inferior): Define.
21541
1581182a
MK
215422003-06-13 Mark Kettenis <kettenis@gnu.org>
21543
21544 From Kelley Cook <kelleycook@wideopenwest.com>:
21545 * configure.srv: Accept i[34567]86 variants.
21546
e5379b03
DJ
215472003-06-05 Daniel Jacobowitz <drow@mvista.com>
21548
21549 * linux-low.c (linux_wait_for_event): Correct comment typos.
21550 (linux_resume_one_process): Call check_removed_breakpoint.
21551 (linux_send_signal): New function.
21552 (linux_target_ops): Add linux_send_signal.
21553 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21554 of kill.
21555 * target.h (struct target_ops): Add send_signal.
21556
2ff29de4
JB
215572003-05-29 Jim Blandy <jimb@redhat.com>
21558
21559 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21560 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21561 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21562 away part of the register's value.
21563
254787d4
DJ
215642003-03-26 Daniel Jacobowitz <drow@mvista.com>
21565
21566 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21567 (linux_wait_for_event, linux_init_signals): Likewise.
21568
94e10508
DJ
215692003-03-17 Daniel Jacobowitz <drow@mvista.com>
21570
21571 * configure.in: Check for stdlib.h.
21572 * configure: Regenerated.
21573 * config.in: Regenerated.
21574
4c0711e0
DJ
215752003-01-04 Andreas Schwab <schwab@suse.de>
21576
21577 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21578
ef66e766
AC
215792003-01-02 Andrew Cagney <ac131313@redhat.com>
21580
21581 * Makefile.in: Remove obsolete code.
21582
a1358604
DJ
215832002-11-20 Daniel Jacobowitz <drow@mvista.com>
21584
21585 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21586 defined(PT_FPR0_HI).
21587
23ce3b1c
DJ
215882002-11-17 Stuart Hughes <seh@zee2.com>
21589
21590 * linux-arm-low.c (arm_num_regs): Increase.
21591 (arm_regmap): Include status register.
21592
215932002-11-17 Daniel Jacobowitz <drow@mvista.com>
21594
21595 * linux-low.c (register_addr): Remove incorrect -1 check.
21596
a9fa9f7d
DJ
215972002-08-29 Daniel Jacobowitz <drow@mvista.com>
21598
21599 * linux-low.c (linux_create_inferior): Call setpgid. Return
21600 the new PID.
21601 (unstopped_p, linux_signal_pid): Remove.
21602 (linux_target_ops): Remove linux_signal_pid.
21603 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21604 global instead of target method.
21605 * target.h (struct target_ops): Remove signal_pid. Update comment
21606 for create_inferior.
21607 * server.c (signal_pid): New variable.
21608 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21609 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21610 (attach_inferior): Set signal_pid.
21611
17574093
DJ
216122002-08-23 Daniel Jacobowitz <drow@mvista.com>
21613
21614 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21615
216162002-08-20 Jim Blandy <jimb@redhat.com>
21617
21618 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21619 default for this.
21620
216212002-08-01 Andrew Cagney <cagney@redhat.com>
21622
21623 * Makefile.in: Make chill references obsolete.
21624
216252002-07-24 Kevin Buettner <kevinb@redhat.com>
21626
21627 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21628 * configure: Regenerate.
21629 * config.in: Regenerate.
21630
216312002-07-09 David O'Brien <obrien@FreeBSD.org>
21632
21633 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21634 (perror_with_name, remote_close, remote_open, expect, play): Static.
21635
216362002-07-04 Michal Ludvig <mludvig@suse.cz>
21637
4b8dad4a 21638 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21639 byte offsets instead of an array of indexes.
21640 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21641
216422002-06-13 Daniel Jacobowitz <drow@mvista.com>
21643
21644 * regcache.c: Add comment.
21645
216462002-06-11 Daniel Jacobowitz <drow@mvista.com>
21647
21648 * thread-db.c: New file.
21649 * proc-service.c: New file.
21650 * acinclude.m4: New file.
21651 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21652 proc-service.o, and thread-db.o.
21653 (linux-low.o): Add USE_THREAD_DB.
21654 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21655 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21656 * aclocal.m4: Regenerated.
21657 * config.in: Regenerated.
21658 * configure: Regenerated.
21659 * configure.in: Check for proc_service.h, sys/procfs.h,
21660 thread_db.h, and linux/elf.h headrs.
21661 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21662 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21663 Check for -lthread_db and thread support.
21664 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21665 PowerPC, and SuperH.
21666 * i387-fp.c: Constify arguments.
21667 * i387-fp.h: Likewise.
21668 * inferiors.c: (struct thread_info): Renamed from
21669 `struct inferior_info'. Remove PID member. Use generic inferior
21670 list header. All uses updated.
21671 (inferiors, signal_pid): Removed.
21672 (all_threads): New variable.
21673 (get_thread): Define.
21674 (add_inferior_to_list): New function.
21675 (for_each_inferior): New function.
21676 (change_inferior_id): New function.
21677 (add_inferior): Removed.
21678 (remove_inferior): New function.
21679 (add_thread): New function.
21680 (free_one_thread): New function.
21681 (remove_thread): New function.
21682 (clear_inferiors): Use for_each_inferior and free_one_thread.
21683 (find_inferior): New function.
21684 (find_inferior_id): New function.
21685 (inferior_target_data): Update argument type.
21686 (set_inferior_target_data): Likewise.
21687 (inferior_regcache_data): Likewise.
21688 (set_inferior_regcache_data): Likewise.
21689 * linux-low.c (linux_bp_reinsert): Remove.
21690 (all_processes, stopping_threads, using_thrads)
21691 (struct pending_signals, debug_threads, pid_of): New.
21692 (inferior_pid): Replace with macro.
21693 (struct inferior_linux_data): Remove.
21694 (get_stop_pc, add_process): New functions.
21695 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21696 Use add_process and add_thread.
21697 (linux_attach_lwp): New function, based on old linux_attach. Use
21698 add_process and add_thread. Set stop_expected for new threads.
21699 (linux_attach): New function.
21700 (linux_kill_one_process): New function.
21701 (linux_kill): Kill all LWPs.
21702 (linux_thread_alive): Use find_inferior_id.
21703 (check_removed_breakpoints, status_pending_p): New functions.
21704 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21705 Update. Use WNOHANG. Wait for cloned processes also. Update process
21706 struct for the found process.
21707 (linux_wait_for_event): New function.
21708 (linux_wait): Use it. Support LWPs.
21709 (send_sigstop, wait_for_sigstop, stop_all_processes)
21710 (linux_resume_one_process, linux_continue_one_process): New functions.
21711 (linux_resume): Support LWPs.
21712 (REGISTER_RAW_SIZE): Remove.
21713 (fetch_register): Use register_size instead. Call supply_register.
21714 (usr_store_inferior_registers): Likewise. Call collect_register.
21715 Fix recursive case.
21716 (regsets_fetch_inferior_registers): Improve error message.
21717 (regsets_store_inferior_registers): Add debugging.
21718 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21719 (unstopped_p, linux_signal_pid): New functions.
21720 (linux_target_ops): Add linux_signal_pid.
21721 (linux_init_signals): New function.
21722 (initialize_low): Call it. Initialize using_threads.
21723 * regcache.c (inferior_regcache_data): Add valid
21724 flag.
21725 (get_regcache): Fetch registers lazily. Add fetch argument
21726 and update all callers.
21727 (regcache_invalidate_one, regcache_invalidate): New
21728 functions.
21729 (new_register_cache): Renamed from create_register_cache.
21730 Return the new regcache.
21731 (free_register_cache): Change argument to a void *.
21732 (registers_to_string, registers_from_string): Call get_regcache
21733 with fetch flag set.
21734 (register_data): Make static. Pass fetch flag to get_regcache.
21735 (supply_register): Call get_regcache with fetch flag clear.
21736 (collect_register): Call get_regcache with fetch flag set.
21737 (collect_register_as_string): New function.
21738 * regcache.h: Update.
21739 * remote-utils.c (putpkt): Flush after debug output and use
21740 stderr.
21741 Handle input interrupts while waiting for an ACK.
21742 (input_interrupt): Use signal_pid method.
21743 (getpkt): Flush after debug output and use stderr.
21744 (outreg): Use collect_register_as_string.
21745 (new_thread_notify, dead_thread_notify): New functions.
21746 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21747 and general_thread.
21748 (look_up_one_symbol): Flush after debug output.
21749 * server.c (step_thread, server_waiting): New variables.
21750 (start_inferior): Don't use signal_pid. Update call to mywait.
21751 (attach_inferior): Update call to mywait.
21752 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21753 (main): Don't fetch/store registers explicitly. Use
21754 set_desired_inferior. Support proposed ``Hs'' packet. Update
21755 calls to mywait.
21756 * server.h: Update.
21757 (struct inferior_list, struct_inferior_list_entry): New.
21758 * target.c (set_desired_inferior): New.
21759 (write_inferior_memory): Constify.
21760 (mywait): New function.
21761 * target.h: Update.
21762 (struct target_ops): New signal_pid method.
21763 (mywait): Removed macro, added prototype.
21764
21765 * linux-low.h (regset_func): Removed.
21766 (regset_fill_func, regset_store_func): New.
21767 (enum regset_type): New.
21768 (struct regset_info): Add type field. Use new operation types.
21769 (struct linux_target_ops): stop_pc renamed to get_pc.
21770 Add decr_pc_after_break and breakpoint_at.
21771 (get_process, get_thread_proess, get_process_thread)
21772 (strut process_info, all_processes, linux_attach_lwp)
21773 (thread_db_init): New.
21774
21775 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21776 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21777 (the_low_target): Add new members.
21778 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21779 (i386_store_fpxregset): Constify.
21780 (target_regsets): Add new kind identifier.
21781 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21782 (i386_set_pc): Add debugging.
21783 (i386_breakpoint_at): New function.
21784 (the_low_target): Add new members.
21785 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21786 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21787 (mips_breakpoint_at): New.
21788 (the_low_target): Add new members.
21789 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21790 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21791 (the_low_target): Add new members.
21792 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21793 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21794 (the_low_target): Add new members.
21795 * linux-x86-64-low.c (target_regsets): Add new kind
21796 identifier.
21797
217982002-05-15 Daniel Jacobowitz <drow@mvista.com>
21799
21800 From Martin Pool <mbp@samba.org>:
21801 * server.c (gdbserver_usage): New function.
21802 (main): Call it.
21803
218042002-05-14 Daniel Jacobowitz <drow@mvista.com>
21805
21806 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21807 stop_at -> stop_pc.
21808
218092002-05-04 Andrew Cagney <ac131313@redhat.com>
21810
21811 * Makefile.in: Remove obsolete code.
21812
218132002-04-24 Michal Ludvig <mludvig@suse.cz>
21814
21815 * linux-low.c (regsets_fetch_inferior_registers),
21816 (regsets_store_inferior_registers): Removed cast to int from
21817 ptrace() calls.
21818 * regcache.h: Added declaration of struct inferior_info.
21819
218202002-04-20 Daniel Jacobowitz <drow@mvista.com>
21821
21822 * inferiors.c (struct inferior_info): Add regcache_data.
21823 (add_inferior): Call create_register_cache.
21824 (clear_inferiors): Call free_register_cache.
21825 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21826 * regcache.c (struct inferior_regcache_data): New.
21827 (registers): Remove.
21828 (get_regcache): New function.
21829 (create_register_cache, free_register_cache): New functions.
21830 (set_register_cache): Don't initialize the register cache here.
21831 (registers_to_string, registers_from_string, register_data): Call
21832 get_regcache.
21833 * regcache.h: Add prototypes.
21834 * server.h: Likewise.
21835
218362002-04-20 Daniel Jacobowitz <drow@mvista.com>
21837
21838 * mem-break.c: New file.
21839 * mem-break.h: New file.
21840 * Makefile.in: Add mem-break.o rule; update server.h
21841 dependencies.
21842 * inferiors.c (struct inferior_info): Add target_data
21843 member.
21844 (clear_inferiors): Free target_data member if set.
21845 (inferior_target_data, set_inferior_target_data): New functions.
21846 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21847 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21848 * linux-low.c (linux_bp_reinsert): New variable.
21849 (struct inferior_linux_data): New.
21850 (linux_create_inferior): Use set_inferior_target_data.
21851 (linux_attach): Likewise. Call add_inferior.
21852 (linux_wait_for_one_inferior): New function.
21853 (linux_wait): Call it.
21854 (linux_write_memory): Add const.
21855 (initialize_low): Call set_breakpoint_data.
21856 * linux-low.h (struct linux_target_ops): Add breakpoint
21857 handling members.
21858 * server.c (attach_inferior): Remove extra add_inferior
21859 call.
21860 * server.h: Include mem-break.h. Update inferior.c
21861 prototypes.
21862 * target.c (read_inferior_memory)
21863 (write_inferior_memory): New functions.
21864 * target.h (read_inferior_memory)
21865 (write_inferior_memory): Change macros to prototypes.
21866 (struct target_ops): Update comments. Add const to write_memory
21867 definition.
21868
218692002-04-11 Daniel Jacobowitz <drow@mvista.com>
21870
21871 * linux-low.c (usr_store_inferior_registers): Support
21872 registers which are allowed to fail to store.
21873 * linux-low.h (linux_target_ops): Likewise.
21874 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21875 (ppc_cannot_store_register): FPSCR may not be storable.
21876
218772002-04-09 Daniel Jacobowitz <drow@mvista.com>
21878
21879 * server.h: Include <string.h> if HAVE_STRING_H.
21880 * ChangeLog: Correct paths in last ChangeLog entry.
21881
218822002-04-09 Daniel Jacobowitz <drow@mvista.com>
21883
21884 * linux-low.h: Remove obsolete prototypes.
21885 (struct linux_target_ops): New.
21886 (extern the_low_target): New.
21887 * linux-low.c (num_regs, regmap): Remove declarations.
21888 (register_addr): Use the_low_target explicitly.
21889 (fetch_register): Likewise.
21890 (usr_fetch_inferior_registers): Likewise.
21891 (usr_store_inferior_registers): Likewise.
21892 * linux-arm-low.c (num_regs): Remove.
21893 (arm_num_regs): Define.
21894 (arm_regmap): Renamed from regmap, made static.
21895 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21896 made static.
21897 (arm_cannot_store_register): Renamed from cannot_store_register,
21898 made static.
21899 (the_low_target): New.
21900 * linux-i386-low.c (num_regs): Remove.
21901 (i386_num_regs): Define.
21902 (i386_regmap): Renamed from regmap, made static.
21903 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21904 made static.
21905 (i386_cannot_store_register): Renamed from cannot_store_register,
21906 made static.
21907 (the_low_target): New.
21908 * linux-ia64-low.c (num_regs): Remove.
21909 (ia64_num_regs): Define.
21910 (ia64_regmap): Renamed from regmap, made static.
21911 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21912 made static.
21913 (ia64_cannot_store_register): Renamed from cannot_store_register,
21914 made static.
21915 (the_low_target): New.
21916 * linux-m68k-low.c (num_regs): Remove.
21917 (m68k_num_regs): Define.
21918 (m68k_regmap): Renamed from regmap, made static.
21919 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21920 made static.
21921 (m68k_cannot_store_register): Renamed from cannot_store_register,
21922 made static.
21923 (the_low_target): New.
21924 * linux-mips-low.c (num_regs): Remove.
21925 (mips_num_regs): Define.
21926 (mips_regmap): Renamed from regmap, made static.
21927 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21928 made static.
21929 (mips_cannot_store_register): Renamed from cannot_store_register,
21930 made static.
21931 (the_low_target): New.
21932 * linux-ppc-low.c (num_regs): Remove.
21933 (ppc_num_regs): Define.
21934 (ppc_regmap): Renamed from regmap, made static.
21935 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21936 made static.
21937 (ppc_cannot_store_register): Renamed from cannot_store_register,
21938 made static.
21939 (the_low_target): New.
21940 * linux-s390-low.c (num_regs): Remove.
21941 (s390_num_regs): Define.
21942 (s390_regmap): Renamed from regmap, made static.
21943 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21944 made static.
21945 (s390_cannot_store_register): Renamed from cannot_store_register,
21946 made static.
21947 (the_low_target): New.
21948 * linux-sh-low.c (num_regs): Remove.
21949 (sh_num_regs): Define.
21950 (sh_regmap): Renamed from regmap, made static.
21951 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21952 made static.
21953 (sh_cannot_store_register): Renamed from cannot_store_register,
21954 made static.
21955 (the_low_target): New.
21956 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21957 (the_low_target): New.
21958
219592002-04-09 Daniel Jacobowitz <drow@mvista.com>
21960
21961 * Makefile.in: Add stamp-h target.
21962 * configure.in: Create stamp-h.
21963 * configure: Regenerated.
21964
219652002-04-09 Daniel Jacobowitz <drow@mvista.com>
21966
21967 * inferiors.c: New file.
21968 * target.c: New file.
21969 * target.h: New file.
21970 * Makefile.in: Add target.o and inferiors.o. Update
21971 dependencies.
21972 * linux-low.c (inferior_pid): New static variable,
21973 moved from server.c.
21974 (linux_create_inferior): Renamed from create_inferior.
21975 Call add_inferior. Return 0 on success instead of a PID.
21976 (linux_attach): Renamed from myattach.
21977 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21978 (linux_thread_alive): Renamed from mythread_alive.
21979 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21980 child dies.
21981 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21982 (regsets_store_inferior_registers): Correct error message.
21983 Add missing ``return 0''.
21984 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21985 (linux_store_registers): Renamed from store_inferior_registers.
21986 (linux_read_memory): Renamed from read_inferior_memory.
21987 (linux_write_memory): Renamed from write_inferior_memory.
21988 (linux_target_ops): New structure.
21989 (initialize_low): Call set_target_ops ().
21990 * remote-utils.c (unhexify): New function.
21991 (hexify): New function.
21992 (input_interrupt): Send signals to ``signal_pid''.
21993 * server.c (inferior_pid): Remove.
21994 (start_inferior): Update create_inferior call.
21995 (attach_inferior): Call add_inferior.
21996 (handle_query): New function.
21997 (main): Call handle_query for `q' packets.
21998 * server.h: Include "target.h". Remove obsolete prototypes.
21999 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22000
220012002-04-09 Daniel Jacobowitz <drow@mvista.com>
22002
22003 * Makefile.in: Add WARN_CFLAGS. Update configury
22004 dependencies.
22005 * configure.in: Check for <string.h>
22006 * configure: Regenerate.
22007 * config.in: Regenerate.
22008 * gdbreplay.c: Include needed system headers.
22009 (remote_open): Remove strchr prototype.
22010 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22011 * regcache.c (supply_register): Change buf argument to const void *.
22012 (supply_register_by_name): Likewise.
22013 (collect_register): Change buf argument to void *.
22014 (collect_register_by_name): Likewise.
22015 * regcache.h: Add missing prototypes.
22016 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22017 * server.c (handle_query): New function.
22018 (attached): New static variable, moved out of main.
22019 (main): Quiet longjmp clobber warnings.
22020 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22021 * utils.c (error): Remove NORETURN.
22022 (fatal): Likewise.