]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Add read_pc / write_pc support to win32-low
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
d6225aff
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.h (win32_process_target::read_pc)
4 (win32_process_target::write_pc): Declare.
5 * win32-low.c (win32_process_target::read_pc)
6 (win32_process_target::write_pc): New methods.
7 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
8 functions.
9 (the_low_target): Update.
10 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
11 functions.
12 (the_low_target): Update.
13
2c1d95e8
TT
142020-04-08 Tom Tromey <tromey@adacore.com>
15
16 * win32-low.c (win32_kill, get_child_debug_event): Use
17 wait_for_debug_event.
18
e758e19c
TT
192020-04-08 Tom Tromey <tromey@adacore.com>
20
21 * win32-low.c (child_continue): Call continue_last_debug_event.
22
8d30e395
TT
232020-04-08 Tom Tromey <tromey@adacore.com>
24
25 * win32-low.c (handle_exception): Remove.
26 (windows_nat::handle_ms_vc_exception): New function.
27 (get_child_debug_event): Add "continue_status" parameter.
28 Update.
29 (win32_wait): Update.
30
a816ba18
TT
312020-04-08 Tom Tromey <tromey@adacore.com>
32
33 * win32-low.c (windows_nat::handle_load_dll): Rename from
34 handle_load_dll. No longer static.
35 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
36 No longer static.
37
d41b524f
TT
382020-04-08 Tom Tromey <tromey@adacore.com>
39
40 * win32-low.c (handle_output_debug_string): Add parameter. Change
41 return type.
42 (win32_kill, get_child_debug_event): Update.
43
3c76026d
TT
442020-04-08 Tom Tromey <tromey@adacore.com>
45
46 * win32-low.c (current_process_handle, current_process_id)
47 (main_thread_id, last_sig, current_event, siginfo_er): Move to
48 nat/windows-nat.c.
49
9d8679cc
TT
502020-04-08 Tom Tromey <tromey@adacore.com>
51
52 * win32-low.c (get_image_name): Remove.
53 (handle_load_dll): Update.
54
28688adf
TT
552020-04-08 Tom Tromey <tromey@adacore.com>
56
57 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
58 No longer static. Change parameters.
59 (child_add_thread, child_fetch_inferior_registers)
60 (child_store_inferior_registers, win32_resume)
61 (win32_get_tib_address): Update.
62
4834dad0
TT
632020-04-08 Tom Tromey <tromey@adacore.com>
64
65 * win32-low.h (struct win32_target_ops): Use qualified names where
66 needed.
67 * win32-i386-low.c: Add "using namespace".
68 * win32-low.c: Add "using namespace".
69 * win32-arm-low.c: Add "using namespace".
70
65bafd5b
TT
712020-04-08 Tom Tromey <tromey@adacore.com>
72
73 * win32-low.c (delete_thread_info): Don't call CloseHandle.
74
98a03287
TT
752020-04-08 Tom Tromey <tromey@adacore.com>
76
77 * win32-low.c (win32_require_context, suspend_one_thread): Use
78 windows_thread_info::suspend.
79 (continue_one_thread): Use windows_thread_info::resume.
80 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
81
62fe396b
TT
822020-04-08 Tom Tromey <tromey@adacore.com>
83
84 * win32-i386-low.c (update_debug_registers)
85 (i386_prepare_to_resume, i386_thread_added): Update.
86
e9534bd2
TT
872020-04-08 Tom Tromey <tromey@adacore.com>
88
89 * win32-low.c (child_add_thread): Use new.
90 (delete_thread_info): Use delete.
91
ae1f8880
TT
922020-04-08 Tom Tromey <tromey@adacore.com>
93
94 * win32-low.h (struct windows_thread_info): Remove.
95
e56f8ccb
TT
962020-04-08 Tom Tromey <tromey@adacore.com>
97
98 * win32-low.h (struct windows_thread_info): Rename from
99 win32_thread_info. Remove typedef.
100 (struct win32_target_ops, win32_require_context): Update.
101 * win32-low.c (win32_get_thread_context)
102 (win32_set_thread_context, win32_prepare_to_resume)
103 (win32_require_context, thread_rec, child_add_thread)
104 (delete_thread_info, continue_one_thread)
105 (child_fetch_inferior_registers, child_store_inferior_registers)
106 (win32_resume, suspend_one_thread, win32_get_tib_address):
107 Update.
108 * win32-i386-low.c (update_debug_registers)
109 (win32_get_current_dr, i386_get_thread_context)
110 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
111 (i386_fetch_inferior_register, i386_store_inferior_register):
112 Update.
113 * win32-arm-low.c (arm_get_thread_context)
114 (arm_fetch_inferior_register, arm_store_inferior_register):
115 Update.
116
0dd7b52e
TBA
1172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
118
119 * linux-low.h (struct linux_target_ops): Remove.
120 (the_low_target): Remove.
121 * linux-x86-low.cc (the_low_target): Remove.
122 * linux-aarch64-low.cc (the_low_target): Ditto.
123 * linux-arm-low.cc (the_low_target): Ditto.
124 * linux-bfin-low.cc (the_low_target): Ditto.
125 * linux-cris-low.cc (the_low_target): Ditto.
126 * linux-crisv32-low.cc (the_low_target): Ditto.
127 * linux-ia64-low.cc (the_low_target): Ditto.
128 * linux-m32r-low.cc (the_low_target): Ditto.
129 * linux-m68k-low.cc (the_low_target): Ditto.
130 * linux-mips-low.cc (the_low_target): Ditto.
131 * linux-nios2-low.cc (the_low_target): Ditto.
132 * linux-ppc-low.cc (the_low_target): Ditto.
133 * linux-riscv-low.cc (the_low_target): Ditto.
134 * linux-s390-low.cc (the_low_target): Ditto.
135 * linux-sh-low.cc (the_low_target): Ditto.
136 * linux-sparc-low.cc (the_low_target): Ditto.
137 * linux-tic6x-low.cc (the_low_target): Ditto.
138 * linux-tile-low.cc (the_low_target): Ditto.
139 * linux-xtensa-low.cc (the_low_target): Ditto.
140
fc5ecdb6
TBA
1412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
142
143 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
144 linux target define the op by overriding the declaration in
145 process_stratum_target.
146
147 * linux-low.h (struct linux_target_ops): Remove the op.
148 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
149 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
150 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
151 (x86_get_ipa_tdesc_idx): Turn into...
152 (x86_target::get_ipa_tdesc_idx): ...this.
153 (the_low_target): Remove the op field.
154 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
155 (ppc_get_ipa_tdesc_idx): Turn into...
156 (ppc_target::get_ipa_tdesc_idx): ...this.
157 (the_low_target): Remove the op field.
158 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
159 (s390_get_ipa_tdesc_idx): Turn into...
160 (s390_target::get_ipa_tdesc_idx): ...this.
161 (the_low_target): Remove the op field.
162
9eedd27d
TBA
1632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
164
165 Turn the 'get_syscall_trapinfo' linux target op into a method
166 of process_stratum_target.
167
168 * linux-low.h (struct linux_target_ops): Remove the op.
169 (class linux_process_target) <get_syscall_trapinfo>
170 <gdb_catch_this_syscall>
171 <low_supports_catch_syscall>
172 <low_get_syscall_trapinfo>: Declare.
173 * linux-low.cc (get_syscall_trapinfo): Turn into...
174 (linux_process_target::get_syscall_trapinfo): ...this.
175 (linux_process_target::low_get_syscall_trapinfo): Define.
176 (gdb_catch_this_syscall_p): Turn into...
177 (linux_process_target::gdb_catch_this_syscall): ...this.
178 (linux_process_target::low_supports_catch_syscall): Define.
179
180 Update the callers below.
181
182 (linux_process_target::wait_1)
183 (linux_process_target::supports_catch_syscall)
184
185 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
186 <low_get_syscall_trapinfo>: Declare.
187 (x86_target::low_supports_catch_syscall): Define.
188 (x86_get_syscall_trapinfo): Turn into...
189 (x86_target::low_get_syscall_trapinfo): ...this.
190 (the_low_target): Remove the op field.
191 * linux-aarch64-low.cc (class aarch64_target)
192 <low_supports_catch_syscall>
193 <low_get_syscall_trapinfo>: Declare.
194 (aarch64_target::low_supports_catch_syscall): Define.
195 (aarch64_get_syscall_trapinfo): Turn into...
196 (aarch64_target::low_get_syscall_trapinfo): ...this.
197 (the_low_target): Remove the op field.
198 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
199 <low_get_syscall_trapinfo>: Declare.
200 (arm_target::low_supports_catch_syscall): Define.
201 (arm_get_syscall_trapinfo): Turn into...
202 (arm_target::low_get_syscall_trapinfo): ...this.
203 (the_low_target): Remove the op field.
204 * linux-ppc-low.cc (the_low_target): Remove the op field.
205 * linux-s390-low.cc (the_low_target): Remove the op field.
206
b31cdfa6
TBA
2072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
208
209 Remove the 'supports_hardware_single_step' linux target op and
210 override the process_stratum_target's op definition in
211 linux_process_target to return true.
212
213 * linux-low.h (struct linux_target_ops): Remove the op.
214 (class linux_process_target) <finish_step_over>
215 <maybe_hw_step>: Declare.
216 * linux-low.cc (can_hardware_single_step): Remove.
217 (maybe_hw_step): Turn into...
218 (linux_process_target::maybe_hw_step): ...this.
219 (finish_step_over): Turn into...
220 (linux_process_target::finish_step_over): ...this.
221 (linux_process_target::supports_hardware_single_step): Update
222 to return true.
223
224 Update the callers below.
225
226 (linux_process_target::single_step)
227 (linux_process_target::resume_one_lwp_throw)
228
229 * linux-arm-low.cc (class arm_target)
230 <supports_hardware_single_step>: Declare.
231 (arm_supports_hardware_single_step): Turn into...
232 (arm_target::supports_hardware_single_step): ...this.
233 (the_low_target): Remove the op field.
234 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
235 (the_low_target): Remove the op field.
236 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
237 Remove.
238 (the_low_target): Remove the op field.
239 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
240 (the_low_target): Remove the op field.
241 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
242 (the_low_target): Remove the op field.
243 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
244 (the_low_target): Remove the op field.
245 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
246 (the_low_target): Remove the op field.
247 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
248 (the_low_target): Remove the op field.
249 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
250 (the_low_target): Remove the op field.
251 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
252 (the_low_target): Remove the op field.
253 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
254 (the_low_target): Remove the op field.
255 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
256 (the_low_target): Remove the op field.
257 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
258 Remove.
259 (the_low_target): Remove the op field.
260
9cfd8715
TBA
2612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
262
263 Turn the 'supports_range_stepping' linux target op into a method
264 of linux_process_target.
265
266 * linux-low.h (struct linux_target_ops): Remove the op.
267 (class linux_process_target) <low_supports_range_stepping>: Declare.
268 * linux-low.cc (linux_process_target::low_supports_range_stepping):
269 Define.
270 (linux_process_target::supports_range_stepping): Update the call
271 site.
272 * linux-x86-low.cc (class x86_target)
273 <low_supports_range_stepping>: Declare.
274 (x86_supports_range_stepping): Turn into...
275 (x86_target::low_supports_range_stepping): ...this.
276 (the_low_target): Remove the op field.
277 * linux-aarch64-low.cc (class aarch64_target)
278 <low_supports_range_stepping>: Declare.
279 (aarch64_supports_range_stepping): Turn into...
280 (aarch64_target::low_supports_range_stepping): ...this.
281 (the_low_target): Remove the op field.
282 * linux-arm-low.cc (the_low_target): Remove the op field.
283 * linux-bfin-low.cc (the_low_target): Ditto.
284 * linux-crisv32-low.cc (the_low_target): Ditto.
285 * linux-m32r-low.cc (the_low_target): Ditto.
286 * linux-m68k-low.cc (the_low_target): Ditto.
287 * linux-ppc-low.cc (the_low_target): Ditto.
288 * linux-s390-low.cc (the_low_target): Ditto.
289 * linux-sh-low.cc (the_low_target): Ditto.
290 * linux-tic6x-low.cc (the_low_target): Ditto.
291 * linux-tile-low.cc (the_low_target): Ditto.
292 * linux-xtensa-low.cc (the_low_target): Ditto.
293
ab64c999
TBA
2942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
295
296 Remove the 'emit_ops' linux target ops and let the concrete
297 linux target define the op by overriding the declaration of
298 process_stratum_target.
299
300 * linux-low.h (struct linux_target_ops): Remove the op.
301 (class linux_process_target) <emit_ops>: Remove.
302 * linux-low.cc (linux_process_target::emit_ops): Remove.
303 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
304 (x86_emit_ops): Turn into...
305 (x86_target::emit_ops): ...this.
306 (the_low_target): Remove the op field.
307 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
308 (aarch64_emit_ops): Turn into...
309 (aarch64_target::emit_ops): ...this.
310 (the_low_target): Remove the op field.
311 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
312 (ppc_emit_ops): Turn into...
313 (ppc_target::emit_ops): ...this.
314 (the_low_target): Remove the op field.
315 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
316 (s390_emit_ops): Turn into...
317 (s390_target::emit_ops): ...this.
318 (the_low_target): Remove the op field.
319 * linux-arm-low.cc (the_low_target): Remove the op field.
320 * linux-bfin-low.cc (the_low_target): Ditto.
321 * linux-crisv32-low.cc (the_low_target): Ditto.
322 * linux-m32r-low.cc (the_low_target): Ditto.
323 * linux-m68k-low.cc (the_low_target): Ditto.
324 * linux-sh-low.cc (the_low_target): Ditto.
325 * linux-tic6x-low.cc (the_low_target): Ditto.
326 * linux-tile-low.cc (the_low_target): Ditto.
327 * linux-xtensa-low.cc (the_low_target): Ditto.
328
809a0c35
TBA
3292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
330
331 Remove the 'install_fast_tracepoint_jump_pad' and
332 'get_min_fast_tracepoint_insn_len' linux target ops to let the
333 concrete linux target define the ops by overriding the declarations
334 of process_stratum_target.
335
336 * linux-low.h (struct linux_target_ops): Remove the ops.
337 (class linux_process_target) <supports_fast_tracepoints>
338 <install_fast_tracepoint_jump_pad>
339 <get_min_fast_tracepoint_insn_len>: Remove.
340 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
341 (linux_process_target::install_fast_tracepoint_jump_pad)
342 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
343 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
344 <install_fast_tracepoint_jump_pad>
345 <get_min_fast_tracepoint_insn_len>: Declare.
346 (x86_target::supports_fast_tracepoints): Define.
347 (x86_install_fast_tracepoint_jump_pad): Turn into...
348 (x86_target::install_fast_tracepoint_jump_pad): ...this.
349 (x86_get_min_fast_tracepoint_insn_len): Turn into...
350 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
351 (the_low_target): Remove the op fields.
352 * linux-aarch64-low.cc (class aarch64_target)
353 <supports_fast_tracepoints>
354 <install_fast_tracepoint_jump_pad>
355 <get_min_fast_tracepoint_insn_len>: Declare.
356 (aarch64_target::supports_fast_tracepoints): Define.
357 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
358 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
359 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
360 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
361 (the_low_target): Remove the op fields.
362 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
363 <install_fast_tracepoint_jump_pad>
364 <get_min_fast_tracepoint_insn_len>: Declare.
365 (ppc_target::supports_fast_tracepoints): Define.
366 (ppc_install_fast_tracepoint_jump_pad): Turn into...
367 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
368 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
369 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
370 (the_low_target): Remove the op fields.
371 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
372 <install_fast_tracepoint_jump_pad>
373 <get_min_fast_tracepoint_insn_len>: Declare.
374 (s390_target::supports_fast_tracepoints): Define.
375 (s390_install_fast_tracepoint_jump_pad): Turn into...
376 (s390_target::install_fast_tracepoint_jump_pad): ...this.
377 (s390_get_min_fast_tracepoint_insn_len): Turn into...
378 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
379 (the_low_target): Remove the op fields.
380 * linux-arm-low.cc (the_low_target): Remove the op fields.
381 * linux-bfin-low.cc (the_low_target): Ditto.
382 * linux-crisv32-low.cc (the_low_target): Ditto.
383 * linux-m32r-low.cc (the_low_target): Ditto.
384 * linux-m68k-low.cc (the_low_target): Ditto.
385 * linux-sh-low.cc (the_low_target): Ditto.
386 * linux-tic6x-low.cc (the_low_target): Ditto.
387 * linux-tile-low.cc (the_low_target): Ditto.
388 * linux-xtensa-low.cc (the_low_target): Ditto.
389
13e567af
TBA
3902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
391
392 Turn the 'get_thread_area' linux target op into a method of
393 process_stratum_target.
394
395 * linux-low.h (struct linux_target_ops): Remove the op.
396 (class linux_process_target) <stuck_in_jump_pad>
397 <linux_fast_tracepoint_collecting>
398 <low_get_thread_area>: Declare.
399 * linux-low.cc (supports_fast_tracepoints): Remove.
400 (linux_fast_tracepoint_collecting): Turn into...
401 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
402 (linux_process_target::low_get_thread_area): Define.
403 (stuck_in_jump_pad_callback): Turn into...
404 (linux_process_target::stuck_in_jump_pad): ...this.
405
406 Update the caller below.
407
408 (linux_process_target::stabilize_threads)
409
410 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
411 Declare.
412 (x86_get_thread_area): Turn into...
413 (x86_target::low_get_thread_area): ...this.
414 (the_low_target): Remove the op field.
415 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
416 Declare.
417 (aarch64_get_thread_area): Turn into...
418 (aarch64_target::low_get_thread_area): ...this.
419 (the_low_target): Remove the op field.
420 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
421 Declare.
422 (ppc_get_thread_area): Turn into...
423 (ppc_target::low_get_thread_area): ...this.
424 (the_low_target): Remove the op field.
425 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
426 Declare.
427 (s390_get_thread_area): Turn into...
428 (s390_target::low_get_thread_area): ...this.
429 (the_low_target): Remove the op field.
430 * linux-arm-low.cc (the_low_target): Remove the op field.
431 * linux-bfin-low.cc (the_low_target): Ditto.
432 * linux-crisv32-low.cc (the_low_target): Ditto.
433 * linux-m32r-low.cc (the_low_target): Ditto.
434 * linux-m68k-low.cc (the_low_target): Ditto.
435 * linux-sh-low.cc (the_low_target): Ditto.
436 * linux-tic6x-low.cc (the_low_target): Ditto.
437 * linux-tile-low.cc (the_low_target): Ditto.
438 * linux-xtensa-low.cc (the_low_target): Ditto.
439
47f70aa7
TBA
4402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
441
442 Remote the 'supports_tracepoints' linux target op and let the
443 concrete linux target define it by overriding the op declared in
444 process_stratum_target.
445
446 * linux-low.h (struct linux_target_ops): Remove the op.
447 (class linux_process_target) <supports_tracepoints>: Remove.
448 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
449 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
450 Declare.
451 (x86_supports_tracepoints): Turn into...
452 (x86_target::supports_tracepoints): ...this.
453 (the_low_target): Remove the op field.
454 * linux-aarch64-low.cc (class aarch64_target)
455 <supports_tracepoints>: Declare.
456 (aarch64_supports_tracepoints): Turn into...
457 (aarch64_target::supports_tracepoints): ...this.
458 (the_low_target): Remove the op field.
459 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
460 Declare.
461 (ppc_supports_tracepoints): Turn into...
462 (ppc_target::supports_tracepoints): ...this.
463 (the_low_target): Remove the op field.
464 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
465 Declare.
466 (s390_supports_tracepoints): Turn into...
467 (s390_target::supports_tracepoints): ...this.
468 (the_low_target): Remove the op field.
469 * linux-arm-low.cc (the_low_target): Remove the op field.
470 * linux-bfin-low.cc (the_low_target): Ditto.
471 * linux-crisv32-low.cc (the_low_target): Ditto.
472 * linux-m32r-low.cc (the_low_target): Ditto.
473 * linux-m68k-low.cc (the_low_target): Ditto.
474 * linux-sh-low.cc (the_low_target): Ditto.
475 * linux-tic6x-low.cc (the_low_target): Ditto.
476 * linux-tile-low.cc (the_low_target): Ditto.
477 * linux-xtensa-low.cc (the_low_target): Ditto.
478
a5b5da92
TBA
4792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
480
481 Remove the 'process_qsupported' linux target op and let a concrete
482 linux target define the op by overriding the op declaration in
483 process_stratum_target.
484
485 * linux-low.h (struct linux_target_ops): Remove the op.
486 (class linux_process_target) <process_qsupported>: Remove.
487 * linux-low.cc (linux_process_target::process_qsupported): Remove.
488 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
489 (x86_linux_process_qsupported): Turn into...
490 (x86_target::process_qsupported): ...this.
491 (the_low_target): Remove the op field.
492 * linux-aarch64-low.cc (the_low_target): Remove the op
493 field.
494 * linux-arm-low.cc (the_low_target): Ditto.
495 * linux-bfin-low.cc (the_low_target): Ditto.
496 * linux-crisv32-low.cc (the_low_target): Ditto.
497 * linux-m32r-low.cc (the_low_target): Ditto.
498 * linux-m68k-low.cc (the_low_target): Ditto.
499 * linux-ppc-low.cc (the_low_target): Ditto.
500 * linux-s390-low.cc (the_low_target): Ditto.
501 * linux-sh-low.cc (the_low_target): Ditto.
502 * linux-tic6x-low.cc (the_low_target): Ditto.
503 * linux-tile-low.cc (the_low_target): Ditto.
504 * linux-xtensa-low.cc (the_low_target): Ditto.
505
d7599cc0
TBA
5062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
507
508 Turn the 'prepare_to_resume' linux target op into a method of
509 linux_process_target.
510
511 * linux-low.h (struct linux_target_ops): Remove the op.
512 (class linux_process_target) <low_prepare_to_resume>: Declare.
513 * linux-low.cc (linux_process_target::low_prepare_to_resume):
514 Define.
515
516 Update the callers below:
517
518 (linux_process_target::resume_one_lwp_throw)
519 (linux_process_target::low_prepare_to_resume)
520
521 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
522 Declare.
523 (x86_target::low_prepare_to_resume): Define.
524 (the_low_target): Remove the op field.
525 * linux-aarch64-low.cc (class aarch64_target)
526 <low_prepare_to_resume>: Declare.
527 (aarch64_target::low_prepare_to_resume): Define.
528 (the_low_target): Remove the op field.
529 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
530 Declare.
531 (arm_prepare_to_resume): Turn into...
532 (arm_target::low_prepare_to_resume): ...this.
533 (the_low_target): Remove the op field.
534 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
535 Declare.
536 (mips_linux_prepare_to_resume): Turn into...
537 (mips_target::low_prepare_to_resume): ...this.
538 (the_low_target): Remove the op field.
539 * linux-bfin-low.cc (the_low_target): Remove the op field.
540 * linux-crisv32-low.cc (the_low_target): Ditto.
541 * linux-m32r-low.cc (the_low_target): Ditto.
542 * linux-m68k-low.cc (the_low_target): Ditto.
543 * linux-ppc-low.cc (the_low_target): Ditto.
544 * linux-s390-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
549
fd000fb3
TBA
5502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551
552 Turn the 'new_process', 'delete_process', 'new_thread',
553 'delete_thread', and 'new_fork' linux target ops into methods
554 of linux_process_target.
555
556 * linux-low.h (struct linux_target_ops): Remove the ops.
557 (class linux_process_target) <add_linux_process>
558 <add_lwp>
559 <delete_lwp>
560 <attach_lwp>
561 <detach_one_lwp>
562 <check_zombie_leaders>
563 <filter_exit_event>
564 <low_new_process>
565 <low_delete_process>
566 <low_new_thread>
567 <low_delete_thread>
568 <low_new_fork>: Declare.
569 * linux-low.cc (delete_lwp): Turn into...
570 (linux_process_target::delete_lwp): ...this.
571 (linux_process_target::low_delete_thread): Define.
572 (linux_add_process): Turn into...
573 (linux_process_target::add_linux_process): ...this.
574 (linux_process_target::low_new_process): Define.
575 (linux_process_target::low_delete_process): Define.
576 (linux_process_target::low_new_fork): Define.
577 (add_lwp): Turn into...
578 (linux_process_target::add_lwp): ...this.
579 (linux_process_target::low_new_thread): Define.
580 (linux_attach_lwp): Turn into...
581 (linux_process_target::attach_lwp): ...this.
582 (linux_detach_one_lwp): Turn into...
583 (linux_process_target::detach_one_lwp): ...this.
584 (linux_detach_lwp_callback): Remove and inline...
585 (linux_process_target::detach): ...here.
586 (check_zombie_leaders): Turn into...
587 (linux_process_target::check_zombie_leaders): ...this.
588 (filter_exit_event): Turn into...
589 (linux_process_target::filter_exit_event): ...this.
590
591 Update the callers below.
592
593 (linux_process_target::handle_extended_wait)
594 (linux_process_target::create_inferior)
595 (attach_proc_task_lwp_callback)
596 (linux_process_target::attach)
597 (linux_process_target::detach)
598 (linux_process_target::mourn)
599 * thread-db.cc (attach_thread)
600
601 * linux-x86-low.cc (class x86_target) <low_new_process>
602 <low_delete_process>
603 <low_new_thread>
604 <low_delete_thread>
605 <low_new_fork>: Declare.
606 (x86_linux_new_process): Turn into...
607 (x86_target::low_new_process): ...this.
608 (x86_linux_delete_process): Turn into...
609 (x86_target::low_delete_process): ...this.
610 (x86_target::low_new_thread): Define.
611 (x86_target::low_delete_thread): Define.
612 (x86_linux_new_fork): Turn into...
613 (x86_target::low_new_fork): ...this.
614 (the_low_target): Remove the op fields.
615 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
616 <low_delete_process>
617 <low_new_thread>
618 <low_delete_thread>
619 <low_new_fork>: Declare.
620 (aarch64_linux_new_process): Turn into...
621 (aarch64_target::low_new_process): ...this.
622 (aarch64_linux_delete_process): Turn into...
623 (aarch64_target::low_delete_process): ...this.
624 (aarch64_target::low_new_thread): Define.
625 (aarch64_target::low_delete_thread): Define.
626 (aarch64_linux_new_fork): Turn into...
627 (aarch64_target::low_new_fork): ...this.
628 (the_low_target): Remove the op fields.
629 * linux-arm-low.cc (class arm_target) <low_new_process>
630 <low_delete_process>
631 <low_new_thread>
632 <low_delete_thread>
633 <low_new_fork>: Declare.
634 (arm_new_process): Turn into...
635 (arm_target::low_new_process): ...this.
636 (arm_delete_process): Turn into...
637 (arm_target::low_delete_process): ...this.
638 (arm_new_thread): Turn into...
639 (arm_target::low_new_thread): ...this.
640 (arm_delete_thread): Turn into...
641 (arm_target::low_delete_thread): ...this.
642 (arm_new_fork): Turn into...
643 (arm_target::low_new_fork): ...this.
644 (the_low_target): Remove the op fields.
645 * linux-mips-low.cc (class mips_target) <low_new_process>
646 <low_delete_process>
647 <low_new_thread>
648 <low_delete_thread>
649 <low_new_fork>: Declare.
650 (mips_linux_new_process): Turn into...
651 (mips_target::low_new_process): ...this.
652 (mips_linux_delete_process): Turn into...
653 (mips_target::low_delete_process): ...this.
654 (mips_linux_new_thread): Turn into...
655 (mips_target::low_new_thread): ...this.
656 (mips_linux_delete_thread): Turn into...
657 (mips_target::low_delete_thread): ...this.
658 (mips_linux_new_fork): Turn into...
659 (mips_target::low_new_fork): ...this.
660 (the_low_target): Remove the op fields.
661 * linux-bfin-low.cc (the_low_target): Remove the op fields.
662 * linux-crisv32-low.cc (the_low_target): Ditto.
663 * linux-m32r-low.cc (the_low_target): Ditto.
664 * linux-m68k-low.cc (the_low_target): Ditto.
665 * linux-ppc-low.cc (the_low_target): Ditto.
666 * linux-s390-low.cc (the_low_target): Ditto.
667 * linux-sh-low.cc (the_low_target): Ditto.
668 * linux-tic6x-low.cc (the_low_target): Ditto.
669 * linux-tile-low.cc (the_low_target): Ditto.
670 * linux-xtensa-low.cc (the_low_target): Ditto.
671
cb63de7c
TBA
6722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
673
674 Turn the 'siginfo_fixup' linux target op into a method of
675 linux_process_target.
676
677 * linux-low.h (struct linux_target_ops): Remove the op.
678 (class linux_process_target) <siginfo_fixup>
679 <low_siginfo_fixup>: Declare.
680 * linux-low.cc (siginfo_fixup): Turn into...
681 (linux_process_target::siginfo_fixup): ...this.
682 (linux_process_target::low_siginfo_fixup): Define.
683 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
684 (x86_siginfo_fixup): Turn into...
685 (x86_target::low_siginfo_fixup): ...this.
686 (the_low_target): Remove the op field.
687 * linux-aarch64-low.cc (class aarch64_target):
688 <low_siginfo_fixup>: Declare.
689 (aarch64_linux_siginfo_fixup): Turn into...
690 (aarch64_target::low_siginfo_fixup): ...this.
691 (the_low_target): Remove the op field.
692 * linux-arm-low.cc (the_low_target): Remove the op field.
693 * linux-bfin-low.cc (the_low_target): Ditto.
694 * linux-crisv32-low.cc (the_low_target): Ditto.
695 * linux-m32r-low.cc (the_low_target): Ditto.
696 * linux-m68k-low.cc (the_low_target): Ditto.
697 * linux-mips-low.cc (the_low_target): Ditto.
698 * linux-ppc-low.cc (the_low_target): Ditto.
699 * linux-s390-low.cc (the_low_target): Ditto.
700 * linux-sh-low.cc (the_low_target): Ditto.
701 * linux-tic6x-low.cc (the_low_target): Ditto.
702 * linux-tile-low.cc (the_low_target): Ditto.
703 * linux-xtensa-low.cc (the_low_target): Ditto.
704
b35db733
TBA
7052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
706
707 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
708 linux target ops into methods of linux_process_target.
709
710 * linux-low.h (struct linux_target_ops): Remove the ops.
711 (class linux_process_target) <low_collect_ptrace_register>
712 <low_store_ptrace_register>: Declare.
713 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
714 (linux_process_target::low_supply_ptrace_register): Define.
715
716 Update the callers below.
717
718 (linux_process_target::fetch_register)
719 (linux_process_target::store_register)
720
721 * linux-x86-low.cc (the_low_target): Remove the op fields.
722 * linux-aarch64-low.cc (the_low_target): Ditto.
723 * linux-arm-low.cc (the_low_target): Ditto.
724 * linux-bfin-low.cc (the_low_target): Ditto.
725 * linux-crisv32-low.cc (the_low_target): Ditto.
726 * linux-m32r-low.cc (the_low_target): Ditto.
727 * linux-m68k-low.cc (the_low_target): Ditto.
728 * linux-sh-low.cc (the_low_target): Ditto.
729 * linux-sparc-low.cc (the_low_target): Ditto.
730 * linux-tic6x-low.cc (the_low_target): Ditto.
731 * linux-tile-low.cc (the_low_target): Ditto.
732 * linux-xtensa-low.cc (the_low_target): Ditto.
733 * linux-mips-low.cc (class mips_target)
734 <low_collect_ptrace_register>
735 <low_supply_ptrace_register>: Declare.
736 (mips_collect_ptrace_register): Turn into ...
737 (mips_target::low_collect_ptrace_register): ...this.
738 (mips_supply_ptrace_register): Turn into...
739 (mips_target::low_supply_ptrace_register): ...this.
740 (the_low_target): Remove the op fields.
741 * linux-ppc-low.cc (class ppc_target)
742 <low_collect_ptrace_register>
743 <low_supply_ptrace_register>: Declare.
744 (ppc_collect_ptrace_register): Turn into ...
745 (ppc_target::low_collect_ptrace_register): ...this.
746 (ppc_supply_ptrace_register): Turn into ...
747 (ppc_target::low_supply_ptrace_register): ...this.
748 (ppc_fill_gregset): Update for the calls to
749 low_collect_ptrace_register.
750 (the_low_target): Remove the op fields.
751 * linux-s390-low.cc (class s390_target)
752 <low_collect_ptrace_register>
753 <low_supply_ptrace_register>: Declare.
754 (s390_collect_ptrace_register): Turn into ...
755 (s390_target::low_collect_ptrace_register): ...this.
756 (s390_supply_ptrace_register): Turn into ...
757 (s390_target::low_supply_ptrace_register): ...this.
758 (s390_fill_gregset): Update for the calls to
759 low_collect_ptrace_register.
760 (the_low_target): Remove the op fields.
761
ac1bbaca
TBA
7622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
763
764 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
765 target ops into methods of linux_process_target.
766
767 * linux-low.h (struct linux_target_ops): Remove the ops.
768 (class linux_process_target) <check_stopped_by_watchpoint>
769 <low_stopped_by_watchpoint>
770 <low_stopped_data_address>: Declare.
771 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
772 (linux_process_target::check_stopped_by_watchpoint): ...this.
773 (linux_process_target::low_stopped_by_watchpoint): Define.
774 (linux_process_target::low_stopped_data_address): Define.
775 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
776 <low_stopped_data_address>: Declare.
777 (x86_stopped_by_watchpoint): Turn into...
778 (x86_target::low_stopped_by_watchpoint): ...this.
779 (x86_stopped_data_address): Turn into...
780 (x86_target::low_stopped_data_address): ...this.
781 (the_low_target): Remove the op fields.
782 * linux-aarch64-low.cc (class aarch64_target)
783 <low_stopped_by_watchpoint>
784 <low_stopped_data_address>: Declare.
785 (aarch64_stopped_by_watchpoint): Turn into...
786 (aarch64_target::low_stopped_by_watchpoint): ...this.
787 (aarch64_stopped_data_address): Turn into...
788 (aarch64_target::low_stopped_data_address): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
791 <low_stopped_data_address>: Declare.
792 (arm_stopped_by_watchpoint): Turn into...
793 (arm_target::low_stopped_by_watchpoint): ...this.
794 (arm_stopped_data_address): Turn into...
795 (arm_target::low_stopped_data_address): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-crisv32-low.cc (class crisv32_target)
798 <low_stopped_by_watchpoint>
799 <low_stopped_data_address>: Declare.
800 (cris_stopped_by_watchpoint): Turn into...
801 (crisv32_target::low_stopped_by_watchpoint): ...this.
802 (cris_stopped_data_address): Turn into...
803 (crisv32_target::low_stopped_data_address): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
806 <low_stopped_data_address>: Declare.
807 (mips_stopped_by_watchpoint): Turn into...
808 (mips_target::low_stopped_by_watchpoint): ...this.
809 (mips_stopped_data_address): Turn into...
810 (mips_target::low_stopped_data_address): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-bfin-low.cc (the_low_target): Remove the op fields.
813 * linux-m32r-low.cc (the_low_target): Ditto.
814 * linux-m68k-low.cc (the_low_target): Ditto.
815 * linux-ppc-low.cc (the_low_target): Ditto.
816 * linux-s390-low.cc (the_low_target): Ditto.
817 * linux-sh-low.cc (the_low_target): Ditto.
818 * linux-sparc-low.cc (the_low_target): Ditto.
819 * linux-tic6x-low.cc (the_low_target): Ditto.
820 * linux-tile-low.cc (the_low_target): Ditto.
821 * linux-xtensa-low.cc (the_low_target): Ditto.
822
9db9aa23
TBA
8232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
824
825 Turn the 'insert_point' and 'remove_point' linux target ops into
826 methods of linux_process_target.
827
828 * linux-low.h (struct linux_target_ops): Remove the ops.
829 (class linux_process_target) <low_insert_point>
830 <low_remove_point>: Declare.
831 * linux-low.cc (linux_process_target::low_insert_point)
832 (linux_process_target::low_remove_point): Define.
833 (linux_process_target::insert_point)
834 (linux_process_target::remove_point): Update for calls to
835 low_insert_point and low_remove_point.
836 * linux-x86-low.cc (class x86_target) <low_insert_point>
837 <low_remove_point>: Declare.
838 (x86_insert_point): Turn into...
839 (x86_target::low_insert_point): ...this.
840 (x86_remove_point): Turn into...
841 (x86_target::low_remove_point): ...this.
842 (the_low_target): Remove the op fields.
843 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
844 <low_remove_point>: Declare.
845 (aarch64_insert_point): Turn into...
846 (aarch64_target::low_insert_point): ...this.
847 (aarch64_remove_point): Turn into...
848 (aarch64_target::low_remove_point): ...this.
849 (the_low_target): Remove the op fields.
850 * linux-arm-low.cc (class arm_target) <low_insert_point>
851 <low_remove_point>: Declare.
852 (arm_insert_point): Turn into...
853 (arm_target::low_insert_point): ...this.
854 (arm_remove_point): Turn into...
855 (arm_target::low_remove_point): ...this.
856 (the_low_target): Remove the op fields.
857 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
858 <low_remove_point>: Declare.
859 (crisv32_insert_point): Turn into...
860 (crisv32_target::low_insert_point): ...this.
861 (crisv32_remove_point): Turn into...
862 (crisv32_target::low_remove_point): ...this.
863 (the_low_target): Remove the op fields.
864 * linux-mips-low.cc (class mips_target) <low_insert_point>
865 <low_remove_point>: Declare.
866 (mips_insert_point): Turn into...
867 (mips_target::low_insert_point): ...this.
868 (mips_remove_point): Turn into...
869 (mips_target::low_remove_point): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
872 <low_remove_point>: Declare.
873 (ppc_insert_point): Turn into...
874 (ppc_target::low_insert_point): ...this.
875 (ppc_remove_point): Turn into...
876 (ppc_target::low_remove_point): ...this.
877 (the_low_target): Remove the op fields.
878 * linux-bfin-low.cc (the_low_target): Remove the op fields.
879 * linux-m32r-low.cc (the_low_target): Ditto.
880 * linux-m68k-low.cc (the_low_target): Ditto.
881 * linux-s390-low.cc (the_low_target): Ditto.
882 * linux-sh-low.cc (the_low_target): Ditto.
883 * linux-sparc-low.cc (the_low_target): Ditto.
884 * linux-tic6x-low.cc (the_low_target): Ditto.
885 * linux-tile-low.cc (the_low_target): Ditto.
886 * linux-xtensa-low.cc (the_low_target): Ditto.
887
007c9b97
TBA
8882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
889
890 Remove the 'supports_z_point_type' linux target op and let the
891 concrete linux target define it by overriding the op declared in
892 process_stratum_target.
893
894 * linux-low.cc (linux_process_target::supports_z_point_type):
895 Remove.
896 * linux-low.h (struct linux_target_ops): Remove the op.
897 (class linux_process_target) <supports_z_point_type>: Remove.
898 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
899 Declare.
900 (x86_supports_z_point_type): Turn into...
901 (x86_target::supports_z_point_type): ...this.
902 (the_low_target): Remove the op field.
903 * linux-aarch64-low.cc (class aarch64_target)
904 <supports_z_point_type>: Declare.
905 (aarch64_supports_z_point_type): Turn into...
906 (aarch64_target::supports_z_point_type): ...this.
907 (the_low_target): Remove the op field.
908 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
909 Declare.
910 (arm_supports_z_point_type): Turn into...
911 (arm_target::supports_z_point_type): ...this.
912 (the_low_target): Remove the op field.
913 * linux-crisv32-low.cc (class crisv32_target)
914 <supports_z_point_type>: Declare.
915 (cris_supports_z_point_type): Turn into...
916 (crisv32_target::supports_z_point_type): ...this.
917 (the_low_target): Remove the op field.
918 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
919 Declare.
920 (mips_supports_z_point_type): Turn into...
921 (mips_target::supports_z_point_type): ...this.
922 (the_low_target): Remove the op field.
923 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
924 Declare.
925 (ppc_supports_z_point_type): Turn into...
926 (ppc_target::supports_z_point_type): ...this.
927 (the_low_target): Remove the op field.
928 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
929 Declare.
930 (s390_supports_z_point_type): Turn into...
931 (s390_target::supports_z_point_type): ...this.
932 (the_low_target): Remove the op field.
933 * linux-bfin-low.cc (the_low_target): Remove the op field.
934 * linux-m32r-low.cc (the_low_target): Ditto.
935 * linux-m68k-low.cc (the_low_target): Ditto.
936 * linux-sh-low.cc (the_low_target): Ditto.
937 * linux-sparc-low.cc (the_low_target): Ditto.
938 * linux-tic6x-low.cc (the_low_target): Ditto.
939 * linux-tile-low.cc (the_low_target): Ditto.
940 * linux-xtensa-low.cc (the_low_target): Ditto.
941
d7146cda
TBA
9422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
943
944 Turn the 'breakpoint_at' linux target op into a method of
945 linux_process_target.
946
947 * linux-low.h (struct linux_target_ops): Remove the op.
948 (class linux_process_target) <low_breakpoint_at>: Declare.
949
950 Update the callers below:
951
952 * linux-low.cc (linux_process_target::save_stop_reason)
953 (linux_process_target::thread_still_has_status_pending)
954 (linux_process_target::wait_1)
955
956 * linux-x86-low.cc (class x86_target)
957 <low_breakpoint_at>: Declare.
958 (x86_breakpoint_at): Turn into...
959 (x86_target::low_breakpoint_at): ...this.
960 (the_low_target): Remove the op field.
961 * linux-aarch64-low.cc (class aarch64_target)
962 <low_breakpoint_at>: Declare.
963 (aarch64_breakpoint_at): Turn into...
964 (aarch64_target::low_breakpoint_at): ...this.
965 (the_low_target): Remove the op field.
966 * linux-arm-low.cc (class arm_target)
967 <low_breakpoint_at>: Declare.
968 (arm_target::low_breakpoint_at): Define.
969 (the_low_target): Remove the op field.
970 * linux-bfin-low.cc (class bfin_target)
971 <low_breakpoint_at>: Declare.
972 (bfin_breakpoint_at): Turn into...
973 (bfin_target::low_breakpoint_at): ...this.
974 (the_low_target): Remove the op field.
975 * linux-cris-low.cc (class cris_target)
976 <low_breakpoint_at>: Declare.
977 (cris_breakpoint_at): Turn into...
978 (cris_target::low_breakpoint_at): ...this.
979 (the_low_target): Remove the op field.
980 * linux-crisv32-low.cc (class crisv32_target)
981 <low_breakpoint_at>: Declare.
982 (crisv32_breakpoint_at): Turn into...
983 (crisv32_target::low_breakpoint_at): ...this.
984 (the_low_target): Remove the op field.
985 * linux-ia64-low.cc (class ia64_target)
986 <low_breakpoint_at>: Declare.
987 (ia64_target::low_breakpoint_at): Define.
988 * linux-m32r-low.cc (class m32r_target)
989 <low_breakpoint_at>: Declare.
990 (m32r_breakpoint_at): Turn into...
991 (m32r_target::low_breakpoint_at): ...this.
992 (the_low_target): Remove the op field.
993 * linux-m68k-low.cc (class m68k_target)
994 <low_breakpoint_at>: Declare.
995 (m68k_breakpoint_at): Turn into...
996 (m68k_target::low_breakpoint_at): ...this.
997 (the_low_target): Remove the op field.
998 * linux-mips-low.cc (class mips_target)
999 <low_breakpoint_at>: Declare.
1000 (mips_breakpoint_at): Turn into...
1001 (mips_target::low_breakpoint_at): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-nios2-low.cc (class nios2_target)
1004 <low_breakpoint_at>: Declare.
1005 (nios2_breakpoint_at): Turn into...
1006 (nios2_target::low_breakpoint_at): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-ppc-low.cc (class ppc_target)
1009 <low_breakpoint_at>: Declare.
1010 (ppc_breakpoint_at): Turn into...
1011 (ppc_target::low_breakpoint_at): ...this.
1012 (the_low_target): Remove the op field.
1013 * linux-riscv-low.cc (class riscv_target)
1014 <low_breakpoint_at>: Declare.
1015 (riscv_breakpoint_at): Turn into...
1016 (riscv_target::low_breakpoint_at): ...this.
1017 (the_low_target): Remove the op field.
1018 * linux-s390-low.cc (class s390_target)
1019 <low_breakpoint_at>: Declare.
1020 (s390_breakpoint_at): Turn into...
1021 (s390_target::low_breakpoint_at): ...this.
1022 (the_low_target): Remove the op field.
1023 * linux-sh-low.cc (class sh_target)
1024 <low_breakpoint_at>: Declare.
1025 (sh_breakpoint_at): Turn into...
1026 (sh_target::low_breakpoint_at): ...this.
1027 (the_low_target): Remove the op field.
1028 * linux-sparc-low.cc (class sparc_target)
1029 <low_breakpoint_at>: Declare.
1030 (sparc_breakpoint_at): Turn into...
1031 (sparc_target::low_breakpoint_at): ...this.
1032 (the_low_target): Remove the op field.
1033 * linux-tic6x-low.cc (class tic6x_target)
1034 <low_breakpoint_at>: Declare.
1035 (tic6x_breakpoint_at): Turn into...
1036 (tic6x_target::low_breakpoint_at): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-tile-low.cc (class tile_target)
1039 <low_breakpoint_at>: Declare.
1040 (tile_breakpoint_at): Turn into...
1041 (tile_target::low_breakpoint_at): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-xtensa-low.cc (class xtensa_target)
1044 <low_breakpoint_at>: Declare.
1045 (xtensa_breakpoint_at): Turn into...
1046 (xtensa_target::low_breakpoint_at): ...this.
1047 (the_low_target): Remove the op field.
1048
d4807ea2
TBA
10492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1050
1051 Turn the 'decr_pc_after_break' linux_target_ops field into
1052 a method of linux_process_target.
1053
1054 * linux-low.h (struct linux_target_ops)
1055 <decr_pc_after_break>: Remove.
1056 (class linux_process_target) <low_decr_pc_after_break>: New method
1057 declaration.
1058 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1059 New method implementation.
1060
1061 Update the users below.
1062
1063 (linux_process_target::save_stop_reason)
1064 (linux_process_target::wait_1)
1065 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1066 New declaration.
1067 (x86_target::low_decr_pc_after_break): New method implementation.
1068 (the_low_target): Remove the field.
1069 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1070 New declaration.
1071 (bfin_target::low_decr_pc_after_break): New method implementation.
1072 (the_low_target): Remove the field.
1073 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1074 New declaration.
1075 (m68k_target::low_decr_pc_after_break): New method implementation.
1076 (the_low_target): Remove the field.
1077 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1078 New declaration.
1079 (s390_target::low_decr_pc_after_break): New method implementation.
1080 (the_low_target): Remove the field.
1081 * linux-aarch64-low.cc (the_low_target): Remove the field.
1082 * linux-arm-low.cc (the_low_target): Remove the field.
1083 * linux-cris-low.cc (the_low_target): Remove the field.
1084 * linux-crisv32-low.cc (the_low_target): Remove the field.
1085 * linux-m32r-low.cc (the_low_target): Remove the field.
1086 * linux-mips-low.cc (the_low_target): Remove the field.
1087 * linux-nios2-low.cc (the_low_target): Remove the field.
1088 * linux-ppc-low.cc (the_low_target): Remove the field.
1089 * linux-riscv-low.cc (the_low_target): Remove the field.
1090 * linux-sh-low.cc (the_low_target): Remove the field.
1091 * linux-sparc-low.cc (the_low_target): Remove the field.
1092 * linux-tic6x-low.cc (the_low_target): Remove the field.
1093 * linux-tile-low.cc (the_low_target): Remove the field.
1094 * linux-xtensa-low.cc (the_low_target): Remove the field.
1095
7582c77c
TBA
10962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097
1098 Remove the 'supports_software_single_step' linux target op and let
1099 the concrete linux target define it by overriding the op in
1100 process_stratum_target.
1101 Turn the 'get_next_pcs' linux target op into a method of
1102 linux_process_target.
1103
1104 * linux-low.h (struct linux_target_ops): Remove the ops.
1105 (class linux_process_target) <supports_software_single_step>:
1106 Remove.
1107 <low_get_next_pcs>: Declare.
1108 * linux-low.cc (can_software_single_step): Remove.
1109 (linux_process_target::low_get_next_pcs): Define.
1110 (linux_process_target::supports_software_single_step): Remove.
1111
1112 Update the callers below.
1113
1114 (linux_process_target::handle_extended_wait)
1115 (linux_process_target::wait_1)
1116 (linux_process_target::install_software_single_step_breakpoints)
1117 (linux_process_target::single_step)
1118 (linux_process_target::thread_needs_step_over)
1119 (linux_process_target::proceed_one_lwp)
1120 (linux_process_target::supports_range_stepping)
1121
1122 * linux-x86-low.cc (the_low_target): Remove the op field.
1123 * linux-aarch64-low.cc (the_low_target): Ditto.
1124 * linux-bfin-low.cc (the_low_target): Ditto.
1125 * linux-cris-low.cc (the_low_target): Ditto.
1126 * linux-crisv32-low.cc (the_low_target): Ditto.
1127 * linux-m32r-low.cc (the_low_target): Ditto.
1128 * linux-m68k-low.cc (the_low_target): Ditto.
1129 * linux-mips-low.cc (the_low_target): Ditto.
1130 * linux-nios2-low.cc (the_low_target): Ditto.
1131 * linux-ppc-low.cc (the_low_target): Ditto.
1132 * linux-riscv-low.cc (the_low_target): Ditto.
1133 * linux-s390-low.cc (the_low_target): Ditto.
1134 * linux-sh-low.cc (the_low_target): Ditto.
1135 * linux-sparc-low.cc (the_low_target): Ditto.
1136 * linux-tic6x-low.cc (the_low_target): Ditto.
1137 * linux-tile-low.cc (the_low_target): Ditto.
1138 * linux-xtensa-low.cc (the_low_target): Ditto.
1139 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1140 <supports_software_single_step>: Declare.
1141 (arm_target::supports_software_single_step): Define.
1142 (arm_gdbserver_get_next_pcs): Turn into...
1143 (arm_target::low_get_next_pcs): ...this.
1144 (the_low_target): Remove the op field.
1145
3ca4edb6
TBA
11462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1147
1148 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1149 the concrete linux target define it by overriding the op
1150 in process_stratum_target.
1151
1152 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1153 Remove.
1154 * linux-low.h (struct linux_target_ops): Remove the op.
1155 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1156 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1157 Declare.
1158 (x86_sw_breakpoint_from_kind): Turn into...
1159 (x86_target::sw_breakpoint_from_kind): ...this.
1160 (the_low_target): Remove the op field.
1161 * linux-aarch64-low.cc (class aarch64_target)
1162 <sw_breakpoint_from_kind>: Declare.
1163 (aarch64_sw_breakpoint_from_kind): Turn into...
1164 (aarch64_target::sw_breakpoint_from_kind): ...this.
1165 (the_low_target): Remove the op field.
1166 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1167 Declare.
1168 (arm_target::sw_breakpoint_from_kind): Define.
1169 (the_low_target): Remove the op field.
1170 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1171 Declare.
1172 (bfin_sw_breakpoint_from_kind): Turn into...
1173 (bfin_target::sw_breakpoint_from_kind): ...this.
1174 (the_low_target): Remove the op field.
1175 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1176 Declare.
1177 (cris_sw_breakpoint_from_kind): Turn into...
1178 (cris_target::sw_breakpoint_from_kind): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-crisv32-low.cc (class crisv32_target)
1181 <sw_breakpoint_from_kind>: Declare.
1182 (cris_sw_breakpoint_from_kind): Turn into...
1183 (crisv32_target::sw_breakpoint_from_kind): ...this.
1184 (the_low_target): Remove the op field.
1185 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1186 Declare.
1187 (ia64_target::sw_breakpoint_from_kind): Define.
1188 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1189 Declare.
1190 (m32r_sw_breakpoint_from_kind): Turn into...
1191 (m32r_target::sw_breakpoint_from_kind): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1194 Declare.
1195 (m68k_sw_breakpoint_from_kind): Turn into...
1196 (m68k_target::sw_breakpoint_from_kind): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1199 Declare.
1200 (mips_sw_breakpoint_from_kind): Turn into...
1201 (mips_target::sw_breakpoint_from_kind): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1204 Declare.
1205 (nios2_sw_breakpoint_from_kind): Turn into...
1206 (nios2_target::sw_breakpoint_from_kind): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1209 Declare.
1210 (ppc_sw_breakpoint_from_kind): Turn into...
1211 (ppc_target::sw_breakpoint_from_kind): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1214 Declare.
1215 (riscv_sw_breakpoint_from_kind): Turn into...
1216 (riscv_target::sw_breakpoint_from_kind): ...this.
1217 (the_low_target): Remove the op field.
1218 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1219 Declare.
1220 (s390_sw_breakpoint_from_kind): Turn into...
1221 (s390_target::sw_breakpoint_from_kind): ...this.
1222 (the_low_target): Remove the op field.
1223 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1224 Declare.
1225 (sh_sw_breakpoint_from_kind): Turn into...
1226 (sh_target::sw_breakpoint_from_kind): ...this.
1227 (the_low_target): Remove the op field.
1228 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1229 Declare.
1230 (sparc_sw_breakpoint_from_kind): Turn into...
1231 (sparc_target::sw_breakpoint_from_kind): ...this.
1232 (the_low_target): Remove the op field.
1233 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1234 Declare.
1235 (tic6x_sw_breakpoint_from_kind): Turn into...
1236 (tic6x_target::sw_breakpoint_from_kind): ...this.
1237 (the_low_target): Remove the op field.
1238 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1239 Declare.
1240 (tile_sw_breakpoint_from_kind): Turn into...
1241 (tile_target::sw_breakpoint_from_kind): ...this.
1242 (the_low_target): Remove the op field.
1243 * linux-xtensa-low.cc (class xtensa_target)
1244 <sw_breakpoint_from_kind>: Declare.
1245 (xtensa_sw_breakpoint_from_kind): Turn into...
1246 (xtensa_target::sw_breakpoint_from_kind): ...this.
1247 (the_low_target): Remove the op field.
1248
06250e4e
TBA
12492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250
1251 Remove the 'breakpoint_kind_from_pc' and
1252 'breakpoint_kind_from_current_state' linux target ops, and let the
1253 concrete linux target define them by overriding the ops of
1254 process_stratum_target.
1255
1256 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1257 Remove.
1258 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1259 * linux-low.h (struct linux_target_ops): Remove ops.
1260 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1261 <breakpoint_kind_from_current_state>: Remove.
1262 * linux-x86-low.cc (the_low_target): Remove the op fields.
1263 * linux-bfin-low.cc (the_low_target): Ditto.
1264 * linux-cris-low.cc (the_low_target): Ditto.
1265 * linux-crisv32-low.cc (the_low_target): Ditto.
1266 * linux-m32r-low.cc (the_low_target): Ditto.
1267 * linux-m68k-low.cc (the_low_target): Ditto.
1268 * linux-mips-low.cc (the_low_target): Ditto.
1269 * linux-nios2-low.cc (the_low_target): Ditto.
1270 * linux-ppc-low.cc (the_low_target): Ditto.
1271 * linux-s390-low.cc (the_low_target): Ditto.
1272 * linux-sh-low.cc (the_low_target): Ditto.
1273 * linux-sparc-low.cc (the_low_target): Ditto.
1274 * linux-tic6x-low.cc (the_low_target): Ditto.
1275 * linux-tile-low.cc (the_low_target): Ditto.
1276 * linux-xtensa-low.cc (the_low_target): Ditto.
1277 * linux-aarch64-low.cc (class aarch64_target)
1278 <breakpoint_kind_from_pc>
1279 <breakpoint_kind_from_current_state>: Declare.
1280 (aarch64_breakpoint_kind_from_pc): Turn into...
1281 (aarch64_target::breakpoint_kind_from_pc): ...this.
1282 (aarch64_breakpoint_kind_from_current_state): Turn into...
1283 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1284 (the_low_target): Remove the op fields.
1285 * linux-arm-low.cc (class arm_target):
1286 <breakpoint_kind_from_pc>
1287 <breakpoint_kind_from_current_state>: Declare.
1288 (arm_target::breakpoint_kind_from_pc): Define.
1289 (arm_target::breakpoint_kind_from_current_state): Define.
1290 (the_low_target): Remove the op fields.
1291 * linux-riscv-low.cc (class riscv_target):
1292 <breakpoint_kind_from_pc>: Declare.
1293 (riscv_breakpoint_kind_from_pc): Turn into...
1294 (riscv_target::breakpoint_kind_from_pc): ...this.
1295 (the_low_target): Remove the op fields.
1296
bf9ae9d8
TBA
12972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1298
1299 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1300 of linux_process_target.
1301
1302 * linux-low.h (struct linux_target_ops): Remove the ops.
1303 (class linux_process_target) <low_supports_breakpoints>
1304 <low_get_pc>
1305 <low_set_pc>: Declare.
1306 * linux-low.cc (supports_breakpoints): Turn into...
1307 (linux_process_target::low_supports_breakpoints): ...this.
1308 (linux_process_target::low_get_pc): Define.
1309 (linux_process_target::low_set_pc): Define.
1310
1311 Update the callers below.
1312
1313 (linux_process_target::get_pc)
1314 (linux_process_target::save_stop_reason)
1315 (linux_process_target::maybe_move_out_of_jump_pad)
1316 (linux_process_target::wait_1)
1317 (linux_process_target::resume_one_lwp_throw)
1318 (linux_process_target::resume)
1319 (linux_process_target::proceed_all_lwps)
1320 (linux_process_target::read_pc)
1321 (linux_process_target::write_pc)
1322
1323 * linux-x86-low.cc (class linux_process_target)
1324 <low_supports_breakpoints>
1325 <low_get_pc>
1326 <low_set_pc>: Declare.
1327 (x86_target::low_supports_breakpoints): Define.
1328 (x86_get_pc): Turn into...
1329 (x86_target::low_get_pc): ...this.
1330 (x86_set_pc): Turn into...
1331 (x86_target::low_set_pc): ...this.
1332 (the_low_target): Remove the op fields.
1333 * linux-arm-low.cc (class arm_target)
1334 <low_supports_breakpoints>
1335 <low_get_pc>
1336 <low_set_pc>: Declare.
1337 (arm_target::low_supports_breakpoints)
1338 (arm_target::low_get_pc)
1339 (arm_target::low_set_pc): Define.
1340 (the_low_target): Remove the op fields.
1341 * linux-bfin-low.cc (class bfin_target)
1342 <low_supports_breakpoints>
1343 <low_get_pc>
1344 <low_set_pc>: Declare.
1345 (bfin_target::low_supports_breakpoints)
1346 (bfin_target::low_get_pc)
1347 (bfin_target::low_set_pc): Define.
1348 (the_low_target): Remove the op fields.
1349 * linux-cris-low.cc (class cris_target)
1350 <low_supports_breakpoints>
1351 <low_get_pc>
1352 <low_set_pc>: Declare.
1353 (cris_target::low_supports_breakpoints)
1354 (cris_target::low_get_pc)
1355 (cris_target::low_set_pc): Define.
1356 (the_low_target): Remove the op fields.
1357 * linux-crisv32-low.cc (class crisv32_target)
1358 <low_supports_breakpoints>
1359 <low_get_pc>
1360 <low_set_pc>: Declare.
1361 (crisv32_target::low_supports_breakpoints)
1362 (crisv32_target::low_get_pc)
1363 (crisv32_target::low_set_pc): Define.
1364 (the_low_target): Remove the op fields.
1365 * linux-m32r-low.cc (class m32r_target)
1366 <low_supports_breakpoints>
1367 <low_get_pc>
1368 <low_set_pc>: Declare.
1369 (m32r_target::low_supports_breakpoints)
1370 (m32r_target::low_get_pc)
1371 (m32r_target::low_set_pc): Define.
1372 (the_low_target): Remove the op fields.
1373 * linux-m68k-low.cc (class m68k_target)
1374 <low_supports_breakpoints>
1375 <low_get_pc>
1376 <low_set_pc>: Declare.
1377 (m68k_target::low_supports_breakpoints)
1378 (m68k_target::low_get_pc)
1379 (m68k_target::low_set_pc): Define.
1380 (the_low_target): Remove the op fields.
1381 * linux-nios2-low.cc (class nios2_target)
1382 <low_supports_breakpoints>
1383 <low_get_pc>
1384 <low_set_pc>: Declare.
1385 (nios2_target::low_supports_breakpoints)
1386 (nios2_target::low_get_pc)
1387 (nios2_target::low_set_pc): Define.
1388 (the_low_target): Remove the op fields.
1389 * linux-sh-low.cc (class sh_target)
1390 <low_supports_breakpoints>
1391 <low_get_pc>
1392 <low_set_pc>: Declare.
1393 (sh_target::low_supports_breakpoints)
1394 (sh_target::low_get_pc)
1395 (sh_target::low_set_pc): Define.
1396 (the_low_target): Remove the op fields.
1397 * linux-xtensa-low.cc (class xtensa_target)
1398 <low_supports_breakpoints>
1399 <low_get_pc>
1400 <low_set_pc>: Declare.
1401 (xtensa_target::low_supports_breakpoints)
1402 (xtensa_target::low_get_pc)
1403 (xtensa_target::low_set_pc): Define.
1404 (the_low_target): Remove the op fields.
1405 * linux-sparc-low.cc (class sparc_target)
1406 <low_supports_breakpoints>
1407 <low_get_pc>: Declare.
1408 (sparc_target::low_supports_breakpoints)
1409 (sparc_target::low_get_pc): Define.
1410 (the_low_target): Remove the op fields.
1411 * linux-tile-low.cc (class tile_target)
1412 <low_supports_breakpoints>
1413 <low_get_pc>
1414 <low_set_pc>: Declare.
1415 (tile_target::low_supports_breakpoints)
1416 (tile_target::low_get_pc)
1417 (tile_target::low_set_pc): Define.
1418 (the_low_target): Remove the op fields.
1419 * linux-aarch64-low.cc (class aarch64_target)
1420 <low_supports_breakpoints>
1421 <low_get_pc>
1422 <low_set_pc>: Declare.
1423 (aarch64_target::low_supports_breakpoints): Define.
1424 (aarch64_get_pc): Turn into...
1425 (aarch64_target::low_get_pc): ...this.
1426 (aarch64_set_pc): Turn into...
1427 (aarch64_target::low_set_pc): ...this.
1428 (the_low_target): Remove the op fields.
1429 * linux-mips-low.cc (class mips_target)
1430 <low_supports_breakpoints>
1431 <low_get_pc>
1432 <low_set_pc>: Declare.
1433 (mips_target::low_supports_breakpoints): Define.
1434 (mips_get_pc): Turn into...
1435 (mips_target::low_get_pc): ...this.
1436 (mips_set_pc): Turn into...
1437 (mips_target::low_set_pc): ...this.
1438 (the_low_target): Remove the op fields.
1439 * linux-ppc-low.cc (class ppc_target)
1440 <low_supports_breakpoints>
1441 <low_get_pc>
1442 <low_set_pc>: Declare.
1443 (ppc_target::low_supports_breakpoints): Define.
1444 (ppc_get_pc): Turn into...
1445 (ppc_target::low_get_pc): ...this.
1446 (ppc_set_pc): Turn into...
1447 (ppc_target::low_set_pc): ...this.
1448 (the_low_target): Remove the op fields.
1449 * linux-riscv-low.cc (class riscv_target)
1450 <low_supports_breakpoints>
1451 <low_get_pc>
1452 <low_set_pc>: Declare.
1453 (riscv_target::low_supports_breakpoints): Define.
1454 (riscv_get_pc): Turn into...
1455 (riscv_target::low_get_pc): ...this.
1456 (riscv_set_pc): Turn into...
1457 (riscv_target::low_set_pc): ...this.
1458 (the_low_target): Remove the op fields.
1459 * linux-s390-low.cc (class s390_target)
1460 <low_supports_breakpoints>
1461 <low_get_pc>
1462 <low_set_pc>: Declare.
1463 (s390_target::low_supports_breakpoints): Define.
1464 (s390_get_pc): Turn into...
1465 (s390_target::low_get_pc): ...this.
1466 (s390_set_pc): Turn into...
1467 (s390_target::low_set_pc): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-tic6x-low.cc (class tic6x_target)
1470 <low_supports_breakpoints>
1471 <low_get_pc>
1472 <low_set_pc>: Declare.
1473 (tic6x_target::low_supports_breakpoints): Define.
1474 (tic6x_get_pc): Turn into...
1475 (tic6x_target::low_get_pc): ...this.
1476 (tic6x_set_pc): Turn into...
1477 (tic6x_target::low_set_pc): ...this.
1478 (the_low_target): Remove the op fields.
1479
df95181f
TBA
14802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1481
1482 Turn some more static methods in linux-low into private methods
1483 of linux_process_target.
1484
1485 * linux-low.cc (get_pc): Turn into...
1486 (linux_process_target::get_pc): ...this.
1487 (save_stop_reason): Turn into...
1488 (linux_process_target::save_stop_reason): ...this.
1489 (thread_still_has_status_pending_p): Turn into...
1490 (linux_process_target::thread_still_has_status_pending): ...this.
1491 (status_pending_p_callback): Turn into...
1492 (linux_process_target::status_pending_p_callback): ...this.
1493 (resume_stopped_resumed_lwps): Turn into...
1494 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1495 (install_software_single_step_breakpoints): Turn into...
1496 (linux_process_target::install_software_single_step_breakpoints):
1497 ...this.
1498 (single_step): Turn into...
1499 (linux_process_target::single_step): ...this.
1500 (linux_resume_one_lwp_throw): Turn into...
1501 (linux_process_target::resume_one_lwp_throw): ...this.
1502 (linux_resume_one_lwp): Turn into...
1503 (linux_process_target::resume_one_lwp): ...this.
1504 (resume_status_pending_p): Turn into...
1505 (linux_process_target::resume_status_pending): ...this.
1506 (need_step_over_p): Turn into...
1507 (linux_process_target::thread_needs_step_over): ...this.
1508 (linux_resume_one_thread): Turn into...
1509 (linux_process_target::resume_one_thread): ...this.
1510 (proceed_one_lwp): Turn into...
1511 (linux_process_target::proceed_one_lwp): ...this.
1512 (unsuspend_and_proceed_one_lwp): Turn into...
1513 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1514
1515 Update the calls/references to the above functions below.
1516
1517 (linux_process_target::handle_extended_wait)
1518 (linux_process_target::filter_event)
1519 (linux_process_target::wait_for_event_filtered)
1520 (linux_process_target::wait_1)
1521 (linux_process_target::move_out_of_jump_pad)
1522 (linux_process_target::start_step_over)
1523 (linux_process_target::resume)
1524 (linux_process_target::proceed_all_lwps)
1525 (regsets_store_inferior_registers)
1526 (linux_process_target::store_register)
1527
1528 * linux-low.h (class linux_process_target)
1529 <get_pc>
1530 <save_stop_reason>
1531 <thread_still_has_status_pending>
1532 <status_pending_p_callback>
1533 <resume_stopped_resumed_lwps>
1534 <install_software_single_step_breakpoints>
1535 <single_step>
1536 <resume_one_lwp_throw>
1537 <resume_one_lwp>
1538 <resume_status_pending>
1539 <thread_needs_step_over>
1540 <resume_one_thread>
1541 <proceed_one_lwp>
1542 <unsuspend_and_proceed_one_lwp>: Declare.
1543
bd70b1f2
TBA
15442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545
1546 Turn the 'fetch_register' linux target op into a method of
1547 linux_process_target.
1548
1549 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1550 (class linux_process_target) <low_fetch_register>: Declare.
1551 * linux-x86-low.cc (the_low_target)
1552 * linux-aarch64-low.cc (the_low_target)
1553 * linux-arm-low.cc (the_low_target)
1554 * linux-bfin-low.cc (the_low_target)
1555 * linux-cris-low.cc (the_low_target)
1556 * linux-crisv32-low.cc (the_low_target)
1557 * linux-m32r-low.cc (the_low_target)
1558 * linux-m68k-low.cc (the_low_target)
1559 * linux-nios2-low.cc (the_low_target)
1560 * linux-ppc-low.cc (the_low_target)
1561 * linux-s390-low.cc (the_low_target)
1562 * linux-sh-low.cc (the_low_target)
1563 * linux-sparc-low.cc (the_low_target)
1564 * linux-tic6x-low.cc (the_low_target)
1565 * linux-tile-low.cc (the_low_target)
1566 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1567 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1568 Declare.
1569 (ia64_fetch_register): Turn into...
1570 (ia64_target::low_fetch_register): ...this.
1571 (the_low_target): Remove the op field.
1572 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1573 Declare.
1574 (mips_fetch_register): Turn into...
1575 (mips_target::low_fetch_register): ...this.
1576 (the_low_target): Remove the op field.
1577 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1578 Declare.
1579 (riscv_fetch_register): Turn into...
1580 (riscv_target::low_fetch_register): ...this.
1581 (the_low_target): Remove the op field.
1582
1583 Update the callers below.
1584
1585 * linux-low.cc (linux_process_target::fetch_registers)
1586 (linux_process_target::low_fetch_register)
1587
daca57a7
TBA
15882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1589
1590 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1591 linux target ops into methods of linux_process_target.
1592
1593 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1594 (class linux_process_target) <fetch_register>
1595 <store_register>
1596 <usr_fetch_inferior_registers>
1597 <usr_store_inferior_registers>
1598 <low_cannot_fetch_register>
1599 <low_cannot_fetch_register> Declare.
1600 * linux-low.cc (fetch_register): Turn into...
1601 (linux_process_target::fetch_register): ...this.
1602 (store_register): Turn into ...
1603 (linux_process_target::store_register): ...this.
1604 (usr_fetch_inferior_registers): Turn into...
1605 (linux_process_target::usr_fetch_inferior_registers): ...this.
1606 (usr_store_inferior_registers): Turn into...
1607 (linux_process_target::usr_store_inferior_registers): ...this.
1608 * linux-x86-low.cc (class x86_target)
1609 <low_cannot_fetch_register>
1610 <low_cannot_store_register>: Declare.
1611 (x86_cannot_store_register): Turn into...
1612 (x86_target::low_cannot_store_register): ...this.
1613 (x86_cannot_fetch_register): Turn into...
1614 (x86_target::low_cannot_fetch_register): ...this.
1615 (the_low_target): Remove the target op fields.
1616 * linux-aarch64-low.cc (class aarch64_target)
1617 <low_cannot_fetch_register>
1618 <low_cannot_store_register>: Declare.
1619 (aarch64_target::low_cannot_fetch_register)
1620 (aarch64_target::low_cannot_store_register): Define.
1621 (the_low_target): Remove the op fields.
1622 * linux-arm-low.cc (class arm_target)
1623 <low_cannot_fetch_register>
1624 <low_cannot_store_register>: Declare.
1625 (arm_cannot_fetch_register): Turn into...
1626 (arm_target::low_cannot_fetch_register): ...this.
1627 (arm_cannot_store_register): Turn into...
1628 (arm_target::low_cannot_store_register): ...this.
1629 (the_low_target): Remove the op fields.
1630 * linux-bfin-low.cc (class bfin_target)
1631 <low_cannot_fetch_register>
1632 <low_cannot_store_register>: Declare.
1633 (bfin_cannot_fetch_register): Turn into...
1634 (bfin_target::low_cannot_fetch_register): ...this.
1635 (bfin_cannot_store_register): Turn into...
1636 (bfin_target::low_cannot_store_register): ...this.
1637 (the_low_target): Remove the op fields.
1638 * linux-cris-low.cc (class cris_target)
1639 <low_cannot_fetch_register>
1640 <low_cannot_store_register>: Declare.
1641 (cris_cannot_fetch_register): Turn into...
1642 (cris_target::low_cannot_fetch_register): ...this.
1643 (cris_cannot_store_register): Turn into...
1644 (cris_target::low_cannot_store_register): ...this.
1645 (the_low_target): Remove the op fields.
1646 * linux-crisv32-low.cc (class crisv32_target)
1647 <low_cannot_fetch_register>
1648 <low_cannot_store_register>: Declare.
1649 (crisv32_target::low_cannot_fetch_register)
1650 (crisv32_target::low_cannot_store_register): Define.
1651 (the_low_target): Remove the op fields.
1652 * linux-ia64-low.cc (class ia64_target)
1653 <low_cannot_fetch_register>
1654 <low_cannot_store_register>: Declare.
1655 (ia64_cannot_fetch_register): Turn into...
1656 (ia64_target::low_cannot_fetch_register): ...this.
1657 (ia64_cannot_store_register): Turn into...
1658 (ia64_target::low_cannot_store_register): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-m32r-low.cc (class m32r_target)
1661 <low_cannot_fetch_register>
1662 <low_cannot_store_register>: Declare.
1663 (m32r_cannot_fetch_register): Turn into...
1664 (m32r_target::low_cannot_fetch_register): ...this.
1665 (m32r_cannot_store_register): Turn into...
1666 (m32r_target::low_cannot_store_register): ...this.
1667 (the_low_target): Remove the op fields.
1668 * linux-m68k-low.cc (class m68k_target)
1669 <low_cannot_fetch_register>
1670 <low_cannot_store_register>: Declare.
1671 (m68k_cannot_fetch_register): Turn into...
1672 (m68k_target::low_cannot_fetch_register): ...this.
1673 (m68k_cannot_store_register): Turn into...
1674 (m68k_target::low_cannot_store_register): ...this.
1675 (the_low_target): Remove the op fields.
1676 * linux-mips-low.cc (class mips_target)
1677 <low_cannot_fetch_register>
1678 <low_cannot_store_register>: Declare.
1679 (mips_cannot_fetch_register): Turn into...
1680 (mips_target::low_cannot_fetch_register): ...this.
1681 (mips_cannot_store_register): Turn into...
1682 (mips_target::low_cannot_store_register): ...this.
1683 (get_usrregs_info): Inline at the call sites in
1684 low_cannot_fetch_register and low_cannot_store_register,
1685 and remove.
1686 (the_low_target): Remove the op fields.
1687 * linux-nios2-low.cc (class nios2_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (nios2_cannot_fetch_register): Turn into...
1691 (nios2_target::low_cannot_fetch_register): ...this.
1692 (nios2_cannot_store_register): Turn into...
1693 (nios2_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-ppc-low.cc (class ppc_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (ppc_cannot_fetch_register): Turn into...
1699 (ppc_target::low_cannot_fetch_register): ...this.
1700 (ppc_cannot_store_register): Turn into...
1701 (ppc_target::low_cannot_store_register): ...this.
1702 (the_low_target): Remove the op fields.
1703 * linux-riscv-low.cc (class riscv_target)
1704 <low_cannot_fetch_register>
1705 <low_cannot_store_register>: Declare.
1706 (riscv_target::low_cannot_fetch_register)
1707 (riscv_target::low_cannot_store_register): Define.
1708 (the_low_target): Remove the op fields.
1709 * linux-s390-low.cc (class s390_target)
1710 <low_cannot_fetch_register>
1711 <low_cannot_store_register>: Declare.
1712 (s390_cannot_fetch_register): Turn into...
1713 (s390_target::low_cannot_fetch_register): ...this.
1714 (s390_cannot_store_register): Turn into...
1715 (s390_target::low_cannot_store_register): ...this.
1716 (the_low_target): Remove the op fields.
1717 * linux-sh-low.cc (class sh_target)
1718 <low_cannot_fetch_register>
1719 <low_cannot_store_register>: Declare.
1720 (sh_cannot_fetch_register): Turn into...
1721 (sh_target::low_cannot_fetch_register): ...this.
1722 (sh_cannot_store_register): Turn into...
1723 (sh_target::low_cannot_store_register): ...this.
1724 (the_low_target): Remove the op fields.
1725 * linux-sparc-low.cc (class sparc_target)
1726 <low_cannot_fetch_register>
1727 <low_cannot_store_register>: Declare.
1728 (sparc_cannot_fetch_register): Turn into...
1729 (sparc_target::low_cannot_fetch_register): ...this.
1730 (sparc_cannot_store_register): Turn into...
1731 (sparc_target::low_cannot_store_register): ...this.
1732 (the_low_target): Remove the op fields.
1733 * linux-tic6x-low.cc (class tic6x_target)
1734 <low_cannot_fetch_register>
1735 <low_cannot_store_register>: Declare.
1736 (tic6x_cannot_fetch_register): Turn into...
1737 (tic6x_target::low_cannot_fetch_register): ...this.
1738 (tic6x_cannot_store_register): Turn into...
1739 (tic6x_target::low_cannot_store_register): ...this.
1740 (the_low_target): Remove the op fields.
1741 * linux-tile-low.cc (class tile_target)
1742 <low_cannot_fetch_register>
1743 <low_cannot_store_register>: Declare.
1744 (tile_cannot_fetch_register): Turn into...
1745 (tile_target::low_cannot_fetch_register): ...this.
1746 (tile_cannot_store_register): Turn into...
1747 (tile_target::low_cannot_store_register): ...this.
1748 (the_low_target): Remove the op fields.
1749 * linux-xtensa-low.cc (class xtensa_target)
1750 <low_cannot_fetch_register>
1751 <low_cannot_store_register>: Declare.
1752 (xtensa_target::low_cannot_fetch_register)
1753 (xtensa_target::low_cannot_store_register): Define.
1754 (the_low_target): Remove the op fields.
1755
aa8d21c9
TBA
17562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757
1758 Turn the 'regs_info' linux target op into a method of
1759 linux_process_target.
1760
1761 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1762 (class linux_process_target) <get_regs_info>: Define.
1763
1764 Update the callers below.
1765
1766 * linux-low.cc (linux_process_target::fetch_registers)
1767 (linux_process_target::store_registers)
1768 * proc-service.cc (gregset_info)
1769
1770 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1771 (x86_linux_regs_info): Turn into ...
1772 (x86_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1775 Declare.
1776 (aarch64_regs_info): Turn into ...
1777 (aarch64_target::get_regs_info): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1780 (arm_regs_info): Turn into ...
1781 (arm_target::get_regs_info): ...this.
1782 (the_low_target): Remove the op field.
1783 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1784 (bfin_regs_info): Turn into ...
1785 (bfin_target::get_regs_info): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1788 (cris_regs_info): Turn into ...
1789 (cris_target::get_regs_info): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1792 Declare.
1793 (crisv32_regs_info): Turn into ...
1794 (crisv32_target::get_regs_info): ...this.
1795 (the_low_target): Remove the op field.
1796 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1797 (ia64_regs_info): Turn into ...
1798 (ia64_target::get_regs_info): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1801 (m32r_regs_info): Turn into ...
1802 (m32r_target::get_regs_info): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1805 (m68k_regs_info): Turn into ...
1806 (m68k_target::get_regs_info): ...this.
1807 (the_low_target): Remove the op field.
1808 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1809 (mips_regs_info): Turn into ...
1810 (mips_target::get_regs_info): ...this.
1811 (the_low_target): Remove the op field.
1812 (get_usrregs_info): Update the call to the op.
1813 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1814 (nios2_regs_info): Turn into ...
1815 (nios2_target::get_regs_info): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1818 (ppc_regs_info): Turn into ...
1819 (ppc_target::get_regs_info): ...this.
1820 (the_low_target): Remove the op field.
1821 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1822 (riscv_regs_info): Turn into ...
1823 (riscv_target::get_regs_info): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1826 (s390_regs_info): Turn into ...
1827 (s390_target::get_regs_info): ...this.
1828 (the_low_target): Remove the op field.
1829 (s390_collect_ptrace_register)
1830 (s390_supply_ptrace_register)
1831 (s390_fill_gregset): Update the call to the op.
1832 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1833 (sh_regs_info): Turn into ...
1834 (sh_target::get_regs_info): ...this.
1835 (the_low_target): Remove the op field.
1836 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1837 (sparc_regs_info): Turn into ...
1838 (sparc_target::get_regs_info): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1841 (tic6x_regs_info): Turn into ...
1842 (tic6x_target::get_regs_info): ...this.
1843 (the_low_target): Remove the op field.
1844 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1845 (tile_regs_info): Turn into ...
1846 (tile_target::get_regs_info): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1849 Declare.
1850 (xtensa_regs_info): Turn into ...
1851 (xtensa_target::get_regs_info): ...this.
1852 (the_low_target): Remove the op field.
1853
797bcff5
TBA
18542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1855
1856 Turn the 'arch_setup' linux target op into a method of
1857 linux_process_target.
1858
1859 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1860 (class linux_process_target) <arch_setup_thread>
1861 <low_arch_setup>: New declarations.
1862 * linux-low.cc (linux_arch_setup): Delete.
1863 (linux_arch_setup_thread): Turn into...
1864 (linux_process_target::arch_setup_thread): ... this.
1865
1866 Update the callers below.
1867
1868 (linux_process_target::handle_extended_wait)
1869 (linux_process_target::post_create_inferior)
1870 (linux_process_target::filter_event)
1871
1872 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1873 declaration.
1874 (x86_linux_update_xmltarget): Turn into...
1875 (x86_target::update_xmltarget): ...this.
1876 (x86_linux_process_qsupported): Update the call to
1877 x86_linux_update_xmltarget.
1878 (x86_arch_setup): Turn into ...
1879 (x86_target::low_arch_setup): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1882 declaration.
1883 (aarch64_arch_setup): Turn into ...
1884 (aarch64_target::low_arch_setup): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1887 declaration.
1888 (arm_arch_setup): Turn into ...
1889 (arm_target::low_arch_setup): ...this.
1890 (the_low_target): Remove the op field.
1891 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1892 declaration.
1893 (bfin_arch_setup): Turn into ...
1894 (bfin_target::low_arch_setup): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1897 declaration.
1898 (cris_arch_setup): Turn into ...
1899 (cris_target::low_arch_setup): ...this.
1900 (the_low_target): Remove the op field.
1901 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1902 declaration.
1903 (crisv32_arch_setup): Turn into ...
1904 (crisv32_target::low_arch_setup): ...this.
1905 (the_low_target): Remove the op field.
1906 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1907 declaration.
1908 (ia64_arch_setup): Turn into ...
1909 (ia64_target::low_arch_setup): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1912 declaration.
1913 (m32r_arch_setup): Turn into ...
1914 (m32r_target::low_arch_setup): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1917 declaration.
1918 (m68k_arch_setup): Turn into ...
1919 (m68k_target::low_arch_setup): ...this.
1920 (the_low_target): Remove the op field.
1921 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1922 declaration.
1923 (mips_arch_setup): Turn into ...
1924 (mips_target::low_arch_setup): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1927 declaration.
1928 (nios2_arch_setup): Turn into ...
1929 (nios2_target::low_arch_setup): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1932 declaration.
1933 (ppc_arch_setup): Turn into ...
1934 (ppc_target::low_arch_setup): ...this.
1935 (the_low_target): Remove the op field.
1936 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1937 declaration.
1938 (riscv_arch_setup): Turn into ...
1939 (riscv_target::low_arch_setup): ...this.
1940 (the_low_target): Remove the op field.
1941 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1942 declaration.
1943 (s390_arch_setup): Turn into ...
1944 (s390_target::low_arch_setup): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1947 declaration.
1948 (sh_arch_setup): Turn into ...
1949 (sh_target::low_arch_setup): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1952 declaration.
1953 (sparc_arch_setup): Turn into ...
1954 (sparc_target::low_arch_setup): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1957 declaration.
1958 (tic6x_arch_setup): Turn into ...
1959 (tic6x_target::low_arch_setup): ...this.
1960 (the_low_target): Remove the op field.
1961 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1962 declaration.
1963 (tile_arch_setup): Turn into ...
1964 (tile_target::low_arch_setup): ...this.
1965 (the_low_target): Remove the op field.
1966 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1967 declaration.
1968 (xtensa_arch_setup): Turn into ...
1969 (xtensa_target::low_arch_setup): ...this.
1970 (the_low_target): Remove the op field.
1971
ef0478f6
TBA
19722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1973
1974 * linux-low.h (the_linux_target): New extern declaration.
1975 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1976 'the_target'.
1977 (the_linux_target): Remove.
1978 * linux-x86-low.cc (class x86_target): New class.
1979 (the_x86_target): New static object.
1980 (the_linux_target): Define as pointer to the_x86_target.
1981 * linux-aarch64-low.cc (class aarch64_target): New class.
1982 (the_aarch64_target): New static object.
1983 (the_linux_target): Define as pointer to the_aarch64_target.
1984 * linux-arm-low.cc (class arm_target): New class.
1985 (the_arm_target): New static object.
1986 (the_linux_target): Define as pointer to the_arm_target.
1987 * linux-bfin-low.cc (class bfin_target): New class.
1988 (the_bfin_target): New static object.
1989 (the_linux_target): Define as pointer to the_bfin_target.
1990 * linux-cris-low.cc (class cris_target): New class.
1991 (the_cris_target): New static object.
1992 (the_linux_target): Define as pointer to the_cris_target.
1993 * linux-crisv32-low.cc (class crisv32_target): New class.
1994 (the_crisv32_target): New static object.
1995 (the_linux_target): Define as pointer to the_crisv32_target.
1996 * linux-ia64-low.cc (class ia64_target): New class.
1997 (the_ia64_target): New static object.
1998 (the_linux_target): Define as pointer to the_ia64_target.
1999 * linux-m32r-low.cc (class m32r_target): New class.
2000 (the_m32r_target): New static object.
2001 (the_linux_target): Define as pointer to the_m32r_target.
2002 * linux-m68k-low.cc (class m68k_target): New class.
2003 (the_m68k_target): New static object.
2004 (the_linux_target): Define as pointer to the_m68k_target.
2005 * linux-mips-low.cc (class mips_target): New class.
2006 (the_mips_target): New static object.
2007 (the_linux_target): Define as pointer to the_mips_target.
2008 * linux-nios2-low.cc (class nios2_target): New class.
2009 (the_nios2_target): New static object.
2010 (the_linux_target): Define as pointer to the_nios2_target.
2011 * linux-ppc-low.cc (class ppc_target): New class.
2012 (the_ppc_target): New static object.
2013 (the_linux_target): Define as pointer to the_ppc_target.
2014 * linux-riscv-low.cc (class riscv_target): New class.
2015 (the_riscv_target): New static object.
2016 (the_linux_target): Define as pointer to the_riscv_target.
2017 * linux-s390-low.cc (class s390_target): New class.
2018 (the_s390_target): New static object.
2019 (the_linux_target): Define as pointer to the_s390_target.
2020 * linux-sh-low.cc (class sh_target): New class.
2021 (the_sh_target): New static object.
2022 (the_linux_target): Define as pointer to the_sh_target.
2023 * linux-sparc-low.cc (class sparc_target): New class.
2024 (the_sparc_target): New static object.
2025 (the_linux_target): Define as pointer to the_sparc_target.
2026 * linux-tic6x-low.cc (class tic6x_target): New class.
2027 (the_tic6x_target): New static object.
2028 (the_linux_target): Define as pointer to the_tic6x_target.
2029 * linux-tile-low.cc (class tile_target): New class.
2030 (the_tile_target): New static object.
2031 (the_linux_target): Define as pointer to the_tile_target.
2032 * linux-xtensa-low.cc (class xtensa_target): New class.
2033 (the_xtensa_target): New static object.
2034 (the_linux_target): Define as pointer to the_xtensa_target.
2035
d16f3f6c
TBA
20362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2037
2038 Turn some static functions in linux-low.cc into private methods of
2039 linux_process_target.
2040
2041 * linux-low.cc (handle_extended_wait): Turn into ...
2042 (linux_process_target::handle_extended_wait): ...this. Call
2043 'mourn' on 'this' object instead of 'the_target'.
2044 (maybe_move_out_of_jump_pad): Turn into...
2045 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2046 (linux_low_filter_event): Turn into...
2047 (linux_process_target::filter_event): ...this.
2048 (linux_wait_for_event_filtered): Turn into...
2049 (linux_process_target::wait_for_event_filtered): ...this.
2050 (linux_wait_for_event): Turn into...
2051 (linux_process_target::wait_for_event): ...this.
2052 (linux_wait_1): Turn into...
2053 (linux_process_target::wait_1): ...this.
2054 (wait_for_sigstop): Turn into...
2055 (linux_process_target::wait_for_sigstop): ...this.
2056 (move_out_of_jump_pad_callback): Turn into...
2057 (linux_process_target::move_out_of_jump_pad): ...this.
2058 (stop_all_lwps): Turn into...
2059 (linux_process_target::stop_all_lwps): ...this.
2060 (start_step_over): Turn into...
2061 (linux_process_target::start_step_over): ...this.
2062 (complete_ongoing_step_over): Turn into...
2063 (linux_process_target::complete_ongoing_step_over): ...this.
2064 (proceed_all_lwps): Turn into...
2065 (linux_process_target::proceed_all_lwps): ...this.
2066 (unstop_all_lwps): Turn into...
2067 (linux_process_target::unstop_all_lwps): ...this.
2068
2069 * linux-low.h (class linux_process_target)
2070 <handle_extended_wait>
2071 <maybe_move_out_of_jump_pad>
2072 filter_event>
2073 <wait_for_event_filtered>
2074 <wait_for_event>
2075 <wait_1>
2076 <wait_for_sigstop>
2077 <move_out_of_jump_pad>
2078 <stop_all_lwps>
2079 <start_step_over>
2080 <complete_ongoing_step_over>
2081 <proceed_all_lwps>
2082 <unstop_all_lwps>: Declare.
2083
2084 Update the callers below.
2085
2086 * linux-low.cc (linux_process_target::attach): Update.
2087 (linux_process_target::stabilize_threads): Ditto.
2088 (linux_process_target::wait): Ditto.
2089
a5863204
TBA
20902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2091
2092 * linux-low.h (struct linux_target_ops): Update the comment for
2093 'cannot_store_register' to return 0 or 1.
2094 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2095 of 2.
2096
c884cc46
SM
20972020-03-20 Simon Marchi <simon.marchi@efficios.com>
2098
2099 * config.in: Re-generate.
2100 * configure: Re-generate.
2101
5a82b8a1
KR
21022020-03-17 Kamil Rytarowski <n54@gmx.com>
2103
2104 * regcache.cc (find_register_by_number): Update.
2105 * tdesc.cc (init_target_desc): Likewise.
2106 * tdesc.h (target_desc::reg_defs): Likewise.
2107
4635ff97
TT
21082020-03-12 Tom Tromey <tom@tromey.com>
2109
2110 * configure: Rebuild.
2111 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2112 (WIN32APILIBS): New subst.
2113 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2114 gdbsupport files.
2115 (gdbsupport/%.o): Remove target.
2116 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2117 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2118 (WIN32APILIBS): New variable.
2119 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2120 (gdbreplay$(EXEEXT)): Likewise.
2121
9a665d62
TT
21222020-03-12 Tom Tromey <tom@tromey.com>
2123
2124 * config.in, configure: Rebuild.
2125 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2126 * acinclude.m4: Include gettext-sister.m4.
2127 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2128 variables.
2129 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2130 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2131
272cd5a3
SM
21322020-03-12 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * acinclude.m4: Update path to selftest.m4.
2135
db6878ac
SM
21362020-03-12 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * configure.ac: Don't source bfd/development.sh, move
2139 GDB_AC_COMMON higher.
2140 * configure: Re-generate.
2141
4d696a5c
SM
21422020-03-12 Simon Marchi <simon.marchi@efficios.com>
2143
2144 * configure: Re-generate.
2145
a0761e34
SM
21462020-03-11 Simon Marchi <simon.marchi@efficios.com>
2147
2148 * configure: Re-generate.
2149
20ea4a60
AB
21502020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * .dir-locals.el: New file.
2153
842806cb
TBA
21542020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2155
2156 * .gitattributes: New file.
2157
442131c1
AB
21582020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2161 reply into an S reply.
2162 * server.cc (disable_packet_T): New global.
2163 (captured_main): Set new global when appropriate.
2164 * server.h (disable_packet_T): Declare.
2165
dda42c0b
TT
21662020-02-21 Tom Tromey <tom@tromey.com>
2167
2168 * Makefile.in (mostlyclean): New target.
2169
52405d85
TBA
21702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2171
2172 * target.h (struct process_stratum_target): Remove.
2173 (class process_target): Rename to ...
2174 (class process_stratum_target): ... this.
2175 * linux-low.h (class linux_process_target): Derive from
2176 'process_stratum_target'.
2177 * linux-low.cc (linux_target_ops): Remove.
2178 (initialize_low): Set the_target to the singleton instance of
2179 linux_process_target.
2180 * lynx-low.h (class lynx_process_target): Derive from
2181 'process_stratum_target'.
2182 * lynx-low.cc (lynx_target_ops): Remove.
2183 (initialize_low): Set the_target to the singleton instance of
2184 lynx_process_target.
2185 * nto-low.h (class nto_process_target): Derive from
2186 'process_stratum_target'.
2187 * nto-low.cc (nto_target_ops): Remove.
2188 (initialize_low): Set the_target to the singleton instance of
2189 nto_process_target.
2190 * win32-low.h (class win32_process_target): Derive from
2191 'process_stratum_target'.
2192 * win32-low.cc (win32_target_ops): Remove.
2193 (initialize_low): Set the_target to the singleton instance of
2194 win32_process_target.
2195
2196 Replace 'the_target->pt' with 'the_target' in the uses below.
2197
2198 * hostio.cc (hostio_error)
2199 (handle_setfs)
2200 (handle_open)
2201 (handle_unlink)
2202 (handle_readlink)
2203 * linux-aarch32-low.cc (arm_breakpoint_at)
2204 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2205 * linux-arm-low.cc (arm_sigreturn_next_pc)
2206 (arm_get_hwcap)
2207 (arm_get_syscall_trapinfo)
2208 * linux-cris-low.cc (cris_breakpoint_at)
2209 * linux-crisv32-low.cc (cris_breakpoint_at)
2210 * linux-low.cc (handle_extended_wait)
2211 (linux_wait_1)
2212 (linux_read_memory)
2213 (linux_process_target::breakpoint_kind_from_pc)
2214 (linux_get_auxv)
2215 * linux-m32r-low.cc (m32r_breakpoint_at)
2216 * linux-mips-low.cc (mips_breakpoint_at)
2217 * linux-nios2-low.cc (nios2_breakpoint_at)
2218 * linux-ppc-low.cc (ppc_breakpoint_at)
2219 * linux-s390-low.cc (s390_get_hwcap)
2220 * linux-sh-low.cc (sh_breakpoint_at)
2221 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2222 (sparc_store_gregset_from_stack)
2223 (sparc_breakpoint_at)
2224 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2225 * linux-tile-low.cc (tile_breakpoint_at)
2226 * linux-x86-low.cc (x86_breakpoint_at)
2227 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2228 * mem-break.cc (bp_size)
2229 (bp_opcode)
2230 (insert_memory_breakpoint)
2231 (set_raw_breakpoint_at)
2232 (delete_raw_breakpoint)
2233 (z_type_supported)
2234 (uninsert_raw_breakpoint)
2235 (reinsert_raw_breakpoint)
2236 (validate_inserted_breakpoint)
2237 * regcache.cc (regcache_read_pc)
2238 (regcache_write_pc)
2239 * remote-utils.cc (putpkt_binary_1)
2240 (input_interrupt)
2241 (getpkt)
2242 (prepare_resume_reply)
2243 * server.cc (handle_general_set)
2244 (handle_detach)
2245 (handle_qxfer_auxv)
2246 (handle_qxfer_exec_file)
2247 (handle_qxfer_libraries_svr4)
2248 (handle_qxfer_osdata)
2249 (handle_qxfer_siginfo)
2250 (handle_qxfer_fdpic)
2251 (handle_query)
2252 (resume)
2253 (handle_v_requests)
2254 (queue_stop_reply_callback)
2255 (captured_main)
2256 * target.cc (prepare_to_access_memory)
2257 (done_accessing_memory)
2258 (read_inferior_memory)
2259 (target_write_memory)
2260 (target_stop_and_wait)
2261 (target_wait)
2262 (target_mourn_inferior)
2263 (target_continue_no_signal)
2264 (target_continue)
2265 (target_supports_multi_process)
2266 (kill_inferior)
2267 * target.h
2268 (target_create_inferior)
2269 (target_post_create_inferior)
2270 (myattach)
2271 (target_supports_fork_events)
2272 (target_supports_vfork_events)
2273 (target_supports_exec_events)
2274 (target_handle_new_gdb_connection)
2275 (detach_inferior)
2276 (mythread_alive)
2277 (fetch_inferior_registers)
2278 (store_inferior_registers)
2279 (join_inferior)
2280 (target_supports_non_stop)
2281 (target_async)
2282 (target_process_qsupported)
2283 (target_supports_catch_syscall)
2284 (target_get_ipa_tdesc_idx)
2285 (target_supports_tracepoints)
2286 (target_supports_fast_tracepoints)
2287 (target_get_min_fast_tracepoint_insn_len)
2288 (target_thread_stopped)
2289 (target_pause_all)
2290 (target_unpause_all)
2291 (target_stabilize_threads)
2292 (target_install_fast_tracepoint_jump_pad)
2293 (target_emit_ops)
2294 (target_supports_disable_randomization)
2295 (target_supports_agent)
2296 (target_enable_btrace)
2297 (target_disable_btrace)
2298 (target_read_btrace)
2299 (target_read_btrace_conf)
2300 (target_supports_range_stepping)
2301 (target_supports_stopped_by_sw_breakpoint)
2302 (target_stopped_by_sw_breakpoint)
2303 (target_supports_stopped_by_hw_breakpoint)
2304 (target_supports_hardware_single_step)
2305 (target_stopped_by_hw_breakpoint)
2306 (target_breakpoint_kind_from_pc)
2307 (target_breakpoint_kind_from_current_state)
2308 (target_supports_software_single_step)
2309 (target_core_of_thread)
2310 (target_thread_name)
2311 (target_thread_handle)
2312 * win32-low.cc (do_initial_child_stuff)
2313
2314 Rename target op default definitions listed below.
2315
2316 * target.cc (process_target::post_create_inferior): Rename as ...
2317 (process_stratum_target::post_create_inferior): ... this.
2318 (process_target::prepare_to_access_memory): Rename as ...
2319 (process_stratum_target::prepare_to_access_memory): ... this.
2320 (process_target::done_accessing_memory): Rename as ...
2321 (process_stratum_target::done_accessing_memory): ... this.
2322 (process_target::look_up_symbols): Rename as ...
2323 (process_stratum_target::look_up_symbols): ... this.
2324 (process_target::supports_read_auxv): Rename as ...
2325 (process_stratum_target::supports_read_auxv): ... this.
2326 (process_target::read_auxv): Rename as ...
2327 (process_stratum_target::read_auxv): ... this.
2328 (process_target::supports_z_point_type): Rename as ...
2329 (process_stratum_target::supports_z_point_type): ... this.
2330 (process_target::insert_point): Rename as ...
2331 (process_stratum_target::insert_point): ... this.
2332 (process_target::remove_point): Rename as ...
2333 (process_stratum_target::remove_point): ... this.
2334 (process_target::stopped_by_sw_breakpoint): Rename as ...
2335 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2336 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2337 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2338 (process_target::stopped_by_hw_breakpoint): Rename as ...
2339 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2340 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2341 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2342 (process_target::supports_hardware_single_step): Rename as ...
2343 (process_stratum_target::supports_hardware_single_step): ... this.
2344 (process_target::stopped_by_watchpoint): Rename as ...
2345 (process_stratum_target::stopped_by_watchpoint): ... this.
2346 (process_target::stopped_data_address): Rename as ...
2347 (process_stratum_target::stopped_data_address): ... this.
2348 (process_target::supports_read_offsets): Rename as ...
2349 (process_stratum_target::supports_read_offsets): ... this.
2350 (process_target::read_offsets): Rename as ...
2351 (process_stratum_target::read_offsets): ... this.
2352 (process_target::supports_get_tls_address): Rename as ...
2353 (process_stratum_target::supports_get_tls_address): ... this.
2354 (process_target::get_tls_address): Rename as ...
2355 (process_stratum_target::get_tls_address): ... this.
2356 (process_target::hostio_last_error): Rename as ...
2357 (process_stratum_target::hostio_last_error): ... this.
2358 (process_target::supports_qxfer_osdata): Rename as ...
2359 (process_stratum_target::supports_qxfer_osdata): ... this.
2360 (process_target::qxfer_osdata): Rename as ...
2361 (process_stratum_target::qxfer_osdata): ... this.
2362 (process_target::supports_qxfer_siginfo): Rename as ...
2363 (process_stratum_target::supports_qxfer_siginfo): ... this.
2364 (process_target::qxfer_siginfo): Rename as ...
2365 (process_stratum_target::qxfer_siginfo): ... this.
2366 (process_target::supports_non_stop): Rename as ...
2367 (process_stratum_target::supports_non_stop): ... this.
2368 (process_target::async): Rename as ...
2369 (process_stratum_target::async): ... this.
2370 (process_target::start_non_stop): Rename as ...
2371 (process_stratum_target::start_non_stop): ... this.
2372 (process_target::supports_multi_process): Rename as ...
2373 (process_stratum_target::supports_multi_process): ... this.
2374 (process_target::supports_fork_events): Rename as ...
2375 (process_stratum_target::supports_fork_events): ... this.
2376 (process_target::supports_vfork_events): Rename as ...
2377 (process_stratum_target::supports_vfork_events): ... this.
2378 (process_target::supports_exec_events): Rename as ...
2379 (process_stratum_target::supports_exec_events): ... this.
2380 (process_target::handle_new_gdb_connection): Rename as ...
2381 (process_stratum_target::handle_new_gdb_connection): ... this.
2382 (process_target::handle_monitor_command): Rename as ...
2383 (process_stratum_target::handle_monitor_command): ... this.
2384 (process_target::core_of_thread): Rename as ...
2385 (process_stratum_target::core_of_thread): ... this.
2386 (process_target::supports_read_loadmap): Rename as ...
2387 (process_stratum_target::supports_read_loadmap): ... this.
2388 (process_target::read_loadmap): Rename as ...
2389 (process_stratum_target::read_loadmap): ... this.
2390 (process_target::process_qsupported): Rename as ...
2391 (process_stratum_target::process_qsupported): ... this.
2392 (process_target::supports_tracepoints): Rename as ...
2393 (process_stratum_target::supports_tracepoints): ... this.
2394 (process_target::read_pc): Rename as ...
2395 (process_stratum_target::read_pc): ... this.
2396 (process_target::write_pc): Rename as ...
2397 (process_stratum_target::write_pc): ... this.
2398 (process_target::supports_thread_stopped): Rename as ...
2399 (process_stratum_target::supports_thread_stopped): ... this.
2400 (process_target::thread_stopped): Rename as ...
2401 (process_stratum_target::thread_stopped): ... this.
2402 (process_target::supports_get_tib_address): Rename as ...
2403 (process_stratum_target::supports_get_tib_address): ... this.
2404 (process_target::get_tib_address): Rename as ...
2405 (process_stratum_target::get_tib_address): ... this.
2406 (process_target::pause_all): Rename as ...
2407 (process_stratum_target::pause_all): ... this.
2408 (process_target::unpause_all): Rename as ...
2409 (process_stratum_target::unpause_all): ... this.
2410 (process_target::stabilize_threads): Rename as ...
2411 (process_stratum_target::stabilize_threads): ... this.
2412 (process_target::supports_fast_tracepoints): Rename as ...
2413 (process_stratum_target::supports_fast_tracepoints): ... this.
2414 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2415 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2416 (process_target::emit_ops): Rename as ...
2417 (process_stratum_target::emit_ops): ... this.
2418 (process_target::supports_disable_randomization): Rename as ...
2419 (process_stratum_target::supports_disable_randomization): ... this.
2420 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2421 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2422 (process_target::qxfer_libraries_svr4): Rename as ...
2423 (process_stratum_target::qxfer_libraries_svr4): ... this.
2424 (process_target::supports_agent): Rename as ...
2425 (process_stratum_target::supports_agent): ... this.
2426 (process_target::enable_btrace): Rename as ...
2427 (process_stratum_target::enable_btrace): ... this.
2428 (process_target::disable_btrace): Rename as ...
2429 (process_stratum_target::disable_btrace): ... this.
2430 (process_target::read_btrace): Rename as ...
2431 (process_stratum_target::read_btrace): ... this.
2432 (process_target::read_btrace_conf): Rename as ...
2433 (process_stratum_target::read_btrace_conf): ... this.
2434 (process_target::supports_range_stepping): Rename as ...
2435 (process_stratum_target::supports_range_stepping): ... this.
2436 (process_target::supports_pid_to_exec_file): Rename as ...
2437 (process_stratum_target::supports_pid_to_exec_file): ... this.
2438 (process_target::pid_to_exec_file): Rename as ...
2439 (process_stratum_target::pid_to_exec_file): ... this.
2440 (process_target::supports_multifs): Rename as ...
2441 (process_stratum_target::supports_multifs): ... this.
2442 (process_target::multifs_open): Rename as ...
2443 (process_stratum_target::multifs_open): ... this.
2444 (process_target::multifs_unlink): Rename as ...
2445 (process_stratum_target::multifs_unlink): ... this.
2446 (process_target::multifs_readlink): Rename as ...
2447 (process_stratum_target::multifs_readlink): ... this.
2448 (process_target::breakpoint_kind_from_pc): Rename as ...
2449 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2450 (process_target::breakpoint_kind_from_current_state): Rename as ...
2451 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2452 (process_target::thread_name): Rename as ...
2453 (process_stratum_target::thread_name): ... this.
2454 (process_target::thread_handle): Rename as ...
2455 (process_stratum_target::thread_handle): ... this.
2456 (process_target::supports_software_single_step): Rename as ...
2457 (process_stratum_target::supports_software_single_step): ... this.
2458 (process_target::supports_catch_syscall): Rename as ...
2459 (process_stratum_target::supports_catch_syscall): ... this.
2460 (process_target::get_ipa_tdesc_idx): Rename as ...
2461 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2462
478f9adf
PA
24632020-02-20 Pedro Alves <palves@redhat.com>
2464
2465 * target.cc (set_target_ops): Simply copy the given target pointer
2466 instead of creating a copy of the pointed object.
2467
d633e831
TBA
24682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2469
2470 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2471 of process_target.
2472
2473 * target.h (struct process_stratum_target): Remove the target op.
2474 (class process_target): Add the target op.
2475 (target_get_ipa_tdesc_idx): Update the macro.
2476 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2477
2478 Update the derived classes and callers below.
2479
2480 * linux-low.cc (linux_target_ops): Update.
2481 (linux_get_ipa_tdesc_idx): Turn into ...
2482 (linux_process_target::get_ipa_tdesc_idx): ... this.
2483 * linux-low.h (class linux_process_target): Update.
2484 * lynx-low.cc (lynx_target_ops): Update.
2485 * nto-low.cc (nto_target_ops): Update.
2486 * win32-low.cc (win32_target_ops): Update.
2487
bc8d3ae4
TBA
24882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2489
2490 Turn process_stratum_target's supports_catch_syscall op into a
2491 method of process_target.
2492
2493 * target.h (struct process_stratum_target): Remove the target op.
2494 (class process_target): Add the target op.
2495 (target_supports_catch_syscall): Update the macro.
2496 * target.cc (process_target::supports_catch_syscall): Define.
2497
2498 Update the derived classes and callers below.
2499
2500 * linux-low.cc (linux_target_ops): Update.
2501 (linux_supports_catch_syscall): Turn into ...
2502 (linux_process_target::supports_catch_syscall): ... this.
2503 * linux-low.h (class linux_process_target): Update.
2504 * lynx-low.cc (lynx_target_ops): Update.
2505 * nto-low.cc (nto_target_ops): Update.
2506 * win32-low.cc (win32_target_ops): Update.
2507
5303a34f
TBA
25082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2509
2510 Turn process_stratum_target's supports_software_single_step op
2511 into a method of process_target.
2512
2513 * target.h (struct process_stratum_target): Remove the target op.
2514 (class process_target): Add the target op.
2515 (target_supports_software_single_step): Update the macro.
2516 * target.cc (process_target::supports_software_single_step): Define.
2517
2518 Update the derived classes and callers below.
2519
2520 * linux-low.cc (linux_target_ops): Update.
2521 (linux_supports_software_single_step): Turn into ...
2522 (linux_process_target::supports_software_single_step): ... this.
2523 * linux-low.h (class linux_process_target): Update.
2524 * lynx-low.cc (lynx_target_ops): Update.
2525 * nto-low.cc (nto_target_ops): Update.
2526 * win32-low.cc (win32_target_ops): Update.
2527
7f63b89b
TBA
25282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2529
2530 Turn process_stratum_target's thread_name and thread_handle ops
2531 into methods of process_target.
2532
2533 * target.h (struct process_stratum_target): Remove the target ops.
2534 (class process_target): Add the target ops.
2535 (target_thread_name): Update the macro.
2536 (target_thread_handle): Update the macro.
2537 * target.cc (process_target::thread_name): Define.
2538 (process_target::thread_handle): Define.
2539
2540 Update the derived classes and callers below.
2541
2542 * linux-low.cc (linux_target_ops): Update.
2543 (linux_process_target::thread_name): Define.
2544 (linux_process_target::thread_handle): Define.
2545 * linux-low.h (class linux_process_target): Update.
2546 * lynx-low.cc (lynx_target_ops): Update.
2547 * nto-low.cc (nto_target_ops): Update.
2548 * win32-low.cc (win32_target_ops): Update.
2549
d367006f
TBA
25502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2551
2552 Turn process_stratum_target's breakpoint_kind_from_pc,
2553 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2554 ops into methods of process_target.
2555
2556 * target.h (struct process_stratum_target): Remove the target op.
2557 (class process_target): Add the target op.
2558 (target_breakpoint_kind_from_pc): Update the macro.
2559 (target_breakpoint_kind_from_current_state): Update the macro.
2560 (default_breakpoint_kind_from_pc): Remove declaration.
2561 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2562 (process_target::breakpoint_kind_from_pc): ... this.
2563 (process_target::breakpoint_kind_from_current_state): Define.
2564
2565 Update the derived classes and callers below.
2566
2567 * mem-break.cc (bp_size): Update.
2568 (bp_opcode): Update.
2569 * linux-low.cc (linux_target_ops): Update.
2570 (linux_wait_1): Update.
2571 (linux_breakpoint_kind_from_pc): Turn into ...
2572 (linux_process_target::breakpoint_kind_from_pc): ... this.
2573 (linux_sw_breakpoint_from_kind): Turn into ...
2574 (linux_process_target::sw_breakpoint_from_kind): ... this.
2575 (linux_breakpoint_kind_from_current_state): Turn into ...
2576 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2577 * linux-low.h (class linux_process_target): Update.
2578 * lynx-low.cc (lynx_target_ops): Update.
2579 (lynx_process_target::sw_breakpoint_from_kind): Define.
2580 * lynx-low.h (class lynx_process_target): Update.
2581 * nto-low.cc (nto_target_ops): Update.
2582 (nto_sw_breakpoint_from_kind): Turn into ...
2583 (nto_process_target::sw_breakpoint_from_kind): ... this.
2584 * nto-low.h (class nto_process_target): Update.
2585 * win32-low.cc (win32_target_ops): Update.
2586 (win32_sw_breakpoint_from_kind): Turn into ...
2587 (win32_process_target::sw_breakpoint_from_kind): ... this.
2588 * win32-low.h (class win32_process_target): Update.
2589
c9b7b804
TBA
25902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591
2592 Turn process_stratum_target's multifs_open, multifs_readlink,
2593 multifs_unlink ops into methods of process_target.
2594
2595 * target.h (struct process_stratum_target): Remove the target ops.
2596 (class process_target): Add the target ops. Also add
2597 'supports_multifs'.
2598 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2599 "sys/stat.h".
2600 (process_target::supports_multifs): Define.
2601 (process_target::multifs_open): Define.
2602 (process_target::multifs_readlink): Define.
2603 (process_target::multifs_unlink): Define.
2604
2605 Update the derived classes and callers below.
2606
2607 * hostio.cc (handle_setfs): Update.
2608 (handle_open): Update.
2609 (handle_unlink): Update.
2610 (handle_readlink): Update.
2611 * linux-low.cc (linux_target_ops): Update.
2612 (linux_process_target::supports_multifs): Define.
2613 (linux_process_target::multifs_open): Define.
2614 (linux_process_target::multifs_readlink): Define.
2615 (linux_process_target::multifs_unlink): Define.
2616 * linux-low.h (class linux_process_target): Update.
2617 * lynx-low.cc (lynx_target_ops): Update.
2618 * nto-low.cc (nto_target_ops): Update.
2619 * win32-low.cc (win32_target_ops): Update.
2620
8247b823
TBA
26212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2622
2623 Turn process_stratum_target's pid_to_exec_file op into a method
2624 of process_target.
2625
2626 * target.h (struct process_stratum_target): Remove the target op.
2627 (class process_target): Add the target op. Also add
2628 'supports_pid_to_exec_file'.
2629 * target.cc (process_target::pid_to_exec_file): Define.
2630 (process_target::supports_pid_to_exec_file): Define.
2631
2632 Update the derived classes and callers below.
2633
2634 * server.cc (handle_qxfer_exec_file): Update.
2635 (handle_query): Update.
2636 * linux-low.cc (linux_target_ops): Update.
2637 (linux_process_target::supports_pid_to_exec_file): Define.
2638 (linux_process_target::pid_to_exec_file): Define.
2639 * linux-low.h (class linux_process_target): Update.
2640 * lynx-low.cc (lynx_target_ops): Update.
2641 * nto-low.cc (nto_target_ops): Update.
2642 * win32-low.cc (win32_target_ops): Update.
2643
2526e0cd
TBA
26442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645
2646 Turn process_stratum_target's supports_range_stepping op into a
2647 method of process_target.
2648
2649 * target.h (struct process_stratum_target): Remove the target op.
2650 (class process_target): Add the target op.
2651 (target_supports_range_stepping): Update the macro.
2652 * target.cc (process_target::supports_range_stepping): Define.
2653
2654 Update the derived classes and callers below.
2655
2656 * linux-low.cc (linux_target_ops): Update.
2657 (linux_supports_range_stepping): Turn into ...
2658 (linux_process_target::supports_range_stepping): ... this.
2659 * linux-low.h (class linux_process_target): Update.
2660 * lynx-low.cc (lynx_target_ops): Update.
2661 * nto-low.cc (nto_target_ops): Update.
2662 * win32-low.cc (win32_target_ops): Update.
2663
79597bdd
TBA
26642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2665
2666 Turn process_stratum_target's btrace-related ops (enable_btrace,
2667 disable_btrace, read_btrace, read_btrace_conf) into methods of
2668 process_target.
2669
2670 * target.h (struct process_stratum_target): Remove the target ops.
2671 (class process_target): Add the target ops.
2672 (target_enable_btrace): Update.
2673 (target_disable_btrace): Update.
2674 (target_read_btrace): Update.
2675 (target_read_btrace_conf): Update.
2676 * target.cc (process_target::enable_btrace): Define.
2677 (process_target::disable_btrace): Define.
2678 (process_target::read_btrace): Define.
2679 (process_target::read_btrace_conf): Define.
2680
2681 Update the derived classes and callers below.
2682
2683 * linux-low.cc (linux_target_ops): Update.
2684 (linux_process_target:enable_btrace): Define as a wrapper around
2685 linux_enable_btrace.
2686 (linux_low_disable_btrace): Turn into ...
2687 (linux_process_target::disable_btrace): ... this.
2688 (linux_low_read_btrace): Turn into ...
2689 (linux_process_target::read_btrace): ... this.
2690 (linux_low_btrace_conf): Turn into ...
2691 (linux_process_target::read_btrace_conf): ... this.
2692 * linux-low.h (class linux_process_target): Update.
2693 * lynx-low.cc (lynx_target_ops): Update.
2694 * nto-low.cc (nto_target_ops): Update.
2695 * win32-low.cc (win32_target_ops): Update.
2696
c0245cb9
TBA
26972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698
2699 Turn process_stratum_target's supports_agent op into a method of
2700 process_target.
2701
2702 * target.h (struct process_stratum_target): Remove the target op.
2703 (class process_target): Add the target op.
2704 (target_supports_agent): Update the macro.
2705 * target.cc (process_target::supports_agent): Define.
2706
2707 Update the derived classes and callers below.
2708
2709 * linux-low.cc (linux_target_ops): Update.
2710 (linux_supports_agent): Turn into ...
2711 (linux_process_target::supports_agent): ... this.
2712 * linux-low.h (class linux_process_target): Update.
2713 * lynx-low.cc (lynx_target_ops): Update.
2714 * nto-low.cc (nto_target_ops): Update.
2715 * win32-low.cc (win32_target_ops): Update.
2716
974387bb
TBA
27172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2718
2719 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2720 method of process_target.
2721
2722 * target.h (struct process_stratum_target): Remove the target op.
2723 (class process_target): Add the target op. Also add
2724 'supports_qxfer_libraries_svr4'.
2725 * target.cc (process_target::qxfer_libraries_svr4): Define.
2726 (process_target::supports_qxfer_libraries_svr4): Define.
2727
2728 Update the derived classes and callers below.
2729
2730 * server.cc (handle_qxfer_libraries_svr4): Update.
2731 (handle_query): Update.
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2734 (linux_qxfer_libraries_svr4): Turn into ...
2735 (linux_process_target::qxfer_libraries_svr4): ... this.
2736 * linux-low.h (class linux_process_target): Update.
2737 * lynx-low.cc (lynx_target_ops): Update.
2738 * nto-low.cc (nto_target_ops): Update.
2739 * win32-low.cc (win32_target_ops): Update.
2740
c756403b
TBA
27412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742
2743 Turn process_stratum_target's supports_disable_randomization op
2744 into a method of process_target.
2745
2746 * target.h (struct process_stratum_target): Remove the target op.
2747 (class process_target): Add the target op.
2748 (target_supports_disable_randomization): Update the macro.
2749 * target.cc (process_target::supports_disable_randomization): Define.
2750
2751 Update the derived classes and callers below.
2752
2753 * linux-low.cc (linux_target_ops): Update.
2754 (linux_supports_disable_randomization): Turn into ...
2755 (linux_process_target::supports_disable_randomization): ... this.
2756 * linux-low.h (class linux_process_target): Update.
2757 * lynx-low.cc (lynx_target_ops): Update.
2758 * nto-low.cc (nto_target_ops): Update.
2759 * win32-low.cc (win32_target_ops): Update.
2760
345dafad
TBA
27612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2762
2763 Turn process_stratum_target's emit_ops op into a method of
2764 process_target.
2765
2766 * target.h (struct process_stratum_target): Remove the target op.
2767 (class process_target): Add the target op.
2768 (target_emit_ops): Update the macro.
2769 * target.cc (process_target::emit_ops): Define.
2770
2771 Update the derived classes and callers below.
2772
2773 * linux-low.cc (linux_target_ops): Update.
2774 (linux_emit_ops): Turn into ...
2775 (linux_process_target::emit_ops): ... this.
2776 * linux-low.h (class linux_process_target): Update.
2777 * lynx-low.cc (lynx_target_ops): Update.
2778 * nto-low.cc (nto_target_ops): Update.
2779 * win32-low.cc (win32_target_ops): Update.
2780
c23c9391
TBA
27812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782
2783 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2784 and get_min_fast_tracepoint_insn_len ops into methods of
2785 process_target.
2786
2787 * target.h (struct process_stratum_target): Remove the target ops.
2788 (class process_target): Add the target ops. Also add
2789 'supports_fast_tracepoints'.
2790 (target_supports_fast_tracepoints): Update the macro.
2791 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2792 (install_fast_tracepoint_jump_pad): Update and rename the macro
2793 to ...
2794 (target_install_fast_tracepoint_jump_pad): ... this.
2795 * target.cc (process_target::supports_fast_tracepoints): Define.
2796 (process_target::install_fast_tracepoint_jump_pad): Define.
2797 (process_target::get_min_fast_tracepoint_insn_len): Define.
2798
2799 Update the derived classes and callers below.
2800
2801 * tracepoint.cc (install_fast_tracepoint): Update.
2802 * linux-low.cc (linux_target_ops): Update.
2803 (linux_process_target::supports_fast_tracepoints): Define.
2804 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2805 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2806 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2807 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2808 * linux-low.h (class linux_process_target): Update.
2809 * lynx-low.cc (lynx_target_ops): Update.
2810 * nto-low.cc (nto_target_ops): Update.
2811 * win32-low.cc (win32_target_ops): Update.
2812
5c9eb2f2
TBA
28132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2814
2815 Turn process_stratum_target's stabilize_threads op into a
2816 method of process_target.
2817
2818 * target.h (struct process_stratum_target): Remove the target op.
2819 (class process_target): Add the target op.
2820 (target_stabilize_threads): Update the macro.
2821 * target.cc (process_target::stabilize_threads): Define.
2822
2823 Update the derived classes and callers below.
2824
2825 * server.cc (handle_status): Update.
2826 * tracepoint.cc (cmd_qtdp): Update.
2827 (cmd_qtstart): Update.
2828 * linux-low.cc (linux_target_ops): Update.
2829 (linux_stabilize_threads): Turn into ...
2830 (linux_process_target::stabilize_threads): ... this.
2831 (linux_wait_1): Update.
2832 * linux-low.h (class linux_process_target): Update.
2833 * lynx-low.cc (lynx_target_ops): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 * win32-low.cc (win32_target_ops): Update.
2836
29e8dc09
TBA
28372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838
2839 Turn process_stratum_target's pause_all and unpause_all ops
2840 into methods of process_target.
2841
2842 * target.h (struct process_stratum_target): Remove the target ops.
2843 (class process_target): Add the target ops.
2844 (pause_all): Update the macro and rename to...
2845 (target_pause_all): ... this.
2846 (unpause_all): Update the macro and rename to...
2847 (target_unpause_all): ... this.
2848 * target.cc (process_target::pause_all): Define.
2849 (process_target::unpause_all): Define.
2850
2851 Update the derived classes and callers below.
2852
2853 * server.cc (handle_status): Update.
2854 * tracepoint.cc (clear_installed_tracepoints): Update.
2855 (cmd_qtdp): Update.
2856 (cmd_qtstart): Update.
2857 (stop_tracing): Update.
2858 (cmd_qtstatus): Update.
2859 (upload_fast_traceframes): Update.
2860 (run_inferior_command): Update.
2861 * linux-low.cc (linux_target_ops): Update.
2862 (linux_pause_all): Turn into ...
2863 (linux_process_target::pause_all): ... this.
2864 (linux_unpause_all): Turn into ...
2865 (linux_process_target::unpause_all): ... this.
2866 (linux_process_target::prepare_to_access_memory): Update.
2867 (linux_process_target::done_accessing_memory): Update.
2868 * linux-low.h (class linux_process_target): Update.
2869 * lynx-low.cc (lynx_target_ops): Update.
2870 * nto-low.cc (nto_target_ops): Update.
2871 * win32-low.cc (win32_target_ops): Update.
2872
4e2e869c
TBA
28732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2874
2875 Turn process_stratum_target's get_tib_address op into a method of
2876 process_target.
2877
2878 * target.h (struct process_stratum_target): Remove the target op.
2879 (class process_target): Add the target op. Also add
2880 'supports_get_tib_address'.
2881 * target.cc (process_target::get_tib_address): Define.
2882 (process_target::supports_get_tib_address): Define.
2883
2884 Update the derived classes and callers below.
2885
2886 * server.cc (handle_query): Update.
2887 * linux-low.cc (win32_target_ops): Update.
2888 * lynx-low.cc (lynx_target_ops): Update.
2889 * nto-low.cc (nto_target_ops): Update.
2890 * win32-low.cc (win32_target_ops): Update.
2891 (win32_process_target::supports_get_tib_address): Define.
2892 (win32_get_tib_address): Turn into ...
2893 (win32_process_target::get_tib_address): ... this.
2894 * win32-low.h (class win32_process_target): Update.
2895
68119632
TBA
28962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 Turn process_stratum_target's thread_stopped op into a method of
2899 process_target.
2900
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op. Also add
2903 'supports_thread_stopped'.
2904 (target_thread_stopped): Update the macro.
2905 * target.cc (process_target::thread_stopped): Define.
2906 (process_target::supports_thread_stopped): Define.
2907 (prepare_to_access_memory): Update.
2908
2909 Update the derived classes and callers below.
2910
2911 * server.cc (queue_stop_reply_callback): Update.
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_process_target::supports_thread_stopped): Define.
2914 (linux_thread_stopped): Turn into ...
2915 (linux_process_target::thread_stopped): ... this.
2916 * linux-low.h (class linux_process_target): Update.
2917 * lynx-low.cc (lynx_target_ops): Update.
2918 * nto-low.cc (nto_target_ops): Update.
2919 * win32-low.cc (win32_target_ops): Update.
2920
770d8f6a
TBA
29212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922
2923 Turn process_stratum_target's read_pc and write_pc ops into
2924 methods of process_target.
2925
2926 * target.h (struct process_stratum_target): Remove the target ops.
2927 (class process_target): Add the target ops.
2928 * target.cc (process_target::read_pc): Define.
2929 (process_target::write_pc): Define.
2930
2931 Update the derived classes and callers below.
2932
2933 * regcache.cc (regcache_read_pc): Update.
2934 (regcache_write_pc): Update.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_read_pc): Turn into ...
2937 (linux_process_target::read_pc): ... this.
2938 (linux_write_pc): Turn into ...
2939 (linux_process_target::write_pc): ... this.
2940 * linux-low.h (class linux_process_target): Update.
2941 * lynx-low.cc (lynx_target_ops): Update.
2942 * nto-low.cc (nto_target_ops): Update.
2943 * win32-low.cc (win32_target_ops): Update.
2944
290732bf
TBA
29452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2946
2947 Turn process_stratum_target's supports_tracepoints op into a
2948 method of process_target.
2949
2950 * target.h (struct process_stratum_target): Remove the target op.
2951 (class process_target): Add the target op.
2952 (target_supports_tracepoints): Update the macro.
2953 * target.cc (process_target::supports_tracepoints): Define.
2954
2955 Update the derived classes and callers below.
2956
2957 * linux-low.cc (linux_target_ops): Update.
2958 (linux_supports_tracepoints): Turn into ...
2959 (linux_process_target::supports_tracepoints): ... this.
2960 * linux-low.h (class linux_process_target): Update.
2961 * lynx-low.cc (lynx_target_ops): Update.
2962 * nto-low.cc (nto_target_ops): Update.
2963 * win32-low.cc (win32_target_ops): Update.
2964
0df28b1b
TBA
29652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2966
2967 Turn process_stratum_target's process_qsupported op into a method
2968 of process_target.
2969
2970 * target.h (struct process_stratum_target): Remove the target op.
2971 (class process_target): Add the target op.
2972 (target_process_qsupported): Update the macro.
2973 * target.cc (process_target::process_qsupported): Define.
2974
2975 Update the derived classes and callers below.
2976
2977 * linux-low.cc (linux_target_ops): Update.
2978 (linux_process_qsupported): Turn into ...
2979 (linux_process_target::process_qsupported): ... this.
2980 * linux-low.h (class linux_process_target): Update.
2981 * lynx-low.cc (lynx_target_ops): Update.
2982 * nto-low.cc (nto_target_ops): Update.
2983 * win32-low.cc (win32_target_ops): Update.
2984
9da41fda
TBA
29852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2986
2987 Turn process_stratum_target's read_loadmap op into a method of
2988 process_target.
2989
2990 * target.h (struct process_stratum_target): Remove the target op.
2991 (class process_target): Add the target op. Also add
2992 'supports_read_loadmap'.
2993 * target.cc (process_target::read_loadmap): Define.
2994 (process_target::supports_read_loadmap): Define.
2995
2996 Update the derived classes and callers below.
2997
2998 * server.cc (handle_qxfer_fdpic): Update.
2999 (handle_query): Update.
3000 * linux-low.cc (linux_target_ops): Update.
3001 (linux_process_target::supports_read_loadmap): Define.
3002 (linux_read_loadmap): Turn into ...
3003 (linux_process_target::read_loadmap): ... this.
3004 * linux-low.h (class linux_process_target): Update.
3005 * lynx-low.cc (lynx_target_ops): Update.
3006 * nto-low.cc (nto_target_ops): Update.
3007 * win32-low.cc (win32_target_ops): Update.
3008
95a45fc1
TBA
30092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3010
3011 Turn process_stratum_target's core_of_thread op into a method of
3012 process_target.
3013
3014 * target.h (struct process_stratum_target): Remove the target op.
3015 (class process_target): Add the target op.
3016 (target_core_of_thread): Update the macro.
3017 * target.cc (process_target::core_of_thread): Define.
3018
3019 Update the derived classes and callers below.
3020
3021 * linux-low.cc (linux_target_ops): Update.
3022 (linux_process_target::core_of_thread): Define.
3023 * linux-low.h (class linux_process_target): Update.
3024 * lynx-low.cc (lynx_target_ops): Update.
3025 * nto-low.cc (nto_target_ops): Update.
3026 * win32-low.cc (win32_target_ops): Update.
3027
55cf3021
TBA
30282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3029
3030 Turn process_stratum_target's handle_monitor_command op into a
3031 method of process_target.
3032
3033 * target.h (struct process_stratum_target): Remove the target op.
3034 (class process_target): Add the target op.
3035 (target_handle_monitor_command): Update the macro.
3036 * target.cc (process_target::handle_monitor_command): Define.
3037
3038 Update the derived classes and callers below.
3039
3040 * server.cc (handle_query): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_process_target::handle_monitor_command): Define.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 * nto-low.cc (nto_target_ops): Update.
3046 * win32-low.cc (win32_target_ops): Update.
3047
fb00dfce
TBA
30482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3049
3050 Turn process_stratum_target's handle_new_gdb_connection op into a
3051 method of process_target.
3052
3053 * target.h (struct process_stratum_target): Remove the target op.
3054 (class process_target): Add the target op.
3055 (target_handle_new_gdb_connection): Update the macro.
3056 * target.cc (process_target::handle_new_gdb_connection): Define.
3057
3058 Update the derived classes and callers below.
3059
3060 * linux-low.cc (linux_target_ops): Update.
3061 (linux_handle_new_gdb_connection): Turn into ...
3062 (linux_process_target::handle_new_gdb_connection): ... this.
3063 * linux-low.h (class linux_process_target): Update.
3064 * lynx-low.cc (lynx_target_ops): Update.
3065 * nto-low.cc (nto_target_ops): Update.
3066 * win32-low.cc (win32_target_ops): Update.
3067
9690a72a
TBA
30682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3069
3070 Turn process_stratum_target's supports_fork_events,
3071 supports_vfork_events, and supports_exec_events ops into methods
3072 of process_target.
3073
3074 * target.h (struct process_stratum_target): Remove the target ops.
3075 (class process_target): Add the target ops.
3076 (target_supports_fork_events): Update the macro.
3077 (target_supports_vfork_events): Update the macro.
3078 (target_supports_exec_events): Update the macro.
3079 * target.cc (process_target::supports_fork_events): Define.
3080 (process_target::supports_vfork_events): Define.
3081 (process_target::supports_exec_events): Define.
3082
3083 Update the derived classes and callers below.
3084
3085 * linux-low.cc (linux_target_ops): Update.
3086 (linux_supports_fork_events): Turn into ...
3087 (linux_process_target::supports_fork_events): ... this.
3088 (linux_supports_vfork_events): Turn into ...
3089 (linux_process_target::supports_vfork_events): ... this.
3090 (linux_supports_exec_events): Turn into ...
3091 (linux_process_target::supports_exec_events): ... this.
3092 * linux-low.h (class linux_process_target): Update.
3093 * lynx-low.cc (lynx_target_ops): Update.
3094 * nto-low.cc (nto_target_ops): Update.
3095 * win32-low.cc (win32_target_ops): Update.
3096
652aef77
TBA
30972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098
3099 Turn process_stratum_target's supports_multi_process op into a
3100 method of process_target.
3101
3102 * target.h (struct process_stratum_target): Remove the target op.
3103 (class process_target): Add the target op.
3104 * target.cc (process_target::supports_multi_process): Define.
3105 (target_supports_multi_process): Update.
3106
3107 Update the derived classes and callers below.
3108
3109 * linux-low.cc (linux_target_ops): Update.
3110 (linux_supports_multi_process): Turn into ...
3111 (linux_process_target::supports_multi_process): ... this.
3112 * linux-low.h (class linux_process_target): Update.
3113 * lynx-low.cc (lynx_target_ops): Update.
3114 * nto-low.cc (nto_target_ops): Update.
3115 * win32-low.cc (win32_target_ops): Update.
3116
0dc587d4
TBA
31172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3118
3119 Turn process_stratum_target's supports_non_stop, async, and
3120 start_non_stop ops into methods of process_target.
3121
3122 * target.h (struct process_stratum_target): Remove the target ops.
3123 (class process_target): Add the target ops.
3124 (target_supports_non_stop): Update the macro.
3125 (target_async): Update the macro.
3126 (start_non_stop): Remove declaration.
3127 * target.cc (process_target::supports_non_stop): Define.
3128 (process_target::async): Define.
3129 (process_target::start_non_stop): Define.
3130 (start_non_stop): Remove.
3131
3132 Update the derived classes and callers below.
3133
3134 * server.cc (handle_qxfer_siginfo): Update.
3135 (handle_query): Update.
3136 * linux-low.cc (linux_target_ops): Update.
3137 (linux_supports_non_stop): Turn into ...
3138 (linux_process_target::supports_non_stop): ... this.
3139 (linux_async): Turn into ...
3140 (linux_process_target::async): ... this.
3141 (linux_start_non_stop): Turn into ...
3142 (linux_process_target::start_non_stop): ... this.
3143 * linux-low.h (class linux_process_target): Update.
3144 * lynx-low.cc (lynx_target_ops): Update.
3145 * nto-low.cc (nto_target_ops): Update.
3146 (nto_supports_non_stop): Remove; rely on the default behavior
3147 instead.
3148 * win32-low.cc (win32_target_ops): Update.
3149
d7abedf7
TBA
31502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3151
3152 Turn process_stratum_target's qxfer_siginfo op into a method of
3153 process_target.
3154
3155 * target.h (struct process_stratum_target): Remove the target op.
3156 (class process_target): Add the target op. Also add
3157 'supports_qxfer_siginfo'.
3158 * target.cc (process_target::qxfer_siginfo): Define.
3159 (process_target::supports_qxfer_siginfo): Define.
3160
3161 Update the derived classes and callers below.
3162
3163 * server.cc (handle_qxfer_siginfo): Update.
3164 (handle_query): Update.
3165 * linux-low.cc (linux_target_ops): Update.
3166 (linux_process_target::supports_qxfer_siginfo): Define.
3167 (linux_xfer_siginfo): Turn into ...
3168 (linux_process_target::qxfer_siginfo): ... this.
3169 * linux-low.h (class linux_process_target): Update.
3170 * lynx-low.cc (lynx_target_ops): Update.
3171 * nto-low.cc (nto_target_ops): Update.
3172 * win32-low.cc (win32_target_ops): Update.
3173
2d0795ee
TBA
31742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3175
3176 Turn process_stratum_target's qxfer_osdata op into a method of
3177 process_target.
3178
3179 * target.h (struct process_stratum_target): Remove the target op.
3180 (class process_target): Add the target op. Also add
3181 'supports_qxfer_osdata'.
3182 * target.cc (process_target::qxfer_osdata): Define.
3183 (process_target::supports_qxfer_osdata): Define.
3184
3185 Update the derived classes and callers below.
3186
3187 * server.cc (handle_qxfer_osdata): Update.
3188 (handle_query): Update.
3189 * linux-low.cc (linux_target_ops): Update.
3190 (linux_process_target::supports_qxfer_osdata): Define.
3191 (linux_qxfer_osdata): Turn into ...
3192 (linux_process_target::qxfer_osdata): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 * win32-low.cc (win32_target_ops): Update.
3197
ea06bbaa
TBA
31982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199
3200 Turn process_stratum_target's hostio_last_error op into a
3201 method of process_target.
3202
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op.
3205 * target.cc: Add "hostio.h" to includes.
3206 (process_target::hostio_last_error): Define.
3207
3208 Update the derived classes and callers below.
3209
3210 * hostio.cc (hostio_error): Update.
3211 * linux-low.cc: Remove "hostio.h" from includes.
3212 (linux_target_ops): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.h (class win32_process_target): Update.
3216 * win32-low.cc (win32_target_ops): Update.
3217 (wince_hostio_last_error): Turn into ...
3218 (win32_process_target::hostio_last_error): ... this.
3219
6e3fd7e9
TBA
32202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3221
3222 Turn process_stratum_target's get_tls_address op into a method of
3223 process_target.
3224
3225 * target.h (struct process_stratum_target): Remove the target op.
3226 (class process_target): Add the target op. Also add
3227 'supports_get_tls_address'.
3228 * target.cc (process_target::get_tls_address): Define.
3229 (process_target::supports_get_tls_address): Define.
3230
3231 Update the derived classes and callers below.
3232
3233 * server.cc (handle_query): Update.
3234 * linux-low.cc (linux_target_ops): Update.
3235 (linux_process_target::supports_get_tls_address): Define.
3236 (linux_process_target::get_tls_address): Define.
3237 * linux-low.h (class linux_process_target): Update.
3238 * lynx-low.cc (lynx_target_ops): Update.
3239 * nto-low.cc (nto_target_ops): Update.
3240 * win32-low.cc (win32_target_ops): Update.
3241
5203ae1e
TBA
32422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3243
3244 Turn process_stratum_target's read_offsets op into a method of
3245 process_target.
3246
3247 * target.h (struct process_stratum_target): Remove the target op.
3248 (class process_target): Add the target op. Also add
3249 'supports_read_offsets'.
3250 * target.cc (process_target::read_offsets): Define.
3251 (process_target::supports_read_offsets): Define.
3252
3253 Update the derived classes and callers below.
3254
3255 * server.cc (handle_query): Update.
3256 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3257 (linux_target_ops): Update.
3258 (linux_process_target::supports_read_offsets): Define.
3259 (linux_read_offsets): Turn into ...
3260 (linux_process_target::read_offsets): ... this.
3261 * linux-low.h (class linux_process_target): Update.
3262 * lynx-low.cc (lynx_target_ops): Update.
3263 * nto-low.cc (nto_target_ops): Update.
3264 * win32-low.cc (win32_target_ops): Update.
3265
6eeb5c55
TBA
32662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3267
3268 Turn process_stratum_target's stopped_by_watchpoint and
3269 stopped_data_address ops into methods of process_target.
3270
3271 * target.h (struct process_stratum_target): Remove the target ops.
3272 (class process_target): Add the target ops.
3273 * target.cc (process_target::stopped_by_watchpoint): Define.
3274 (process_target::stopped_data_address): Define.
3275
3276 Update the derived classes and callers below.
3277
3278 * remote-utils.cc (prepare_resume_reply): Update.
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_stopped_by_watchpoint): Turn into ...
3281 (linux_process_target::stopped_by_watchpoint): ... this.
3282 (linux_stopped_data_address): Turn into ...
3283 (linux_process_target::stopped_data_address): ... this.
3284 * linux-low.h (class linux_process_target): Update.
3285 * lynx-low.cc (lynx_target_ops): Update.
3286 * nto-low.cc (nto_target_ops): Update.
3287 (nto_stopped_by_watchpoint): Turn into ...
3288 (nto_process_target::stopped_by_watchpoint): ... this.
3289 (nto_stopped_data_address): Turn into ...
3290 (nto_process_target::stopped_data_address): ... this.
3291 * nto-low.h (class nto_process_target): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3293 (win32_stopped_by_watchpoint): Turn into ...
3294 (win32_process_target::stopped_by_watchpoint): ... this.
3295 (win32_stopped_data_address): Turn into ...
3296 (win32_process_target::stopped_data_address): ... this.
3297 * win32-low.h (class win32_process_target): Update.
3298
22aa6223
TBA
32992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3300
3301 Turn process_stratum_target's supports_hardware_single_step op into
3302 a method of process_target.
3303
3304 * target.h (struct process_stratum_target): Remove the target op.
3305 (class process_target): Add the target op.
3306 (target_supports_hardware_single_step): Update the macro.
3307 (target_can_do_hardware_single_step): Remove declaration.
3308 * target.cc (process_target::supports_hardware_single_step): Define.
3309 (target_can_do_hardware_single_step): Remove.
3310
3311 Update the derived classes and callers below.
3312
3313 * linux-low.h (class linux_process_target): Update.
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_supports_hardware_single_step): Turn into ...
3316 (linux_process_target::supports_hardware_single_step): ... this.
3317 * lynx-low.h (class lynx_process_target): Update.
3318 * lynx-low.cc (lynx_target_ops): Update.
3319 (lynx_process_target::supports_hardware_single_step): Define.
3320 * nto-low.h (class nto_process_target): Update.
3321 * nto-low.cc (nto_target_ops): Update.
3322 (nto_process_target::supports_hardware_single_step): Define.
3323 * win32-low.h (class win32_process_target): Update.
3324 * win32-low.cc (win32_target_ops): Update.
3325 (win32_process_target::supports_hardware_single_step): Define.
3326
93fe88b2
TBA
33272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3328
3329 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3330 ops into methods of process_target.
3331
3332 * target.h (struct process_stratum_target): Remove the target ops.
3333 (class process_target): Add the target ops.
3334 (target_stopped_by_hw_breakpoint): Update the macro.
3335 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3336 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3337 (process_target::supports_stopped_by_hw_breakpoint): Define.
3338
3339 Update the derived classes and callers below.
3340
3341 * linux-low.cc (linux_target_ops): Update.
3342 (linux_stopped_by_hw_breakpoint): Turn into ...
3343 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3344 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3345 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3346 * linux-low.h (class linux_process_target): Update.
3347 * lynx-low.cc (lynx_target_ops): Update.
3348 * nto-low.cc (nto_target_ops): Update.
3349 * win32-low.cc (win32_target_ops): Update.
3350
84320c4e
TBA
33512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3352
3353 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3354 ops into methods of process_target.
3355
3356 * target.h (struct process_stratum_target): Remove the target ops.
3357 (class process_target): Add the target ops.
3358 (target_stopped_by_sw_breakpoint): Update the macro.
3359 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3360 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3361 (process_target::supports_stopped_by_sw_breakpoint): Define.
3362
3363 Update the derived classes and callers below.
3364
3365 * linux-low.cc (linux_target_ops): Update.
3366 (linux_stopped_by_sw_breakpoint): Turn into ...
3367 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3368 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3369 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3370 * linux-low.h (class linux_process_target): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3374
7e0bde70
TBA
33752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376
3377 Turn process_stratum_target's insert_point and remove_point ops
3378 into methods of process_target.
3379
3380 * target.h (struct process_stratum_target): Remove the target ops.
3381 (class process_target): Add the target ops.
3382 * target.cc (process_target::insert_point): Define.
3383 (process_target::remove_point): Define.
3384
3385 Update the derived classes and callers below.
3386
3387 * mem-break.cc (set_raw_breakpoint_at): Update.
3388 (delete_raw_breakpoint): Update.
3389 (uninsert_raw_breakpoint): Update.
3390 (reinsert_raw_breakpoint): Update.
3391 * linux-low.cc (linux_target_ops): Update.
3392 (linux_insert_point): Turn into ...
3393 (linux_process_target::insert_point): ... this.
3394 (linux_remove_point): Turn into ...
3395 (linux_process_target::remove_point): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 (nto_insert_point): Turn into ...
3400 (nto_process_target::insert_point): ... this.
3401 (nto_remove_point): Turn into ...
3402 (nto_process_target::remove_point): ... this.
3403 * nto-low.h (class nto_process_target): Update.
3404 * win32-low.cc (win32_target_ops): Update.
3405 (win32_insert_point): Turn into ...
3406 (win32_process_target::insert_point): ... this.
3407 (win32_remove_point): Turn into ...
3408 (win32_process_target::remove_point): ... this.
3409 * win32-low.h (class win32_process_target): Update.
3410
a2b2297a
TBA
34112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412
3413 Turn process_stratum_target's supports_z_point_type op into a
3414 method of process_target.
3415
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418 * target.cc (process_target::supports_z_point_type): Define.
3419
3420 Update the derived classes and callers below.
3421
3422 * mem-break.cc (z_type_supported): Update.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_supports_z_point_type): Turn into ...
3425 (linux_process_target::supports_z_point_type): ... this.
3426 * linux-low.h (class linux_process_target): Update.
3427 * lynx-low.cc (lynx_target_ops): Update.
3428 * nto-low.cc (nto_target_ops): Update.
3429 (nto_supports_z_point_type): Turn into ...
3430 (nto_process_target::supports_z_point_type): ... this.
3431 * nto-low.h (class nto_process_target): Update.
3432 * win32-low.cc (win32_target_ops): Update.
3433 (win32_supports_z_point_type): Turn into ...
3434 (win32_process_target::supports_z_point_type): ... this.
3435 * win32-low.h (class win32_process_target): Update.
3436
eac215cc
TBA
34372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3438
3439 Turn process_stratum_target's read_auxv op into a method of
3440 process_target.
3441
3442 * target.h (class process_stratum_target): Remove the target op.
3443 (struct process_target): Add the target op. Also add
3444 'supports_read_auxv'.
3445 * target.cc (process_target::read_auxv): Define.
3446 (process_target::supports_read_auxv): Define.
3447
3448 Update the derived classes and callers below.
3449
3450 * server.cc (handle_qxfer_auxv): Update.
3451 (handle_query): Update.
3452 * linux-low.cc (linux_target_ops): Update.
3453 (linux_process_target::supports_read_auxv): Define.
3454 (linux_read_auxv): Turn into ...
3455 (linux_process_target::read_auxv): ... this.
3456 * linux-low.h (class linux_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 * nto-low.cc (nto_target_ops): Update.
3459 (nto_process_target::supports_read_auxv): Define.
3460 (nto_read_auxv): Turn into ...
3461 (nto_process_target::read_auxv): ... this.
3462 * nto-low.h (class nto_process_target): Update.
3463 * win32-low.cc (win32_target_ops): Update.
3464
eb497a2a
TBA
34652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3466
3467 Turn process_stratum_target's request_interrupt op into a method of
3468 process_target.
3469
3470 * target.h (struct process_stratum_target): Remove the target op.
3471 (class process_target): Add the target op.
3472
3473 Update the derived classes and callers below.
3474
3475 * remote-utils.cc (putpkt_binary_1): Update.
3476 (input_interrupt): Update.
3477 (getpkt): Update.
3478 * server.cc (handle_v_requests): Update.
3479 * linux-low.cc (linux_target_ops): Update.
3480 (linux_request_interrupt): Turn into ...
3481 (linux_process_target::request_interrupt): ... this.
3482 * linux-low.h (class linux_process_target): Update.
3483 * lynx-low.cc (lynx_target_ops): Update.
3484 (lynx_request_interrupt): Turn into ...
3485 (lynx_process_target::request_interrupt): ... this.
3486 * lynx-low.h (class lynx_process_target): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 (nto_request_interrupt): Turn into ...
3489 (nto_process_target::request_interrupt): ... this.
3490 * nto-low.h (class nto_process_target): Update.
3491 * win32-low.cc (win32_target_ops): Update.
3492 (win32_request_interrupt): Turn into ...
3493 (win32_process_target::request_interrupt): ... this.
3494 * win32-low.h (class win32_process_target): Update.
3495
2a31c7aa
TBA
34962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497
3498 Turn process_stratum_target's look_up_symbols op into a method of
3499 process_target.
3500
3501 * target.h (struct process_stratum_target): Remove the target op.
3502 (class process_target): Add the target op.
3503 * target.cc (process_target::look_up_symbols): Define.
3504
3505 Update the derived classes and callers below.
3506
3507 * server.cc (handle_query): Update.
3508 * linux-low.cc (linux_target_ops): Update.
3509 (linux_look_up_symbols): Turn into ...
3510 (linux_process_target::look_up_symbols): ... this.
3511 * linux-low.h (class linux_process_target): Update.
3512 * lynx-low.cc (lynx_target_ops): Update.
3513 * nto-low.cc (nto_target_ops): Update.
3514 * win32-low.cc (win32_target_ops): Update.
3515
e2558df3
TBA
35162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3517
3518 Turn process_stratum_target's read_memory and write_memory
3519 ops into methods of process_target.
3520
3521 * target.h (struct process_stratum_target): Remove the target ops.
3522 (class process_target): Add the target ops.
3523
3524 Update the derived classes and callers below.
3525
3526 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3527 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3528 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3529 (arm_get_syscall_trapinfo): Update.
3530 * linux-cris-low.cc (cris_breakpoint_at): Update.
3531 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3532 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3533 * linux-mips-low.cc (mips_breakpoint_at): Update.
3534 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3535 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3536 * linux-sh-low.cc (sh_breakpoint_at): Update.
3537 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3538 (sparc_store_gregset_from_stack): Update.
3539 (sparc_breakpoint_at): Update.
3540 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3541 * linux-tile-low.cc (tile_breakpoint_at): Update.
3542 * linux-x86-low.cc (x86_breakpoint_at): Update.
3543 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3544 * mem-brea.cc (insert_memory_breakpoint): Update.
3545 (validate_inserted_breakpoint): Update.
3546 * target.cc (read_inferior_memory): Update.
3547 (target_write_memory): Update.
3548 * linux-low.cc (linux_target_ops): Update.
3549 (linux_read_memory): Make a wrapper around the read_memory target
3550 op call.
3551 (linux_process_target::read_memory): Rename from linux_read_memory.
3552 (linux_write_memory): Turn into ...
3553 (linux_process_target::write_memory): ... this.
3554 * linux-low.h (class linux_process_target): Update.
3555 * lynx-low.cc (lynx_target_ops): Update.
3556 (lynx_read_memory): Turn into ...
3557 (lynx_process_target::read_memory): ... this.
3558 (lynx_write_memory): Turn into ...
3559 (lynx_process_target::write_memory): ... this.
3560 * lynx-low.h (class lynx_process_target): Update.
3561 * nto-low.cc (nto_target_ops): Update.
3562 (nto_read_memory): Turn into ...
3563 (nto_process_target::read_memory): ... this.
3564 (nto_write_memory): Turn into ...
3565 (nto_process_target::write_memory): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_read_inferior_memory): Turn into ...
3569 (win32_process_target::read_memory): ... this.
3570 (win32_write_inferior_memory): Turn into ...
3571 (win32_process_target::write_memory): ... this.
3572 * win32-low.h (class win32_process_target): Update.
3573
79b44087
TBA
35742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575
3576 Turn process_stratum_target's prepare_to_access_memory and
3577 done_accessing_memory ops into methods of process_target.
3578
3579 * target.h (struct process_stratum_target): Remove the target ops.
3580 (class process_target): Add the target ops.
3581 * target.cc (process_target::prepare_to_access_memory): Define.
3582 (process_target::done_accessing_memory): Define.
3583 (prepare_to_access_memory): Update.
3584 (done_accessing_memory): Update.
3585
3586 Update the derived classes and callers below.
3587
3588 * linux-low.cc (linux_target_ops): Update.
3589 (linux_prepare_to_access_memory): Turn into ...
3590 (linux_process_target::prepare_to_access_memory): ... this.
3591 (linux_done_accessing_memory): Turn into ...
3592 (linux_process_target::done_accessing_memory): ... this.
3593 * linux-low.h (class linux_process_target): Update.
3594 * lynx-low.cc (lynx_target_ops): Update.
3595 * nto-low.cc (nto_target_ops): Update.
3596 * win32-low.cc (win32_target_ops): Update.
3597
a5a4d4cd
TBA
35982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3599
3600 Turn process_stratum_target's fetch_registers and store_registers
3601 ops into methods of process_target.
3602
3603 * target.h (struct process_stratum_target): Remove the target ops.
3604 (class process_target): Add the target ops.
3605 (fetch_inferior_registers): Update the macro.
3606 (store_inferior_registers): Update the macro.
3607
3608 Update the derived classes and callers below.
3609
3610 * linux-low.cc (linux_target_ops): Update.
3611 (linux_fetch_registers): Turn into ...
3612 (linux_process_target::fetch_registers): ... this.
3613 (linux_store_registers): Turn into ...
3614 (linux_process_target::store_registers): ... this.
3615 * linux-low.h (class linux_process_target): Update.
3616 * lynx-low.cc (lynx_target_ops): Update.
3617 (lynx_fetch_registers): Turn into ...
3618 (lynx_process_target::fetch_registers): ... this.
3619 (lynx_store_registers): Turn into ...
3620 (lynx_process_target::store_registers): ... this.
3621 * lynx-low.h (class lynx_process_target): Update.
3622 * nto-low.cc (nto_target_ops): Update.
3623 (nto_fetch_registers): Turn into ...
3624 (nto_process_target::fetch_registers): ... this.
3625 (nto_store_registers): Turn into ...
3626 (nto_process_target::store_registers): ... this.
3627 * nto-low.h (class nto_process_target): Update.
3628 * win32-low.cc (win32_target_ops): Update.
3629 (win32_fetch_inferior_registers): Turn into ...
3630 (win32_process_target::fetch_registers): ... this.
3631 (win32_store_inferior_registers): Turn into ...
3632 (win32_process_target::store_registers): ... this.
3633 * win32-low.h (class win32_process_target): Update.
3634
6532e7e3
TBA
36352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636
3637 Turn process_stratum_target's wait op into a method of
3638 process_target.
3639
3640 * target.h (struct process_stratum_target): Remove the target op.
3641 (class process_target): Add the target op.
3642
3643 Update the derived classes and callers below.
3644
3645 * target.cc (target_wait): Update.
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_wait): Turn into ...
3648 (linux_process_target::wait): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 (lynx_wait): Turn into ...
3652 (lynx_process_target::wait): ... this.
3653 * lynx-low.h (class lynx_process_target): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_wait): Turn into ...
3656 (nto_process_target::wait): ... this.
3657 * nto-low.h (class nto_process_target): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3659 (win32_wait): Turn into ...
3660 (win32_process_target::wait): ... this.
3661 (do_initial_child_stuff): Update.
3662 * win32-low.h (class win32_process_target): Update.
3663
0e4d7e35
TBA
36642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 Turn process_stratum_target's resume op into a method of
3667 process_target.
3668
3669 * target.h (struct process_stratum_target): Remove the target op.
3670 (class process_target): Add the target op.
3671
3672 Update the derived classes and callers below.
3673
3674 * server.cc (resume): Update.
3675 * target.cc (target_stop_and_wait): Update.
3676 (target_continue_no_signal): Update.
3677 (target_continue): Update.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_resume): Turn into ...
3680 (linux_process_target::resume): ... this.
3681 * linux-low.h (class linux_process_target): Update.
3682 * lynx-low.cc (lynx_target_ops): Update.
3683 (lynx_resume): Turn into ...
3684 (lynx_process_target::resume): ... this.
3685 * lynx-low.h (class lynx_process_target): Update.
3686 * nto-low.cc (nto_target_ops): Update.
3687 (nto_resume): Turn into ...
3688 (nto_process_target::resume): ... this.
3689 * nto-low.h (class nto_process_target): Update.
3690 * win32-low.cc (win32_target_ops): Update.
3691 (win32_resume): Turn into ...
3692 (win32_process_target::resume): ... this.
3693 (win32_process_target::detach): Update.
3694 (do_initial_child_stuff): Update.
3695 * win32-low.h (class win32_process_target): Update.
3696
13d3d99b
TBA
36972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3698
3699 Turn process_stratum_target's thread_alive op into a method of
3700 process_target.
3701
3702 * target.h (struct process_stratum_target): Remove the target op.
3703 (class process_target): Add the target op.
3704 (mythread_alive): Update the macro.
3705
3706 Update the derived classes and callers below.
3707
3708 * linux-low.cc (linux_target_ops): Update.
3709 (linux_thread_alive): Turn into ...
3710 (linux_process_target::thread_alive): ... this.
3711 (wait_for_sigstop): Update.
3712 * linux-low.h (class linux_process_target): Update.
3713 * lynx-low.cc (lynx_target_ops): Update.
3714 (lynx_thread_alive): Turn into ...
3715 (lynx_process_target::thread_alive): ... this.
3716 * lynx-low.h (class lynx_process_target): Update.
3717 * nto-low.cc (nto_target_ops): Update.
3718 (nto_thread_alive): Turn into ...
3719 (nto_process_target::thread_alive): ... this.
3720 * nto-low.h (class nto_process_target): Update.
3721 * win32-low.cc (win32_target_ops): Update.
3722 (win32_thread_alive): Turn into ...
3723 (win32_process_target::thread_alive): ... this.
3724 * win32-low.h (class win32_process_target): Update.
3725
95a49a39
TBA
37262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3727
3728 Turn process_stratum_target's join op into a method of
3729 process_target.
3730
3731 * target.h (struct process_stratum_target): Remove the target op.
3732 (class process_target): Add the target op.
3733 (join_inferior): Update the macro.
3734
3735 Update the derived classes and callers below.
3736
3737 * linux-low.cc (linux_target_ops): Update.
3738 (linux_join): Turn into ...
3739 (linux_process_target::join): ... this.
3740 * linux-low.h (class linux_process_target): Update.
3741 * lynx-low.cc (lynx_target_ops): Update.
3742 (lynx_join): Turn into ...
3743 (lynx_process_target::join): ... this.
3744 * lynx-low.h (class lynx_process_target): Update.
3745 * nto-low.cc (nto_target_ops): Update.
3746 (nto_process_target::join): Define.
3747 * nto-low.h (class nto_process_target): Update.
3748 * win32-low.cc (win32_target_ops): Update.
3749 (win32_join): Turn into ...
3750 (win32_process_target::join): ... this.
3751 * win32-low.h (class win32_process_target): Update.
3752
8adb37b9
TBA
37532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754
3755 Turn process_stratum_target's mourn op into a method of
3756 process_target.
3757
3758 * target.h (struct process_stratum_target): Remove the target op.
3759 (class process_target): Add the target op.
3760
3761 Update the derived classes and callers below.
3762
3763 * target.cc (target_mourn_inferior): Update.
3764 * linux-low.cc (linux_target_ops): Update.
3765 (linux_mourn): Turn into ...
3766 (linux_process_target::mourn): ... this.
3767 (handle_extended_wait): Update.
3768 (linux_process_target::kill): Update.
3769 (linux_process_target::detach): Update.
3770 * linux-low.h (class linux_process_target): Update.
3771 * lynx-low.cc (lynx_target_ops): Update.
3772 (lynx_mourn): Turn into ...
3773 (lynx_process_target::mourn): ... this.
3774 * lynx-low.h (class lynx_process_target): Update.
3775 * nto-low.cc (nto_target_ops): Update.
3776 (nto_mourn): Turn into ...
3777 (nto_process_target::mourn): ... this.
3778 * nto-low.h (class nto_process_target): Update.
3779 * win32-low.cc (win32_target_ops): Update.
3780 (win32_mourn): Turn into ...
3781 (win32_process_target::mourn): ... this.
3782 * win32-low.h (class win32_process_target): Update.
3783
9061c9cf
TBA
37842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3785
3786 Turn process_stratum_target's detach op into a method of
3787 process_target.
3788
3789 * target.h (struct process_stratum_target): Remove the target op.
3790 (class process_target): Add the target op.
3791 (detach_inferior): Update the macro.
3792
3793 Update the derived classes and callers below.
3794
3795 * linux-low.cc (linux_target_ops): Update.
3796 (linux_detach): Turn into ...
3797 (linux_process_target::detach): ... this.
3798 * linux-low.h (class linux_process_target): Update.
3799 * lynx-low.cc (lynx_target_ops): Update.
3800 (lynx_detach): Turn into ...
3801 (lynx_process_target::detach): ... this.
3802 * lynx-low.h (class lynx_process_target): Update.
3803 * nto-low.cc (nto_target_ops): Update.
3804 (nto_detach): Turn into ...
3805 (nto_process_target::detach): ... this.
3806 * nto-low.h (class nto_process_target): Update.
3807 * win32-low.cc (win32_target_ops): Update.
3808 (win32_detach): Turn into ...
3809 (win32_process_target::detach): ... this.
3810 * win32-low.h (class win32_process_target): Update.
3811
c6885a57
TBA
38122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3813
3814 Turn process_stratum_target's kill op into a method of
3815 process_target.
3816
3817 * target.h (struct process_stratum_target): Remove the target op.
3818 (class process_target): Add the target op.
3819
3820 Update the derived classes and callers below.
3821
3822 * target.cc (kill_inferior): Update.
3823 * linux-low.cc (linux_target_ops): Update.
3824 (linux_kill): Turn into ...
3825 (linux_process_target::kill): ... this.
3826 * linux-low.h (class linux_process_target): Update.
3827 * lynx-low.cc (lynx_target_ops): Update.
3828 (lynx_kill): Turn into ...
3829 (lynx_process_target::kill): ... this.
3830 * lynx-low.h (class lynx_process_target): Update.
3831 * nto-low.cc (nto_target_ops): Update.
3832 (nto_kill): Turn into ...
3833 (nto_process_target::kill): ... this.
3834 * nto-low.h (class nto_process_target): Update.
3835 * win32-low.cc (win32_target_ops): Update.
3836 (win32_kill): Turn into ...
3837 (win32_process_target::kill): ... this.
3838 * win32-low.h (class win32_process_target): Update.
3839
ef03dad8
TBA
38402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841
3842 Turn process_stratum_target's attach op into a method of
3843 process_target.
3844
3845 * target.h (struct process_stratum_target): Remove the target op.
3846 (class process_target): Add the target op.
3847 (myattach): Update the macro.
3848
3849 Update the derived classes and callers below.
3850
3851 * linux-low.cc (linux_target_ops): Update.
3852 (linux_attach): Turn into ...
3853 (linux_process_target::attach): ... this.
3854 * linux-low.h (class linux_process_target): Update.
3855 * lynx-low.cc (lynx_target_ops): Update.
3856 (lynx_attach): Turn into ...
3857 (lynx_process_target::attach): ... this.
3858 * lynx-low.h (class lynx_process_target): Update.
3859 * nto-low.cc (nto_target_ops): Update.
3860 (nto_attach): Turn into ...
3861 (nto_process_target::attach): ... this.
3862 * nto-low.h (class nto_process_target): Update.
3863 * win32-low.cc (win32_target_ops): Update.
3864 (win32_attach): Turn into ...
3865 (win32_process_target::attach): ... this.
3866 * win32-low.h (class win32_process_target): Update.
3867
6dee9afb
TBA
38682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3869
3870 Turn process_stratum_target's post_create_inferior op into a method
3871 of process_target.
3872
3873 * target.h (struct process_stratum_target): Remove the target op.
3874 (class process_target): Add the target op.
3875 (target_post_create_inferior): Update the macro.
3876 * target.cc (process_target::post_create_inferior): Define.
3877
3878 Update the derived classes and callers below.
3879
3880 * linux-low.cc (linux_target_ops): Update.
3881 (linux_post_create_inferior): Turn into ...
3882 (linux_process_target::post_create_inferior): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3887
15295543
TBA
38882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889
3890 Turn process_stratum_target's create_inferior op into a method of
3891 process_target.
3892
3893 * target.h (struct process_stratum_target): Remove the target op.
3894 (class process_target): Add the target op.
3895 (create_inferior): Rename the macro to ...
3896 (target_create_inferior): ... this.
3897
3898 Update the derived classes and callers below.
3899
3900 * server.cc (handle_v_run): Update.
3901 (captured_main): Update.
3902 (process_serial_event): Update.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_create_inferior): Turn into ...
3905 (linux_process_target::create_inferior): ... this.
3906 * linux-low.h (class linux_process_target): Update.
3907 * lynx-low.cc (lynx_target_ops): Update.
3908 (lynx_create_inferior): Turn into ...
3909 (lynx_process_target::create_inferior): ... this.
3910 * lynx-low.h (class lynx_process_target): Update.
3911 * nto-low.cc (nto_target_ops): Update.
3912 (nto_create_inferior): Turn into ...
3913 (nto_process_target::create_inferior): ... this.
3914 * nto-low.h (class nto_process_target): Update.
3915 * win32-low.cc (win32_target_ops): Update.
3916 (win32_create_inferior): Turn into ...
3917 (win32_process_target::create_inferior): ... this.
3918 * win32-low.h (class win32_process_target): Update.
3919
5ef9273d
TBA
39202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3921
3922 * target.h (class process_target): New class definition.
3923 (struct process_stratum_target) <pt>: New field with type
3924 'process_target*'.
3925 * linux-low.h (class linux_process_target): Define as a derived
3926 class of 'process_target'.
3927 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3928 as the 'pt' field.
3929 * lynx-low.h (class lynx_process_target): Define as a derived
3930 class of 'process_target'.
3931 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3932 as the 'pt' field.
3933 * nto-low.h (class nto_process_target): Define as a derived
3934 class of 'process_target'.
3935 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3936 as the 'pt' field.
3937 * win32-low.h (class win32_process_target): Define as a derived
3938 class of 'process_target'.
3939 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3940 as the 'pt' field.
3941
9f1528a1
AB
39422020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * configure: Regenerate.
3945
bf84f706
MR
39462020-02-19 Maciej W. Rozycki <macro@wdc.com>
3947 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * linux-riscv-low.cc: New file.
3950 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3951 and nat/riscv-linux-tdesc.c.
3952 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3953 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3954 Define.
3955
1a627e7e
TT
39562020-02-14 Tom Tromey <tom@tromey.com>
3957
3958 * acinclude.m4: Don't include acx_configure_dir.m4.
3959 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3960 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3961 (all, install-only, uninstall, clean-info, clean)
3962 (maintainer-clean): Don't recurse.
3963 (subdir_do, all-lib): Remove.
3964 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3965 (GNULIB_H): Remove.
3966 (generated_files): Update.
3967 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3968 * configure: Rebuild.
3969 * configure.ac: Don't configure gnulib or libiberty.
3970 (GNULIB): Update.
3971
a9b34532
EZ
39722020-02-14 Eli Zaretskii <eliz@gnu.org>
3973
3974 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3975 preparing the command line for CreateProcess.
3976 (win32_create_inferior): Reflect the program name in debugging
3977 output that shows the process and its command line.
3978
feacfcac
SM
39792020-02-13 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * Makefile.in: Rename source files from .c to .cc.
3982 * %.c: Rename to %.cc.
3983 * configure.ac: Rename server.c to server.cc.
3984 * configure: Re-generate.
3985
06b3c5bd
SM
39862020-02-13 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3989
052793ad
HD
39902020-02-12 Hannes Domani <ssbssa@yahoo.de>
3991
3992 * win32-low.c (win32_create_inferior): Set signal_pid.
3993
f20e3e82
MR
39942020-02-12 Maciej W. Rozycki <macro@wdc.com>
3995 Pedro Alves <palves@redhat.com>
3996
3997 Skip building gdbserver in a cross-configuration.
3998 * configure.srv: Set $gdbserver_host depending on whether $target
3999 is $host. Use $gdbserver_host instead of $host.
4000
8ddd8e0e
SM
40012020-02-11 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * configure: Re-generate.
4004
898e7f60
SM
40052020-02-11 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * configure: Re-generate.
4008
58df732b
SM
40092020-02-11 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * acinclude.m4: Update warning.m4 path.
4012
7928d571
HD
40132020-02-09 Hannes Domani <ssbssa@yahoo.de>
4014
4015 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4016 (handle_exception): Set siginfo_er.
4017 (win32_xfer_siginfo): New function.
4018
919adfe8
TT
40192020-02-07 Tom Tromey <tom@tromey.com>
4020 Pedro Alves <palves@redhat.com>
4021
4022 * README: Update build documentation.
4023 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4024 host, not target.
4025 * configure.ac: Update paths.
4026 * configure: Rebuild.
4027 * acinclude.m4: Update paths.
4028 * Makefile.in: Update include paths.
4029 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4030 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4031 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4032 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4033 (%-generated.c): Update paths.
4034 * Move entire directory from ../gdb/gdbserver.
4035
287c844a
MR
40362020-01-29 Maciej W. Rozycki <macro@wdc.com>
4037
4038 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4039
548a204f
PFC
40402020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4041
4042 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4043 assignment instead of srv_linux_obj.
4044
a2236a08
HD
40452020-01-28 Hannes Domani <ssbssa@yahoo.de>
4046
4047 * server.c (handle_qxfer_libraries): Write segment-address with
4048 paddress.
4049
bdaed379
HD
40502020-01-24 Hannes Domani <ssbssa@yahoo.de>
4051
4052 * Makefile.in (install-strip): New target.
4053 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4054 * aclocal.m4: Regenerate.
4055 * configure: Regenerate.
4056 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4057
42cd72aa
MR
40582020-01-24 Maciej W. Rozycki <macro@wdc.com>
4059
4060 * Makefile.in (SFILES): Adjust paths to point to real files.
4061 (OBS): Move waitstatus.o to target/waitstatus.o.
4062 (TAGS): Transform paths appropriately.
4063 (%.o): Rename to...
4064 (nat/%.o): ... this pattern rule.
4065 (%.o): Rename to...
4066 (target/%.o): ... this pattern rule.
4067 * configure.srv: Adjust paths throughout to include nat/ prefix
4068 with the revant files.
4069 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4070 * configure: Regenerate.
4071
42ba50ec
MR
40722020-01-24 Maciej W. Rozycki <macro@wdc.com>
4073
4074 * Makefile.in (TAGS): Remove config files from the recipe.
4075
05ea2a05
TT
40762020-01-14 Tom Tromey <tom@tromey.com>
4077
4078 * configure: Rebuild.
4079 * configure.ac: Remove any checks that were added to common.m4.
4080 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4081 lib-link.m4.
4082
01027315
TT
40832020-01-14 Tom Tromey <tom@tromey.com>
4084
4085 * server.h: Include config.h.
4086 * gdbreplay.c: Include config.h.
4087 * configure: Rebuild.
4088 * configure.ac: Don't source common.host.
4089 * acinclude.m4: Update path.
4090 * Makefile.in (INCSUPPORT): New variable.
4091 (INCLUDE_CFLAGS): Add INCSUPPORT.
4092 (SFILES): Update paths.
4093 (version-generated.c): Update path to create-version.sh.
4094 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4095
b2ceabe8
TT
40962020-01-14 Tom Tromey <tom@tromey.com>
4097
4098 * configure.ac (LIBS): Use WIN32APILIBS.
4099 (USE_WIN32API): Don't define.
4100 * configure: Rebuild.
4101
25c51f71
TT
41022020-01-14 Tom Tromey <tom@tromey.com>
4103
4104 * configure: Rebuild.
4105
c0bd321d
SM
41062020-01-13 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * Makefile.in (%-generated.c): Remove rule for files from
4109 regformats/i386.
4110
bb564c58
SM
41112020-01-13 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * configure: Re-generate.
4114
6e37c371
SM
41152020-01-13 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4118 Define to static.
4119 * tracepoint.c (stop_tracing, flush_trace_buffer,
4120 about_to_request_buffer_space, get_trace_state_variable_value,
4121 set_trace_state_variable_value, gdb_collect): Add declaration.
4122
df4a0200
SM
41232020-01-13 Simon Marchi <simon.marchi@efficios.com>
4124
4125 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4126 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4127 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4128 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4129 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4130 static.
4131
89e94ec9
SM
41322020-01-13 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * inferiors.c: Include gdbsupport/common-inferior.h.
4135
2552728a
SM
41362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * hostio-errno.c: Include hostio.h.
4139
4025fa09
SM
41402020-01-13 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4143 prerequisite.
4144
c0b0a142
SM
41452020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4146
4147 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4148 * linux-arm-tdesc.h: Include arch/arm.h.
4149
bb1183e2
SM
41502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4151
4152 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4153
f5df0b5f
SM
41542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4157 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4158
5b6d1e4f
PA
41592020-01-10 Pedro Alves <palves@redhat.com>
4160
4161 * fork-child.c (post_fork_inferior): Pass target down to
4162 startup_inferior.
4163 * inferiors.c (switch_to_thread): Add process_stratum_target
4164 parameter.
4165 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4166 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4167 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4168 * remote-utils.c (prepare_resume_reply): Pass the target to
4169 switch_to_thread.
4170 * target.c (the_target): Now a process_stratum_target.
4171 (done_accessing_memory): Pass the target to switch_to_thread.
4172 (set_target_ops): Ajust to use process_stratum_target.
4173 * target.h (struct target_ops): Rename to ...
4174 (struct process_stratum_target): ... this.
4175 (the_target, set_target_ops): Adjust.
4176 (prepare_to_access_memory): Adjust comment.
4177 * win32-low.c (child_xfer_memory): Adjust to use
4178 process_stratum_target.
4179 (win32_target_ops): Now a process_stratum_target.
4180
559e7e50
EZ
41812020-01-06 Eli Zaretskii <eliz@gnu.org>
4182 Pedro Alves <palves@redhat.com>
4183
4184 * win32-low.c (get_child_debug_event): Extract the fatal exception
4185 from the exit status and convert to the equivalent Posix signal
4186 number.
4187 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4188 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4189
48189bec
HD
41902020-01-01 Hannes Domani <ssbssa@yahoo.de>
4191
4192 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4193
5dd8bf88
JB
41942020-01-01 Joel Brobecker <brobecker@adacore.com>
4195
4196 * server.c (gdbserver_version): Change copyright year to 2020.
4197 * gdbreplay.c (gdbreplay_version): Likewise.
4198
0ad6b8ee
CB
41992019-12-19 Christian Biesinger <cbiesinger@google.com>
4200
4201 * configure: Regenerate.
4202 * configure.ac: Quote variable arguments of test.
4203
1ee7b812
BE
42042019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4205
4206 * Makefile.in: Fix build with GNU Make 3.81
4207
d9fa87f4
TT
42082019-12-16 Tom Tromey <tromey@adacore.com>
4209
4210 * server.c (get_exec_file): Constify result.
4211
ab7d13f0
CB
42122019-12-10 Christian Biesinger <cbiesinger@google.com>
4213
4214 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4215 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4216 * config.in: Regenerate.
4217 * configure: Regenerate.
4218 * configure.ac: Don't check for strerror.
4219 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4220 Call safe_strerror instead of strerror.
4221 * server.h (strerror): Remove this now-unnecessary declaration.
4222 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4223 strerror.
4224 (gdb_agent_helper_thread): Likewise.
4225 * utils.c (perror_with_name): Likewise.
4226
4da8c3a8
TT
42272019-11-26 Tom Tromey <tom@tromey.com>
4228
4229 * configure, config.in: Rebuild.
4230
21987b9c
TT
42312019-11-26 Tom Tromey <tom@tromey.com>
4232
4233 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4234 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4235 gdb_sigmask.
4236 * configure, config.in: Rebuild.
4237
5e030278
TT
42382019-11-26 Tom Tromey <tom@tromey.com>
4239
4240 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4241 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4242 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4243 * acinclude.m4: Include ax_pthread.m4.
4244 * config.in, configure: Rebuild.
4245
6d91ce9a
CB
42462019-11-26 Christian Biesinger <cbiesinger@google.com>
4247
4248 * debug.c (debug_set_output): Call safe_strerror instead of
4249 strerror.
4250 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4251 (linux_kill_one_lwp): Likewise.
4252 (linux_detach_one_lwp): Likewise.
4253 (linux_wait_for_event_filtered): Likewise.
4254 (store_register): Likewise.
4255 * lynx-low.c (lynx_attach): Likewise.
4256 * mem-break.c (insert_memory_breakpoint): Likewise.
4257 (remove_memory_breakpoint): Likewise.
4258 (delete_fast_tracepoint_jump): Likewise.
4259 (set_fast_tracepoint_jump): Likewise.
4260 (uninsert_fast_tracepoint_jumps_at): Likewise.
4261 (reinsert_fast_tracepoint_jumps_at): Likewise.
4262 * nto-low.c (nto_xfer_memory): Likewise.
4263 (nto_resume): Likewise.
4264
6cdd651f
LM
42652019-11-20 Luis Machado <luis.machado@linaro.org>
4266
4267 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4268 instead of register count.
4269 * tdesc.c (tdesc_contains_feature): New function.
4270 * tdesc.h (tdesc_contains_feature): New prototype.
4271
cd850b40
CB
42722019-11-15 Christian Biesinger <cbiesinger@google.com>
4273
4274 * Makefile.in: Add safe-strerror.c.
4275 * configure: Regenerate.
4276 * configure.ac: Don't source common.host.
4277
5abebf3c
CB
42782019-11-15 Christian Biesinger <cbiesinger@google.com>
4279
4280 * config.in: Regenerate.
4281 * configure: Regenerate.
4282
e06f3d6e
AB
42832019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * ax.c (ax_printf): Handle size_t_arg.
4286
ca3a04f6
CB
42872019-11-06 Christian Biesinger <cbiesinger@google.com>
4288
4289 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4290 * mi/mi-main.c (output_cores): Likewise.
4291 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4292 (linux_xfer_osdata_modules): Likewise.
4293 * remote.c (register_remote_support_xml): Likewise.
4294 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4295 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4296
e48f6033
CB
42972019-11-01 Christian Biesinger <cbiesinger@google.com>
4298
4299 * configure: Regenerate.
4300 * configure.ac: Remove check for strerror_r.
4301
e7e97a2e
CB
43022019-10-31 Christian Biesinger <cbiesinger@google.com>
4303
4304 * config.in: Regenerate.
4305 * configure: Regenerate.
4306 * configure.ac: Also check for strerror_r.
4307
75cafaa6
CB
43082019-10-31 Christian Biesinger <cbiesinger@google.com>
4309
4310 * ax.h (debug_agent): Remove duplicate declaration.
4311
30baf67b
TV
43122019-10-26 Tom de Vries <tdevries@suse.de>
4313
4314 * linux-aarch64-low.c: Fix typos in comments.
4315 * linux-arm-low.c: Same.
4316 * linux-low.c: Same.
4317 * linux-ppc-low.c: Same.
4318 * proc-service.c: Same.
4319 * regcache.h: Same.
4320 * server.c: Same.
4321 * tracepoint.c: Same.
4322 * win32-low.c: Same.
4323
52c64cf7
TT
43242019-10-25 Tom Tromey <tromey@adacore.com>
4325
4326 * utils.c (xstrdup): Remove.
4327
c12d372d
TT
43282019-10-23 Tom Tromey <tom@tromey.com>
4329
4330 * configure, config.in: Rebuild.
4331
4d0b984b
TT
43322019-10-23 Tom Tromey <tom@tromey.com>
4333
4334 * configure: Rebuild.
4335 * acinclude.m4: Use m4_include, not sinclude.
4336
c5adaa19
TT
43372019-10-17 Tom Tromey <tromey@adacore.com>
4338
4339 * configure: Rebuild.
4340 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4341 in AC_CONFIG_FILES invocation.
4342 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4343 invocation.
4344
fec4e896
CB
43452019-10-16 Christian Biesinger <cbiesinger@google.com>
4346
4347 * server.c: Include xml-builtin.h.
4348 (get_xml_features): Don't declare xml_builtins here.
4349
00975ff6
AB
43502019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * Makefile.in: Remove references to vec-ipa.o.
4353
0dc32745
AB
43542019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 * Makefile.in: Remove references to vec.c.
4357
3e6ec53a
CB
43582019-10-02 Christian Biesinger <cbiesinger@google.com>
4359
4360 * server.c (server_waiting): Change to bool.
4361 (extended_protocol): Likewise.
4362 (response_needed): Likewise.
4363 (exit_requested): Likewise.
4364 (run_once): Likewise.
4365 (report_no_resumed): Likewise.
4366 (non_stop): Likewise.
4367 (disable_packet_vCont): Likewise.
4368 (disable_packet_Tthread): Likewise.
4369 (disable_packet_qC): Likewise.
4370 (disable_packet_qfThreadInfo): Likewise.
4371 (handle_general_set): Update.
4372 (handle_detach): Update.
4373 (handle_monitor_command): Update.
4374 (handle_query): Update.
4375 (captured_main): Update.
4376 (process_serial_event): Update.
4377 * server.h (server_waiting): Change to bool.
4378 (disable_packet_vCont): Likewise.
4379 (disable_packet_Tthread): Likewise.
4380 (disable_packet_qC): Likewise.
4381 (disable_packet_qfThreadInfo): Likewise.
4382 (run_once): Likewise.
4383 (non_stop): Likewise.
4384 * target.c (target_stop_and_wait): Update.
4385
80fd2826
TT
43862019-10-02 Tom Tromey <tromey@adacore.com>
4387
4388 * Makefile.in (SFILES): Add common-inferior.c.
4389 (OBS): Add common-inferior.o.
4390 * server.c (startup_with_shell): Don't define.
4391
46f29a9a
AB
43922019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * linux-low.c (linux_low_read_btrace): Update for change to
4395 std::vector.
4396
f9d949fb
CB
43972019-09-20 Christian Biesinger <cbiesinger@google.com>
4398
4399 * debug.c (debug_threads): Remove comment in favor of the header.
4400 * debug.h (using_threads): Add declaration.
4401 (debug_threads): Add comment.
4402 * linux-aarch64-low.c: Include debug.h and remove declaration of
4403 debug_threads.
4404 * nto-low.c: Likewise.
4405 * remote-utils.c: Likewise.
4406 * thread-db.c: Likewise.
4407
abf516c6
UW
44082019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4409
4410 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4411 and powerpc-cell64l-ipa.o.
4412 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4413 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4414 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4415 (spu*-*-*): Remove.
4416
4417 * spu-low.c: Remove file.
4418
4419 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4420 (parse_spufs_run): Remove.
4421 (ppc_get_pc): Remove Cell/B.E. support.
4422 (ppc_set_pc): Likewise.
4423 (ppc_breakpoint_at): Likewise.
4424 (ppc_arch_setup): Likewise.
4425 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4426 tdesc_powerpc_cell32l.
4427 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4428 or init_registers_powerpc_cell32l.
4429 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4430 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4431 or init_registers_powerpc_cell32l.
4432 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4433 (init_registers_powerpc_cell32l): Remove prototype.
4434 (init_registers_powerpc_cell64l): Likewise.
4435
4436 * target.h (struct target_ops): Remove qxfer_spu member.
4437 * server.c (handle_qxfer_spu): Remove.
4438 (qxfer_packets): Remove entry for "spu".
4439 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4440 * linux-low.c (SPUFS_MAGIC): Remove.
4441 (spu_enumerate_spu_ids): Remove.
4442 (linux_qxfer_spu): Remove.
4443 (linux_target_ops): Remove qxfer_spu member.
4444 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4445 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4446 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4447
2d41fa11
SDJ
44482019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4449
4450 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4451 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4452 * config.in: Regenerate.
4453 * configure: Regenerate.
4454
d59b55f0
TT
44552019-08-15 Tom Tromey <tromey@adacore.com>
4456
4457 * target.c (target_write_memory): Use gdb::byte_vector.
4458
4196ab2a
TT
44592019-08-15 Tom Tromey <tromey@adacore.com>
4460
4461 * tracepoint.c (write_inferior_data_pointer)
4462 (write_inferior_integer, write_inferior_int8)
4463 (write_inferior_uinteger, m_tracepoint_action_download)
4464 (r_tracepoint_action_download, x_tracepoint_action_download)
4465 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4466 (download_agent_expr, download_tracepoint_1)
4467 (download_trace_state_variables, upload_fast_traceframes): Update.
4468 * server.c (gdb_write_memory): Update.
4469 * remote-utils.c (relocate_instruction): Update.
4470 * proc-service.c (ps_pdwrite): Update.
4471 * mem-break.c (remove_memory_breakpoint)
4472 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4473 (uninsert_fast_tracepoint_jumps_at)
4474 (reinsert_fast_tracepoint_jumps_at): Update.
4475 * linux-x86-low.c (append_insns)
4476 (i386_install_fast_tracepoint_jump_pad)
4477 (amd64_write_goto_address, i386_write_goto_address): Update.
4478 * linux-s390-low.c (append_insns, s390_write_goto_address):
4479 Update.
4480 * linux-ppc-low.c (ppc_relocate_instruction)
4481 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4482 (ppc_write_goto_address): Update.
4483 * linux-aarch64-low.c (append_insns): Update.
4484 * target.h (struct target_ops): Update.
4485 (write_inferior_memory): Don't declare.
4486 * target.c (target_write_memory): Rename from
4487 write_inferior_memory. Remove old target_write_memory.
4488
c6778d00
TT
44892019-08-15 Tom Tromey <tromey@adacore.com>
4490
4491 * target.c (write_inferior_memory): Use std::vector.
4492
404f2902
FCE
44932019-08-06 Frank Ch. Eigler <fche@redhat.com>
4494
4495 PR build/24886
4496 * configure.ac: Drop enable-libmcheck support.
4497 * configure, config.in: Rebuild.
4498 * acinclude.m4: Don't include it.
4499
4c5aa8e0
AH
45002019-07-19 Alan Hayward <alan.hayward@arm.com>
4501
4502 * configure.srv: Remove Arm xml files.
4503
7cc17433
AH
45042019-07-19 Alan Hayward <alan.hayward@arm.com>
4505
4506 * configure.srv: Add new files. Remove xml generated files.
4507 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4508 registers.
4509 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4510 * linux-aarch32-tdesc.c: New file.
4511 * linux-aarch32-tdesc.h: New file.
4512 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4513 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4514 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4515 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4516 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4517 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4518 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4519 (arm_read_description): Call arm_linux_read_description.
4520 (initialize_low_arch): Don't init registers.
4521 * linux-arm-tdesc.c: New file.
4522 * linux-arm-tdesc.h: New file.
4523
166a82be
AH
45242019-07-10 Alan Hayward <alan.hayward@arm.com>
4525
4526 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4527 Move counter inside for.
4528 (arm_read_description): Check ptrace earlier.
4529 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4530
268a13a5
TT
45312019-07-09 Tom Tromey <tom@tromey.com>
4532
4533 * configure: Rebuild.
4534 * configure.ac: Change common to gdbsupport.
4535 * acinclude.m4: Change common to gdbsupport.
4536 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4537 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4538 common to gdbsupport.
4539 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4540 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4541 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4542 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4543 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4544 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4545 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4546 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4547 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4548 common to gdbsupport.
4549
350fab54
AH
45502019-07-04 Alan Hayward <alan.hayward@arm.com>
4551
4552 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4553 defines.
4554 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4555
2b40fda7
AH
45562019-07-04 Alan Hayward <alan.hayward@arm.com>
4557
4558 * configure.srv: Remove legacy xml.
4559 * linux-aarch64-low.c (initialize_low_arch): Remove
4560 initialize_low_tdesc call.
4561 * linux-aarch64-tdesc-selftest.c: Remove file.
4562 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4563 * linux-x86-low.c (initialize_low_arch): Remove
4564 initialize_low_tdesc call.
4565 * linux-x86-tdesc-selftest.c: Remove file.
4566 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4567
7d10623d
TV
45682019-06-20 Tom de Vries <tdevries@suse.de>
4569
4570 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4571 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4572
8d6a48df
TV
45732019-06-19 Tom de Vries <tdevries@suse.de>
4574
4575 * debug.h (debug_write): Change return type to ssize_t.
4576 * debug.c (debug_write): Same.
4577
73cc7272
TT
45782019-06-14 Tom Tromey <tom@tromey.com>
4579
4580 * configure.ac: Use new path to gnulib.
4581 * configure: Rebuild.
4582 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4583 to gnulib.
4584
08f10e02
TT
45852019-06-11 Tom Tromey <tom@tromey.com>
4586
4587 * Makefile.in (SFILES): Add alloc.c.
4588 (OBS): Add alloc.o.
4589 (IPA_OBJS): Add alloc-ipa.o.
4590 (alloc-ipa.o): New target.
4591 (%.o: ../%.c): New pattern rule.
4592
422186a9
TT
45932019-06-10 Tom Tromey <tromey@adacore.com>
4594
4595 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4596 end warning with a newline.
4597 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4598 newline.
4599 * thread-db.c (attach_thread): Don't end warning with a newline.
4600 (thread_db_notice_clone): Likewise.
4601 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4602 newline.
4603 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4604 end warning with a newline.
4605
b02f78f9
PA
46062019-06-04 Pedro Alves <palves@redhat.com>
4607
4608 * server.c (captured_main): Use make_unique_xstrdup.
4609
88ed7edb
TT
46102019-06-02 Tom Tromey <tom@tromey.com>
4611
4612 * gdbreplay.c (fromhex): Remove.
4613 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4614
33a6bc35
TT
46152019-05-29 Tom Tromey <tromey@adacore.com>
4616
4617 * configure: Rebuild.
4618
e90a813d
KB
46192019-05-06 Kevin Buettner <kevinb@redhat.com>
4620
4621 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4622 sign extension code on 32-bit builds.
4623
353ea2d1
EZ
46242019-05-03 Eli Zaretskii <eliz@gnu.org>
4625
4626 * remote-utils.c:
4627 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4628
b494cdff
TT
46292019-04-19 Tom Tromey <tom@tromey.com>
4630
4631 * server.c (struct vstop_notif): Derive from notif_event.
4632 <base>: Remove.
4633 (queue_stop_reply): Update.
4634 (remove_all_on_match_ptid): Change type. Rewrite.
4635 (discard_queued_stop_replies): Rewrite.
4636 (in_queued_stop_replies_ptid): Change type.
4637 (in_queued_stop_replies): Rewrite.
4638 (notif_stop): Update.
4639 (queue_stop_reply_callback): Update.
4640 (captured_main): Don't call initialize_notif.
4641 (push_stop_notification): Update.
4642 * notif.c (notif_write_event, handle_notif_ack)
4643 (notif_event_enque, notif_push): Update.
4644 (notif_event_xfree, initialize_notif): Remove.
4645 * notif.h (struct notif_event): Include <list>, not
4646 "common/queue.h".
4647 (struct notif_server) <queue>: Now a std::list.
4648 (notif_event_p): Remove typedef.
4649 (initialize_notif): Don't declare.
4650 (struct notif_event): Add virtual destructor.
4651
a7e559cc
AH
46522019-04-17 Alan Hayward <alan.hayward@arm.com>
4653
4654 * ax.c (ax_vdebug): Call debug_printf.
4655 * debug.c (debug_write): New function.
4656 * debug.h (debug_write): New declaration.
4657 * linux-low.c (sigchld_handler): Call debug_write.
4658
aeb2e706
AH
46592019-04-17 Alan Hayward <alan.hayward@arm.com>
4660
4661 * debug.c (debug_set_output): New function.
4662 (debug_vprintf): Send output to debug_file.
4663 (debug_flush): Likewise.
4664 * debug.h (debug_set_output): New declaration.
4665 * server.c (handle_monitor_command): Add debug-file option.
4666 (captured_main): Likewise.
4667
c1bc0935
AH
46682019-04-17 Alan Hayward <alan.hayward@arm.com>
4669
4670 * debug.c (remote_debug): Add definition.
4671 * debug.h (remote_debug): Add declaration.
4672 * hostio.c (remote_debug): Remove declaration.
4673 * remote-utils.c (struct ui_file): Likewise.
4674 (remote_debug): Likewise.
4675 * remote-utils.h (remote_debug): Likewise,
4676 * server.c (remote_debug): Remove definition.
4677
3f52fdbc
KB
46782019-04-10 Kevin Buettner <kevinb@redhat.com>
4679
4680 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4681 when using a 64-bit gdbserver.
4682
b0319eaa
TT
46832019-04-09 Tom Tromey <tromey@adacore.com>
4684
4685 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4686
eedc3f4f
TT
46872019-04-08 Tom Tromey <tom@tromey.com>
4688
4689 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4690 throw.
4691 (linux_resume_one_lwp): Likewise.
4692
230d2906
TT
46932019-04-08 Tom Tromey <tom@tromey.com>
4694
4695 * gdbreplay.c: Update.
4696 * linux-low.c: Update.
4697 * server.c: Update.
4698
a70b8144
TT
46992019-04-08 Tom Tromey <tom@tromey.com>
4700
4701 * server.c: Use C++ exception handling.
4702 * linux-low.c: Use C++ exception handling.
4703 * gdbreplay.c: Use C++ exception handling.
4704
3d6e9d23
TT
47052019-04-08 Tom Tromey <tom@tromey.com>
4706
4707 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4708 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4709 (captured_main, main): Update.
4710 * gdbreplay.c (main): Update.
4711
0570503d
PFC
47122019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4713
4714 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4715 value in argument pointer, return 1 if the entry is found and 0
4716 otherwise. Move comment.
4717 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4718 * linux-low.h (linux_get_auxv): Declare.
4719 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4720
227a9e65
TT
47212019-04-05 Tom Tromey <tromey@adacore.com>
4722
4723 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4724 variables.
4725
69f4c9cc
AH
47262019-03-28 Alan Hayward <alan.hayward@arm.com>
4727
4728 * linux-low.c (AT_HWCAP2): Add define if not already included.
4729
974c89e0
AH
47302019-03-26 Alan Hayward <alan.hayward@arm.com>
4731
4732 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4733 (aarch64_arch_setup): Call linux_get_hwcap.
4734 * linux-arm-low.c (arm_get_hwcap): Remove function.
4735 (arm_read_description): Call linux_get_hwcap.
4736 * linux-low.c (linux_get_auxv): New function.
4737 (linux_get_hwcap): Likewise.
4738 (linux_get_hwcap2): Likewise.
4739 * linux-low.h (linux_get_hwcap): New declaration.
4740 (linux_get_hwcap2): Likewise.
4741 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4742 (ppc_arch_setup): Call linux_get_hwcap.
4743 * linux-s390-low.c (s390_get_hwcap): Remove function.
4744 (s390_arch_setup): Call linux_get_hwcap.
4745
1ef53e6b
AH
47462019-03-22 Alan Hayward <alan.hayward@arm.com>
4747 Jiong Wang <jiong.wang@arm.com>
4748
4749 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4750 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4751 to fail.
4752 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4753
ee4fbcfa
AH
47542019-03-22 Alan Hayward <alan.hayward@arm.com>
4755 Jiong Wang <jiong.wang@arm.com>
4756
4757 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4758 (aarch64_get_hwcap): New function.
4759 (aarch64_arch_setup): Read APIA hwcap.
4760
6dc0ebde
AH
47612019-03-22 Alan Hayward <alan.hayward@arm.com>
4762 Jiong Wang <jiong.wang@arm.com>
4763
4764 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4765 (initialize_low_tracepoint): Likewise.
4766 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4767 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4768 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4769 (aarch64_linux_read_description): Likewise.
4770 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4771
1163a4b7
JB
47722019-03-12 John Baldwin <jhb@FreeBSD.org>
4773
4774 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4775 i386_create_target_description for 'segments' parameter.
4776 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4777 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4778 * win32-i386-low.c (i386_arch_setup): Likewise.
4779
d3a70e03
TT
47802019-03-12 Tom Tromey <tromey@adacore.com>
4781
4782 * linux-low.c (iterate_over_lwps): Update.
4783
37991b4f
TT
47842019-03-06 Tom Tromey <tom@tromey.com>
4785
4786 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4787 (captured_main): Use SCOPE_EXIT.
4788
45950eb6
SDJ
47892019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4790
4791 * configure.srv: Use '$enable_unittest' instead of '$development'
4792 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4793 case.
4794
43ac54fc
TT
47952019-02-27 Tom Tromey <tromey@adacore.com>
4796
4797 * gdbreplay.c (logchar): Handle \r\n.
4798
df0da8a2
AH
47992019-02-07 Alan Hayward <alan.hayward@arm.com>
4800
4801 * linux-low.c (linux_attach): Add process before lwp.
4802 * server.c (attach_inferior): Check if already attached.
4803
1a5c2598
TT
48042019-02-07 Tom Tromey <tom@tromey.com>
4805
4806 * x86-tdesc.h: Rename include guard.
4807 * x86-low.h: Add include guard.
4808 * wincecompat.h: Rename include guard.
4809 * win32-low.h: Add include guard.
4810 * utils.h: Rename include guard.
4811 * tracepoint.h: Rename include guard.
4812 * tdesc.h: Rename include guard.
4813 * target.h: Rename include guard.
4814 * server.h: Rename include guard.
4815 * remote-utils.h: Rename include guard.
4816 * regcache.h: Rename include guard.
4817 * nto-low.h: Rename include guard.
4818 * notif.h: Add include guard.
4819 * mem-break.h: Rename include guard.
4820 * lynx-low.h: Add include guard.
4821 * linux-x86-tdesc.h: Add include guard.
4822 * linux-s390-tdesc.h: Add include guard.
4823 * linux-ppc-tdesc-init.h: Add include guard.
4824 * linux-low.h: Add include guard.
4825 * linux-aarch64-tdesc.h: Add include guard.
4826 * linux-aarch32-low.h: Add include guard.
4827 * inferiors.h: Rename include guard.
4828 * i387-fp.h: Rename include guard.
4829 * hostio.h: Rename include guard.
4830 * gdbthread.h: Rename include guard.
4831 * gdb_proc_service.h: Rename include guard.
4832 * event-loop.h: Rename include guard.
4833 * dll.h: Rename include guard.
4834 * debug.h: Rename include guard.
4835 * ax.h: Rename include guard.
4836
956cc47c
SN
48372018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4838
4839 PR gdb/23985
4840 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4841 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4842
a0707f3c
TT
48432019-01-25 Tom Tromey <tom@tromey.com>
4844
4845 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4846
0747795c
TT
48472019-01-25 Tom Tromey <tom@tromey.com>
4848
4849 * win32-low.c: Fix common/ includes.
4850 * win32-i386-low.c: Fix common/ includes.
4851 * tracepoint.c: Fix common/ includes.
4852 * thread-db.c: Fix common/ includes.
4853 * target.h: Fix common/ includes.
4854 * symbol.c: Fix common/ includes.
4855 * spu-low.c: Fix common/ includes.
4856 * server.h: Fix common/ includes.
4857 * server.c: Fix common/ includes.
4858 * remote-utils.c: Fix common/ includes.
4859 * regcache.h: Fix common/ includes.
4860 * regcache.c: Fix common/ includes.
4861 * nto-x86-low.c: Fix common/ includes.
4862 * notif.h: Fix common/ includes.
4863 * mem-break.h: Fix common/ includes.
4864 * lynx-low.c: Fix common/ includes.
4865 * lynx-i386-low.c: Fix common/ includes.
4866 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4867 * linux-x86-low.c: Fix common/ includes.
4868 * linux-low.c: Fix common/ includes.
4869 * inferiors.h: Fix common/ includes.
4870 * i387-fp.c: Fix common/ includes.
4871 * hostio.c: Fix common/ includes.
4872 * hostio-errno.c: Fix common/ includes.
4873 * gdbthread.h: Fix common/ includes.
4874 * gdbreplay.c: Fix common/ includes.
4875 * fork-child.c: Fix common/ includes.
4876 * event-loop.c: Fix common/ includes.
4877 * ax.c:
4878 (enum gdb_agent_op): Fix common/ includes.
4879
be6d4f74
TT
48802019-01-21 Tom Tromey <tom@tromey.com>
4881
4882 * tracepoint.c: Fix includes.
4883 * remote-utils.c: Fix includes.
4884 * linux-x86-low.c: Fix includes.
4885
66d91b39
JB
48862019-01-01 Joel Brobecker <brobecker@adacore.com>
4887
4888 * gdbreplay.c (gdbreplay_version): Update copyright year in
4889 version message.
4890 * server.c (gdbserver_version): Likewise.
4891
754e3168
AH
48922018-12-05 Alan Hayward <alan.hayward@arm.com>
4893
4894 * linux-low.c (add_lwp): Switch ordering.
4895
d105de22
TT
48962018-11-29 Tom Tromey <tom@tromey.com>
4897
4898 * win32-low.c (win32_join): Take pid, not process.
4899 * target.h (struct target_ops) <join>: Change argument type.
4900 (join_inferior): Change argument name.
4901 * spu-low.c (spu_join): Take pid, not process.
4902 * server.c (handle_detach): Preserve pid before destroying
4903 process.
4904 * lynx-low.c (lynx_join): Take pid, not process.
4905 * linux-low.c (linux_join): Take pid, not process.
4906
50138245
AH
49072018-11-23 Alan Hayward <alan.hayward@arm.com>
4908
4909 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4910 (aarch64_cannot_fetch_register): Likewise.
4911 (struct linux_target_ops): Update references.
4912
64f57f3d
PFC
49132018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4914
4915 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4916
8d619c01
EBM
49172018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4918
4919 * configure.srv (ipa_ppc_linux_regobj): Add
4920 powerpc-isa207-htm-vsx32l-ipa.o and
4921 powerpc-isa207-htm-vsx64l-ipa.o.
4922 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4923 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4924 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4925 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4926 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4927 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4928 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4929 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4930 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4931 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4932 (init_registers_powerpc_isa207_htm_vsx32l)
4933 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4934 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4935 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4936 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4937 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4938 (ppc_store_tm_ctarregset): New functions.
4939 (ppc_regsets): Add entries for HTM regsets.
4940 (ppc_arch_setup): Set htm in features struct when needed. Set
4941 sizes for the HTM regsets.
4942 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4943 (initialize_low_arch): Call
4944 init_registers_powerpc_isa207_htm_vsx32l and
4945 init_registers_powerpc_isa207_htm_vsx64l.
4946 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4947 PPC_TDESC_ISA207_HTM_VSX.
4948 (initialize_low_tracepoint): Call
4949 init_registers_powerpc_isa207_htm_vsx32l and
4950 init_registers_powerpc_isa207_htm_vsx64l.
4951
232bfb86
EBM
49522018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4953
4954 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4955 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4956 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4957 (ppc_store_pmuregset): New functions.
4958 (ppc_regsets): Add entries for ebb and pmu regsets.
4959 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4960 pmu regsets are available. Set sizes for these regsets.
4961
f2cf6173
EBM
49622018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4963
4964 * configure.srv (ipa_ppc_linux_regobj): Add
4965 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4966 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4967 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4968 rs6000/powerpc-isa207-vsx32l.xml, and
4969 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4970 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4971 <PPC_TDESC_ISA207_VSX>: New enum value.
4972 (init_registers_powerpc_isa207_vsx32l): Declare.
4973 (init_registers_powerpc_isa207_vsx64l): Declare.
4974 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4975 (ppc_store_tarregset): New function.
4976 (ppc_regsets): Add entry for the TAR regset.
4977 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4978 size for the TAR regsets.
4979 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4980 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4981 and init_registers_powerpc_isa207_vsx64l.
4982 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4983 (initialize_low_tracepoint): Call
4984 init_registers_powerpc_isa207_vsx32l and
4985 init_registers_powerpc_isa207_vsx64l.
4986
7ca18ed6
EBM
49872018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4988 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4989
4990 * configure.srv (ipa_ppc_linux_regobj): Add
4991 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4992 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4993 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4994 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4995 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4996 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4997 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4998 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4999 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5000 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5001 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5002 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5003 (ppc_hwcap): Add comment.
5004 (ppc_hwcap2): New global.
5005 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5006 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5007 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5008 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5009 when needed. Set sizes for the the DSCR and PPR regsets.
5010 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5011 (initialize_low_arch): Call
5012 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5013 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5014 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5015 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5016 (initialize_low_tracepoint): Call
5017 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5018 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5019
5c849b22
PFC
50202018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5021
5022 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5023
8ecfd7bd
SDJ
50242018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5025 Simon Marchi <simark@simark.ca>
5026
5027 * acinclude.m4: Include "../selftest.m4".
5028 * configure: Regenerate.
5029 * configure.ac: Use "GDB_AC_SELFTEST".
5030 * configure.srv: Use "$enable_unittests" instead of
5031 "$development" when checking whether unit tests have been
5032 enabled.
5033 * server.c (captured_main): Update message informing that
5034 selftests have been disabled.
5035
96643e35
TT
50362018-10-04 Tom Tromey <tom@tromey.com>
5037
5038 * configure: Rebuild.
5039
da4ae14a
TT
50402018-10-04 Tom Tromey <tom@tromey.com>
5041
5042 * server.c (handle_status): Rename inner "thread".
5043 (process_serial_event): Declare "res" in 'm' case.
5044 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5045 (iterate_over_lwps): Rename inner "thread".
5046 (linux_qxfer_libraries_svr4): Rename inner "len".
5047 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5048
7c619dbd
GB
50492018-10-01 Gary Benson <gbenson@redhat.com>
5050
5051 * gdb_proc_service.h: Moved common code to
5052 common/gdb_proc_service.h.
5053
3795e814
GB
50542018-10-01 Gary Benson <gbenson@redhat.com>
5055
5056 * gdb_proc_service.h: Synchronize comments and whitespace with
5057 GDB's version of this file.
5058
49b036f1
TT
50592018-09-25 Tom Tromey <tom@tromey.com>
5060
5061 * configure: Rebuild.
5062 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5063
8ff03f0b
SM
50642018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5067 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5068 ($(IPA_LIB)): Sort IPA_OBJS.
5069
a1cd91dc
SM
50702018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5071
5072 * Makefile.in: Remove references to $(ADD_DEPS).
5073
752312ba
TT
50742018-09-16 Tom Tromey <tom@tromey.com>
5075
5076 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5077 variables.
5078 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5079 variables.
5080
f1628857
TT
50812018-09-05 Tom Tromey <tom@tromey.com>
5082
5083 * configure: Rebuild.
5084
ad202fcc
SM
50852018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5086
5087 PR build/23399
5088 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5089
d3d8724a
TT
50902018-08-27 Tom Tromey <tom@tromey.com>
5091
5092 PR build/23087:
5093 * configure: Rebuild.
5094
b4f183d2
TT
50952018-08-27 Tom Tromey <tom@tromey.com>
5096
5097 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5098 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5099 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5100 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5101 (s390x_emit_stack_adjust): Add casts to unsigned char.
5102
4e2aa472
SM
51032018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5104
5105 PR gdb/23374
5106 PR gdb/23375
5107 * server.h (struct client_state) <disable_randomization>:
5108 Initialize to 1.
5109
cf4088a9
SM
51102018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5111
5112 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5113 variable.
5114 (mips_supply_ptrace_register): Likewise.
5115
a0de763e
TT
51162018-07-22 Tom Tromey <tom@tromey.com>
5117
5118 * configure: Rebuild.
5119
b0a7723d
TT
51202018-07-22 Tom Tromey <tom@tromey.com>
5121
5122 * win32-low.c (win32_create_inferior): Remove unused variables.
5123 * gdbreplay.c (remote_open): Remove unused variable.
5124 * remote-utils.c (remote_prepare): Remove unused variable.
5125 * x86-tdesc.h (X86_TDESC_H): Define.
5126 (amd64_expedite_regs): Define conditionally.
5127 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5128 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5129 * remote-utils.c (readchar): Remove unused variable.
5130
a780ef4f
PA
51312018-07-13 Pedro Alves <palves@redhat.com>
5132
5133 * linux-low.c (linux_kill): Change parameter to process_info
5134 pointer instead of pid. Adjust.
5135 * lynx-low.c (lynx_kill): Likewise.
5136 * nto-low.c (nto_kill): Likewise.
5137 * spu-low.c (spu_kill): Likewise.
5138 * win32-low.c (win32_kill): Likewise.
5139 * server.c (handle_v_kill, kill_inferior_callback)
5140 (detach_or_kill_for_exit): Adjust.
5141 * target.c (kill_inferior): Change parameter to process_info
5142 pointer instead of pid. Adjust.
5143 * target.h (struct target_ops) <kill>: Change parameter to
5144 process_info pointer instead of pid. Adjust all implementations
5145 and callers.
5146 (kill_inferior): Likewise.
5147
ef2ddb33
PA
51482018-07-13 Pedro Alves <palves@redhat.com>
5149
5150 * linux-low.c (linux_detach, linux_join): Change parameter to
5151 process_info pointer instead of pid. Adjust.
5152 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5153 * nto-low.c (nto_detach): Likewise.
5154 * spu-low.c (spu_detach, spu_join): Likewise.
5155 * win32-low.c (win32_detach, win32_join): Likewise.
5156 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5157 * target.h (struct target_ops) <detach, join>: Change parameter to
5158 process_info pointer instead of pid. Adjust all implementations
5159 and callers.
5160 (detach_inferior, join_inferior): Rename 'pid' parameter to
5161 'proc'.
5162
c7ab0aef
SDJ
51632018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5164 Jan Kratochvil <jan.kratochvil@redhat.com>
5165 Paul Fertser <fercerpav@gmail.com>
5166 Tsutomu Seki <sekiriki@gmail.com>
5167
5168 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5169 (OBS): Add 'common/netstuff.o'.
5170 (GDBREPLAY_OBS): Likewise.
5171 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5172 (remote_open): Implement support for IPv6
5173 connections.
5174 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5175 and 'wspiapi.h'.
5176 (handle_accept_event): Accept connections from IPv6 sources.
5177 (remote_prepare): Handle IPv6-style hostnames; implement
5178 support for IPv6 connections.
5179 (remote_open): Implement support for printing connections from
5180 IPv6 sources.
5181
31445d10
PA
51822018-07-11 Pedro Alves <palves@redhat.com>
5183
5184 PR gdb/23377
5185 * mem-break.c (any_persistent_commands): Add process_info
5186 parameter and use it instead of relying on the current process.
5187 Change return type to bool.
5188 * mem-break.h (any_persistent_commands): Add process_info
5189 parameter and change return type to bool.
5190 * server.c (handle_detach): Remove require_running_or_return call.
5191 Look up the process_info for the process we're about to detach.
5192 If not found, return back error to GDB. Adjust
5193 any_persistent_commands call to pass down a process pointer.
5194
cb197132
PA
51952018-07-11 Pedro Alves <palves@redhat.com>
5196
5197 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5198 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5199 instead of collect_register_by_name.
5200 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5201 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5202
1b919490
VB
52032018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5204 Pedro Alves <palves@redhat.com>
5205
5206 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5207
d7e15655
TT
52082018-07-03 Tom Tromey <tom@tromey.com>
5209
5210 * linux-low.c: Update.
5211 * lynx-low.c: Update.
5212 * mem-break.c: Update.
5213 * nto-low.c: Update.
5214 * remote-utils.c: Update.
5215 * server.c: Update.
5216 * spu-low.c: Update.
5217 * target.c: Update.
5218 * win32-low.c: Update.
5219
26a57c92
TT
52202018-07-03 Tom Tromey <tom@tromey.com>
5221
5222 * server.c: Update.
5223
0e998d96
TT
52242018-07-03 Tom Tromey <tom@tromey.com>
5225
5226 * linux-low.c: Update.
5227
cc6bcb54
TT
52282018-07-03 Tom Tromey <tom@tromey.com>
5229
5230 * target.c: Update.
5231
e38504b3
TT
52322018-07-03 Tom Tromey <tom@tromey.com>
5233
5234 * linux-low.c: Update.
5235 * linux-mips-low.c: Update.
5236 * lynx-low.c: Update.
5237 * nto-low.c: Update.
5238 * remote-utils.c: Update.
5239 * server.c: Update.
5240 * spu-low.c: Update.
5241 * target.c: Update.
5242 * thread-db.c: Update.
5243
e99b03dc
TT
52442018-07-03 Tom Tromey <tom@tromey.com>
5245
5246 * linux-low.c: Update.
5247 * linux-mips-low.c: Update.
5248 * lynx-low.c: Update.
5249 * mem-break.c: Update.
5250 * nto-low.c: Update.
5251 * remote-utils.c: Update.
5252 * server.c: Update.
5253 * spu-low.c: Update.
5254 * target.c: Update.
5255 * tracepoint.c: Update.
5256
f2907e49
TT
52572018-07-03 Tom Tromey <tom@tromey.com>
5258
5259 * linux-low.c: Update.
5260 * linux-ppc-low.c: Update.
5261 * linux-x86-low.c: Update.
5262 * proc-service.c: Update.
5263 * server.c: Update.
5264 * spu-low.c: Update.
5265 * thread-db.c: Update.
5266 * win32-low.c: Update.
5267
fd79271b
TT
52682018-07-03 Tom Tromey <tom@tromey.com>
5269
5270 * linux-low.c: Update.
5271 * lynx-low.c: Update.
5272 * nto-low.c: Update.
5273 * remote-utils.c: Update.
5274 * spu-low.c: Update.
5275 * thread-db.c: Update.
5276 * win32-low.c: Update.
5277
c0867626
SDJ
52782018-06-29 Joel Brobecker <brobecker@adacore.com>
5279
5280 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5281 parameter in call to 'amd64_create_target_description'.
5282
2512d7ef
JK
52832018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 * x86-tdesc.h: Remove executable permission flag.
5286
d0ac1c44
SM
52872018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5288
5289 * configure.ac: Remove AC_PREREQ, add missing quoting.
5290 * configure: Re-generate.
5291 * config.in: Re-generate.
5292 * aclocal.m4: Re-generate.
5293
c4eb05ff
SM
52942018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5295
5296 * tracepoint.h (current_traceframe): Remove declaration.
5297
02895270
AH
52982018-06-18 Alan Hayward <alan.hayward@arm.com>
5299
5300 * linux-aarch64-low.c (is_sve_tdesc): New function.
5301 (aarch64_sve_regs_copy_to_regcache): Likewise.
5302 (aarch64_sve_regs_copy_from_regcache): Likewise.
5303 (aarch64_regs_info): Add SVE checks.
5304 (initialize_low_arch): Initialize SVE.
5305
e9902bfc
AH
53062018-06-18 Alan Hayward <alan.hayward@arm.com>
5307
5308 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5309
fefa175e
AH
53102018-06-11 Alan Hayward <alan.hayward@arm.com>
5311
5312 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5313 (initialize_low_tracepoint): Likewise
5314 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5315 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5316 param.
5317 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5318 checks.
5319 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5320
b91ad3ff
AH
53212018-06-11 Alan Hayward <alan.hayward@arm.com>
5322
5323 * server.h (PBUFSIZ): Increase size
5324
f868386e
AH
53252018-06-11 Alan Hayward <alan.hayward@arm.com>
5326
5327 * regcache.c (regcache::raw_compare): New function.
5328 * regcache.h (regcache::raw_compare): New declaration.
5329
9c861883
AH
53302018-06-11 Alan Hayward <alan.hayward@arm.com>
5331
5332 * regcache.c (new_register_cache): Use new.
5333 (free_register_cache): Use delete.
5334 (register_data): Use const.
5335 (supply_register): Move body inside regcache.
5336 (regcache::raw_supply): New override function.
5337 (collect_register): Move body inside regcache.
5338 (regcache::raw_collect): New override function.
5339 (regcache::get_register_status): New override function.
5340 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5341
40591844
TT
53422018-06-09 Tom Tromey <tom@tromey.com>
5343
5344 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5345 declare queue.
5346 (event_queue): Use std::queue.
5347 (gdb_event_xfree): Remove.
5348 (initialize_event_loop, process_event, wait_for_event): Update.
5349
6341380d
SC
53502018-06-08 Stan Cox <scox@redhat.com>
5351
5352 * win32-low.c (win32_create_inferior): last_ptid and last_status
5353 moved to client_state.
5354
03349c93
PA
53552018-06-08 Pedro Alves <palves@redhat.com>
5356
5357 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5358 common/common-exceptions.o, common/common-utils.o,
5359 common/errors.o, common/print-utils.o and utils.o.
5360 * gdbreplay.c: Include "common-defs.h" instead of the two
5361 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5362 string.h or alloca.h.
5363 (perror_with_name): Delete.
5364 (remote_open): Use xstrdup instead of strdup.
5365 (main): Rename to ...
5366 (captured_main): ... this.
5367 (main): New.
5368
8dcc53b3
TT
53692018-06-08 Tom Tromey <tom@tromey.com>
5370
5371 * linux-low.c (linux_low_read_btrace): Update.
5372
c12a5089
SC
53732018-06-04 Stan Cox <scox@redhat.com>
5374
5375 * server.h (struct client_state): New.
5376 * server.c (cont_thread, general_thread, multi_process)
5377 (report_fork_events, report_vfork_events, report_exec_events)
5378 (report_thread_events, swbreak_feature, hwbreak_feature)
5379 (vCont_supported, disable_randomization, pass_signals)
5380 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5381 Moved to client_state.
5382 * remote-utils.c (remote_debug, noack_mode)
5383 (transport_is_reliable): Moved to client_state.
5384 * tracepoint.c (current_traceframe): Moved to client_state.
5385
5386 Update all callers.
5387 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5388 linux-low.c, remote-utils.h, target.c: Use client_state.
5389
122394f1
AH
53902018-05-31 Alan Hayward <alan.hayward@arm.com>
5391
5392 * configure.srv: Add new c/h file.
5393
95228a0d
AH
53942018-05-31 Alan Hayward <alan.hayward@arm.com>
5395
5396 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5397 null VQ.
5398
d8dab6c3
MR
53992018-05-25 Maciej W. Rozycki <macro@mips.com>
5400
5401 * gdb.arch/mips-fpregset-core.exp: New test.
5402 * gdb.arch/mips-fpregset-core.c: New test source.
5403
81e25b7c
EK
54042018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5405
5406 PR server/23198
5407 * hostio.c (require_int): Do not report overflow for integers
5408 between 0xfffffff and 0x7fffffff.
5409
7e947ad3
MR
54102018-05-22 Maciej W. Rozycki <macro@mips.com>
5411
5412 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5413 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5414 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5415 functions.
5416 (the_low_target): Wire them.
5417
1d75a658
PFC
54182018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5419
5420 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5421 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5422 mode. Call collect_register_by_name with vscr using
5423 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5424 (ppc_store_vrregset): Add and set vscr_offset variable as in
5425 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5426 vscr_offset.
5427
d078308a
PFC
54282018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5429
5430 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5431 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5432 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5433
7273b5fc
PFC
54342018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5435
5436 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5437 (ppc_store_vsxregset): Likewise.
5438 (ppc_fill_vrregset): Likewise.
5439 (ppc_store_vrregset): Likewise.
5440 (ppc_fill_evrregset): Likewise.
5441 (ppc_store_evrregset): Likewise.
5442 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5443 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5444 needed.
5445
2e077f5e
PFC
54462018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5447
5448 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5449 wordsize of the inferior. Call ppc_linux_target_wordsize.
5450
bd64614e
PFC
54512018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5452
5453 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5454 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5455 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5456 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5457 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5458 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5459 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5460 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5461 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5462 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5463 (tdesc_powerpc_e500l): Remove.
5464 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5465 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5466 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5467 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5468 linux-ppc-tdesc.h.
5469 (ppc_arch_setup): Remove target description matching code. Fill a
5470 ppc_linux_features struct and call ppc_linux_match_description
5471 with it.
5472
75d74cca
MR
54732018-05-22 Maciej W. Rozycki <macro@mips.com>
5474
5475 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5476 width of the requested register exceeds the width of the
5477 `ptrace' data type.
5478 (mips_cannot_store_register): Likewise.
5479
e4439e43
MR
54802018-05-21 Maciej W. Rozycki <macro@mips.com>
5481
5482 * linux-mips-low.c (mips_fetch_register): New function. Update
5483 preceding comment.
5484 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5485 (the_low_target): Wire `mips_fetch_register'.
5486
55271bf9
JB
54872018-05-10 Joel Brobecker <brobecker@adacore.com>
5488
5489 * lynx-i386-low.c (LYNXOS_178): New macro.
5490 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5491 the layout on LynxOS-178.
5492 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5493 handle floating point registers that are not supported by
5494 LynxOS-178.
5495
1a34f210
TT
54962018-05-10 Tom Tromey <tom@tromey.com>
5497
5498 * configure: Rebuild.
5499
190852c8
JB
55002018-05-10 Joel Brobecker <brobecker@adacore.com>
5501
5502 PR server/23158:
5503 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5504 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5505 Use it to set the expedite_regs field in the given tdesc.
5506 * x86-tdesc.h: New file.
5507 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5508 Adjust following the addition of the new expedite_regs parameter
5509 to init_target_desc.
5510 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5511 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5512 (i386_linux_read_description, amd64_linux_read_description):
5513 Adjust following the addition of the new expedite_regs parameter
5514 to init_target_desc.
5515 * lynx-i386-low.c: #include "x86-tdesc.h".
5516 (lynx_i386_arch_setup): Adjust following the addition of the new
5517 expedite_regs parameter to init_target_desc.
5518 * nto-x86-low.c: #include "x86-tdesc.h".
5519 (nto_x86_arch_setup): Adjust following the addition of the new
5520 expedite_regs parameter to init_target_desc.
5521 * win32-i386-low.c: #include "x86-tdesc.h".
5522 (i386_arch_setup): Adjust following the addition of the new
5523 expedite_regs parameter to init_target_desc.
5524
7dbac825
JB
55252018-05-10 Joel Brobecker <brobecker@adacore.com>
5526
5527 PR server/23158:
5528 * win32-low.c (win32_create_inferior): Add call to my_wait
5529 setting last_status global.
5530
906994d9
JB
55312018-05-10 Joel Brobecker <brobecker@adacore.com>
5532
5533 PR server/23158:
5534 * win32-low.c (create_process): Only call gdb_tilde_expand if
5535 inferior_cwd is not NULL.
5536
8ee22052
AB
55372018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5540 registers to the cache if their values have changed.
5541 (i387_xsave_to_cache): Provide default values for x87 control
5542 registers when these features are available, but disabled.
5543 * regcache.c (supply_register_by_name_zeroed): New function.
5544 * regcache.h (supply_register_by_name_zeroed): Declare new
5545 function.
5546
aff689d3
TT
55472018-05-07 Tom Tromey <tom@tromey.com>
5548
5549 * configure: Rebuild.
5550
85e26832
TT
55512018-05-04 Tom Tromey <tom@tromey.com>
5552
5553 * configure: Rebuild.
5554
a3b60e45
JK
55552018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 Pedro Alves <palves@redhat.com>
5557
5558 * linux-aarch64-low.c (aarch64_stopped_data_address):
5559 Likewise.
5560
632e107b
TT
55612018-04-27 Tom Tromey <tom@tromey.com>
5562
5563 * configure: Rebuild.
5564
458412c3
TT
55652018-04-23 Tom Tromey <tom@tromey.com>
5566
5567 * configure: Rebuild.
5568
f31c089e
SM
55692018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5570
5571 * Makefile.in (depcomp): Add "..".
5572 (all_deps_files): New and use it.
5573
b319b098
AH
55742018-04-18 Alan Hayward <alan.hayward@arm.com>
5575
5576 * configure.srv (aarch64*-*-linux*): Don't include xml.
5577 (i[34567]86-*-cygwin*): Likewise.
5578 (i[34567]86-*-linux*): Likewise.
5579 (i[34567]86-*-lynxos*): Likewise.
5580 (i[34567]86-*-mingw32ce*): Likewise.
5581 (i[34567]86-*-mingw*): Likewise.
5582 (i[34567]86-*-nto*): Likewise.
5583 (tic6x-*-uclinux): Likewise.
5584 (x86_64-*-linux*): Likewise.
5585 (x86_64-*-mingw*): Likewise.
5586 (x86_64-*-cygwin*): Likewise.
5587
3b74854b
AH
55882018-04-18 Alan Hayward <alan.hayward@arm.com>
5589
5590 * tdesc.c: Remove xml parameter.
5591
e98577a9
AH
55922018-04-18 Alan Hayward <alan.hayward@arm.com>
5593
5594 * server.c (get_features_xml): Remove cast.
5595 * tdesc.c (void target_desc::accept): Fill in function.
5596 (tdesc_get_features_xml): Remove old xml creation.
5597 (print_xml_feature::visit_pre): Add xml vistor.
5598 * tdesc.h (struct target_desc): Make xmltarget mutable.
5599 (tdesc_get_features_xml): Remove declaration.
5600
d278f585
AH
56012018-04-18 Alan Hayward <alan.hayward@arm.com>
5602
5603 * tdesc.c (tdesc_architecture_name): Add new function.
5604 (tdesc_osabi_name): Likewise.
5605 (tdesc_get_features_xml): Use new functions.
5606
eee8a18d
AH
56072018-04-18 Alan Hayward <alan.hayward@arm.com>
5608
5609 * tdesc.c (tdesc_create_flags): Remove.
5610 (tdesc_add_flag): Likewise.
5611 (tdesc_named_type): Likewise.
5612 (tdesc_create_union): Likewise.
5613 (tdesc_create_struct): Likewise.
5614 (tdesc_create_vector): Likewise.
5615 (tdesc_add_bitfield): Likewise.
5616 (tdesc_add_field): Likewise.
5617 (tdesc_set_struct_size): Likewise.
5618
82ec9bc7
AH
56192018-04-18 Alan Hayward <alan.hayward@arm.com>
5620
5621 * tdesc.c (~target_desc): Remove implictly deleted items.
5622 (init_target_desc): Iterate all features.
5623 (tdesc_get_features_xml): Use vector.
5624 (tdesc_create_feature): Create feature.
5625 * tdesc.h (tdesc_feature) Remove
5626 (target_desc): Add features.
5627
ea3e7d71
AH
56282018-04-18 Alan Hayward <alan.hayward@arm.com>
5629
5630 * Makefile.in: Add common/tdesc.c
5631 * tdesc.c (init_target_desc): init all reg_defs from register
5632 vector.
5633 (tdesc_create_reg): Create tdesc_reg.
5634 * tdesc.h (tdesc_feature): Add register vector.
5635
17d08cd4
SM
56362018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 * tdesc.h (struct target_desc) <features>: Change type to
5639 std::vector<std::string>.
5640 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5641 changes.
5642 (tdesc_get_features_xml): Likewise.
5643 (tdesc_create_feature): Likewise.
5644
5cd3e386
AH
56452018-03-26 Alan Hayward <alan.hayward@arm.com>
5646
5647 * regcache.c (find_register_by_number): Return a ref.
5648 (find_regno): Use references.
5649 (register_size): Likewise.
5650 (register_data): Likewise.
5651 * tdesc.c (target_desc::~target_desc): Remove free calls.
5652 (target_desc::operator==): Use std::vector compare.
5653 (init_target_desc): Use reference.
5654 (tdesc_create_reg): Use reg constructors.
5655 * tdesc.h (struct target_desc): Replace pointer with object.
5656
dff7492c
AH
56572018-03-23 Alan Hayward <alan.hayward@arm.com>
5658
5659 * regcache.c (find_register_by_number): Make static.
5660 (find_regno): Use find_register_by_number
5661 * regcache.h (struct reg): Remove declaration.
5662
d80e5242
AH
56632018-03-23 Alan Hayward <alan.hayward@arm.com>
5664
5665 * tdesc.c (target_desc::~target_desc): Move to here.
5666 (target_desc::operator==): Likewise.
5667 * tdesc.h (target_desc::~target_desc): Move from here.
5668 (target_desc::operator==): Likewise.
5669
f69c5afb
AA
56702018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5671
5672 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5673
ce29f843
AA
56742018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5675
5676 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5677 S390_TDESC_GS.
5678 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5679 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5680 and init_registers_s390_gs_linux64.
5681
c49bd90b
AA
56822018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5683
5684 * linux-s390-low.c (s390_fill_gs): Remove function.
5685 (s390_fill_gsbc): Remove function.
5686 (s390_regsets): Set fill functions for the guarded storage regsets
5687 to NULL.
5688
7edb9bd3
AA
56892018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5690
5691 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5692 the word size. Add comment.
5693 (s390_get_wordsize): New function.
5694 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5695 pswm with it. Instead, use s390_get_wordsize to determine the
5696 word size first and derive the correct tdesc from that directly.
5697
39be3c7e
SM
56982018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * Makefile.in: Include silent-rules.mk.
5701 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5702 (COMPILE): Add ECHO_CXX.
5703 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5704 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5705 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5706 (version-generated.c): Add ECHO_GEN.
5707 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5708 (IPAGENT_COMPILE): Add ECHO_CXX.
5709 (%-generated.c): Add ECHO_REGDAT.
5710
3ae9ce5d
TT
57112018-03-14 Tom Tromey <tom@tromey.com>
5712
5713 PR cli/14977:
5714 * ax.c (ax_printf): Special case for NULL.
5715
e6a58aa8
SM
57162018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * linux-low.c (linux_qxfer_libraries_svr4): Use
5719 xml_escape_text_append.
5720
f6e8a41e
SM
57212018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5724
b9671caf
SM
57252018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * server.c (handle_general_set): Remove unnecessary xstrdup.
5728
e80aaf61
SM
57292018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * server.c (parse_debug_format_options): Adjust to
5732 delim_string_to_char_ptr_vec changes.
5733 * thread-db.c (thread_db_load_search): Adjust to
5734 dirnames_to_char_ptr_vec changes.
5735
b1223e78
MM
57362018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5737
5738 * target.h (target_enable_btrace, target_disable_btrace)
5739 (target_read_btrace, target_read_btrace_conf): Turn macro into
5740 inline function. Throw error if target method is not defined.
5741 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5742 check for btrace target method. Be prepared to handle exceptions
5743 from btrace target methods.
5744
81561546
SDJ
57452018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5746
5747 * server.c (captured_main): Change order of error message printed
5748 when the current working directory cannot be found.
5749
25e3c82c
SDJ
57502018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5751
5752 * server.c: Include "filenames.h" and "pathstuff.h".
5753 (program_name): Delete variable.
5754 (program_path): New anonymous class.
5755 (get_exec_wrapper): Use "program_path" instead of
5756 "program_name".
5757 (handle_v_run): Likewise.
5758 (captured_main): Likewise.
5759 (process_serial_event): Likewise.
5760
b4987c95
SDJ
57612018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5762
5763 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5764 (OBJS): Add "pathstuff.o".
5765 * server.c (current_directory): New global variable.
5766 (captured_main): Initialize "current_directory".
5767
f46cd62a
AH
57682018-02-26 Alan Hayward <alan.hayward@arm.com>
5769
5770 * tdesc.c: Use common/tdesc.h.
5771 * tdesc.h: Likewise.
5772
a543c5ca
AH
57732018-02-20 Alan Hayward <alan.hayward@arm.com>
5774 Simon Marchi <simon.marchi@ericsson.com>
5775
5776 * Makefile.in: Switch order of make rules.
5777
b5884fa7
AH
57782018-02-19 Alan Hayward <alan.hayward@arm.com>
5779
5780 * Makefile.in: Add common directory in build.
5781 * configure.ac: Add common reference.
5782 * configure: Regenerate.
5783
de6242d3
MM
57842018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5785
5786 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5787 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5788 * spu-low.c (spu_target_ops): Likewise.
5789 * win32-low.c (win32_target_ops): Likewise.
5790 * server.c (supported_btrace_packets): Report packets unconditionally.
5791 * target.h (target_ops) <supports_btrace>: Remove.
5792 (target_supports_btrace): Remove.
5793
9ee23a85
MM
57942018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5795
5796 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5797 (handle_btrace_disable): Change return type to void. Use exceptions
5798 to report errors.
5799 (handle_btrace_general_set): Catch exception and copy message to
5800 return message.
5801
8ce47547
TT
58022018-02-08 Tom Tromey <tom@tromey.com>
5803
5804 * linux-low.c (install_software_single_step_breakpoints): Use
5805 make_scoped_restore.
5806 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5807 (do_restore_current_thread_cleanup): Remove.
5808 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5809 declare.
5810
45dd3607
TT
58112018-02-08 Tom Tromey <tom@tromey.com>
5812
5813 * mem-break.c (set_raw_breakpoint_at): Use
5814 gdb::unique_xmalloc_ptr.
5815
e671cd59
PA
58162018-01-30 Pedro Alves <palves@redhat.com>
5817
5818 PR gdb/13211
5819 * target.c (target_terminal::terminal_state): Rename to ...
5820 (target_terminal::m_terminal_state): ... this.
5821
a0aad537
JC
58222018-01-19 James Clarke <jrtc27@jrtc27.com>
5823
5824 * linux-low.c (handle_extended_wait): Surround call to
5825 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5826
4d9b86e1
SM
58272018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5828
5829 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5830 linux_ptrace_attach_fail_reason_string now returning an
5831 std::string.
5832 (linux_attach): Likewise.
5833 * thread-db.c (attach_thread): Likewise.
5834
f517c180
EA
58352018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5836
5837 PR gdb/21559
5838 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5839 checking for fs_base/gs_base fields in struct user_regs_struct.
5840 * configure: Regenerate.
5841
9a70f35c
YQ
58422018-01-16 Yao Qi <yao.qi@linaro.org>
5843
5844 PR gdb/18749
5845 * linux-low.c (fetch_register): Call supply_register instead of
5846 error.
5847
605fd3c6
YQ
58482018-01-08 Yao Qi <yao.qi@linaro.org>
5849 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * Makefile.in (OBS): Remove selftest.o.
5852 * configure.ac: Set srv_selftest_objs if $development is true.
5853 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5854 * configure: Re-generated.
5855 * server.c (captured_main): Wrap variable selftest_filter with
5856 GDB_SELF_TEST.
5857
2cc05030
SM
58582018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * server.c (parse_debug_format_options): Return std::string.
5861 (handle_monitor_command, captured_main): Adjust.
5862
e379cee6
PA
58632018-01-05 Pedro Alves <palves@redhat.com>
5864
5865 PR gdb/18653
5866 * server.c (captured_main): Pass quiet=false to
5867 save_original_signals_state.
5868
82e1e79a
JB
58692018-01-01 Joel Brobecker <brobecker@adacore.com>
5870
5871 * gdbreplay.c (gdbreplay_version): Update copyright year in
5872 version message.
5873 * server.c (gdbserver_version): Likewise.
5874
8e481c3b
TT
58752017-12-08 Tom Tromey <tom@tromey.com>
5876
5877 * ax.c (ax_printf): Update.
5878
a8806230
YQ
58792017-12-07 Yao Qi <yao.qi@linaro.org>
5880
5881 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5882 aarch64_linux_read_description.
5883 * linux-amd64-ipa.c (idx2mask): New array.
5884 (get_ipa_tdesc): Move idx2mask out.
5885 (initialize_low_tracepoint): Initialize target descriptions.
5886 * linux-i386-ipa.c (idx2mask): New array.
5887 (get_ipa_tdesc): Move idx2mask out.
5888 (initialize_low_tracepoint): Initialize target descriptions.
5889
d4a0e8b5
SM
58902017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * tdesc.c (struct tdesc_type): Change return type.
5893 (tdesc_add_flag): Change parameter type.
5894 (tdesc_add_bitfield): Likewise.
5895 (tdesc_add_field): Likewise.
5896 (tdesc_set_struct_size): Likewise.
5897
798a7429
SM
58982017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5899
5900 * regcache.c (registers_to_string): Remove unused variable.
5901
c0e15c9b
SM
59022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * inferiors.c (for_each_inferior_with_data): Remove.
5905 * inferiors.h (for_each_inferior_with_data): Remove.
5906 * server.c (handle_qxfer_threads_worker): Change parameter type.
5907 (handle_qxfer_threads_proper): Use for_each_thread.
5908
f0045347
SM
59092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * inferiors.c (for_each_inferior): Remove.
5912 (clear_inferiors): Use for_each_thread.
5913 * inferiors.h (for_each_inferior): Remove.
5914 * linux-low.c (linux_wait_for_event_filtered): Use
5915 for_each_thread.
5916 (linux_stabilize_threads): Likewise.
5917 * regcache.c (regcache_release): Likewise.
5918 * server.c (gdb_wants_all_threads_stopped): Likewise.
5919 (clear_pending_status_callback): Remove.
5920 (handle_status): Use for_each_thread.
5921 (captured_main): Likewise.
5922 * win32-low.c (child_init_thread_list): Likewise.
5923 (win32_clear_inferiors): Likewise.
5924 (fake_breakpoint_event): Likewise.
5925
9521758b
SM
59262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * inferiors.h (find_inferior): Remove.
5929 * inferiors.c (find_inferior): Remove.
5930
8f86d7aa
SM
59312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * linux-low.c (resume_status_pending_p): Update comment.
5934 (need_step_over_p): Update comment.
5935
e2b44075
SM
59362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * linux-low.c (proceed_one_lwp): Return void, change parameter
5939 type.
5940 (unsuspend_and_proceed_one_lwp): Likewise.
5941 (proceed_all_lwps): Use for_each_thread.
5942 (unstop_all_lwps): Likewise.
5943
c80825ff
SM
59442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * linux-low.c (linux_resume_one_thread): Return void, take
5947 parameter directly.
5948 (linux_resume): Use for_each_thread.
5949
df3e4dbe
SM
59502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5951
5952 * linux-low.c (send_sigstop_callback): Return void, change
5953 parameter type. Rename to...
5954 (send_sigstop): ... this.
5955 (suspend_and_send_sigstop_callback): Return void, change parameter
5956 type. Rename to...
5957 (suspend_and_send_sigstop): ... this.
5958 (stop_all_lwps): Use for_each_thread.
5959
5a6b0a41
SM
59602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * linux-low.c (lwp_running): Return bool, remove unused
5963 argument.
5964 (linux_stabilize_threads): Use find_thread.
5965
39a64da5
SM
59662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * linux-low.c (select_singlestep_lwp_callback): Remove.
5969 (count_events_callback): Remove.
5970 (select_event_lwp_callback): Remove.
5971 (select_event_lwp): Use find_thread/for_each_thread.
5972
a1385b7b
SM
59732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * linux-low.c (not_stopped_callback): Return bool, take filter
5976 argument directly.
5977 (linux_wait_for_event_filtered): Use find_thread.
5978 (linux_wait_1): Likewise.
5979
454296a2
SM
59802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * linux-low.c (same_lwp): Remove.
5983 (find_lwp_pid): Use find_thread.
5984
6b2a85da
SM
59852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * linux-low.c (delete_lwp_callback): Remove.
5988 (linux_mourn): Use for_each_thread.
5989
798a38e8
SM
59902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5993 args parameter, don't check for pid.
5994 (linux_detach): Use for_each_thread.
5995
e4eb0dec
SM
59962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5997
5998 * linux-low.c (struct counter): Remove.
5999 (second_thread_of_pid_p): Remove.
6000 (last_thread_of_process_p): Use find_thread.
6001
83e1b6c1
SM
60022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * inferiors.c (find_inferior_in_random): Remove.
6005 * inferiors.h (find_inferior_in_random): Remove.
6006 * linux-low.c (status_pending_p_callback): Return bool, accept
6007 parameter ptid directly.
6008 (linux_wait_for_event_filtered): Use find_thread_in_random.
6009 (linux_wait_1): Likewise.
6010
8dc7b443
SM
60112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6012
6013 * inferiors.c (find_inferior_id): Remove.
6014 (find_thread_ptid): Move implemention from find_inferior_id to
6015 here.
6016 * inferiors.h (find_inferior_id): Remove.
6017 * server.c (handle_status): Use find_thread_ptid.
6018 (process_serial_event): Likewise.
6019 * thread-db.c (find_one_thread): Likewise.
6020 (thread_db_thread_handle): Likewise.
6021 * win32-low.c (thread_rec): Likewise.
6022 (child_delete_thread): Likewise.
6023 (win32_thread_alive): Likewise.
6024 (get_child_debug_event): Likewise.
6025
da25033c
SM
60262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * linux-mips-low.c (update_watch_registers_callback): Return
6029 void, remove pid_p parameter, don't check for pid.
6030 (mips_insert_point, mips_remove_point): Use for_each_thread.
6031
c91bb56b
SM
60322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * lynx.low (lynx_delete_thread_callback): Remove.
6035 (lynx_mourn): Use for_each_thread.
6036
634a3254
SM
60372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * regcache.c (regcache_invalidate_one): Remove.
6040 (regcache_invalidate_pid): use for_each_thread.
6041
41272101
TT
60422017-11-26 Tom Tromey <tom@tromey.com>
6043
6044 * linux-low.c (linux_create_inferior): Update.
6045
f5291a6f
UW
60462017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6047
6048 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6049
6654d750
AH
60502017-11-24 Alan Hayward <alan.hayward@arm.com>
6051
6052 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6053 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6054 * linux-aarch64-tdesc-selftest.c: New file.
6055 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6056
60572017-11-24 Alan Hayward <alan.hayward@arm.com>
6058
6059 * configure.srv: Add new file.
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
49bdb7ee
AH
60642017-11-24 Alan Hayward <alan.hayward@arm.com>
6065
6066 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6067 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6068 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6069
d6d7ce56
AH
60702017-11-24 Alan Hayward <alan.hayward@arm.com>
6071
6072 * configure.srv: Add new files.
6073 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6074 aarch64_linux_read_description.
6075 * linux-aarch64-low.c (aarch64_linux_read_description):
6076 Merge with aarch64_arch_setup.
6077 (aarch64_arch_setup): Call aarch64_linux_read_description.
6078 * linux-aarch64-tdesc.c: New file.
6079 * linux-aarch64-tdesc.h: New file.
6080
506fe5f4
YQ
60812017-11-24 Yao Qi <yao.qi@linaro.org>
6082
6083 * configure.srv: Set $srv_regobj for tic6x-linux.
6084 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6085 (tic6x_read_description): Move some code to tic6x_arch_setup.
6086 (tic6x_tdesc_test): New function.
6087 (initialize_low_arch): Call selftests::register_test.
6088
29f9a567
YQ
60892017-11-22 Yao Qi <yao.qi@linaro.org>
6090
6091 * remote-utils.c (prepare_resume_reply): Use memcpy.
6092
578290ec
SM
60932017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6094
6095 * linux-low.c (kill_one_lwp_callback): Return void, take
6096 argument directly, don't filter on pid.
6097 (linux_kill): Use for_each_thread.
6098
eca55aec
SM
60992017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * linux-low.c (need_step_over_p): Return bool, remove dummy
6102 argument.
6103 (linux_resume, proceed_all_lwps): Use find_thread.
6104
25c28b4d
SM
61052017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * linux-low.c (resume_status_pending_p): Return bool, remove
6108 flag_p argument.
6109 (linux_resume): Use find_thread.
6110
5fdda392
SM
61112017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6112
6113 * linux-low.c (struct thread_resume_array): Remove.
6114 (linux_set_resume_request): Return void, take arguments
6115 directly.
6116 (linux_resume): Use for_each_thread.
6117
fcb056a5
SM
61182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6121 return bool, remove data argument.
6122 (linux_stabilize_threads): Use find_thread.
6123
139720c5
SM
61242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6125
6126 * linux-low.c (unsuspend_one_lwp): Remove.
6127 (unsuspend_all_lwps): Use for_each_thread, inline code from
6128 unsuspend_one_lwp.
6129
6d1e5673
SM
61302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6133 * linux-low.c (struct iterate_over_lwps_args): Remove.
6134 (iterate_over_lwps_filter): Remove.
6135 (iterate_over_lwps): Use find_thread.
6136
bbf550d5
SM
61372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6140 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6141 code from reset_lwp_ptrace_options_callback.
6142
00192f77
SM
61432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6144
6145 * linux-arm-low.c (struct update_registers_data): Remove.
6146 (update_registers_callback): Return void, take arguments
6147 directly, don't check thread's pid.
6148 (arm_insert_point, arm_remove_point): Use for_each_thread.
6149
2bee2b6c
SM
61502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * win32-low.c (continue_one_thread): Return void, take argument
6153 directly.
6154 (child_continue): Use for_each_thread.
6155
0b360f19
SM
61562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * win32-i386-low.c (update_debug_registers_callback): Rename
6159 to ...
6160 (update_debug_registers): ... this, return void, remove pid_p arg.
6161 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6162
f27866ba
SM
61632017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6164
6165 * inferiors.h (struct process_info): Add constructor, initialize
6166 fields..
6167 <syscalls_to_catch>: Change type to std::vector<int>.
6168 * inferiors.c (add_process): Allocate process_info with new.
6169 (remove_process): Free process_info with delete.
6170 * linux-low.c (handle_extended_wait): Adjust.
6171 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6172 * server.c (handle_general_set): Adjust.
6173
e849ea89
PA
61742017-11-16 Pedro Alves <palves@redhat.com>
6175
6176 * remote-utils.c (remote_close): Block SIGIO signals instead of
6177 uninstalling the SIGIO handler.
6178
1d0aa65c
AH
61792017-11-16 Alan Hayward <alan.hayward@arm.com>
6180
6181 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6182
3491a34c
YQ
61832017-11-16 Yao Qi <yao.qi@linaro.org>
6184
6185 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6186 (tic6x_store_gregset): Likewise.
6187 (tic6x_usrregs_info): Move it up.
6188
a602f924
AH
61892017-11-15 Alan Hayward <alan.hayward@arm.com>
6190
6191 * Makefile.in: Update arch rules.
6192 * configure.srv: Explicitly mark arch/ files.
6193
5616b6c3
AS
61942017-11-13 Andreas Schwab <schwab@suse.de>
6195
6196 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6197 function.
6198 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6199
d1928160
PA
62002017-11-06 Pedro Alves <palves@redhat.com>
6201
6202 * config.in, configure: Regenerate.
6203
bac608e7
SM
62042017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * target.c (struct thread_search): Remove.
6207 (thread_search_callback): Remove.
6208 (prepare_to_access_memory): Use for_each_thread instead of
6209 find_inferior. Inline code from thread_search_callback.
6210
eaddb425
SM
62112017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6212
6213 * server.c (struct visit_actioned_threads_data): Remove.
6214 (visit_actioned_threads): Change prototype to take arguments
6215 directly.
6216 (resume): Use find_thread instead of find_inferior.
6217
99078d34
SM
62182017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6219
6220 * server.c (queue_stop_reply_callback): Change prototype, return
6221 void.
6222 (find_status_pending_thread_callback): Remove.
6223 (handle_status): Replace find_inferior with find_thread and
6224 for_each_thread.
6225
cc628f3d
AH
62262017-10-25 Alan Hayward <alan.hayward@arm.com>
6227
6228 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6229 with REGNO.
6230 (aarch64_store_gregset): Likewise.
6231 (aarch64_fill_fpregset): Likewise.
6232 (aarch64_store_fpregset): Likewise.
6233
4d3bb80e
SM
62342017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6235
6236 * gdbthread.h (find_thread, for_each_thread): New functions.
6237 * inferiors.c (thread_of_pid): Remove.
6238 (find_any_thread_of_pid): Use find_thread.
6239 * linux-low.c (num_lwps): Use for_each_thread.
6240
7a7cdfa0
YQ
62412017-10-17 Yao Qi <yao.qi@linaro.org>
6242
6243 * Makefile.in: Remove one rule.
6244 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6245
e675d170
YQ
62462017-10-17 Yao Qi <yao.qi@linaro.org>
6247
6248 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6249 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6250
7eb4e0f9
YQ
62512017-10-17 Yao Qi <yao.qi@linaro.org>
6252
6253 * configure.srv: Rename arm.o with arch/arm.o.
6254
60d6cfc9
YQ
62552017-10-17 Yao Qi <yao.qi@linaro.org>
6256
6257 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6258 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6259 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6260 (arch-i386.o, arch-amd64.o): Remove rules.
6261 (arch/%.o): New rule.
6262 Update POSTCOMPILE and COMPILE.pre.
6263 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6264 * configure: Re-generated.
6265 * configure.srv: Replace arch-i386.o with arch/i386.o.
6266 Replace arch-amd64.o with arch/amd64.o.
6267
5bfda255
YQ
62682017-10-16 Yao Qi <yao.qi@linaro.org>
6269
6270 * configure: Regenerated.
6271
9c80ecd6
SM
62722017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * inferiors.h: (struct inferior_list): Remove.
6275 (struct inferior_list_entry); Remove.
6276 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6277 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6278 get_first_inferior): Remove.
6279 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6280 find_inferior_id, find_inferior_in_random): Change signature.
6281 * inferiors.c (all_threads): Change type to
6282 std::list<thread_info *>.
6283 (get_thread): Remove macro.
6284 (find_inferior, find_inferior_id): Change signature, implement
6285 using find_thread.
6286 (find_inferior_in_random): Change signature, implement using
6287 find_thread_in_random.
6288 (for_each_inferior, for_each_inferior_with_data): Change
6289 signature, implement using for_each_thread.
6290 (add_inferior_to_list, remove_inferior): Remove.
6291 (add_thread, get_first_thread, thread_of_pid,
6292 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6293 (get_first_inferior, one_inferior_p, clear_inferior_list):
6294 Remove.
6295 (clear_inferiors, get_thread_process): Update.
6296 * gdbthread.h: Include <list>.
6297 (struct thread_info) <entry>: Remove field.
6298 <id>: New field.
6299 (all_threads): Change type to std::list<thread_info *>.
6300 (get_first_inferior): Add doc.
6301 (find_thread, for_each_thread, find_thread_in_random): New
6302 functions.
6303 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6304 * linux-arm-low.c (update_registers_callback): Update.
6305 * linux-low.c (second_thread_of_pid_p): Update.
6306 (kill_one_lwp_callback, linux_detach_lwp_callback,
6307 delete_lwp_callback, status_pending_p_callback, same_lwp,
6308 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6309 iterate_over_lwps, not_stopped_callback,
6310 resume_stopped_resumed_lwps, count_events_callback,
6311 select_singlestep_lwp_callback, select_event_lwp_callback,
6312 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6313 suspend_and_send_sigstop_callback, wait_for_sigstop,
6314 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6315 lwp_running, linux_set_resume_request, resume_status_pending_p,
6316 need_step_over_p, start_step_over, linux_resume_one_thread,
6317 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6318 reset_lwp_ptrace_options_callback): Update.
6319 * linux-mips-low.c (update_watch_registers_callback): Update.
6320 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6321 Update.
6322 (free_register_cache_thread_one): Remove.
6323 (regcache_release): Update.
6324 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6325 handle_qxfer_threads_worker): Update.
6326 (handle_query): Update, use list iterator.
6327 (visit_actioned_threads, handle_pending_status,
6328 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6329 clear_pending_status_callback, set_pending_status_callback,
6330 find_status_pending_thread_callback, handle_status,
6331 process_serial_event): Update.
6332 * target.c (thread_search_callback): Update.
6333 * thread-db.c (thread_db_get_tls_address): Update.
6334 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6335 Update.
6336 * win32-i386-low.c (update_debug_registers_callback): Update.
6337 * win32-low.c (delete_thread_info, child_delete_thread,
6338 continue_one_thread, suspend_one_thread,
6339 get_child_debug_event): Adjust.
6340
9179355e
SM
63412017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6344 * inferiors.h: Include <list>.
6345 (struct process_info) <entry>: Remove field.
6346 <pid>: New field.
6347 (pid_of): Change macro to function.
6348 (ptid_of, lwpid_of): Remove macro.
6349 (all_processes): Change type to std::list<process_info *>.
6350 (ALL_PROCESSES): Remove macro.
6351 (for_each_process, find_process): New function.
6352 * inferiors.c (all_processes): Change type to
6353 std::list<process_info *>.
6354 (find_thread_process): Adjust.
6355 (add_process): Likewise.
6356 (remove_process): Likewise.
6357 (find_process_pid): Likewise.
6358 (get_first_process): Likewise.
6359 (started_inferior_callback): Remove.
6360 (have_started_inferiors_p): Adjust.
6361 (attached_inferior_callback): Remove.
6362 (have_attached_inferiors_p): Adjust.
6363 * linux-low.c (check_zombie_leaders): Likewise.
6364 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6365 (x86_linux_update_xmltarget): Adjust.
6366 * server.c (handle_query): Likewise.
6367 (gdb_reattached_process): Remove.
6368 (handle_status): Adjust.
6369 (kill_inferior_callback): Likewise.
6370 (detach_or_kill_inferior): Remove.
6371 (print_started_pid): Likewise.
6372 (print_attached_pid): Likewise.
6373 (detach_or_kill_for_exit): Update.
6374 (process_serial_event): Likewise.
6375 * linux-arm-low.c (arm_new_fork): Likewise.
6376
c9cb8905
SM
63772017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6378
6379 * dll.h: Include <list>.
6380 (struct dll_info): Add constructor.
6381 <entry>: Remove field.
6382 (all_dlls): Change type to std::list<dll_info>.
6383 * dll.c: Include <algorithm>.
6384 (get_dll): Remove macro.
6385 (all_dlls): Change type to std::list<dll_info *>.
6386 (free_one_dll): Remove.
6387 (match_dll): Likewise.
6388 (loaded_dll): Adjust.
6389 (unloaded_dll): Adjust to all_dlls type change, use
6390 std::find_if. Inline code from match_dll.
6391 (clear_dlls): Adjust to all_dlls type change.
6392 * server.c (emit_dll_description): Remove.
6393 (handle_qxfer_libraries): Adjust to all_dlls type change,
6394 integrate emit_dll_description's functionality.
6395
04ec7890
SM
63962017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6397
6398 * linux-low.h (struct linux_target_ops) <delete_process>: New
6399 field.
6400 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6401 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6402 (struct linux_target_ops): Add delete_process callback.
6403 * linux-arm-low.c (arm_delete_process): New.
6404 (struct linux_target_ops): Add delete_process callback.
6405 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6406 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6407 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6408 * linux-mips-low.c (mips_linux_delete_process): New.
6409 (struct linux_target_ops): Add delete_process callback.
6410 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6411 * linux-s390-low.c (struct linux_target_ops): Likewise.
6412 * linux-sh-low.c (struct linux_target_ops): Likewise.
6413 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6414 * linux-tile-low.c (struct linux_target_ops): Likewise.
6415 * linux-x86-low.c (x86_linux_delete_process): New.
6416 (struct linux_target_ops): Add delete_process callback.
6417 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6418
466eecee
SM
64192017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * linux-aarch64-low.c (the_low_target): Add thread delete
6422 callback.
6423 * linux-arm-low.c (arm_delete_thread): New function.
6424 (the_low_target): Add thread delete callback.
6425 * linux-bfin-low.c (the_low_target): Likewise.
6426 * linux-crisv32-low.c (the_low_target): Likewise.
6427 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6428 set.
6429 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6430 field.
6431 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6432 * linux-mips-low.c (mips_linux_delete_thread): New function.
6433 (the_low_target): Add thread delete callback.
6434 * linux-ppc-low.c (the_low_target): Likewise.
6435 * linux-s390-low.c (the_low_target): Likewise.
6436 * linux-sh-low.c (the_low_target): Likewise.
6437 * linux-tic6x-low.c (the_low_target): Likewise.
6438 * linux-tile-low.c (the_low_target): Likewise.
6439 * linux-x86-low.c (the_low_target): Likewise.
6440 * linux-xtensa-low.c (the_low_target): Likewise.
6441
b79f7801
YZ
64422017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6443
6444 * win32-low.c: Include "common-inferior.h".
6445
bc3b087d
SDJ
64462017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6447
6448 * inferiors.c (set_inferior_cwd): New function.
6449 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6450 (handle_query): Inform that QSetWorkingDir is supported.
6451 * win32-low.c (create_process): Pass the inferior's cwd to
6452 CreateProcess.
6453
d092c5a2
SDJ
64542017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6455
6456 * inferiors.c (current_inferior_cwd): New global variable.
6457 (get_inferior_cwd): New function.
6458 * inferiors.h (struct process_info) <cwd>: New field.
6459
7da0a886
SDJ
64602017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6461
6462 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6463 (OBS): Add gdb_tilde_expand.o.
6464
289a6840
SM
64652017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6466
6467 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6468 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6469
256642e8
PA
64702017-09-29 Pedro Alves <palves@redhat.com>
6471
6472 * ax.c (gdb_parse_agent_expr): Constify.
6473 * ax.h (gdb_parse_agent_expr): Constify.
6474 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6475 Constify.
6476 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6477 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6478 * remote-utils.h (read_ptid): Constify.
6479 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6480 (process_point_options, process_serial_event): Constify.
6481 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6482 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6483 (cmd_qtbuffer): Constify.
6484
5b9ca4d4
PA
64852017-09-29 Pedro Alves <palves@redhat.com>
6486
6487 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6488 fails.
6489
94c207e0
PA
64902017-09-29 Pedro Alves <palves@redhat.com>
6491
6492 * linux-low.c (handle_extended_wait): Pass parent thread instead
6493 of process to thread_db_notice_clone.
6494 * linux-low.h (thread_db_notice_clone): Replace parent process
6495 parameter with parent thread parameter.
6496 * thread-db.c (find_one_thread): Add comment.
6497 (thread_db_notice_clone): Replace parent process parameter with
6498 parent thread parameter. Temporarily switch to the parent thread.
6499
75352e28
SDJ
65002017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6501
6502 * gdbthread.h: Include "common-gdbthread.h".
6503 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6504 "if" when validating the ptid.
6505 * remote-utils.c: Include "gdbthread.h".
6506 (prepare_resume_reply): Use "switch_to_thread".
6507 * target.c (done_accessing_memory): Likewise.
6508
ad339634
AA
65092017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6510
6511 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6512 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6513 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6514 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6515 s390x-gs-linux64-ipa.o to ipa_obj.
6516 * linux-s390-low.c (HWCAP_S390_GS): New define.
6517 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6518 New functions.
6519 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6520 (s390_arch_setup): Check for guarded-storage support and choose
6521 appropriate tdesc.
6522 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6523 init_registers_s390x_gs_linux64.
6524 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6525 enum value.
6526 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6527 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6528
cc4d742f
SM
65292017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6530
6531 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6532
f6327dcb
KB
65332017-09-21 Kevin Buettner <kevinb@redhat.com>
6534
6535 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6536 (thread_db_thread_handle): Declare.
6537 * linux-low.c (linux_target_ops): Initialize thread_handle.
6538 * server.c (handle_qxfer_threads_worker): Add support for
6539 "handle" attribute.
6540 * target.h (struct target_ops): Add new function pointer,
6541 thread_handle.
6542 (target_thread_handle): Define.
6543 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6544 field in lwp.
6545 (thread_db_thread_handle): New function.
6546
86299109
KB
65472017-09-21 Kevin Buettner <kevinb@redhat.com>
6548
6549 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6550 * linux-low.h (thread_db_notice_clone): Declare.
6551 * thread-db.c (thread_db_notice_clone): New function.
6552
f557a88a
PA
65532017-09-21 Pedro Alves <palves@redhat.com>
6554
6555 * server.c (gdb_read_memory, handle_status, process_serial_event)
6556 (handle_serial_event, handle_target_event): Adjust to
6557 set_desired_thread prototype change.
6558 * target.c (set_desired_thread): Remove 'use_general' parameter
6559 and adjust.
6560 * target.h (set_desired_thread): Remove 'use_general' parameter.
6561
223ffa71
TT
65622017-09-20 Tom Tromey <tom@tromey.com>
6563
6564 * target.c (target_terminal::terminal_state): Define.
6565 (target_terminal::init): Rename from target_terminal_init.
6566 (target_terminal::inferior): Rename from
6567 target_terminal_inferior.
6568 (target_terminal::ours): Rename from target_terminal_ours.
6569 (target_terminal::ours_for_output, target_terminal::info): New.
6570
04fd3ba9
SM
65712017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6572
6573 * server.c (accumulate_file_name_length): Remove.
6574 (emit_dll_description): Adjust to std::string change.
6575 (handle_qxfer_libraries): Use std::string to hold document.
6576
5e187554
SM
65772017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6578
6579 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6580 return type of xml_escape_text.
6581 * server.c (emit_dll_description): Likewise.
6582
1526853e
SM
65832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6584
6585 * server.c (captured_main): Accept argument for --selftest.
6586 Update run_tests call.
6587 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6588 when registering selftests.
6589
c4dfafab
SDJ
65902017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6591
6592 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6593 instead of "VEC" for "target_desc.reg_defs".
6594 (regcache_cpy): Likewise.
6595 (registers_to_string): Likewise.
6596 (registers_from_string): Likewise.
6597 (find_regno): Likewise.
6598 (supply_regblock): Likewise.
6599 (regcache_raw_read_unsigned): Likewise.
6600 * tdesc.c (init_target_desc): Likewise.
6601 (tdesc_create_reg): Likewise.
6602 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6603 (struct target_desc) <reg_defs>: Convert to "std::vector".
6604 (target_desc): Do not initialize "reg_defs".
6605 (~target_desc): Update code to use "std::vector" instead of "VEC"
6606 for "target_desc.reg_defs".
6607 (operator==): Likewise.
6608
124aceb4
SM
66092017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * inferiors.h (thread_to_gdb_id): Remove.
6612 * inferiors.c (thread_to_gdb_id): Remove.
6613 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6614 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6615 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6616 Likewise.
6617 * nto-low.c (nto_fetch_registers, nto_store_registers,
6618 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6619
96cde54f
SM
66202017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6621
6622 * inferiors.h (gdb_id_to_thread_id): Remove.
6623 * inferiors.c (gdb_id_to_thread_id): Remove.
6624 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6625 removal. Move pid declaration closer to where it's used.
6626
e8ca139e
SM
66272017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6628
6629 * server.c (handle_detach): New function.
6630 (process_serial_event): Move code out, call handle_detach.
6631
f8a4e119
SM
66322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6633
6634 * server.c (require_running): Rename to ...
6635 (require_running_or_return): ... this ...
6636 (require_running_or_break): ... and this.
6637 (handle_query, process_serial_event): Adjust.
6638
0eb0a407
SM
66392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * linux-low.c (linux_set_resume_request): Remove unused
6642 variables.
6643
785922a5
SM
66442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * server.c (first_thread_of): Remove.
6647 (process_serial_event): Replace usage of first_thread_of with
6648 find_any_thread_of_pid.
6649 * tracepoint.c (same_process_p): Remove.
6650 (gdb_agent_about_to_close): Replace usage of same_process_p with
6651 find_any_thread_of_pid.
6652 * linux-x86-low.c (same_process_callback): Remove.
6653 (x86_arch_setup_process_callback): Replace usage of
6654 same_process_callback with find_any_thread_of_pid.
6655 * thread-db.c (any_thread_of): Remove.
6656 (switch_to_process): Replace usage of any_thread_of with
6657 find_any_thread_of_pid.
6658 * inferiors.c (thread_pid_matches_callback): Remove.
6659 (find_thread_process): Adjust to use find_any_thread_of_pid.
6660
a059f00c
SDJ
66612017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6662
6663 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6664 with "!VEC_empty".
a059f00c 6665
cc397f3a
SDJ
66662017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6667
6668 * linux-low.c (handle_extended_wait): Use
6669 "allocate_target_description" instead of "XNEW".
6670 * linux-x86-low.c (initialize_low_arch): Likewise.
6671
22916b07
YQ
66722017-09-05 Yao Qi <yao.qi@linaro.org>
6673
6674 * configure.srv (srv_i386_regobj): Remove.
6675 (srv_amd64_regobj): Remove.
6676 (srv_regobj): Set it to "" for x86 non-linux targets.
6677 * linux-x86-tdesc.c (i386_linux_read_description):
6678 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6679 (init_registers_i386): Remove the declaration.
6680 (tdesc_i386): Remove the declaration.
6681 (lynx_i386_arch_setup): Call i386_create_target_description.
6682 * nto-x86-low.c: Likewise.
6683 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6684 [!__x86_64__]: include arch/i386.h.
6685 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6686
38602d55
YQ
66872017-09-05 Yao Qi <yao.qi@linaro.org>
6688
6689 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6690 i386/amd64-XXX-linux from it.
6691
44b886ff
YQ
66922017-09-05 Yao Qi <yao.qi@linaro.org>
6693
6694 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6695 false.
6696 (ipa_amd64_linux_regobj): Remove.
6697 (ipa_x32_linux_regobj): Remove.
6698
b4570e4b
YQ
66992017-09-05 Yao Qi <yao.qi@linaro.org>
6700
6701 * Makefile.in (arch-amd64.o): New rule.
6702 * configure.srv: Append arch-amd64.o.
6703 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6704 (get_ipa_tdesc): Call amd64_linux_read_description.
6705 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6706 and init_registers_amd64_XXX.
6707 * linux-x86-low.c (x86_linux_read_description): Call
6708 amd64_linux_read_description.
6709 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6710 (initialize_low_arch): Don't call init_registers_x32_XXX and
6711 init_registers_amd64_XXX.
6712 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6713 and tdesc_amd64_XXX.
6714 [__x86_64__] (amd64_tdesc_test): New function.
6715 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6716 and init_registers_amd64_XXX.
6717 * linux-x86-tdesc.c: Include arch/amd64.h.
6718 (xcr0_to_tdesc_idx): New function.
6719 (i386_linux_read_description): New function.
6720 (amd64_get_ipa_tdesc_idx): New function.
6721 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6722 (amd64_get_ipa_tdesc): Declare.
6723
d1f28ea2
YQ
67242017-09-05 Yao Qi <yao.qi@linaro.org>
6725
6726 * configure.srv (srv_i386_linux_xmlfiles): Remove
6727 i386/i386-XXX-linux.xml from it.
6728
25a93583
YQ
67292017-09-05 Yao Qi <yao.qi@linaro.org>
6730
6731 * configure.srv: Set srv_i386_linux_regobj empty if $development
6732 is false.
6733 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6734 initialize_low_tdesc.
6735 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6736 with #if initialize_low_tdesc.
6737 * linux-x86-tdesc-selftest.c: New file.
6738 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6739
5f035c07
YQ
67402017-09-05 Yao Qi <yao.qi@linaro.org>
6741
6742 * Makefile.in (arch-i386.o): New rule.
6743 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6744 (x86_64-*-linux*): Likewise.
6745 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6746 include arch/i386.h.
6747 (i386_linux_read_description): Remove code and call
6748 i386_create_target_description.
6749 * tdesc.c (allocate_target_description): New function.
6750 * tdesc.h (set_tdesc_architecture): Remove declaration.
6751 (set_tdesc_osabi): Likewise.
6752
0abe8a89
YQ
67532017-09-05 Yao Qi <yao.qi@linaro.org>
6754
6755 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6756 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6757 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6758 .xmltarget.
6759 * server.c (get_features_xml): Call tdesc_get_features_xml.
6760 * tdesc.c (set_tdesc_architecture): New function.
6761 (set_tdesc_osabi): New function.
6762 (tdesc_get_features_xml): New function.
6763 (tdesc_create_feature): Add an argument.
6764 * tdesc.h (struct target_desc) <features>: New field.
6765 <arch, osabi>: New field.
6766 (~target_desc): xfree features, arch, and osabi.
6767 (target_desc::oerator==): Don't compare .xmltarget.
6768 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6769 (set_tdesc_osabi): Likewise.
6770 (tdesc_get_features_xml): Likewise.
6771
0a188386
YQ
67722017-09-05 Yao Qi <yao.qi@linaro.org>
6773
6774 * linux-x86-tdesc.c: Include selftest.h.
6775 (i386_tdesc_test): New function.
6776 (initialize_low_tdesc): Call selftests::register_test.
6777 * tdesc.h: Include regdef.h.
6778 (target_desc): Override operator == and !=.
6779
f49ff000
YQ
67802017-09-05 Yao Qi <yao.qi@linaro.org>
6781
6782 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6783 (ipa_obj): Likewise.
6784 * linux-i386-ipa.c: Include common/x86-xstate.h
6785 (get_ipa_tdesc): Call i386_linux_read_description.
6786 (initialize_low_tracepoint): Don't call init_registers_XXX
6787 functions, call initialize_low_tdesc instead.
6788 * linux-x86-low.c (x86_linux_read_description): Call
6789 i386_linux_read_description.
6790 (initialize_low_arch): Don't call init_registers_i386_XXX
6791 functions, call initialize_low_tdesc.
6792 * linux-x86-tdesc.c: New file.
6793 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6794 (i386_get_ipa_tdesc_idx): Declare.
6795 (i386_get_ipa_tdesc): Declare.
6796 (initialize_low_tdesc): Declare.
6797
2b68ef2f
YQ
67982017-09-05 Yao Qi <yao.qi@linaro.org>
6799
6800 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6801 instead of 0.
6802
f7000548
YQ
68032017-09-05 Yao Qi <yao.qi@linaro.org>
6804
6805 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6806 * regcache.c (get_thread_regcache): Use VEC_length.
6807 (init_register_cache): Likewise.
6808 (regcache_cpy): Likewise.
6809 (registers_to_string): Iterate reg_defs via VEC_iterate.
6810 (find_regno): Likewise.
6811 (find_register_by_number): Use VEC_index.
6812 (register_size): Call find_register_by_number.
6813 (register_data): Call find_register_by_number.
6814 (supply_regblock): Use VEC_length.
6815 (regcache_raw_read_unsigned): Likewise.
6816 * tdesc.c (init_target_desc): Iterate reg_defs via
6817 VEC_iterate.
6818 (default_description): Update initializer.
6819 (copy_target_description): Don't update field num_registers.
6820 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6821 <num_registers>: Remove.
6822
50a421ac
SM
68232017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6824
6825 * Makefile.in (.SECONDARY): Define target.
6826
23fdd69e
SM
68272017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6828
6829 * linux-low.c (linux_wait_1): Adjust.
6830 * server.c (queue_stop_reply_callback): Adjust.
6831
0a2dde4a
SDJ
68322017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6833
6834 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6835 QEnvironmentUnset and QEnvironmentReset packets.
6836 (handle_query): Inform remote that QEnvironmentHexEncoded,
6837 QEnvironmentUnset and QEnvironmentReset are supported.
6838
6afd337d
SM
68392017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6840
6841 * inferiors.h (inferior_target_data): Rename to ...
6842 (thread_target_data): ... this.
6843 (inferior_regcache_data): Rename to ...
6844 (thread_regcache_data): ... this.
6845 (set_inferior_regcache_data): Rename to ...
6846 (set_thread_regcache_data): ... this.
6847 * inferiors.c (inferior_target_data): Rename to ...
6848 (thread_target_data): ... this.
6849 (inferior_regcache_data): Rename to ...
6850 (thread_regcache_data): ... this.
6851 (set_inferior_regcache_data): Rename to ...
6852 (set_thread_regcache_data): ... this.
6853 (free_one_thread): Update.
6854 * linux-low.h (get_thread_lwp): Update.
6855 * regcache.c (get_thread_regcache): Update.
6856 (regcache_invalidate_thread): Update.
6857 (free_register_cache_thread): Update.
6858 * win32-i386-low.c (update_debug_registers_callback): Update.
6859 (win32_get_current_dr): Update.
6860 * win32-low.c (thread_rec): Update.
6861 (delete_thread_info): Update.
6862 (continue_one_thread): Update.
6863 (suspend_one_thread): Update.
6864
a160cc46
SM
68652017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * inferiors.c (set_inferior_target_data): Remove.
6868 * inferiors.h (set_inferior_target_data): Remove.
6869
6d580b63
YQ
68702017-08-18 Yao Qi <yao.qi@linaro.org>
6871
6872 * Makefile.in (OBS): Add selftest.o.
6873 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6874 * configure, config.in: Re-generated.
6875 * server.c: Include common/sefltest.h.
6876 (captured_main): Handle option --selftest.
6877
f5a29eb0
YQ
68782017-08-09 Yao Qi <yao.qi@linaro.org>
6879
6880 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6881 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6882 i386-avx-mpx.o and i386-mmx.o.
6883 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6884 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6885 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6886 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6887 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6888 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6889 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6890 i386/amd64-avx-mpx.xml.
6891
57757c2f
YQ
68922017-08-09 Yao Qi <yao.qi@linaro.org>
6893
6894 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6895 and x32-avx-avx512.o.
6896 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6897 i386/x32-avx-avx512.xml.
6898
229d26fc
SM
68992017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * tracepoint.h (enum class fast_tpoint_collect_result): New
6902 enumeration.
6903 (fast_tracepoint_collecting): Change return type to
6904 fast_tpoint_collect_result.
6905 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6906 * linux-low.h: Include tracepoint.h.
6907 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6908 fast_tpoint_collect_result.
6909 * linux-low.c (handle_tracepoints): Adjust.
6910 (linux_fast_tracepoint_collecting): Change return type to
6911 fast_tpoint_collect_result.
6912 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6913 linux_wait_1, stuck_in_jump_pad_callback,
6914 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6915 proceed_one_lwp): Adjust to type change.
6916
2e1e43e1
YQ
69172017-07-10 Yao Qi <yao.qi@linaro.org>
6918
6919 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6920
adc764e7
YQ
69212017-06-29 Yao Qi <yao.qi@linaro.org>
6922
6923 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6924 Remove.
6925 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6926
a206891a
SM
69272017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6928
6929 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6930
9a6c7d9c
SDJ
69312017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6932
6933 * linux-low.c (linux_create_inferior): Adjust code to access the
6934 environment information via 'gdb_environ' class.
6935 * lynx-low.c (lynx_create_inferior): Likewise.
6936 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6937 (get_environ): Return a pointer to 'our_environ'.
6938 (captured_main): Initialize 'our_environ'.
6939 * server.h (get_environ): Adjust prototype.
6940 * spu-low.c (spu_create_inferior): Adjust code to access the
6941 environment information via 'gdb_environ' class.
6942
ae3e2ccf
SM
69432017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6944
6945 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6946 usage of "register" keyword.
6947
3e019bdc
SM
69482017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * configure: Re-generate.
6951
8465943a
SM
69522017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6953
6954 * configure: Re-generate.
6955
cf0dd6f0
SM
69562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6957
6958 * Makefile.in (COMPILE.pre): Add "-x c++".
6959
9845682b
SDJ
69602017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6961
6962 * fork-child.c: Conditionally include <signal.h>.
6963
aefd8b33
SDJ
69642017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6965
6966 * server.c (handle_general_set): Handle new packet
6967 "QStartupWithShell".
6968 (handle_query): Add "QStartupWithShell" to the list of supported
6969 packets.
6970 (gdbserver_usage): Add help text explaining the
6971 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6972 options.
6973 (captured_main): Recognize and act upon the presence of the new
6974 CLI options.
6975
2090129c
SDJ
69762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6977 Pedro Alves <palves@redhat.com>
6978
6979 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6980 * configure: Regenerate.
6981 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6982 "fork-inferior.o".
6983 (i[34567]86-*-lynxos*): Likewise.
6984 (spu*-*-*): Likewise.
6985 * fork-child.c: New file.
6986 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6987 and "environ.h".
6988 (linux_ptrace_fun): New function.
6989 (linux_create_inferior): Adjust function prototype to reflect
6990 change on "target.h". Adjust function code to use
6991 "fork_inferior".
6992 (linux_request_interrupt): Delete "signal_pid".
6993 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6994 (lynx_ptrace_fun): New function.
6995 (lynx_create_inferior): Adjust function prototype to reflect
6996 change on "target.h". Adjust function code to use
6997 "fork_inferior".
6998 * nto-low.c (nto_create_inferior): Adjust function prototype and
6999 code to reflect change on "target.h". Update comments.
7000 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7001 "common-terminal.h" and "environ.h".
7002 (terminal_fd): Moved to fork-child.c.
7003 (old_foreground_pgrp): Likewise.
7004 (restore_old_foreground_pgrp): Likewise.
7005 (last_status): Make it global.
7006 (last_ptid): Likewise.
7007 (our_environ): New variable.
7008 (startup_with_shell): Likewise.
7009 (program_name): Likewise.
7010 (program_argv): Rename to...
7011 (program_args): ...this.
7012 (wrapper_argv): New variable.
7013 (start_inferior): Delete function.
7014 (get_exec_wrapper): New function.
7015 (get_exec_file): Likewise.
7016 (get_environ): Likewise.
7017 (prefork_hook): Likewise.
7018 (post_fork_inferior): Likewise.
7019 (postfork_hook): Likewise.
7020 (postfork_child_hook): Likewise.
7021 (handle_v_run): Update code to deal with arguments coming from the
7022 remote host. Update calls from "start_inferior" to
7023 "create_inferior".
7024 (captured_main): Likewise. Initialize environment variable. Call
7025 "have_job_control".
7026 * server.h (post_fork_inferior): New prototype.
7027 (get_environ): Likewise.
7028 (last_status): Declare.
7029 (last_ptid): Likewise.
7030 (signal_pid): Likewise.
7031 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7032 (spu_ptrace_fun): New function.
7033 (spu_create_inferior): Adjust function prototype to reflect change
7034 on "target.h". Adjust function code to use "fork_inferior".
7035 * target.c (target_terminal_init): New function.
7036 (target_terminal_inferior): Likewise.
7037 (target_terminal_ours): Likewise.
7038 * target.h: Include <vector>.
7039 (struct target_ops) <create_inferior>: Update prototype.
7040 (create_inferior): Update macro.
7041 * utils.c (gdb_flush_out_err): New function.
7042 * win32-low.c (win32_create_inferior): Adjust function prototype
7043 and code to reflect change on "target.h".
7044
043a4934
SDJ
70452017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7046
7047 * inferiors.c (switch_to_thread): New function.
7048
15652511
SDJ
70492017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7050
7051 * Makefile.in (SFILE): Add "common/job-control.c".
7052 (OBS): Add "job-control.o".
7053
21ea5acd
SDJ
70542017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7055
7056 * Makefile: Remove "@host_makefile_frag@".
7057
e13cb306
PA
70582017-05-05 Pedro Alves <palves@redhat.com>
7059
7060 * configure: Regenerate.
7061
c94fee56
SDJ
70622017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7063
7064 * configure: Regenerate.
7065
a0ff9e1a
SM
70662017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7067
7068 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7069 software_single_step change of return type to
7070 std::vector<CORE_ADDR>.
7071 * linux-low.c (install_software_single_step_breakpoints):
7072 Likewise.
7073 * linux-low.h (install_software_single_step_breakpoints):
7074 Likewise.
7075
be628ab8
SDJ
70762017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7077
7078 * remote-utils.c: Include "gdb_termios.h" instead of
7079 "terminal.h".
7080 * terminal.h: Delete file.
7081
7c5ded6a
SDJ
70822017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7083
7084 * server.c: Include <vector>.
7085 <program_argv, wrapper_argv>: Convert to std::vector.
7086 (start_inferior): Rewrite function to use C++.
7087 (handle_v_run): Likewise. Update code that calculates the argv
7088 based on the vRun packet; use C++.
7089 (captured_main): Likewise.
7090
436252de
SM
70912017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 * server.c (handle_v_cont): Initialize thread_resume::thread
7094 with null_ptid.
7095
9bf2a700
PA
70962017-04-05 Pedro Alves <palves@redhat.com>
7097
7098 * configure: Regenerate.
7099
a121b7c1
PA
71002017-04-05 Pedro Alves <palves@redhat.com>
7101
7102 * gdbreplay.c (sync_error): Constify.
7103 * linux-x86-low.c (push_opcode): Constify.
7104
21c8a587
PA
71052017-04-05 Pedro Alves <palves@redhat.com>
7106
7107 * win32-low.c (get_child_debug_event)
7108 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7109 Report TARGET_WAITKIND_SPURIOUS instead.
7110
fb32b4f7
PA
71112017-04-05 Pedro Alves <palves@redhat.com>
7112
e79be6e5
SM
7113 * remote-utils.c (remote_prepare, remote_open): Constify.
7114 * remote-utils.h (remote_prepare, remote_open): Constify.
7115 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7116
65dd1e59
SM
71172017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7118
7119 * Makefile.in (clean): Clear .deps.
7120
8fa5b777
SM
71212017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7122
7123 * .gitignore: Remove generated files, replace with wildcard.
7124 * (clean): Replace removal of generated files with wildcard.
7125 (version.c): Replace with...
7126 (version-generated.c): ...this.
7127 (xml-builtin.c): Replace with...
7128 (xml-builtin-generated.c): ...this.
7129 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7130 (%.c: *regformats*): Replace with...
7131 (%-generated.c: *regformats*): ...this.
7132
a12e714b
MF
71332017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7134
7135 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7136 (xtensa_fill_gregset): Call collect_register_by_name for
7137 threadptr register.
7138 (xtensa_store_gregset): Call supply_register_by_name for
7139 threadptr register.
7140
1a09b50a
MF
71412017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7142
7143 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7144 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7145 (xtensa_store_gregset): Call supply_register for all registers in
7146 a0_regnum..a0_regnum + C0_NREGS range.
7147
1a01e7c6
SM
71482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7151 (ax-ipa.o: ax.c): Remove.
7152 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7153 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7154 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7155 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7156 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7157
36bc18a8
SM
71582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7161 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7162 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7163 (errors-ipa.o: ../common/errors.c): Remove.
7164 (format-ipa.o: ../common/format.c): Remove.
7165 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7166
a8ebe3d5
SM
71672017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7168
7169 * Makefile.in (%-ipa.o: %.c): New rule.
7170 (tracepoint-ipa.o: tracepoint.c): Remove.
7171 (utils-ipa.o: utils.c): Remove.
7172 (remote-utils-ipa.o: remote-utils.c): Remove.
7173 (regcache-ipa.o: regcache.c): Remove.
7174 (i386-linux-ipa.o: i386-linux.c): Remove.
7175 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7176 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7177 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7178 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7179 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7180 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7181 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7182 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7183 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7184 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7185 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7186 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7187 (aarch64-ipa.o: aarch64.c): Remove.
7188 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7189 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7190 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7191 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7192 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7193 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7194 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7195 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7196 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7197 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7198 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7199 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7200 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7201 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7202 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7203 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7204 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7205 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7206 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7207 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7208 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7209 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7210 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7211 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7212 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7213 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7214 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7215 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7216 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7217 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7218 (tdesc-ipa.o: tdesc.c): Remove.
7219 (x32-linux-ipa.o: x32-linux.c): Remove.
7220 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7221 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7222
50cfacb7
SM
72232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7224
7225 * Makefile.in (%.o: ../arch/%.c): New rule.
7226 (arm.o: ../arch/arm.c): Remove.
7227 (arm-linux.o: ../arch/arm-linux.c): Remove.
7228 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7229 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7230
c5a22423
SM
72312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7232
7233 * Makefile.in (%.o: ../nat/%.c): New rule.
7234 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7235 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7236 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7237 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7238 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7239 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7240 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7241 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7242 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7243 (linux-personality.o: ../nat/linux-personality.c): Remove.
7244 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7245 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7246 (x86-linux.o: ../nat/x86-linux.c): Remove.
7247 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7248 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7249
6bda016b
SM
72502017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7251
7252 * Makefile.in (%.o: ../common/%.c): New rule.
7253 (signals.o: ../common/signals.c): Remove.
7254 (print-utils.o: ../common/print-utils.c): Remove.
7255 (rsp-low.o: ../common/rsp-low.c): Remove.
7256 (common-utils.o: ../common/common-utils.c): Remove.
7257 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7258 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7259 (vec.o: ../common/vec.c): Remove.
7260 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7261 (xml-utils.o: ../common/xml-utils.c): Remove.
7262 (ptid.o: ../common/ptid.c): Remove.
7263 (buffer.o: ../common/buffer.c): Remove.
7264 (format.o: ../common/format.c): Remove.
7265 (filestuff.o: ../common/filestuff.c): Remove.
7266 (agent.o: ../common/agent.c): Remove.
7267 (errors.o: ../common/errors.c): Remove.
7268 (environ.o: ../common/environ.c): Remove.
7269 (common-debug.o: ../common/common-debug.c): Remove.
7270 (cleanups.o: ../common/cleanups.c): Remove.
7271 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7272 (fileio.o: ../common/fileio.c): Remove.
7273 (common-regcache.o: ../common/common-regcache.c): Remove.
7274 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7275 (new-op.o: ../common/new-op.c): Remove.
7276 (btrace-common.o: ../common/btrace-common.c): Remove.
7277
21122961
SM
72782017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7279
7280 * Makefile.in (%.o: ../target/%.c): New rule.
7281 (waitstatus.o: ../target/waitstatus.c): Remove.
7282
c362e621
SM
72832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7284
7285 * Makefile.in
7286 (%.c: ../regformats/%.dat,
7287 (%.c: ../regformats/arm/%.dat,
7288 (%.c: ../regformats/i386/%.dat,
7289 (%.c: ../regformats/rs6000/%.dat): New rules.
7290 (aarch64.c): Remove.
7291 (reg-arm.c): Remove.
7292 (arm-with-iwmmxt.c): Remove.
7293 (arm-with-vfpv2.c): Remove.
7294 (arm-with-vfpv3.c): Remove.
7295 (arm-with-neon.c): Remove.
7296 (reg-bfin.c): Remove.
7297 (reg-cris.c): Remove.
7298 (reg-crisv32.c): Remove.
7299 (i386.c): Remove.
7300 (i386-linux.c): Remove.
7301 (i386-avx.c): Remove.
7302 (i386-avx-linux.c): Remove.
7303 (i386-avx-avx512.c): Remove.
7304 (i386-avx-avx512-linux.c): Remove.
7305 (i386-mpx.c): Remove.
7306 (i386-mpx-linux.c): Remove.
7307 (i386-avx-mpx-avx512-pku.c): Remove.
7308 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7309 (i386-avx-mpx.c): Remove.
7310 (i386-avx-mpx-linux.c): Remove.
7311 (i386-mmx.c): Remove.
7312 (i386-mmx-linux.c): Remove.
7313 (reg-ia64.c): Remove.
7314 (reg-m32r.c): Remove.
7315 (reg-m68k.c): Remove.
7316 (reg-cf.c): Remove.
7317 (mips-linux.c): Remove.
7318 (mips-dsp-linux.c): Remove.
7319 (mips64-linux.c): Remove.
7320 (mips64-dsp-linux.c): Remove.
7321 (nios2-linux.c): Remove.
7322 (powerpc-32.c): Remove.
7323 (powerpc-32l.c): Remove.
7324 (powerpc-altivec32l.c): Remove.
7325 (powerpc-cell32l.c): Remove.
7326 (powerpc-vsx32l.c): Remove.
7327 (powerpc-isa205-32l.c): Remove.
7328 (powerpc-isa205-altivec32l.c): Remove.
7329 (powerpc-isa205-vsx32l.c): Remove.
7330 (powerpc-e500l.c): Remove.
7331 (powerpc-64l.c): Remove.
7332 (powerpc-altivec64l.c): Remove.
7333 (powerpc-cell64l.c): Remove.
7334 (powerpc-vsx64l.c): Remove.
7335 (powerpc-isa205-64l.c): Remove.
7336 (powerpc-isa205-altivec64l.c): Remove.
7337 (powerpc-isa205-vsx64l.c): Remove.
7338 (s390-linux32.c): Remove.
7339 (s390-linux32v1.c): Remove.
7340 (s390-linux32v2.c): Remove.
7341 (s390-linux64.c): Remove.
7342 (s390-linux64v1.c): Remove.
7343 (s390-linux64v2.c): Remove.
7344 (s390-te-linux64.c): Remove.
7345 (s390-vx-linux64.c): Remove.
7346 (s390-tevx-linux64.c): Remove.
7347 (s390x-linux64.c): Remove.
7348 (s390x-linux64v1.c): Remove.
7349 (s390x-linux64v2.c): Remove.
7350 (s390x-te-linux64.c): Remove.
7351 (s390x-vx-linux64.c): Remove.
7352 (s390x-tevx-linux64.c): Remove.
7353 (tic6x-c64xp-linux.c): Remove.
7354 (tic6x-c64x-linux.c): Remove.
7355 (tic6x-c62x-linux.c): Remove.
7356 (reg-sh.c): Remove.
7357 (reg-sparc64.c): Remove.
7358 (reg-spu.c): Remove.
7359 (amd64.c): Remove.
7360 (amd64-linux.c): Remove.
7361 (amd64-avx.c): Remove.
7362 (amd64-avx-linux.c): Remove.
7363 (amd64-avx-avx512.c): Remove.
7364 (amd64-avx-avx512-linux.c): Remove.
7365 (amd64-mpx.c): Remove.
7366 (amd64-mpx-linux.c): Remove.
7367 (amd64-avx-mpx-avx512-pku.c): Remove.
7368 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7369 (amd64-avx-mpx.c): Remove.
7370 (amd64-avx-mpx-linux.c): Remove.
7371 (x32.c): Remove.
7372 (x32-linux.c): Remove.
7373 (x32-avx.c): Remove.
7374 (x32-avx-linux.c): Remove.
7375 (x32-avx-avx512.c): Remove.
7376 (x32-avx-avx512-linux.c): Remove.
7377 (reg-xtensa.c): Remove.
7378 (reg-tilegx.c): Remove.
7379 (reg-tilegx32.c): Remove.
7380
1672e0d9
SDJ
73812017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7382
7383 * Makefile.in (SFILES): Add "common/environ.c".
7384 (OBJS): Add "common/environ.h".
7385
239b6d10
WT
73862017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7387
7388 * configure.ac: Check if the fs_base and gs_base members of
7389 `struct user_regs_struct' exist.
7390 * config.in: Regenerated.
7391 * configure: Likewise.
7392
694b382c
AT
73932017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7394
7395 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7396 target_read_memory.
7397 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7398 (get_next_pcs_syscall_next_pc): Likewise.
7399
7dc53023
LM
74002016-12-23 Luis Machado <lgustavo@codesourcery.com>
7401
7402 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7403 * nto-x86-low.c: Likewise.
7404
ad02e4fe
SM
74052016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7406
7407 * Makefile.in: Include disable-implicit-rules.mk.
7408
dcb07cfa
PA
74092016-11-23 Pedro Alves <palves@redhat.com>
7410
7411 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7412 (debug_vprintf): Use std::chrono::steady_clock instead of
7413 gettimeofday. Use '.' instead of ':'.
7414 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7415 (get_timestamp): Use std::chrono::steady_clock instead of
7416 gettimeofday.
7417
8629c02c
SM
74182016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7419
7420 * Makefile.in: Fix whitespace formatting.
7421
b593ecca
SM
74222016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7423
7424 * Makefile.in (SFILES, OBS): Flatten list and order
7425 alphabetically.
7426
9986ba08
PA
74272016-11-23 Pedro Alves <palves@redhat.com>
7428
7429 * event-loop.c (handle_file_event): Use warning.
7430 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7431 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7432 Use warning.
7433
4eefa7bc
PA
74342016-11-23 Pedro Alves <palves@redhat.com>
7435
7436 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7437 output.
7438 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7439 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7440 debug_printf and debug_flush for debug output.
7441 * server.c (handle_general_set): Likewise.
7442 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7443 output.
7444
5443506e
SM
74452016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7446
7447 * Makefile.in (.c.o): Replace rule with ...
7448 (%.o: %.c): ... this one.
7449
3b165252
SM
74502016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7451
7452 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7453 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7454 make.
7455 * configure.ac: Remove checks for the make program.
7456 * configure: Re-generate.
7457
0bcda685
PA
74582016-10-28 Pedro Alves <palves@redhat.com>
7459
7460 * Makefile.in (CXX_DIALECT): Get from configure.
7461 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7462 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7463 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7464 * config.in: Regenerate.
7465 * configure: Regenerate.
7466
c3805894
YQ
74672016-10-27 Yao Qi <yao.qi@linaro.org>
7468
7469 * linux-low.c (linux_supports_range_stepping): Return true if
7470 can_software_single_step return true.
7471
89342618
YQ
74722016-10-27 Yao Qi <yao.qi@linaro.org>
7473
7474 * inferiors.c (find_inferior_in_random): New function.
7475 * inferiors.h (find_inferior_in_random): Declare.
7476 * linux-low.c (linux_wait_for_event_filtered): Call
7477 find_inferior_in_random instead of find_inferior.
7478
e3652c84
YQ
74792016-10-27 Yao Qi <yao.qi@linaro.org>
7480
7481 * linux-low.c (linux_wait_1): If single-step breakpoints are
7482 inserted, remove them.
7483
5a04c4cf
PA
74842016-10-26 Pedro Alves <palves@redhat.com>
7485
7486 * linux-low.c (handle_extended_wait): Link parent/child fork
7487 threads.
7488 (linux_wait_1): Unlink them.
7489 (linux_set_resume_request): Ignore resume requests for
7490 already-resumed and unhandled fork child threads.
7491 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7492 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7493 New functions.
7494 (handle_v_requests) <vCont>: Don't call require_running.
7495 * server.h (in_queued_stop_replies): New declaration.
7496
cb93dc7f
YQ
74972016-10-24 Yao Qi <yao.qi@linaro.org>
7498
7499 PR server/20733
7500 * linux-aarch64-low.c (append_insns): Cast the return value to
7501 'uint32_t *'.
7502
a1078bea
YQ
75032016-10-10 Yao Qi <yao.qi@linaro.org>
7504
7505 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7506
1fb77080
SDJ
75072016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7508
7509 * target.c (target_supports_multi_process): New function, moved
7510 from...
7511 * target.h (target_supports_multi_process): ... here. Remove
7512 macro.
7513
39b5a3b9
TT
75142016-10-05 Tom Tromey <tom@tromey.com>
7515
7516 PR remote/20655:
7517 * tracepoint.c (handle_tracepoint_bkpts): Check
7518 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7519
c1d0b70a
YQ
75202016-10-05 Yao Qi <yao.qi@linaro.org>
7521
7522 * configure.srv: Update the path of arm-*.xml files.
7523
0a69eedb
YQ
75242016-10-05 Terry Guo <terry.guo@arm.com>
7525 Yao Qi <yao.qi@linaro.org>
7526
7527 * Makefile.in: Adjust the path of rules.
7528 * configure.srv: Update the path of xml files.
7529 * regformats/arm-with-iwmmxt.dat: Regenerated.
7530 * regformats/arm-with-neon.dat: Likewise.
7531 * regformats/arm-with-vfpv2.dat: Likewise.
7532 * regformats/arm-with-vfpv3.dat Likewise.
7533
17e16485
YQ
75342016-09-30 Yao Qi <yao.qi@linaro.org>
7535
7536 PR gdbserver/20627
7537 * target.c (target_stop_and_wait): Don't call
7538 target_continue_no_signal, use resume_stop instead.
7539
edeeb602
YQ
75402016-09-26 Yao Qi <yao.qi@linaro.org>
7541
7542 * linux-low.c (linux_wait_1): Call debug_exit.
7543
503b1c39
PA
75442016-09-23 Pedro Alves <palves@redhat.com>
7545
7546 * Makefile.in (SFILES): Add common/new-op.c.
7547 (OBS): Add common/new-op.o.
7548 (new-op.o): New rule.
7549
74172ecf
SM
75502016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7551
7552 * .gitinore: Ignore more files.
7553
fc6cda2e
YQ
75542016-09-21 Yao Qi <yao.qi@linaro.org>
7555
7556 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7557 23.
7558
bc1e6c81
SDJ
75592016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7560
7561 * server.c (start_inferior): Call target_mourn_inferior instead of
7562 mourn_inferior; pass ptid_t argument to it.
7563 (resume): Likewise.
7564 (handle_target_event): Likewise.
7565 * target.c (target_mourn_inferior): New function.
7566 * target.h (mourn_inferior): Delete macro.
7567
0e00e962
AA
75682016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7569
7570 * linux-low.c (lwp_is_stepping): New function.
7571
1d8cb77d
CL
75722016-09-06 Carl Love <cel@us.ibm.com>
7573
7574 * server.c (start_inferior): Fixed comment, requested comment change
7575 didn't get updated correctly. Removed reference to ptrace () call as
7576 it is only true on Linux systems.
7577
7313bced
CL
75782016-09-06 Carl Love <cel@us.ibm.com>
7579
7580 * server.c (start_inferior): Do not call
7581 function target_post_create_inferior () if the
7582 inferior process has already exited.
7583
cf6de44d
PA
75842016-09-05 Pedro Alves <palves@redhat.com>
7585
7586 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7587 (COMPILE.pre, CC_LD): Use CXX directly.
7588 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7589 * acinclude.m4: Don't include build-with-cxx.m4.
7590 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7591 * configure: Regenerate.
7592
c1da6748
AT
75932016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7594
7595 PR gdb/19495
7596 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7597 call writing data to own_buf.
7598
f2b9e3df
SDJ
75992016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7600
7601 * target.c (mywait): Call target_wait instead of
7602 the_target->wait.
7603 (target_wait): New function.
7604
049a8570
SDJ
76052016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7606
7607 * server.c (start_inferior): New variable 'ptid'. Replace calls
7608 to the_target->resume by target_continue{,_no_signal}, depending
7609 on the case.
7610 * target.c (target_stop_and_wait): Call target_continue_no_signal
7611 instead of the_target->resume.
7612 (target_continue): New function.
7613
3aa5cfa0
AT
76142016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7615
7616 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7617
754653a7
AZ
76182016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7619
7620 PR server/20491
7621 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7622 ps_prochandle.
7623 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7624 * linux-arm-low.c (ps_get_thread_area): Likewise.
7625 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7626 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7627 * linux-mips-low.c (ps_get_thread_area): Likewise.
7628 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7629 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7630 * linux-x86-low.c (ps_get_thread_area): Likewise.
7631 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7632
ed036b40
PA
76332016-08-19 Pedro Alves <palves@redhat.com>
7634
7635 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7636
c8ef42ee
PA
76372016-08-19 Pedro Alves <palves@redhat.com>
7638
7639 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7640 comment. Use memcpy instead of casting through unsigned long.
7641
9c235a72
PA
76422016-08-19 Pedro Alves <palves@redhat.com>
7643
7644 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7645 allocating around 0x80000000.
7646
201506da
PA
76472016-08-19 Pedro Alves <palves@redhat.com>
7648
7649 PR gdb/20415
7650 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7651 (x32-avx512-linux-ipa.o): New rules.
7652 * configure.ac (x86_64-*-linux*): New x32 check.
7653 * configure.srv (ipa_x32_linux_regobj): New.
7654 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7655 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7656 descriptions.
7657 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7658 descriptions.
7659 * configure: Regenerate.
7660
f348d89a
PA
76612016-08-09 Pedro Alves <palves@redhat.com>
7662
7663 PR gdb/18653
7664 * Makefile.in (OBS): Add signals-state-save-restore.o.
7665 (signals-state-save-restore.o): New rule.
7666 * config.in: Regenerate.
7667 * configure: Regenerate.
7668 * linux-low.c: Include "signals-state-save-restore.h".
7669 (linux_create_inferior): Call
7670 restore_original_signals_state.
7671 * server.c: Include "dispositions-save-restore.h".
7672 (captured_main): Call save_original_signals_state.
7673
1baf5149
PA
76742016-08-05 Pedro Alves <palves@redhat.com>
7675
7676 * configure: Regenerate.
7677
fcd4a73d
YQ
76782016-08-04 Yao Qi <yao.qi@linaro.org>
7679
7680 * linux-low.c (regsets_fetch_inferior_registers): Check
7681 errno is ESRCH or not.
7682
979659d0
YQ
76832016-08-02 Yao Qi <yao.qi@linaro.org>
7684
7685 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7686 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7687 (thread_db_load_search): Update.
7688 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7689 td_ta_set_event and td_ta_event_getmsg.
7690
6598661d
PA
76912016-07-26 Pedro Alves <palves@redhat.com>
7692
7693 PR server/20414
7694 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7695 of unsigned long for 64-bit registers and use uint32_t instead of
7696 unsigned int for 32-bit registers.
7697
9cf12d57
PA
76982016-07-26 Pedro Alves <palves@redhat.com>
7699
7700 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7701 to 'ptrace'.
7702
305450ed
TT
77032016-07-21 Tom Tromey <tom@tromey.com>
7704
7705 * configure: Rebuild.
7706
2583da7c
YQ
77072016-07-21 Yao Qi <yao.qi@linaro.org>
7708
7709 * mem-break.c (find_gdb_breakpoint): Cast bp to
7710 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7711
21536b36
YQ
77122016-07-21 Yao Qi <yao.qi@linaro.org>
7713
7714 * server.c (handle_v_requests): Support s and S actions
7715 if target_supports_software_single_step return true.
7716
8901d193
YQ
77172016-07-21 Yao Qi <yao.qi@linaro.org>
7718
7719 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7720 is resume_step, call maybe_hw_step.
7721 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7722 and unstop them.
7723 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7724 breakpoints or not.
7725 (proceed_one_lwp): If resume request is resume_step, install
7726 reinsert breakpoints and call maybe_hw_step.
7727
0e9a339e
YQ
77282016-07-21 Yao Qi <yao.qi@linaro.org>
7729
7730 * linux-low.c (proceed_one_lwp): Declare.
7731 (linux_resume_one_thread): Remove local variable 'step'.
7732 Lift code enqueue signal. Call proceed_one_lwp instead of
7733 linux_resume_one_lwp.
7734
4281b351
YQ
77352016-07-21 Yao Qi <yao.qi@linaro.org>
7736
7737 * linux-low.c (linux_resume_one_thread): Call
7738 enqueue_pending_signal.
7739
984a2c04
YQ
77402016-07-21 Yao Qi <yao.qi@linaro.org>
7741
7742 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7743 * inferiors.c (do_restore_current_thread_cleanup): New function.
7744 (make_cleanup_restore_current_thread): Likewise.
7745 * linux-low.c (install_software_single_step_breakpoints): Call
7746 make_cleanup_restore_current_thread. Switch current_thread to
7747 thread.
7748
bec903c9
YQ
77492016-07-21 Yao Qi <yao.qi@linaro.org>
7750
7751 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7752 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7753 (clone_one_breakpoint): Likewise.
7754 (delete_reinsert_breakpoints): Change parameter to thread.
7755 Callers updated.
7756 (has_reinsert_breakpoints): Likewise.
7757 (uninsert_reinsert_breakpoints): Likewise.
7758 (reinsert_reinsert_breakpoints): Likewise.
7759 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7760 (delete_reinsert_breakpoints): Likewise.
7761 (reinsert_reinsert_breakpoints): Likewise.
7762 (uninsert_reinsert_breakpoints): Likewise.
7763 (has_reinsert_breakpoints): Likewise.
7764
63c40ec7
YQ
77652016-07-21 Yao Qi <yao.qi@linaro.org>
7766
7767 * inferiors.c (get_thread_process): Make parameter const.
7768 * inferiors.h (get_thread_process): Update declaration.
7769 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7770 Add new parameters child_thread and parent_thread. Callers
7771 updated.
7772 * mem-break.h (clone_all_breakpoints): Update declaration.
7773
9aa76cd0
YQ
77742016-07-21 Yao Qi <yao.qi@linaro.org>
7775
7776 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7777 <command_list, handler>: Remove.
7778 (struct gdb_breakpoint): New.
7779 (struct other_breakpoint): New.
7780 (struct reinsert_breakpoint): New.
7781 (is_gdb_breakpoint): New function.
7782 (any_persistent_commands): Update command_list if
7783 is_gdb_breakpoint returns true.
7784 (set_breakpoint): Create breakpoints according to their types.
7785 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7786 (set_gdb_breakpoint_1): Likewise.
7787 (set_gdb_breakpoint): Likewise.
7788 (clear_breakpoint_conditions): Change parameter type to
7789 'struct gdb_breakpoint *'.
7790 (clear_breakpoint_commands): Likewise.
7791 (clear_breakpoint_conditions_and_commands): Likewise.
7792 (add_condition_to_breakpoint): Likewise.
7793 (add_breakpoint_condition): Likewise.
7794 (add_commands_to_breakpoint): Likewise.
7795 (check_breakpoints): Check other_breakpoint.
7796 (clone_one_breakpoint): Clone breakpopint according to its type.
7797 * mem-break.h (struct gdb_breakpoint): Declare.
7798 (set_gdb_breakpoint): Update declaration.
7799 (clear_breakpoint_conditions_and_commands): Likewise.
7800 (add_breakpoint_condition): Likewise.
7801 (add_breakpoint_commands): Likewise.
7802 * server.c (process_point_options): Change parameter type to
7803 'struct gdb_breakpoint *'.
7804
811f8301
YQ
78052016-07-21 Yao Qi <yao.qi@linaro.org>
7806
7807 * mem-break.c (set_breakpoint_at): Rename it to ...
7808 (set_breakpoint_type_at): ... it.
7809 (set_breakpoint_at): Call set_breakpoint_type_at.
7810 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7811 * mem-break.h (set_breakpoint_at): Update comments.
7812
b1c51e36
CLT
78132016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7814
7815 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7816 to buf parameter.
7817 (nios2_store_gregset): Likewise.
7818
ced2dffb
PA
78192016-07-01 Pedro Alves <palves@redhat.com>
7820 Antoine Tremblay <antoine.tremblay@ericsson.com>
7821
7822 * linux-low.c: Change interface to take the target lwp_info
7823 pointer directly and return void. Handle detaching from a zombie
7824 thread.
7825 (linux_detach_lwp_callback): New function.
7826 (linux_detach): Detach from the leader thread after detaching from
7827 the clone threads.
7828
2ac09a5b
YQ
78292016-06-28 Yao Qi <yao.qi@linaro.org>
7830
7831 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7832 for variable new_offset.
7833 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7834 (aarch64_ftrace_insn_reloc_cb): Likewise.
7835 (aarch64_ftrace_insn_reloc_tb): Likewise.
7836 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7837 PRIx64 instead of PRIx32.
7838
79e7fd4f
YQ
78392016-06-28 Yao Qi <yao.qi@linaro.org>
7840
7841 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7842 (the_low_target): Install arm_get_syscall_trapinfo.
7843
061fc021
YQ
78442016-06-28 Yao Qi <yao.qi@linaro.org>
7845
7846 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7847 function.
7848 (the_low_target): Install aarch64_get_syscall_trapinfo.
7849
4cc32bec
YQ
78502016-06-28 Yao Qi <yao.qi@linaro.org>
7851
7852 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7853 Callers updated.
7854 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7855 Remove parameter sysno.
7856 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7857 sysret.
7858
782c1122
AA
78592016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7860
7861 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7862 (s390_emit_ne_goto): Likewise.
7863 (s390_emit_lt_goto): Likewise.
7864 (s390_emit_le_goto): Likewise.
7865 (s390_emit_gt_goto): Likewise.
7866 (s390_emit_ge_goto): Likewise.
7867 (s390x_emit_eq_goto): Likewise.
7868 (s390x_emit_ne_goto): Likewise.
7869 (s390x_emit_lt_goto): Likewise.
7870 (s390x_emit_le_goto): Likewise.
7871 (s390x_emit_gt_goto): Likewise.
7872 (s390x_emit_ge_goto): Likewise.
7873 (s390_emit_ops_impl): Mark variable static.
7874 (s390x_emit_ops): Likewise.
7875
2e7b624b
YQ
78762016-06-17 Yao Qi <yao.qi@linaro.org>
7877
7878 * linux-low.c (handle_extended_wait): Call
7879 uninsert_reinsert_breakpoints for the parent process. Remove
7880 reinsert breakpoints from the child process. Reinsert them to
7881 the parent process when vfork is done.
7882 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7883 (reinsert_reinsert_breakpoints): New function.
7884 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7885 (reinsert_reinsert_breakpoints): Declare.
7886
8a81c5d7
YQ
78872016-06-17 Yao Qi <yao.qi@linaro.org>
7888
7889 * linux-low.c (handle_extended_wait): If the parent is doing
7890 step-over, remove the reinsert breakpoints from the forked child.
7891
f50bf8e5
YQ
78922016-06-17 Yao Qi <yao.qi@linaro.org>
7893
7894 * linux-low.c (unsuspend_all_lwps): Declare.
7895 (linux_low_filter_event): If thread exited, call finish_step_over.
7896 If step-over is finished, unsuspend other threads.
7897
8376a3cb
YQ
78982016-06-17 Yao Qi <yao.qi@linaro.org>
7899
7900 * linux-low.c (linux_resume_one_lwp_throw): Assert
7901 has_reinsert_breakpoints returns false.
7902 * mem-break.c (delete_disabled_breakpoints): Assert
7903 bp type isn't reinsert_breakpoint.
7904
f79b145d
YQ
79052016-06-17 Yao Qi <yao.qi@linaro.org>
7906
7907 * linux-low.c (maybe_hw_step): New function.
7908 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7909 (finish_step_over): Switch current_thread to lwp temporarily,
7910 and assert has_reinsert_breakpoints returns true.
7911 (proceed_one_lwp): Call maybe_hw_step.
7912 * mem-break.c (has_reinsert_breakpoints): New function.
7913 * mem-break.h (has_reinsert_breakpoints): Declare.
7914
0ae534d2
JT
79152016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7916
7917 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7918
fcdad592
YQ
79192016-05-17 Yao Qi <yao.qi@linaro.org>
7920
7921 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7922 instead of find_inferior.
7923
9e784964
YQ
79242016-05-05 Yao Qi <yao.qi@linaro.org>
7925
7926 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7927 Initialize res to zero.
7928
cf2ebb6e
YQ
79292016-05-05 Yao Qi <yao.qi@linaro.org>
7930
7931 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7932 to uint32_t.
7933
c1aebf87
UW
79342016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7935
7936 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7937 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7938 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7939
35fd2deb 79402016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7941 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7942
7943 * tracepoint.c (write_inferior_int8): New function.
7944 (cmd_qtenable_disable): Write enable flag using
7945 write_inferior_int8.
7946
484b3c32
YQ
79472016-04-25 Yao Qi <yao.qi@linaro.org>
7948
7949 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7950 (need_step_over_p): Return zero if the LWP has pending signals
7951 can be delivered on software single step target.
7952
85ba7d86
YQ
79532016-04-25 Yao Qi <yao.qi@linaro.org>
7954
7955 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7956 return instead of error.
7957
3539aa13
YQ
79582016-04-22 Yao Qi <yao.qi@linaro.org>
7959
7960 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7961 to 23.
7962
5b061e98
YQ
79632016-04-22 Yao Qi <yao.qi@linaro.org>
7964
7965 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7966 signal when stepping over breakpoint with software single
7967 step.
7968
3451269c
PA
79692016-04-21 Pedro Alves <palves@redhat.com>
7970
7971 * linux-s390-low.c (s390_collect_ptrace_register)
7972 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7973 add casts.
7974 (s390_check_regset): Use void * instead of gdb_byte *.
7975
a2358508
PA
79762016-04-20 Pedro Alves <palves@redhat.com>
7977
7978 * configure: Renegerate.
7979
6885166d
YQ
79802016-04-20 Yao Qi <yao.qi@linaro.org>
7981
7982 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7983 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7984 number 16.
7985 (arm_store_gregset): Likewise.
7986
2b863f51
WT
79872016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7988
7989 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7990 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7991 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7992 (amd64-avx-mpx-linux.c): New rules.
7993 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7994 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7995 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7996 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7997 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7998 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7999 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8000 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8001 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8002 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8003 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8004 * linux-x86-low.c (x86_linux_read_description): Add case for
8005 X86_XSTATE_AVX_MPX_MASK.
8006 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8007 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8008 init_registers_i386_avx_mpx_linux.
8009 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8010 (initialize_low_tracepoint): Call
8011 init_registers_i386_avx_mpx_linux.
8012 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8013 (initialize_low_tracepoint): Call
8014 init_registers_amd64_avx_mpx_linux.
8015 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8016 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8017 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8018 declarations.
8019
9b30624b
PA
80202016-04-18 Pedro Alves <palves@redhat.com>
8021
8022 * configure: Regenerate.
8023
45e3745e
AT
80242016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8025
8026 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8027 (aarch64_emit_sub): Likewise.
8028
2afc13ff
PA
80292016-04-12 Pedro Alves <palves@redhat.com>
8030
8031 * utils.c (prepare_to_throw_exception): Delete.
8032
6e774b13
SM
80332016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8034
8035 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8036
4dca19f8
MK
80372016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8038
8039 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8040
d0a9981f
MK
80412016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8042
8043 * linux-aarch64-ipa.c: Add <elf.h> include.
8044 * linux-ppc-ipa.c: Add <elf.h> include.
8045 * linux-s390-ipa.c: Add <elf.h> include.
8046
252db07e
MK
80472016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8048
8049 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8050 (get_raw_reg_ptr): Likewise.
8051 (get_trace_state_variable_value_ptr): Likewise.
8052 (set_trace_state_variable_value_ptr): Likewise.
8053 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8054 char *.
8055
14e2b6d9
MK
80562016-03-31 Wei-cheng Wang <cole945@gmail.com>
8057 Marcin Kościelnicki <koriakin@0x04.net>
8058
8059 PR/17221
8060 * linux-ppc-low.c (emit_insns): New function.
8061 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8062 (ppc_emit_prologue): New function.
8063 (ppc_emit_epilogue): New function.
8064 (ppc_emit_add): New function.
8065 (ppc_emit_sub): New function.
8066 (ppc_emit_mul): New function.
8067 (ppc_emit_lsh): New function.
8068 (ppc_emit_rsh_signed): New function.
8069 (ppc_emit_rsh_unsigned): New function.
8070 (ppc_emit_ext): New function.
8071 (ppc_emit_zero_ext): New function.
8072 (ppc_emit_log_not): New function.
8073 (ppc_emit_bit_and): New function.
8074 (ppc_emit_bit_or): New function.
8075 (ppc_emit_bit_xor): New function.
8076 (ppc_emit_bit_not): New function.
8077 (ppc_emit_equal): New function.
8078 (ppc_emit_less_signed): New function.
8079 (ppc_emit_less_unsigned): New function.
8080 (ppc_emit_ref): New function.
8081 (ppc_emit_const): New function.
8082 (ppc_emit_reg): New function.
8083 (ppc_emit_pop): New function.
8084 (ppc_emit_stack_flush): New function.
8085 (ppc_emit_swap): New function.
8086 (ppc_emit_stack_adjust): New function.
8087 (ppc_emit_call): New function.
8088 (ppc_emit_int_call_1): New function.
8089 (ppc_emit_void_call_2): New function.
8090 (ppc_emit_if_goto): New function.
8091 (ppc_emit_goto): New function.
8092 (ppc_emit_eq_goto): New function.
8093 (ppc_emit_ne_goto): New function.
8094 (ppc_emit_lt_goto): New function.
8095 (ppc_emit_le_goto): New function.
8096 (ppc_emit_gt_goto): New function.
8097 (ppc_emit_ge_goto): New function.
8098 (ppc_write_goto_address): New function.
8099 (ppc_emit_ops_impl): New static variable.
8100 (ppc64v1_emit_prologue): New function.
8101 (ppc64v2_emit_prologue): New function.
8102 (ppc64_emit_epilogue): New function.
8103 (ppc64_emit_add): New function.
8104 (ppc64_emit_sub): New function.
8105 (ppc64_emit_mul): New function.
8106 (ppc64_emit_lsh): New function.
8107 (ppc64_emit_rsh_signed): New function.
8108 (ppc64_emit_rsh_unsigned): New function.
8109 (ppc64_emit_ext): New function.
8110 (ppc64_emit_zero_ext): New function.
8111 (ppc64_emit_log_not): New function.
8112 (ppc64_emit_bit_and): New function.
8113 (ppc64_emit_bit_or): New function.
8114 (ppc64_emit_bit_xor): New function.
8115 (ppc64_emit_bit_not): New function.
8116 (ppc64_emit_equal): New function.
8117 (ppc64_emit_less_signed): New function.
8118 (ppc64_emit_less_unsigned): New function.
8119 (ppc64_emit_ref): New function.
8120 (ppc64_emit_const): New function.
8121 (ppc64v1_emit_reg): New function.
8122 (ppc64v2_emit_reg): New function.
8123 (ppc64_emit_pop): New function.
8124 (ppc64_emit_stack_flush): New function.
8125 (ppc64_emit_swap): New function.
8126 (ppc64v1_emit_call): New function.
8127 (ppc64v2_emit_call): New function.
8128 (ppc64v1_emit_int_call_1): New function.
8129 (ppc64v2_emit_int_call_1): New function.
8130 (ppc64v1_emit_void_call_2): New function.
8131 (ppc64v2_emit_void_call_2): New function.
8132 (ppc64_emit_if_goto): New function.
8133 (ppc64_emit_eq_goto): New function.
8134 (ppc64_emit_ne_goto): New function.
8135 (ppc64_emit_lt_goto): New function.
8136 (ppc64_emit_le_goto): New function.
8137 (ppc64_emit_gt_goto): New function.
8138 (ppc64_emit_ge_goto): New function.
8139 (ppc64v1_emit_ops_impl): New static variable.
8140 (ppc64v2_emit_ops_impl): New static variable.
8141 (ppc_emit_ops): New function.
8142 (linux_low_target): Wire in ppc_emit_ops.
8143
a2174ba4
MK
81442016-03-31 Wei-cheng Wang <cole945@gmail.com>
8145 Marcin Kościelnicki <koriakin@0x04.net>
8146
8147 PR/17221
8148 * Makefile.in: Add powerpc-*-ipa.o
8149 * configure.srv: Add ipa_obj for powerpc*-linux.
8150 * linux-ppc-ipa.c: New file.
8151 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8152 includes.
8153 (PPC_FIELD): New macro.
8154 (PPC_SEXT): New macro.
8155 (PPC_OP6): New macro.
8156 (PPC_BO): New macro.
8157 (PPC_LI): New macro.
8158 (PPC_BD): New macro.
8159 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8160 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8161 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8162 (ppc_get_thread_area): New function.
8163 (is_elfv2_inferior): New function.
8164 (gen_ds_form): New function.
8165 (GEN_STD): New macro.
8166 (GEN_STDU): New macro.
8167 (GEN_LD): New macro.
8168 (GEN_LDU): New macro.
8169 (gen_d_form): New function.
8170 (GEN_ADDI): New macro.
8171 (GEN_ADDIS): New macro.
8172 (GEN_LI): New macro.
8173 (GEN_LIS): New macro.
8174 (GEN_ORI): New macro.
8175 (GEN_ORIS): New macro.
8176 (GEN_LWZ): New macro.
8177 (GEN_STW): New macro.
8178 (GEN_STWU): New macro.
8179 (gen_xfx_form): New function.
8180 (GEN_MFSPR): New macro.
8181 (GEN_MTSPR): New macro.
8182 (GEN_MFCR): New macro.
8183 (GEN_MTCR): New macro.
8184 (GEN_SYNC): New macro.
8185 (GEN_LWSYNC): New macro.
8186 (gen_x_form): New function.
8187 (GEN_OR): New macro.
8188 (GEN_MR): New macro.
8189 (GEN_LWARX): New macro.
8190 (GEN_STWCX): New macro.
8191 (GEN_CMPW): New macro.
8192 (gen_md_form): New function.
8193 (GEN_RLDICL): New macro.
8194 (GEN_RLDICR): New macro.
8195 (gen_i_form): New function.
8196 (GEN_B): New macro.
8197 (GEN_BL): New macro.
8198 (gen_b_form): New function.
8199 (GEN_BNE): New macro.
8200 (GEN_LOAD): New macro.
8201 (GEN_STORE): New macro.
8202 (gen_limm): New function.
8203 (gen_atomic_xchg): New function.
8204 (gen_call): New function.
8205 (ppc_relocate_instruction): New function.
8206 (ppc_install_fast_tracepoint_jump_pad): New function.
8207 (ppc_get_min_fast_tracepoint_insn_len): New function.
8208 (ppc_get_ipa_tdesc_idx): New function.
8209 (the_low_target): Wire in the new functions.
8210 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8211 tdescs.
8212 * linux-ppc-tdesc.h: New file.
8213
a13c4696
MK
82142016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8215
8216 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8217 (alloc_jump_pad_buffer): New function.
8218 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8219 (alloc_jump_pad_buffer): New function.
8220 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8221 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8222 (alloc_jump_pad_buffer): New function.
8223 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8224 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8225 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8226 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8227
1cda1512
MK
82282016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8229
8230 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8231 * linux-amd64-ipa.c: Likewise.
8232 * linux-i386-ipa.c: Likewise.
8233 * linux-s390-ipa.c: Likewise.
8234 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8235 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8236 set_trace_state_variable_value_ptr.
8237 (struct ipa_sym_addresses): Likewise.
8238 (symbol_list): Likewise.
8239 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8240 accessing gdb_collect directly.
8241 (gdb_collect_ptr_type): New typedef.
8242 (get_raw_reg_ptr_type): New typedef.
8243 (get_trace_state_variable_value_ptr_type): New typedef.
8244 (set_trace_state_variable_value_ptr_type): New typedef.
8245 (gdb_collect_ptr): New global.
8246 (get_raw_reg_ptr): New global.
8247 (get_trace_state_variable_value_ptr): New global.
8248 (set_trace_state_variable_value_ptr): New global.
8249 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8250 accessing get_raw_reg directly.
8251 (get_get_tsv_func_addr): Likewise for
8252 get_trace_state_variable_value_ptr.
8253 (get_set_tsv_func_addr): Likewise for
8254 set_trace_state_variable_value_ptr.
8255 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8256
72fb5488
SM
82572016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8258
8259 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8260
28170b88
MK
82612016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8262
8263 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8264 packets.
8265 (relocate_instruction): Remove own_buf.
8266 * server.c (own_buf): Make global.
8267 (handle_v_requests): Make global.
8268 * server.h (own_buf): New declaration.
8269 (handle_v_requests): New prototype.
8270
f39e8743
MK
82712016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8272
8273 PR 18377
8274 * linux-s390-low.c (add_insns): New function.
8275 (s390_emit_prologue): New function.
8276 (s390_emit_epilogue): New function.
8277 (s390_emit_add): New function.
8278 (s390_emit_sub): New function.
8279 (s390_emit_mul): New function.
8280 (s390_emit_lsh): New function.
8281 (s390_emit_rsh_signed): New function.
8282 (s390_emit_rsh_unsigned): New function.
8283 (s390_emit_ext): New function.
8284 (s390_emit_log_not): New function.
8285 (s390_emit_bit_and): New function.
8286 (s390_emit_bit_or): New function.
8287 (s390_emit_bit_xor): New function.
8288 (s390_emit_bit_not): New function.
8289 (s390_emit_equal): New function.
8290 (s390_emit_less_signed): New function.
8291 (s390_emit_less_unsigned): New function.
8292 (s390_emit_ref): New function.
8293 (s390_emit_if_goto): New function.
8294 (s390_emit_goto): New function.
8295 (s390_write_goto_address): New function.
8296 (s390_emit_litpool): New function.
8297 (s390_emit_const): New function.
8298 (s390_emit_call): New function.
8299 (s390_emit_reg): New function.
8300 (s390_emit_pop): New function.
8301 (s390_emit_stack_flush): New function.
8302 (s390_emit_zero_ext): New function.
8303 (s390_emit_swap): New function.
8304 (s390_emit_stack_adjust): New function.
8305 (s390_emit_set_r2): New function.
8306 (s390_emit_int_call_1): New function.
8307 (s390_emit_void_call_2): New function.
8308 (s390_emit_eq_goto): New function.
8309 (s390_emit_ne_goto): New function.
8310 (s390_emit_lt_goto): New function.
8311 (s390_emit_le_goto): New function.
8312 (s390_emit_gt_goto): New function.
8313 (s390_emit_ge_goto): New function.
8314 (s390x_emit_prologue): New function.
8315 (s390x_emit_epilogue): New function.
8316 (s390x_emit_add): New function.
8317 (s390x_emit_sub): New function.
8318 (s390x_emit_mul): New function.
8319 (s390x_emit_lsh): New function.
8320 (s390x_emit_rsh_signed): New function.
8321 (s390x_emit_rsh_unsigned): New function.
8322 (s390x_emit_ext): New function.
8323 (s390x_emit_log_not): New function.
8324 (s390x_emit_bit_and): New function.
8325 (s390x_emit_bit_or): New function.
8326 (s390x_emit_bit_xor): New function.
8327 (s390x_emit_bit_not): New function.
8328 (s390x_emit_equal): New function.
8329 (s390x_emit_less_signed): New function.
8330 (s390x_emit_less_unsigned): New function.
8331 (s390x_emit_ref): New function.
8332 (s390x_emit_if_goto): New function.
8333 (s390x_emit_const): New function.
8334 (s390x_emit_call): New function.
8335 (s390x_emit_reg): New function.
8336 (s390x_emit_pop): New function.
8337 (s390x_emit_stack_flush): New function.
8338 (s390x_emit_zero_ext): New function.
8339 (s390x_emit_swap): New function.
8340 (s390x_emit_stack_adjust): New function.
8341 (s390x_emit_int_call_1): New function.
8342 (s390x_emit_void_call_2): New function.
8343 (s390x_emit_eq_goto): New function.
8344 (s390x_emit_ne_goto): New function.
8345 (s390x_emit_lt_goto): New function.
8346 (s390x_emit_le_goto): New function.
8347 (s390x_emit_gt_goto): New function.
8348 (s390x_emit_ge_goto): New function.
8349 (s390_emit_ops): New function.
8350 (struct linux_target_ops): Fill in emit_ops hook.
8351
abd9baf9
MK
83522016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8353
8354 PR 18377
8355 * Makefile.in: Add s390 IPA files.
8356 * configure.srv: Build IPA for s390.
8357 * linux-s390-ipa.c: New file.
8358 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8359 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8360 (tdesc_s390_linux32): Likewise.
8361 (init_registers_s390_linux32v1): Likewise.
8362 (tdesc_s390_linux32v1): Likewise.
8363 (init_registers_s390_linux32v2): Likewise.
8364 (tdesc_s390_linux32v2): Likewise.
8365 (init_registers_s390_linux64): Likewise.
8366 (tdesc_s390_linux64): Likewise.
8367 (init_registers_s390_linux64v1): Likewise.
8368 (tdesc_s390_linux64v1): Likewise.
8369 (init_registers_s390_linux64v2): Likewise.
8370 (tdesc_s390_linux64v2): Likewise.
8371 (init_registers_s390_te_linux64): Likewise.
8372 (tdesc_s390_te_linux64): Likewise.
8373 (init_registers_s390_vx_linux64): Likewise.
8374 (tdesc_s390_vx_linux64): Likewise.
8375 (init_registers_s390_tevx_linux64): Likewise.
8376 (tdesc_s390_tevx_linux64): Likewise.
8377 (init_registers_s390x_linux64): Likewise.
8378 (tdesc_s390x_linux64): Likewise.
8379 (init_registers_s390x_linux64v1): Likewise.
8380 (tdesc_s390x_linux64v1): Likewise.
8381 (init_registers_s390x_linux64v2): Likewise.
8382 (tdesc_s390x_linux64v2): Likewise.
8383 (init_registers_s390x_te_linux64): Likewise.
8384 (tdesc_s390x_te_linux64): Likewise.
8385 (init_registers_s390x_vx_linux64): Likewise.
8386 (tdesc_s390x_vx_linux64): Likewise.
8387 (init_registers_s390x_tevx_linux64): Likewise.
8388 (tdesc_s390x_tevx_linux64): Likewise.
8389 (have_hwcap_s390_vx): New static variable.
8390 (s390_arch_setup): Fill have_hwcap_s390_vx.
8391 (s390_get_thread_area): New function.
8392 (s390_ft_entry_gpr_esa): New const.
8393 (s390_ft_entry_gpr_zarch): New const.
8394 (s390_ft_entry_misc): New const.
8395 (s390_ft_entry_fr): New const.
8396 (s390_ft_entry_vr): New const.
8397 (s390_ft_main_31): New const.
8398 (s390_ft_main_64): New const.
8399 (s390_ft_exit_fr): New const.
8400 (s390_ft_exit_vr): New const.
8401 (s390_ft_exit_misc): New const.
8402 (s390_ft_exit_gpr_esa): New const.
8403 (s390_ft_exit_gpr_zarch): New const.
8404 (append_insns): New function.
8405 (s390_relocate_instruction): New function.
8406 (s390_install_fast_tracepoint_jump_pad): New function.
8407 (s390_get_min_fast_tracepoint_insn_len): New function.
8408 (s390_get_ipa_tdesc_idx): New function.
8409 (struct linux_target_ops): Wire in the above functions.
8410 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8411 * linux-s390-tdesc.h: New file.
8412
a4105d04
MK
84132016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8414
8415 * linux-s390-low.c (s390_supports_tracepoints): New function.
8416 (struct linux_target_ops): Fill supports_tracepoints hook.
8417
35ac8b3e
YQ
84182016-03-18 Yao Qi <yao.qi@linaro.org>
8419
8420 * linux-low.c (lwp_signal_can_be_delivered): New function.
8421 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8422
94610ec4
YQ
84232016-03-18 Yao Qi <yao.qi@linaro.org>
8424
8425 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8426 0 if signal is enqueued. Remove 'signal' from one debugging
8427 message. Move one debugging message to some lines below.
8428 Remove code setting 'signal' to 0.
8429
80aea927
YQ
84302016-03-18 Yao Qi <yao.qi@linaro.org>
8431
8432 * linux-low.c (linux_low_filter_event): Remove redundant
8433 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8434
b04fd3be
MK
84352016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8436
8437 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8438 (struct linux_target_ops): Wire in the above.
8439
c40c8d4b
YQ
84402016-03-03 Yao Qi <yao.qi@linaro.org>
8441
8442 * linux-low.c: Update comments to start_step_over.
8443
0f8288ae
YQ
84442016-03-03 Yao Qi <yao.qi@linaro.org>
8445
8446 PR server/19736
8447 * linux-low.c (handle_extended_wait): Set child suspended
8448 if event_lwp->bp_reinsert isn't zero.
8449
fdbd04a8
YQ
84502016-03-02 Yao Qi <yao.qi@linaro.org>
8451
8452 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8453 enqueue_pending_signal.
8454
6896a8fa
MK
84552016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8456
8457 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8458 is actually loaded.
8459
ab503087
MK
84602016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8461
8462 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8463 (s390_regmap_3264) [!__s390x__]: New global.
8464 (s390_collect_ptrace_register): Skip map entries containing -1.
8465 (s390_supply_ptrace_register): Ditto.
8466 (s390_fill_gprs_high): New function.
8467 (s390_store_gprs_high): New function.
8468 (s390_regsets): Add NT_S390_HIGH_GPRS.
8469 (s390_get_hwcap): Enable on 31-bit.
8470 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8471 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8472 Detect NT_S390_HIGH_GPRS.
8473 (s390_usrregs_info_3264): Enable on 31-bit.
8474 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8475 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8476
ae91f625
MK
84772016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8478
8479 PR gdb/13808
8480 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8481 * configure.srv: Ditto.
8482 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8483 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8484 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8485 (init_registers_amd64_linux): Remove prototype.
8486 (tdesc_amd64_linux): Remove declaration.
8487 (get_ipa_tdesc): New function.
8488 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8489 initialize remaining tdescs.
8490 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8491 (init_registers_i386_linux): Remove prototype.
8492 (tdesc_i386_linux): Remove declaration.
8493 (get_ipa_tdesc): New function.
8494 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8495 initialize remaining tdescs.
8496 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8497 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8498 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8499 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8500 (x86_get_ipa_tdesc_idx): New function.
8501 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8502 * linux-x86-tdesc.h: New file.
8503 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8504 (target_get_ipa_tdesc_idx): New macro.
8505 * tracepoint.c (ipa_tdesc_idx): New macro.
8506 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8507 (symbol_list): Add ipa_tdesc_idx.
8508 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8509 (ipa_tdesc): Remove.
8510 (ipa_tdesc_idx): New variable.
8511 (get_context_regcache): Use get_ipa_tdesc.
8512 (gdb_collect): Ditto.
8513 (gdb_probe): Ditto.
8514 * tracepoint.h (get_ipa_tdesc): New prototype.
8515 (ipa_tdesc): Remove.
8516
e7ad2f14
PA
85172016-02-24 Pedro Alves <palves@redhat.com>
8518
8519 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8520 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8521 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8522 Factor out common code between the USE_SIGTRAP_SIGINFO and
8523 !USE_SIGTRAP_SIGINFO blocks.
8524 (linux_low_filter_event): Call save_stop_reason instead of
8525 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8526 Update comments.
8527 (linux_wait_1): Update comments.
8528
657f9cde
WW
85292016-02-24 Wei-cheng Wang <cole945@gmail.com>
8530
8531 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8532 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8533 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8534 ppc_insert_point, ppc_remove_point.
8535
b00b61e1
MK
85362016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8537
8538 * linux-s390-low.c (s390_supports_z_point_type): New function.
8539 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8540
553cb527
YQ
85412016-02-16 Yao Qi <yao.qi@linaro.org>
8542
8543 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8544 PC. Get pc from regcache_read_pc.
8545
a5652c21
YQ
85462016-02-12 Yao Qi <yao.qi@linaro.org>
8547
8548 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8549 or linux_get_pc_32bit.
8550 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8551
ed443b61
YQ
85522016-02-12 Yao Qi <yao.qi@linaro.org>
8553
8554 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8555 arm_linux_get_next_pcs_fixup.
8556
020ecd38
MK
85572016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8558
8559 * tracepoint.c (x_tracepoint_action_download): Change
8560 write_inferior_data_ptr to write_inferior_data_pointer.
8561 (cmd_qtstart): Likewise.
8562 (write_inferior_data_ptr): Remove.
8563 (download_agent_expr): Change write_inferior_data_ptr to
8564 write_inferior_data_pointer.
8565 (download_tracepoint_1): Likewise.
8566 (download_tracepoint): Likewise.
8567 (download_trace_state_variables): Likewise.
8568
7cae9051
WW
85692016-02-11 Wei-cheng Wang <cole945@gmail.com>
8570 Marcin Kościelnicki <koriakin@0x04.net>
8571
8572 * tracepoint.c (struct tracepoint_action_ops): Remove.
8573 (struct tracepoint_action): Remove ops.
8574 (m_tracepoint_action_download, r_tracepoint_action_download)
8575 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8576 size and offset accordingly.
8577 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8578 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8579 (tracepoint_action_send, tracepoint_action_download): New functions.
8580 Helpers for trace action handlers.
8581 (add_tracepoint_action): Remove setup actions ops.
8582 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8583
9f6a71b4
YQ
85842016-02-10 Yao Qi <yao.qi@linaro.org>
8585
8586 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8587
1e94266c
SM
85882016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8589
8590 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8591 to AC_OUTPUT.
8592 * configure: Regenerate.
8593
8adce034
SM
85942016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8595
8596 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8597 void * to gdb_byte *.
8598 * linux-low.c (siginfo_fixup): Likewise.
8599 (linux_xfer_siginfo): Likewise.
8600 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8601 Likewise.
8602 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8603
93813b37
WT
86042016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8605
8606 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8607 to srv_tgtobj.
8608 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8609 to srv_tgtobj.
8610 * linux-x86-low.c [__x86_64__]: Include
8611 "nat/amd64-linux-siginfo.h".
8612 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8613 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8614 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8615 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8616 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8617 (cpt_si_fd, si_timerid, si_overrun): Move from
8618 nat/amd64-linux-siginfo.c.
8619 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8620
8424cc97
SM
86212016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8622
8623 * server.c (skip_to_semicolon): Remove.
8624 (process_point_options): Use strchrnul instead of
8625 skip_to_semicolon.
8626
4d18591b
YQ
86272016-01-26 Yao Qi <yao.qi@linaro.org>
8628
8629 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8630 * linux-low.c (install_software_single_step_breakpoints): Don't
8631 call regcache_read_pc.
8632 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8633 argument pc.
8634
d8020970
YQ
86352016-01-26 Yao Qi <yao.qi@linaro.org>
8636
8637 * linux-low.c (install_software_single_step_breakpoints): Call
8638 regcache_read_pc instead of get_pc.
8639
8b207339
YQ
86402016-01-26 Yao Qi <yao.qi@linaro.org>
8641
8642 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8643 (unblock_async_io): Rename to ...
8644 (block_unblock_async_io): ... it. New function.
8645 (enable_async_io): Don't install SIGIO handler. Unblock it
8646 instead.
8647 (disable_async_io): Don't ignore SIGIO. Block it instead.
8648 (initialize_async_io): Install SIGIO handler. Don't call
8649 unblock_async_io.
8650
18879fef
YQ
86512016-01-26 Yao Qi <yao.qi@linaro.org>
8652
8653 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8654 first character is '\003', call *the_target->request_interrupt.
8655
a0f8e08a
YQ
86562016-01-25 Yao Qi <yao.qi@linaro.org>
8657
8658 * remote-utils.c (new_thread_notify): Remove.
8659 (dead_thread_notify): Likewise.
8660 * remote-utils.h (new_thread_notify): Remove declaration.
8661 (dead_thread_notify): Likewise.
8662
cc5fd9ab
MK
86632016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8664
8665 * gdb.trace/pending.exp: Fix expected message on continue.
8666
99e8eb11
MK
86672016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8668
8669 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8670 it works properly on big-endian machines where sizeof (CORE_ADDR)
8671 != sizeof (void *).
8672
a994041d
PA
86732016-01-21 Pedro Alves <palves@redhat.com>
8674
8675 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8676 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8677 * configure: Regenerate.
8678
f7a6a40d
YQ
86792016-01-21 Yao Qi <yao.qi@linaro.org>
8680
8681 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8682 is_thumb and set it according to CPSR saved on the stack.
8683 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8684 arm_sigreturn_next_pc.
8685
6f69e520
YQ
86862016-01-18 Yao Qi <yao.qi@linaro.org>
8687
8688 * linux-low.c (linux_set_pc_64bit): New function.
8689 (linux_get_pc_64bit): New function.
8690 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8691 Declare.
8692 * linux-sparc-low.c (debug_threads): Remove declaration.
8693 (sparc_get_pc): Remove.
8694 (the_low_target): Use linux_get_pc_64bit instead of
8695 sparc_get_pc.
8696 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8697 (the_low_target): Use linux_get_pc_64bit and
8698 linux_set_pc_64bit.
8699
276d4552
YQ
87002016-01-18 Yao Qi <yao.qi@linaro.org>
8701
8702 * linux-arm-low.c (debug_threads): Remove declaration.
8703 (arm_get_pc, arm_set_pc): Remove.
8704 (the_low_target): Use linux_get_pc_32bit and
8705 linux_set_pc_32bit.
8706 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8707 (the_low_target): Use linux_get_pc_32bit and
8708 linux_set_pc_32bit.
8709 * linux-cris-low.c (debug_threads): Remove declaration.
8710 (cris_get_pc, cris_set_pc,): Remove.
8711 (the_low_target): Use linux_get_pc_32bit and
8712 linux_set_pc_32bit.
8713 * linux-crisv32-low.c (debug_threads): Remove declaration.
8714 (cris_get_pc, cris_set_pc): Remove.
8715 (the_low_target): Use linux_get_pc_32bit and
8716 linux_set_pc_32bit.
8717 * linux-low.c: Include inttypes.h.
8718 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8719 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8720 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8721 (the_low_target): Use linux_get_pc_32bit and
8722 linux_set_pc_32bit.
8723 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8724 (the_low_target): Use linux_get_pc_32bit and
8725 linux_set_pc_32bit.
8726 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8727 (the_low_target): Use linux_get_pc_32bit and
8728 linux_set_pc_32bit.
8729 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8730 (the_low_target): Use linux_get_pc_32bit and
8731 linux_set_pc_32bit.
8732 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8733 (the_low_target): Use linux_get_pc_32bit and
8734 linux_set_pc_32bit.
8735
eb0edac8
GB
87362016-01-18 Gary Benson <gbenson@redhat.com>
8737
8738 * configure.ac (AC_FUNC_FORK): New check.
8739 * config.in: Regenerate.
8740 * configure: Likewise.
8741
1b451dda
YQ
87422016-01-14 Yao Qi <yao.qi@linaro.org>
8743
8744 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8745 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8746 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8747 arm_get_next_pcs_ctor.
8748
82075af2
JS
87492016-01-12 Josh Stone <jistone@redhat.com>
8750 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8751
8752 * inferiors.h: Include "gdb_vecs.h".
8753 (struct process_info): Add syscalls_to_catch.
8754 * inferiors.c (remove_process): Free syscalls_to_catch.
8755 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8756 syscall_return stops.
8757 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8758 * server.c (handle_general_set): Handle QCatchSyscalls.
8759 (handle_query): Report support for QCatchSyscalls.
8760 * target.h (struct target_ops): Add supports_catch_syscall.
8761 (target_supports_catch_syscall): New macro.
8762 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8763 (struct lwp_info): Add syscall_state.
8764 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8765 Maintain syscall_state and syscalls_to_catch across exec.
8766 (get_syscall_trapinfo): New function, proxy to the_low_target.
8767 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8768 (linux_low_filter_event): Toggle syscall_state entry/return for
8769 syscall traps, and set it ignored for all others.
8770 (gdb_catching_syscalls_p): New function.
8771 (gdb_catch_this_syscall_p): New function.
8772 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8773 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8774 (linux_supports_catch_syscall): New function.
8775 (linux_target_ops): Install it.
8776 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8777 (the_low_target): Install it.
8778
8f13a3ce
MF
87792016-01-12 Mike Frysinger <vapier@gentoo.org>
8780
8781 * acinclude.m4: Include new ../warning.m4 file.
8782 * configure: Regenerated.
8783 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8784
5b3da067
MF
87852016-01-12 Mike Frysinger <vapier@gentoo.org>
8786
8787 * ax.c (is_goto_target): Mark static.
8788 * linux-low.c (register_addr): Likewise.
8789 (linux_fetch_registers, linux_store_registers): Likewise.
8790 * mem-break.c (any_persistent_commands): Fix old prototype.
8791 (add_commands_to_breakpoint): Mark static.
8792 * regcache.c (find_register_by_name): Delete unused func.
8793 * remote-utils.c (hex_or_minus_one): Mark static.
8794 * server.c (monitor_show_help): Mark static.
8795 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8796 handle_v_requests): Likewise.
8797
bc504a31
PA
87982016-01-12 Pedro Alves <palves@redhat.com>
8799
8800 Remove use of the registered trademark symbol throughout.
8801
5a0dd67a
YQ
88022016-01-08 Yao Qi <yao.qi@linaro.org>
8803
8804 * remote-utils.c (getpkt): If c is '\003', call target hook
8805 request_interrupt.
8806
b2ca446f
YQ
88072016-01-06 Yao Qi <yao.qi@linaro.org>
8808
8809 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8810 linux-aarch32-low.c.
8811 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8812 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8813 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8814 (thumb2_breakpoint): Declare.
8815 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8816 linux-aarch32-low.h.
8817 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8818 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8819 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8820
edd88788
JB
88212016-01-01 Joel Brobecker <brobecker@adacore.com>
8822
8823 * gdbreplay.c (gdbreplay_version): Change copyright year in
8824 version message.
8825 * server.c (gdbserver_version): Likewise.
8826
65da7f14
PP
88272015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8828
8829 * server.c (crc32_table): Delete.
8830 (crc32): Use libiberty's xcrc32 function.
8831
4abd5ed2
JB
88322015-12-22 Joel Brobecker <brobecker@adacore.com>
8833
8834 * lynx-low.c (lynx_delete_thread_callback): New function.
8835 (lynx_mourn): Properly delete our process and all of its
8836 threads. Remove call to clear_inferiors.
8837
0e50fe5c
JB
88382015-12-22 Joel Brobecker <brobecker@adacore.com>
8839
8840 * target.c (thread_search_callback): Add check that
8841 the thread_stopped target callback is not NULL before
8842 calling it.
8843
35adc03f
YQ
88442015-12-21 Yao Qi <yao.qi@linaro.org>
8845
8846 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8847 arm breakpoint.
8848
bd2b2909
AT
88492015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8850
8851 * server.c (handle_query): Call target_supports_software_single_step.
8852
7fe5e27e
AT
88532015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8854
8855 * linux-low.c (single_step): New function.
8856 (linux_resume_one_lwp_throw): Call single_step.
8857 (start_step_over): Likewise.
8858
d9311bfa
AT
88592015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8860
8861 * Makefile.in (SFILES): Append arch/arm-linux.c,
8862 arch/arm-get-next-pcs.c.
8863 (arm-linux.o): New rule.
8864 (arm-get-next-pcs.o): New rule.
8865 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8866 arm-linux.o.
8867 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8868 to linux-aarch32-low.c.
8869 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8870 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8871 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8872 (thumb2_breakpoint_len): Likewise.
8873 (arm_is_thumb_mode): Make non-static.
8874 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8875 from 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): New declaration.
8881 * linux-arm-low.c: Include arch/arm-linux.h
8882 aarch/arm-get-next-pcs.h, sys/syscall.h.
8883 (get_next_pcs_ops): New struct.
8884 (get_next_pcs_addr_bits_remove): New function.
8885 (get_next_pcs_is_thumb): New function.
8886 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8887 (arm_sigreturn_next_pc): Likewise.
8888 (get_next_pcs_syscall_next_pc): Likewise.
8889 (arm_gdbserver_get_next_pcs): Likewise.
8890 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8891 Initialize.
8892 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8893 * server.h: Include gdb_vecs.h.
8894
68ce2059
AT
88952015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8896
8897 * Makefile.in (SFILES): Append common/common-regcache.c.
8898 (OBS): Append common-regcache.o.
8899 (common-regcache.o): New rule.
8900 * regcache.c (init_register_cache): Initialize cache to
8901 REG_UNAVAILABLE.
8902 (regcache_raw_read_unsigned): New function.
8903 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8904 register_status enum.
8905
fa5308bd
AT
89062015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8907
8908 * linux-aarch64-low.c (the_low_targets): Rename
8909 breakpoint_reinsert_addr to get_next_pcs.
8910 * linux-arm-low.c (the_low_targets): Likewise.
8911 * linux-bfin-low.c (the_low_targets): Likewise.
8912 * linux-cris-low.c (the_low_targets): Likewise.
8913 * linux-crisv32-low.c (the_low_targets): Likewise.
8914 * linux-low.c (can_software_single_step): Likewise.
8915 (install_software_single_step_breakpoints): New function.
8916 (start_step_over): Use install_software_single_step_breakpoints.
8917 * linux-low.h: New CORE_ADDR vector.
8918 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8919 get_next_pcs.
8920 * linux-mips-low.c (the_low_targets): Likewise.
8921 * linux-nios2-low.c (the_low_targets): Likewise.
8922 * linux-sparc-low.c (the_low_targets): Likewise.
8923
4a6ed09b
PA
89242015-12-17 Pedro Alves <palves@redhat.com>
8925
8926 * linux-low.c (linux_kill_one_lwp): Remove references to
8927 LinuxThreads.
8928 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8929 to 'kill'.
8930 (linux_init_signals): Delete.
8931 (initialize_low): Adjust.
8932 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8933
7544db95
PA
89342015-12-16 Pedro Alves <palves@redhat.com>
8935
8936 * configure.ac (compiler warning flags): When testing a
8937 -Wno-foo option, check whether -Wfoo works instead.
8938 * configure: Regenerate.
8939
8020350c
DB
89402015-12-11 Don Breazeal <donb@codesourcery.com>
8941
8942 * server.c (process_serial_event): Don't exit from gdbserver
8943 in remote mode if there are still active inferiors.
8944
db91f502
YQ
89452015-12-11 Yao Qi <yao.qi@linaro.org>
8946
8947 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8948 arm_breakpoint_at if the process is 32-bit.
8949
b37a6290
YQ
89502015-12-11 Yao Qi <yao.qi@linaro.org>
8951
8952 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8953 arm breakpoint.
8954
17b1509a
YQ
89552015-12-07 Yao Qi <yao.qi@linaro.org>
8956
8957 * configure.srv: Append arm.o to srv_tgtobj for
8958 aarch64*-*-linux* target.
8959 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8960 from linux-arm-low.c.
8961 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8962 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8963 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8964 (thumb2_breakpoint_len): Likewise.
8965 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8966 (arm_breakpoint_kinds): Likewise.
8967 (arm_breakpoint_kind_from_pc): Likewise.
8968 (arm_sw_breakpoint_from_kind): Likewise.
8969 (arm_breakpoint_kind_from_current_state): Likewise.
8970 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8971 (arm_sw_breakpoint_from_kind): Declare.
8972 (arm_breakpoint_kind_from_current_state): Declare.
8973 (arm_breakpoint_at): Declare.
8974 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8975 arm_sw_breakpoint_from_kind if process is 32-bit.
8976 (aarch64_breakpoint_kind_from_pc): New function.
8977 (aarch64_breakpoint_kind_from_current_state): New function.
8978 (the_low_target): Initialize fields breakpoint_kind_from_pc
8979 and breakpoint_kind_from_current_state.
8980 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8981 linux-aarch32-low.c.
8982 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8983 (arm_breakpoint, arm_breakpoint_len): Likewise.
8984 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8985 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8986 (arm_is_thumb_mode): Likewise.
8987 (arm_breakpoint_at): Likewise.
8988 (arm_breakpoint_kind_from_pc): Likewise.
8989 (arm_sw_breakpoint_from_kind): Likewise.
8990 (arm_breakpoint_kind_from_current_state): Likewise.
8991
8992 Revert:
8993 2015-08-04 Yao Qi <yao.qi@linaro.org>
8994
8995 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8996 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8997 * server.c (extended_protocol): Remove "static".
8998 * server.h (extended_protocol): Declare it.
8999
ece66d65
JS
90002015-12-04 Josh Stone <jistone@redhat.com>
9001
9002 * target.h (struct target_ops) <arch_setup>: Rename to ...
9003 (struct target_ops) <post_create_inferior>: ... this.
9004 (target_arch_setup): Rename to ...
9005 (target_post_create_inferior): ... this, calling post_create_inferior.
9006 * server.c (start_inferior): Update target_arch_setup calls to
9007 target_post_create_inferior.
9008 * linux-low.c (linux_low_ptrace_options): Forward declare.
9009 (linux_arch_setup): Update its comment for general use.
9010 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9011 (struct linux_target_ops): Use linux_post_create_inferior.
9012 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9013 to post_create_inferior.
9014 * nto-low.c (struct nto_target_ops): Likewise.
9015 * spu-low.c (struct spu_target_ops): Likewise.
9016 * win32-low.c (struct win32_target_ops): Likewise.
9017
e58c48b4
AT
90182015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9019
9020 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9021
fbec8956
AT
90222015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9023
9024 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9025 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9026 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9027 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9028 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9029 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9030 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9031 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9032 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9033 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9034 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9035 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9036
9b4c5f87
AT
90372015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9038
9039 * linux-low.c (linux_look_up_symbols): Don't call
9040 linux_supports_traceclone.
9041 * linux-low.h (thread_db_init): Remove use_events argument.
9042 * thread-db.c (thread_db_use_event): Remove global variable.
9043 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9044 (struct thread_db) <td_create_bp>: Remove field.
9045 (thread_db_create_event): Remove function.
9046 (thread_db_enable_reporting): Likewise.
9047 (find_one_thread): Don't check for thread_db_use_events.
9048 (attach_thread): Likewise.
9049 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9050 (try_thread_db_load_1): Don't check for thread_db_use_events.
9051 (thread_db_init): Remove use_events argument and thread events
9052 handling.
9053 (remove_thread_event_breakpoints): Remove function.
9054 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9055
7d00775e
AT
90562015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9057
9058 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9059 New function.
9060 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9061 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9062 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9063 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9064 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9065 Initialize.
9066 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9067 New function.
9068 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9069 * linux-low.c (can_hardware_single_step): Use
9070 supports_hardware_single_step.
9071 (can_software_single_step): New function.
9072 (start_step_over): Call can_software_single_step.
9073 (linux_supports_hardware_single_step): New function.
9074 (struct target_ops) <supports_software_single_step>: Initialize.
9075 * linux-low.h (struct linux_target_ops)
9076 <supports_hardware_single_step>: Initialize.
9077 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9078 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9079 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9080 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9081 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9082 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9083 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9084 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9085 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9086 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9087 Initialize.
9088 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9089 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9090 Initialize.
9091 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9092 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9093 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9094 New function.
9095 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9096 * target.h (struct target_ops): <supports_software_single_step>:
9097 New field.
9098 (target_supports_software_single_step): New macro.
9099
2d97cd35
AT
91002015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9101
9102 * linux-low.c (linux_wait_1): Fix pc advance condition.
9103 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9104 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9105
769ef81f
AT
91062015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9107
9108 * linux-arm-low.c (arm_is_thumb_mode): New function.
9109 (arm_breakpoint_at): Use arm_is_thumb_mode.
9110 (arm_breakpoint_kind_from_current_state): New function.
9111 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9112 Initialize.
9113 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9114 (linux_breakpoint_kind_from_current_state): New function.
9115 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9116 * linux-low.h (struct linux_target_ops)
9117 <breakpoint_kind_from_current_state>: New field.
9118 * target.h (struct target_ops): Likewise.
9119 (target_breakpoint_kind_from_current_state): New macro.
9120
1bebeeca
PA
91212015-11-30 Pedro Alves <palves@redhat.com>
9122
9123 * linux-low.c (linux_resume): Wake up the event loop before
9124 returning.
9125
a67a9fae
PA
91262015-11-30 Pedro Alves <palves@redhat.com>
9127
9128 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9129 check.
9130 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9131 to -1.
9132 * target.c (struct thread_search): New structure.
9133 (thread_search_callback): New function.
9134 (prev_general_thread): New global.
9135 (prepare_to_access_memory, done_accessing_memory): New functions.
9136 * target.h (prepare_to_access_memory, done_accessing_memory):
9137 Replace macros with function declarations.
9138
f2faf941
PA
91392015-11-30 Pedro Alves <palves@redhat.com>
9140
9141 PR 14618
9142 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9143 report TARGET_WAITKIND_NO_RESUMED.
9144 * remote-utils.c (prepare_resume_reply): Handle
9145 TARGET_WAITKIND_NO_RESUMED.
9146 * server.c (report_no_resumed): New global.
9147 (handle_query) <qSupported>: Handle "no-resumed+". Report
9148 "no-resumed+" support.
9149 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9150 return error if the client doesn't support no-resumed events.
9151 (push_stop_notification): New function.
9152 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9153 events if the client supports them.
9154
a681f9c9
PA
91552015-11-30 Pedro Alves <palves@redhat.com>
9156
9157 * linux-low.c (thread_still_has_status_pending_p): Don't check
9158 vCont;t here.
9159 (lwp_resumed): New function.
9160 (status_pending_p_callback): Return early if the LWP is not
9161 supposed to be resumed.
9162
65706a29
PA
91632015-11-30 Pedro Alves <palves@redhat.com>
9164
9165 * linux-low.c (handle_extended_wait): Assert that the LWP's
9166 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9167 thread create events, leave the new child's status pending.
9168 (linux_low_filter_event): If GDB wants to hear about thread exit
9169 events, leave the LWP marked dead and don't delete it.
9170 (linux_wait_for_event_filtered): Don't check for thread exit.
9171 (filter_exit_event): New function.
9172 (linux_wait_1): Use it, when returning an exit event.
9173 (linux_resume_one_lwp_throw): Assert that the LWP's
9174 waitstatus is TARGET_WAITKIND_IGNORE.
9175 * remote-utils.c (prepare_resume_reply): Handle
9176 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9177 * server.c (report_thread_events): New global.
9178 (handle_general_set): Handle QThreadEvents.
9179 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9180 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9181 TARGET_WAITKIND_THREAD_EXITED.
9182 * server.h (report_thread_events): Declare.
9183
56cf4bed
PA
91842015-11-30 Pedro Alves <palves@redhat.com>
9185
9186 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9187 the thread's last_resume_kind was resume_stop.
9188
500c1d85
PA
91892015-11-30 Pedro Alves <palves@redhat.com>
9190
9191 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9192 before returning.
9193
de979965
PA
91942015-11-30 Pedro Alves <palves@redhat.com>
9195
9196 * server.c (handle_v_requests): Handle vCtrlC.
9197
34c65914
PA
91982015-11-30 Pedro Alves <palves@redhat.com>
9199
9200 * gdbthread.h (find_any_thread_of_pid): Declare.
9201 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9202 functions.
9203 * server.c (handle_query): If current_thread is NULL, look for
9204 another thread of the selected process.
9205
79efa585 92062015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9207 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9208
9209 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9210 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9211 name in reply.
9212 * target.h (struct target_ops) <thread_name>: New field.
9213 (target_thread_name): New macro.
9214
80d82c19
JB
92152015-11-23 Joel Brobecker <brobecker@adacore.com>
9216
9217 * regcache.h (regcache_invalidate_pid): Add declaration.
9218 * regcache.c (regcache_invalidate_pid): New function, extracted
9219 from regcache_invalidate.
9220 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9221 Add trivial documentation comment.
9222 * lynx-low.c: Use regcache_invalidate_pid instead of
9223 regcache_invalidate.
9224
64da5dd5
JB
92252015-11-23 Joel Brobecker <brobecker@adacore.com>
9226
9227 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9228 and Elf64_auxv_t if the target is Android.
9229
37ce4055
DE
92302015-11-22 Doug Evans <xdje42@gmail.com>
9231
9232 * target.h: #include <sys/types.h>.
9233
06e03fff
PA
92342015-11-19 Pedro Alves <palves@redhat.com>
9235
9236 * linux-low.c (linux_process_qsupported): Change prototype.
9237 Adjust.
9238 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9239 Change prototype.
9240 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9241 and adjust to loop over all features.
9242 * server.c (handle_query) <qSupported>: Adjust to call
9243 target_process_qsupported once, passing it a vector of unprocessed
9244 features.
9245 * target.h (struct target_ops) <process_qsupported>: Change
9246 prototype.
9247 (target_process_qsupported): Adjust.
9248
9a084706
PA
92492015-11-19 Pedro Alves <palves@redhat.com>
9250
9251 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9252 mode.
9253 * configure: Regenerate.
9254
dad44a1f
PA
92552015-11-19 Pedro Alves <palves@redhat.com>
9256
9257 * configure: Regenerate.
9258
231c0592
YQ
92592015-11-19 Yao Qi <yao.qi@linaro.org>
9260
9261 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9262 type to uint32_t.
9263
6c1c9a8b
YQ
92642015-11-19 Yao Qi <yao.qi@linaro.org>
9265
9266 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9267 (struct aarch64_operand): Move enum out.
9268
9caa3311
YQ
92692015-11-19 Yao Qi <yao.qi@linaro.org>
9270
9271 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9272 struct user_fpsimd_state *.
9273 (aarch64_store_fpregset): Likewise.
9274
6a69a054
YQ
92752015-11-19 Yao Qi <yao.qi@linaro.org>
9276
9277 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9278 struct user_pt_regs *.
9279 (aarch64_store_gregset): Likewise.
9280
1798301e
PA
92812015-11-18 Pedro Alves <palves@redhat.com>
9282
9283 * Makefile.in (all_object_files): Add $IPA_OBJS.
9284
ce7715e2
PA
92852015-11-17 Pedro Alves <palves@redhat.com>
9286
9287 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9288 GDB_SIGNAL_0 and gdb_signal_to_string.
9289
c0879059
PA
92902015-11-17 Pedro Alves <palves@redhat.com>
9291
9292 * win32-low.c (handle_output_debug_string): Remove parameter.
9293 (win32_kill): Remove our_status local and adjust call to
9294 handle_output_debug_string.
9295 (get_child_debug_event): Adjust call to
9296 handle_output_debug_string.
9297
1996e237
SM
92982015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9299
9300 * linux-mips-low.c (mips_fill_gregset): Add cast.
9301 (mips_store_gregset): Likewise.
9302 (mips_fill_fpregset): Likewise.
9303 (mips_store_fpregset): Likewise.
9304
cbec665b
SM
93052015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9306
9307 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9308 priv.
9309
eb3e3c67
SM
93102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9311
9312 * linux-mips-low.c (mips_linux_new_thread): Change type of
9313 watch_type to enum target_hw_bp_type.
9314
171de4b8
SM
93152015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9316
9317 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9318 Change return type to arm_hwbp_type.
9319
04248ead
SM
93202015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9321
9322 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9323 (arm_store_gregset): Likewise.
9324 * linux-arm-low.c (arm_get_hwcap): Likewise.
9325 (arm_read_description): Likewise.
9326
04b3479c
SM
93272015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9328
9329 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9330
2bc84e8a
SM
93312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9332
9333 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9334 (ppc_fill_vsxregset): Likewise.
9335 (ppc_store_vsxregset): Likewise.
9336 (ppc_fill_vrregset): Likewise.
9337 (ppc_store_vrregset): Likewise.
9338 (ppc_fill_evrregset): Likewise.
9339 (ppc_store_evrregset): Likewise.
9340
e6c5bb05
SM
93412015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * linux-ppc-low.c (ppc_usrregs_info): Remove
9344 forward-declaration.
9345 (ppc_arch_setup): Move lower in file.
9346
7ea45d72
SM
93472015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9348
9349 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9350 (ps_pdwrite): Likewise.
9351
69291610
HW
93522015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9353
9354 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9355 to after assert checks.
9356
b42945fd
SM
93572015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9358
9359 * proc-service.c (ps_pdread): Add/adjust casts.
9360 (ps_pdwrite): Add/adjust casts.
9361
d6f85c84
SM
93622015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9363
9364 * server.c (handle_search_memory_1): Cast return value of
9365 memmem.
9366
f98cd059
SM
93672015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9368
9369 * server.c (write_qxfer_response): Change type of data to
9370 gdb_byte *.
9371
d2412fa5
PA
93722015-10-29 Pedro Alves <palves@redhat.com>
9373
9374 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9375
c17414a2
PA
93762015-10-29 Pedro Alves <palves@redhat.com>
9377
9378 * tracepoint.c (clear_installed_tracepoints): Add casts.
9379
e053fbc4
PA
93802015-10-29 Pedro Alves <palves@redhat.com>
9381
9382 * server.c (handle_v_cont, process_serial_event): Add enum
9383 gdb_signal casts to signal parsing code.
9384
add67df8
PA
93852015-10-29 Pedro Alves <palves@redhat.com>
9386
9387 * linux-low.h (NULL_REGSET): Define.
9388 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9389 * linux-arm-low.c (arm_regsets): Likewise.
9390 * linux-crisv32-low.c (cris_regsets): Likewise.
9391 * linux-m68k-low.c (m68k_regsets): Likewise.
9392 * linux-mips-low.c (mips_regsets): Likewise.
9393 * linux-nios2-low.c (nios2_regsets): Likewise.
9394 * linux-ppc-low.c (ppc_regsets): Likewise.
9395 * linux-s390-low.c (s390_regsets): Likewise.
9396 * linux-sh-low.c (sh_regsets): Likewise.
9397 * linux-sparc-low.c (sparc_regsets): Likewise.
9398 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9399 * linux-tile-low.c (tile_regsets): Likewise.
9400 * linux-x86-low.c (x86_regsets): Likewise.
9401 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9402
50bc912a
PA
94032015-10-29 Pedro Alves <palves@redhat.com>
9404
9405 * linux-low.h (NULL_REGSET): Define.
9406 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9407 * linux-arm-low.c (arm_regsets): Likewise.
9408 * linux-crisv32-low.c (cris_regsets): Likewise.
9409 * linux-m68k-low.c (m68k_regsets): Likewise.
9410 * linux-mips-low.c (mips_regsets): Likewise.
9411 * linux-nios2-low.c (nios2_regsets): Likewise.
9412 * linux-ppc-low.c (ppc_regsets): Likewise.
9413 * linux-s390-low.c (s390_regsets): Likewise.
9414 * linux-sh-low.c (sh_regsets): Likewise.
9415 * linux-sparc-low.c (sparc_regsets): Likewise.
9416 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9417 * linux-tile-low.c (tile_regsets): Likewise.
9418 * linux-x86-low.c (x86_regsets): Likewise.
9419 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9420
682b2546
DE
94212015-10-26 Doug Evans <dje@google.com>
9422
9423 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9424
963843d4
DE
94252015-10-26 Doug Evans <dje@google.com>
9426
9427 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9428
d41401ac
DE
94292015-10-26 Doug Evans <dje@google.com>
9430
9431 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9432 for debug_printf.
9433 (attach_thread, find_new_threads_callback): Ditto.
9434
3db28855
AT
94352015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9436
9437 * mem-break.h (set_breakpoint_data): Remove.
9438
fb78e89c
AT
94392015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9440
9441 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9442 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9443 (initialize_low): Remove set_breakpoint_data call.
9444 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9445 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9446 (initialize_low): Remove set_breakpoint_data call.
9447 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9448 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9449 (initialize_low): Remove set_breakpoint_data call.
9450
2e6ee069
AT
94512015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9452
9453 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9454 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9455 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9456 * target.h (target_breakpoint_kind_from_pc): New macro.
9457
1652a986
AT
94582015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9459
9460 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9461 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9462 the default breakpoint kind.
9463
abeead09
AT
94642015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9465
9466 * linux-arm-low.c (arm_supports_z_point_type): Add software
9467 breakpoint support.
9468
b0b4b501
AT
94692015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9470
9471 * linux-arm-low.c: Refactor breakpoint definitions.
9472 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9473 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9474
8689682c
AT
94752015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9476
9477 * Makefile.in: Add arm.c/o.
9478 * configure.srv: Likewise.
9479 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9480 (arm_breakpoint_kind_from_pc): New function.
9481 (arm_sw_breakpoint_from_kind): Return proper kind.
9482 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9483
27165294
AT
94842015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9485
9486 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9487 removal.
9488 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9489 (struct raw_breakpoint) <size>: Remove.
9490 (struct raw_breakpoint) <kind>: Add.
9491 (bp_size): New function.
9492 (bp_opcode): Likewise.
9493 (find_raw_breakpoint_at): Adjust for kind.
9494 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9495 (remove_memory_breakpoint): Adjust for kind call bp_size.
9496 (set_raw_breakpoint_at): Adjust for kind.
9497 (set_breakpoint): Likewise.
9498 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9499 (delete_raw_breakpoint): Adjust for kind.
9500 (delete_breakpoint): Likewise.
9501 (find_gdb_breakpoint): Likewise.
9502 (set_gdb_breakpoint_1): Likewise.
9503 (set_gdb_breakpoint): Likewise.
9504 (delete_gdb_breakpoint_1): Likewise.
9505 (delete_gdb_breakpoint): Likewise.
9506 (uninsert_raw_breakpoint): Likewise.
9507 (reinsert_raw_breakpoint): Likewise.
9508 (set_breakpoint_data): Remove.
9509 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9510 (check_mem_read): Adjust for kind call bp_size.
9511 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9512 (clone_one_breakpoint): Adjust for kind.
9513 * mem-break.h (set_gdb_breakpoint): Likewise.
9514 (delete_gdb_breakpoint): Likewise.
9515 * server.c (process_serial_event): Likewise.
9516
dd373349
AT
95172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9518
9519 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9520 (struct linux_target_ops) <breakpoint>: Remove.
9521 (struct linux_target_ops) <breakpoint_len>: Remove.
9522 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9523 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9524 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9525 (arm_sw_breakpoint_from_kind): New function.
9526 * linux-bfin-low.c (bfin_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-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9532 (struct linux_target_ops) <breakpoint>: Remove.
9533 (struct linux_target_ops) <breakpoint_len>: Remove.
9534 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9535 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9536 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9537 (struct linux_target_ops) <breakpoint>: Remove.
9538 (struct linux_target_ops) <breakpoint_len>: Remove.
9539 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9540 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9541 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9542 and sw_breakpoint_from_kind to increment the pc.
9543 (linux_breakpoint_kind_from_pc): New function.
9544 (linux_sw_breakpoint_from_kind): New function.
9545 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9546 (initialize_low): Call breakpoint_kind_from_pc and
9547 sw_breakpoint_from_kind to replace breakpoint_data/len.
9548 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9549 New field.
9550 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9551 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9552 (struct linux_target_ops) <breakpoint>: Remove.
9553 (struct linux_target_ops) <breakpoint_len>: Remove.
9554 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9555 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9556 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9557 (struct linux_target_ops) <breakpoint>: Remove.
9558 (struct linux_target_ops) <breakpoint_len>: Remove.
9559 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9560 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9561 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9562 (struct linux_target_ops) <breakpoint>: Remove.
9563 (struct linux_target_ops) <breakpoint_len>: Remove.
9564 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9565 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9566 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9567 (struct linux_target_ops) <breakpoint>: Remove.
9568 (struct linux_target_ops) <breakpoint_len>: Remove.
9569 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9570 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9571 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9572 (struct linux_target_ops) <breakpoint>: Remove.
9573 (struct linux_target_ops) <breakpoint_len>: Remove.
9574 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9575 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9576 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9577 (struct linux_target_ops) <breakpoint>: Remove.
9578 (struct linux_target_ops) <breakpoint_len>: Remove.
9579 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9580 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9581 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9582 (struct linux_target_ops) <breakpoint>: Remove.
9583 (struct linux_target_ops) <breakpoint_len>: Remove.
9584 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9585 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9586 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9587 (struct linux_target_ops) <breakpoint>: Remove.
9588 (struct linux_target_ops) <breakpoint_len>: Remove.
9589 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9590 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9591 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9592 (struct linux_target_ops) <breakpoint>: Remove.
9593 (struct linux_target_ops) <breakpoint_len>: Remove.
9594 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9595 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9596 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9597 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9598 (struct linux_target_ops) <breakpoint>: Remove.
9599 (struct linux_target_ops) <breakpoint_len>: Remove.
9600 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9601 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9602 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9603 (struct linux_target_ops) <breakpoint>: Remove.
9604 (struct linux_target_ops) <breakpoint_len>: Remove.
9605 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9607
4cd98a19
AT
96082015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609
9610 * linux-cris-low.c (cris_get_pc): Remove void arg.
9611
774ee6d2
AR
96122015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9613
9614 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9615 variable name.
9616
833dcd29
AR
96172015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9618
9619 * inferiors.c (thread_pid_matches_callback): New function.
9620 (find_thread_process): New function.
9621 (remove_thread): Reset current_thread.
9622 (remove_process): Assert threads have been removed first.
9623
8d689ee5
YQ
96242015-10-15 Yao Qi <yao.qi@linaro.org>
9625
9626 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9627 if it is 3.
9628 (aarch64_remove_point): Likewise.
9629 * regcache.c (regcache_register_size): New function.
9630
1c2e1515
YQ
96312015-10-12 Yao Qi <yao.qi@linaro.org>
9632
9633 * linux-aarch64-low.c: Update all callers as emit_load_store
9634 is renamed to aarch64_emit_load_store.
9635
e1c587c3
YQ
96362015-10-12 Yao Qi <yao.qi@linaro.org>
9637
9638 * linux-aarch64-low.c: Update all callers of function renaming
9639 from emit_insn to aarch64_emit_insn.
9640
b6542f81
YQ
96412015-10-12 Yao Qi <yao.qi@linaro.org>
9642
9643 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9644 arch/aarch64-insn.h.
9645 (struct aarch64_memory_operand): Likewise.
9646 (ENCODE): Likewise.
9647 (emit_insn): Move to arch/aarch64-insn.c.
9648 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9649 (emit_load_store): Move to arch/aarch64-insn.c.
9650 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9651 (can_encode_int32): Remove.
9652
246994ce
YQ
96532015-10-12 Yao Qi <yao.qi@linaro.org>
9654
9655 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9656 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9657 (aarch64_relocate_instruction): Likewise.
9658 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9659 (struct aarch64_insn_visitor): Likewise.
9660
0badd99f
YQ
96612015-10-12 Yao Qi <yao.qi@linaro.org>
9662
9663 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9664 (struct aarch64_insn_visitor): New.
9665 (struct aarch64_insn_relocation_data): New.
9666 (aarch64_ftrace_insn_reloc_b): New function.
9667 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9668 (aarch64_ftrace_insn_reloc_cb): Likewise.
9669 (aarch64_ftrace_insn_reloc_tb): Likewise.
9670 (aarch64_ftrace_insn_reloc_adr): Likewise.
9671 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9672 (aarch64_ftrace_insn_reloc_others): Likewise.
9673 (visitor): New.
9674 (aarch64_relocate_instruction): Use visitor.
9675
dfaffe9d
YQ
96762015-10-12 Yao Qi <yao.qi@linaro.org>
9677
9678 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9679 int. Add argument buf.
9680 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9681 aarch64_relocate_instruction.
9682
70b439f0
YQ
96832015-10-12 Yao Qi <yao.qi@linaro.org>
9684
9685 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9686 argument insn. Remove local variable insn. Don't call
9687 target_read_uint32.
9688 (aarch64_install_fast_tracepoint_jump_pad): Call
9689 target_read_uint32.
9690
7781c06f
YQ
96912015-09-30 Yao Qi <yao.qi@linaro.org>
9692
9693 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9694 (emit_load_store_pair): Likewise.
9695
9a3c8263
SM
96962015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9697
9698 * dll.c (match_dll): Add cast(s).
9699 (unloaded_dll): Likewise.
9700 * linux-low.c (second_thread_of_pid_p): Likewise.
9701 (delete_lwp_callback): Likewise.
9702 (count_events_callback): Likewise.
9703 (select_event_lwp_callback): Likewise.
9704 (linux_set_resume_request): Likewise.
9705 * server.c (accumulate_file_name_length): Likewise.
9706 (emit_dll_description): Likewise.
9707 (handle_qxfer_threads_worker): Likewise.
9708 (visit_actioned_threads): Likewise.
9709 * thread-db.c (any_thread_of): Likewise.
9710 * tracepoint.c (same_process_p): Likewise.
9711 (match_blocktype): Likewise.
9712 (build_traceframe_info_xml): Likewise.
9713
224c3ddb
SM
97142015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9715
9716 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9717 assignment.
9718 (gdb_unparse_agent_expr): Likewise.
9719 * hostio.c (require_data): Likewise.
9720 (handle_pread): Likewise.
9721 * linux-low.c (disable_regset): Likewise.
9722 (fetch_register): Likewise.
9723 (store_register): Likewise.
9724 (get_dynamic): Likewise.
9725 (linux_qxfer_libraries_svr4): Likewise.
9726 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9727 (set_fast_tracepoint_jump): Likewise.
9728 (uninsert_fast_tracepoint_jumps_at): Likewise.
9729 (reinsert_fast_tracepoint_jumps_at): Likewise.
9730 (validate_inserted_breakpoint): Likewise.
9731 (clone_agent_expr): Likewise.
9732 * regcache.c (init_register_cache): Likewise.
9733 * remote-utils.c (putpkt_binary_1): Likewise.
9734 (decode_M_packet): Likewise.
9735 (decode_X_packet): Likewise.
9736 (look_up_one_symbol): Likewise.
9737 (relocate_instruction): Likewise.
9738 (monitor_output): Likewise.
9739 * server.c (handle_search_memory): Likewise.
9740 (handle_qxfer_exec_file): Likewise.
9741 (handle_qxfer_libraries): Likewise.
9742 (handle_qxfer): Likewise.
9743 (handle_query): Likewise.
9744 (handle_v_cont): Likewise.
9745 (handle_v_run): Likewise.
9746 (captured_main): Likewise.
9747 * target.c (write_inferior_memory): Likewise.
9748 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9749 * tracepoint.c (init_trace_buffer): Likewise.
9750 (add_tracepoint_action): Likewise.
9751 (add_traceframe): Likewise.
9752 (add_traceframe_block): Likewise.
9753 (cmd_qtdpsrc): Likewise.
9754 (cmd_qtdv): Likewise.
9755 (cmd_qtstatus): Likewise.
9756 (response_source): Likewise.
9757 (response_tsv): Likewise.
9758 (cmd_qtnotes): Likewise.
9759 (gdb_collect): Likewise.
9760 (initialize_tracepoint): Likewise.
9761
afbe19f8
PL
97622015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9763
9764 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9765 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9766 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9767 <NOP>: New.
9768 (enum aarch64_condition_codes): New enum.
9769 (w0): New static global.
9770 (fp): Likewise.
9771 (lr): Likewise.
9772 (struct aarch64_memory_operand) <type>: New
9773 MEMORY_OPERAND_POSTINDEX type.
9774 (postindex_memory_operand): New helper function.
9775 (emit_ret): New function.
9776 (emit_load_store_pair): New function, factored out of emit_stp
9777 with support for MEMORY_OPERAND_POSTINDEX.
9778 (emit_stp): Rewrite using emit_load_store_pair.
9779 (emit_ldp): New function.
9780 (emit_load_store): Likewise.
9781 (emit_ldr): Mention post-index instruction in comment.
9782 (emit_ldrh): New function.
9783 (emit_ldrb): New function.
9784 (emit_ldrsw): Mention post-index instruction in comment.
9785 (emit_str): Likewise.
9786 (emit_subs): New function.
9787 (emit_cmp): Likewise.
9788 (emit_and): Likewise.
9789 (emit_orr): Likewise.
9790 (emit_orn): Likewise.
9791 (emit_eor): Likewise.
9792 (emit_mvn): Likewise.
9793 (emit_lslv): Likewise.
9794 (emit_lsrv): Likewise.
9795 (emit_asrv): Likewise.
9796 (emit_mul): Likewise.
9797 (emit_sbfm): Likewise.
9798 (emit_sbfx): Likewise.
9799 (emit_ubfm): Likewise.
9800 (emit_ubfx): Likewise.
9801 (emit_csinc): Likewise.
9802 (emit_cset): Likewise.
9803 (emit_nop): Likewise.
9804 (emit_ops_insns): New helper function.
9805 (emit_pop): Likewise.
9806 (emit_push): Likewise.
9807 (aarch64_emit_prologue): New function.
9808 (aarch64_emit_epilogue): Likewise.
9809 (aarch64_emit_add): Likewise.
9810 (aarch64_emit_sub): Likewise.
9811 (aarch64_emit_mul): Likewise.
9812 (aarch64_emit_lsh): Likewise.
9813 (aarch64_emit_rsh_signed): Likewise.
9814 (aarch64_emit_rsh_unsigned): Likewise.
9815 (aarch64_emit_ext): Likewise.
9816 (aarch64_emit_log_not): Likewise.
9817 (aarch64_emit_bit_and): Likewise.
9818 (aarch64_emit_bit_or): Likewise.
9819 (aarch64_emit_bit_xor): Likewise.
9820 (aarch64_emit_bit_not): Likewise.
9821 (aarch64_emit_equal): Likewise.
9822 (aarch64_emit_less_signed): Likewise.
9823 (aarch64_emit_less_unsigned): Likewise.
9824 (aarch64_emit_ref): Likewise.
9825 (aarch64_emit_if_goto): Likewise.
9826 (aarch64_emit_goto): Likewise.
9827 (aarch64_write_goto_address): Likewise.
9828 (aarch64_emit_const): Likewise.
9829 (aarch64_emit_call): Likewise.
9830 (aarch64_emit_reg): Likewise.
9831 (aarch64_emit_pop): Likewise.
9832 (aarch64_emit_stack_flush): Likewise.
9833 (aarch64_emit_zero_ext): Likewise.
9834 (aarch64_emit_swap): Likewise.
9835 (aarch64_emit_stack_adjust): Likewise.
9836 (aarch64_emit_int_call_1): Likewise.
9837 (aarch64_emit_void_call_2): Likewise.
9838 (aarch64_emit_eq_goto): Likewise.
9839 (aarch64_emit_ne_goto): Likewise.
9840 (aarch64_emit_lt_goto): Likewise.
9841 (aarch64_emit_le_goto): Likewise.
9842 (aarch64_emit_gt_goto): Likewise.
9843 (aarch64_emit_ge_got): Likewise.
9844 (aarch64_emit_ops_impl): New static global variable.
9845 (aarch64_emit_ops): New target function, return
9846 &aarch64_emit_ops_impl.
9847 (struct linux_target_ops): Install it.
9848
bb903df0
PL
98492015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9850
9851 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9852 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9853 aarch64-ipa.o.
9854 * linux-aarch64-ipa.c: New file.
9855 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9856 and endian.h.
9857 (aarch64_get_thread_area): New target method.
9858 (extract_signed_bitfield): New helper function.
9859 (aarch64_decode_ldr_literal): New function.
9860 (enum aarch64_opcodes): New enum.
9861 (struct aarch64_register): New struct.
9862 (struct aarch64_operand): New struct.
9863 (x0): New static global.
9864 (x1): Likewise.
9865 (x2): Likewise.
9866 (x3): Likewise.
9867 (x4): Likewise.
9868 (w2): Likewise.
9869 (ip0): Likewise.
9870 (sp): Likewise.
9871 (xzr): Likewise.
9872 (aarch64_register): New helper function.
9873 (register_operand): Likewise.
9874 (immediate_operand): Likewise.
9875 (struct aarch64_memory_operand): New struct.
9876 (offset_memory_operand): New helper function.
9877 (preindex_memory_operand): Likewise.
9878 (enum aarch64_system_control_registers): New enum.
9879 (ENCODE): New macro.
9880 (emit_insn): New helper function.
9881 (emit_b): New function.
9882 (emit_bcond): Likewise.
9883 (emit_cb): Likewise.
9884 (emit_tb): Likewise.
9885 (emit_blr): Likewise.
9886 (emit_stp): Likewise.
9887 (emit_ldp_q_offset): Likewise.
9888 (emit_stp_q_offset): Likewise.
9889 (emit_load_store): Likewise.
9890 (emit_ldr): Likewise.
9891 (emit_ldrsw): Likewise.
9892 (emit_str): Likewise.
9893 (emit_ldaxr): Likewise.
9894 (emit_stxr): Likewise.
9895 (emit_stlr): Likewise.
9896 (emit_data_processing_reg): Likewise.
9897 (emit_data_processing): Likewise.
9898 (emit_add): Likewise.
9899 (emit_sub): Likewise.
9900 (emit_mov): Likewise.
9901 (emit_movk): Likewise.
9902 (emit_mov_addr): Likewise.
9903 (emit_mrs): Likewise.
9904 (emit_msr): Likewise.
9905 (emit_sevl): Likewise.
9906 (emit_wfe): Likewise.
9907 (append_insns): Likewise.
9908 (can_encode_int32_in): New helper function.
9909 (aarch64_relocate_instruction): New function.
9910 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9911 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9912 (struct linux_target_ops): Install aarch64_get_thread_area,
9913 aarch64_install_fast_tracepoint_jump_pad and
9914 aarch64_get_min_fast_tracepoint_insn_len.
9915
787749ea
PL
99162015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9917
9918 * Makefile.in (aarch64-insn.o): New rule.
9919 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9920
9812b2e6
YQ
99212015-09-21 Yao Qi <yao.qi@linaro.org>
9922
9923 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9924
18fe412b
YQ
99252015-09-21 Yao Qi <yao.qi@linaro.org>
9926
9927 * tracepoint.c (max_jump_pad_size): Remove.
9928
a0cc84cd
YQ
99292015-09-18 Yao Qi <yao.qi@linaro.org>
9930
9931 * linux-aarch64-low.c: Don't include sys/uio.h.
9932 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9933
d78908cf
WW
99342015-09-16 Wei-cheng Wang <cole945@gmail.com>
9935
9936 * tracepoint.c (eval_result_type): Change prototype.
9937 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9938
d57e0d50
PA
99392015-09-15 Pedro Alves <palves@redhat.com>
9940
9941 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9942 Check whether to report exec events instead of checking whether
9943 multiprocess is enabled.
9944
5a676acc
PA
99452015-09-15 Pedro Alves <palves@redhat.com>
9946
9947 PR remote/18965
9948 * remote-utils.c (prepare_resume_reply): Merge
9949 TARGET_WAITKIND_VFORK_DONE switch case with the
9950 TARGET_WAITKIND_FORKED case.
9951
7c5d0fad
YQ
99522015-09-15 Yao Qi <yao.qi@linaro.org>
9953
9954 * server.c (handle_query): Check string comparison using
9955 "else if" instead of "if".
9956
750ce8d1
YQ
99572015-09-15 Yao Qi <yao.qi@linaro.org>
9958
9959 * server.c (vCont_supported): New global variable.
9960 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9961 matches. Append ";vContSupported+" to own_buf.
9962 (handle_v_requests): Append ";s;S" to own_buf if target supports
9963 hardware single step or vCont_supported is false.
9964 (capture_main): Set vCont_supported to zero.
9965
70b90b91
YQ
99662015-09-15 Yao Qi <yao.qi@linaro.org>
9967
9968 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9969 it to ...
9970 (linux_supports_hardware_single_step): ... New function.
9971 (linux_target_ops): Update.
9972 * lynx-low.c (lynx_target_ops): Set field
9973 supports_hardware_single_step to target_can_do_hardware_single_step.
9974 * nto-low.c (nto_target_ops): Likewise.
9975 * spu-low.c (spu_target_ops): Likewise.
9976 * win32-low.c (win32_target_ops): Likewise.
9977 * target.c (target_can_do_hardware_single_step): New function.
9978 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9979 Remove. <supports_hardware_single_step>: New field.
9980 (target_supports_conditional_breakpoints): Remove.
9981 (target_supports_hardware_single_step): New macro.
9982 (target_can_do_hardware_single_step): Declare.
9983 * server.c (handle_query): Use target_supports_hardware_single_step
9984 instead of target_supports_conditional_breakpoints.
9985
ade90bde
YQ
99862015-09-15 Yao Qi <yao.qi@linaro.org>
9987
9988 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9989 function.
9990 (struct linux_target_ops the_low_target): Install
9991 aarch64_linux_siginfo_fixup.
9992
94585166
DB
99932015-09-11 Don Breazeal <donb@codesourcery.com>
9994 Luis Machado <lgustavo@codesourcery.com>
9995
9996 * linux-low.c (linux_mourn): Static declaration.
9997 (linux_arch_setup): Move in front of
9998 handle_extended_wait.
9999 (linux_arch_setup_thread): New function.
10000 (handle_extended_wait): Handle exec events. Call
10001 linux_arch_setup_thread. Make event_lwp argument a
10002 pointer-to-a-pointer.
10003 (check_zombie_leaders): Do not check stopped threads.
10004 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10005 (linux_low_filter_event): Add lwp and thread for exec'ing
10006 non-leader thread if leader thread has been deleted.
10007 Refactor code into linux_arch_setup_thread and call it.
10008 Pass child lwp pointer by reference to handle_extended_wait.
10009 (linux_wait_for_event_filtered): Update comment.
10010 (linux_wait_1): Prevent clobbering exec event status.
10011 (linux_supports_exec_events): New function.
10012 (linux_target_ops) <supports_exec_events>: Initialize new member.
10013 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10014 new member.
10015 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10016 * server.c (report_exec_events): New global variable.
10017 (handle_query): Handle qSupported query for exec-events feature.
10018 (captured_main): Initialize report_exec_events.
10019 * server.h (report_exec_events): Declare new global variable.
10020 * target.h (struct target_ops) <supports_exec_events>: New
10021 member.
10022 (target_supports_exec_events): New macro.
10023 * win32-low.c (win32_target_ops) <supports_exec_events>:
10024 Initialize new member.
10025
0568462b
MM
100262015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10027
10028 * linux-low.c (linux_low_enable_btrace): Remove.
10029 (linux_target_ops): Replace linux_low_enable_btrace with
10030 linux_enable_btrace.
10031
39edd165
YQ
100322015-09-03 Yao Qi <yao.qi@linaro.org>
10033
10034 * linux-aarch64-low.c (aarch64_insert_point): Call
10035 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10036 returns true.
10037
1db33b5a
UW
100382015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10039
10040 * linux-low.c (check_stopped_by_breakpoint): Use
10041 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10042
ab290430
PA
100432015-08-27 Pedro Alves <palves@redhat.com>
10044
10045 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10046
8d749320
SM
100472015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10048
6711b7f8
SM
10049 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10050 the XNEW-family equivalent.
8d749320
SM
10051 (compile_bytecodes): Likewise.
10052 * dll.c (loaded_dll): Likewise.
10053 * event-loop.c (append_callback_event): Likewise.
10054 (create_file_handler): Likewise.
10055 (create_file_event): Likewise.
10056 * hostio.c (handle_open): Likewise.
10057 * inferiors.c (add_thread): Likewise.
10058 (add_process): Likewise.
10059 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10060 * linux-arm-low.c (arm_new_process): Likewise.
10061 (arm_new_thread): Likewise.
10062 * linux-low.c (add_to_pid_list): Likewise.
10063 (linux_add_process): Likewise.
10064 (handle_extended_wait): Likewise.
10065 (add_lwp): Likewise.
10066 (enqueue_one_deferred_signal): Likewise.
10067 (enqueue_pending_signal): Likewise.
10068 (linux_resume_one_lwp_throw): Likewise.
10069 (linux_resume_one_thread): Likewise.
10070 (linux_read_memory): Likewise.
10071 (linux_write_memory): Likewise.
10072 * linux-mips-low.c (mips_linux_new_process): Likewise.
10073 (mips_linux_new_thread): Likewise.
10074 (mips_add_watchpoint): Likewise.
10075 * linux-x86-low.c (initialize_low_arch): Likewise.
10076 * lynx-low.c (lynx_add_process): Likewise.
10077 * mem-break.c (set_raw_breakpoint_at): Likewise.
10078 (set_breakpoint): Likewise.
10079 (add_condition_to_breakpoint): Likewise.
10080 (add_commands_to_breakpoint): Likewise.
10081 (clone_agent_expr): Likewise.
10082 (clone_one_breakpoint): Likewise.
10083 * regcache.c (new_register_cache): Likewise.
10084 * remote-utils.c (look_up_one_symbol): Likewise.
10085 * server.c (queue_stop_reply): Likewise.
10086 (start_inferior): Likewise.
10087 (queue_stop_reply_callback): Likewise.
10088 (handle_target_event): Likewise.
10089 * spu-low.c (fetch_ppc_memory): Likewise.
10090 (store_ppc_memory): Likewise.
10091 * target.c (set_target_ops): Likewise.
10092 * thread-db.c (thread_db_load_search): Likewise.
10093 (try_thread_db_load_1): Likewise.
10094 * tracepoint.c (add_tracepoint): Likewise.
10095 (add_tracepoint_action): Likewise.
10096 (create_trace_state_variable): Likewise.
10097 (cmd_qtdpsrc): Likewise.
10098 (cmd_qtro): Likewise.
10099 (add_while_stepping_state): Likewise.
10100 * win32-low.c (child_add_thread): Likewise.
10101 (get_image_name): Likewise.
10102
ed8b7b42
YQ
101032015-08-25 Yao Qi <yao.qi@linaro.org>
10104
10105 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10106
db3cb7cb
YQ
101072015-08-25 Yao Qi <yao.qi@linaro.org>
10108
10109 * Makefile.in (aarch64-linux.o): New rule.
10110 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10111 srv_tgtobj.
10112 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10113 (aarch64_init_debug_reg_state): Make it extern.
10114 (aarch64_linux_prepare_to_resume): Remove.
10115
f6011a1c
YQ
101162015-08-25 Yao Qi <yao.qi@linaro.org>
10117
10118 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10119 lwp_arch_private_info and ptid_of_lwp.
10120
88e2cf7e
YQ
101212015-08-25 Yao Qi <yao.qi@linaro.org>
10122
10123 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10124 Find proc_info by find_process_pid. All callers updated.
10125
5e35436e
YQ
101262015-08-25 Yao Qi <yao.qi@linaro.org>
10127
10128 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10129 Remove.
10130 (debug_reg_change_callback): Remove.
10131 (aarch64_notify_debug_reg_change): Remove.
10132
4a8a7965
YQ
101332015-08-25 Yao Qi <yao.qi@linaro.org>
10134
10135 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10136 Call current_lwp_ptid.
10137
32a271ee
YQ
101382015-08-25 Yao Qi <yao.qi@linaro.org>
10139
10140 * linux-aarch64-low.c (debug_reg_change_callback): Use
10141 debug_printf.
10142
0d51c8d7
YQ
101432015-08-25 Yao Qi <yao.qi@linaro.org>
10144
10145 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10146
31a43dd5
YQ
101472015-08-25 Yao Qi <yao.qi@linaro.org>
10148
10149 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10150
8ee52567
YQ
101512015-08-25 Yao Qi <yao.qi@linaro.org>
10152
10153 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10154 the code.
10155
ff3f0f45
YQ
101562015-08-25 Yao Qi <yao.qi@linaro.org>
10157
10158 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10159 Remove.
10160 (debug_reg_change_callback): Remove argument entry and add argument
10161 lwp. Remove local variable thread. Don't print thread id in the
10162 debugging output. Don't check whether pid of thread equals to pid.
10163 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10164 iterate_over_lwps instead find_inferior.
10165
3d40fbb5
PA
101662015-08-24 Pedro Alves <palves@redhat.com>
10167
10168 * inferiors.c (get_first_process): New function.
10169 * inferiors.h (get_first_process): New declaration.
10170 * remote-utils.c (read_ptid): Default to the first process in the
10171 list, instead of to the current thread's process.
10172
438e1e42
PA
101732015-08-24 Pedro Alves <palves@redhat.com>
10174
10175 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10176 * event-loop.c: Likewise.
10177 * remote-utils.c: Likewise.
10178 * tracepoint.c: Likewise.
10179
a8c6d4fc
PA
101802015-08-24 Pedro Alves <palves@redhat.com>
10181
10182 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10183 ptid_get_lwp.
10184
99b0bb12
PA
101852015-08-21 Pedro Alves <palves@redhat.com>
10186
10187 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10188 instead of literal 1.
10189
f8904751
PA
101902015-08-21 Pedro Alves <palves@redhat.com>
10191
10192 * tdesc.c (default_description): Explicitly zero-initialize.
10193
465a859e
PA
101942015-08-21 Pedro Alves <palves@redhat.com>
10195
10196 PR gdb/18749
10197 * inferiors.c (remove_thread): Discard any pending stop reply for
10198 this thread.
10199 * server.c (remove_all_on_match_pid): Rename to ...
10200 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10201 instead of a pid.
10202 (discard_queued_stop_replies): Change parameter to a ptid. Now
10203 extern.
10204 (handle_v_kill, kill_inferior_callback, captured_main)
10205 (process_serial_event): Adjust.
10206 * server.h (discard_queued_stop_replies): Declare.
10207
f0db101d
PA
102082015-08-21 Pedro Alves <palves@redhat.com>
10209
10210 * linux-low.c (wait_for_sigstop): Always switch to no thread
10211 selected if the previously current thread dies.
10212 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10213 process instead of the current thread's.
10214 * remote-utils.c (input_interrupt): Don't check if there's no
10215 current thread.
10216 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10217 current thread to the general thread fails, error out.
10218 (handle_qxfer_auxv, handle_qxfer_libraries)
10219 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10220 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10221 (handle_query): Check if there's a thread selected instead of
10222 checking whether there's any thread in the thread list.
10223 (handle_qxfer_threads, handle_qxfer_btrace)
10224 (handle_qxfer_btrace_conf): Don't error out early if there's no
10225 thread in the thread list.
10226 (handle_v_cont, myresume): Don't set the current thread to the
10227 continue thread.
10228 (process_serial_event) <Hg handling>: Also set thread_id if the
10229 previous general thread is still alive.
10230 (process_serial_event) <g/G handling>: If setting the current
10231 thread to the general thread fails, error out.
10232 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10233 thread's lwp instead of the current thread's.
10234 * target.c (set_desired_thread): If the desired thread was not
10235 found, leave the current thread pointing to NULL. Return an int
10236 (boolean) indicating success.
10237 * target.h (set_desired_thread): Change return type to int.
10238
40045d91
MF
102392015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10240
10241 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10242 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10243 #includes.
10244 (ps_get_thread_area): New function.
10245
45face3b
GB
102462015-08-19 Gary Benson <gbenson@redhat.com>
10247
10248 * hostio.c (handle_pread): Do not attempt to read more data
10249 than hostio_reply_with_data can fit in a packet.
10250
16d5f642
JB
102512015-08-18 Joel Brobecker <brobecker@adacore.com>
10252
10253 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10254
a738da3a
MF
102552015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10256
10257 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10258
33ebda9d
PA
102592015-08-06 Pedro Alves <palves@redhat.com>
10260
10261 * tracepoint.c (expr_eval_result): Now an int.
10262
a44892be
PA
102632015-08-06 Pedro Alves <palves@redhat.com>
10264
10265 * gdbthread.h (struct regcache): Forward declare.
10266 (struct thread_info) <regcache_data>: Now a struct regcache
10267 pointer.
10268 * inferiors.c (inferior_regcache_data)
10269 (set_inferior_regcache_data): Now work with struct regcache
10270 pointers.
10271 * inferiors.h (struct regcache): Forward declare.
10272 (inferior_regcache_data, set_inferior_regcache_data): Now work
10273 with struct regcache pointers.
10274 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10275 (free_register_cache_thread): Remove struct regcache pointer
10276 casts.
10277
608a1e46
PA
102782015-08-06 Pedro Alves <palves@redhat.com>
10279
10280 * server.c (captured_main): On error, print the exception message
10281 to stderr, and if run_once is set, throw a quit.
10282
f0ce0d3a
PA
102832015-08-06 Pedro Alves <palves@redhat.com>
10284
10285 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10286 the current thread.
10287
bf47e248
PA
102882015-08-06 Pedro Alves <palves@redhat.com>
10289
10290 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10291 reading beyond the passed in buffer length.
10292
b6b9ffcc
PL
102932015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10294
10295 * tracepoint.c (symbol_list) <required>: Remove.
10296
863d01bd
PA
102972015-08-06 Pedro Alves <palves@redhat.com>
10298
10299 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10300 count if stopping and suspending threads.
10301 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10302 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10303 (linux_detach): Complete an ongoing step-over.
10304 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10305 throughout.
10306 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10307 (linux_wait_1): If passing a signal to the inferior after
10308 finishing a step-over, unsuspend and re-resume all lwps. If we
10309 see a single-step event but the thread should be continuing, don't
10310 pass the trap to gdb.
10311 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10312 internal_error instead of gdb_assert.
10313 (enqueue_pending_signal): New function.
10314 (check_ptrace_stopped_lwp_gone): Add debug output.
10315 (start_step_over): Use internal_error instead of gdb_assert.
10316 (complete_ongoing_step_over): New function.
10317 (linux_resume_one_thread): Don't resume a suspended thread.
10318 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10319 it stepping.
10320
00db26fa
PA
103212015-08-06 Pedro Alves <palves@redhat.com>
10322
10323 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10324 (linux_thread_alive): Use lwp_is_marked_dead.
10325 (extended_event_reported): Delete.
10326 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10327 instead of extended_event_reported.
10328 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10329 as well.
10330 (lwp_is_marked_dead): New function.
10331 (lwp_running): Use lwp_is_marked_dead.
10332 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10333 comment.
10334
ad071a30
PA
103352015-08-06 Pedro Alves <palves@redhat.com>
10336
10337 * linux-low.c (linux_wait_1): Move fork event output out of the
10338 !report_to_gdb check. Pass event_child->waitstatus to
10339 target_waitstatus_to_string instead of ourstatus.
10340
524b57e6
YQ
103412015-08-04 Yao Qi <yao.qi@linaro.org>
10342
10343 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10344 if current_thread is 32 bit.
10345
6085d6f6
YQ
103462015-08-04 Yao Qi <yao.qi@linaro.org>
10347
10348 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10349 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10350 * server.c (extended_protocol): Remove "static".
10351 * server.h (extended_protocol): Declare it.
10352
8a7e4587
YQ
103532015-08-04 Yao Qi <yao.qi@linaro.org>
10354
10355 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10356 both aarch64 and aarch32.
10357 (aarch64_set_pc): Likewise.
10358
3b53ae99
YQ
103592015-08-04 Yao Qi <yao.qi@linaro.org>
10360
10361 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10362 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10363 arm-with-neon.xml to srv_xmlfiles.
10364 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10365 (is_64bit_tdesc): New function.
10366 (aarch64_linux_read_description): New function.
10367 (aarch64_arch_setup): Call aarch64_linux_read_description.
10368 (regs_info): Rename to regs_info_aarch64.
10369 (aarch64_regs_info): Return right regs_info.
10370 (initialize_low_arch): Call initialize_low_arch_aarch32.
10371
bd9e6534
YQ
103722015-08-04 Yao Qi <yao.qi@linaro.org>
10373
10374 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10375 * linux-aarch32-low.c: New file.
10376 * linux-aarch32-low.h: New file.
10377 * linux-arm-low.c (arm_fill_gregset): Move it to
10378 linux-aarch32-low.c.
10379 (arm_store_gregset): Likewise.
10380 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10381 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10382 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10383 (regs_info): Rename to regs_info_arm.
10384 (arm_regs_info): Return regs_info_aarch32 if
10385 have_ptrace_getregset is 1 and target description is
10386 arm_with_neon or arm_with_vfpv3.
10387 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10388 Call initialize_low_arch_aarch32 instead.
10389
ded48a5e
YQ
103902015-08-04 Yao Qi <yao.qi@linaro.org>
10391
10392 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10393 * linux-low.c: ... here.
10394 * linux-low.h (have_ptrace_getregset): Declare it.
10395
96e9210f
PA
103962015-08-04 Pedro Alves <palves@redhat.com>
10397
10398 * thread-db.c (struct thread_db): Use new typedefs.
10399 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10400 CHK calls.
10401 (disable_thread_event_reporting): Cast result of dlsym to
10402 destination function pointer type.
10403 (thread_db_mourn): Use td_ta_delete_ftype.
10404
af60a1ef
SL
104052015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10406
10407 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10408 arch variant.
10409 (CDX_BREAKPOINT): Define for R2.
10410 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10411 (the_low_target): Add comments.
10412
e8b41681
YQ
104132015-07-30 Yao Qi <yao.qi@linaro.org>
10414
10415 * linux-arm-low.c (arm_hwcap): Remove it.
10416 (arm_read_description): New local variable arm_hwcap. Don't
10417 set arm_hwcap to zero.
10418
89abb039
YQ
104192015-07-30 Yao Qi <yao.qi@linaro.org>
10420
10421 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10422 Use regcache->tdesc instead.
10423 (arm_store_wmmxregset): Likewise.
10424 (arm_fill_vfpregset): Likewise.
10425 (arm_store_vfpregset): Likewise.
10426
deca266c
YQ
104272015-07-30 Yao Qi <yao.qi@linaro.org>
10428
10429 * linux-arm-low.c: Include arch/arm.h.
10430 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10431 (arm_store_gregset): Likewise.
10432
aa58a496
SM
104332015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10434
10435 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10436 ptrace's 4th parameter.
10437
50904b25
YQ
104382015-07-27 Yao Qi <yao.qi@linaro.org>
10439
10440 * configure.srv (case aarch64*-*-linux*): Don't set
10441 srv_linux_usrregs.
10442
5826e159
PA
104432015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10444
10445 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10446 sys/ptrace.h.
10447 * linux-arm-low.c: Likewise.
10448 * linux-cris-low.c: Likewise.
10449 * linux-crisv32-low.c: Likewise.
10450 * linux-low.c: Likewise.
10451 * linux-m68k-low.c: Likewise.
10452 * linux-mips-low.c: Likewise.
10453 * linux-nios2-low.c: Likewise.
10454 * linux-s390-low.c: Likewise.
10455 * linux-sparc-low.c: Likewise.
10456 * linux-tic6x-low.c: Likewise.
10457 * linux-tile-low.c: Likewise.
10458 * linux-x86-low.c: Likewise.
10459
54019719
PA
104602015-07-24 Pedro Alves <palves@redhat.com>
10461
10462 * config.in: Regenerate.
10463 * configure: Regenerate.
10464
eb7aa561
PA
104652015-07-24 Pedro Alves <palves@redhat.com>
10466
10467 * acinclude.m4: Include ../ptrace.m4.
10468 * configure.ac: Call GDB_AC_PTRACE.
10469 * config.in, configure: Regenerate.
10470
55d7b841
YQ
104712015-07-24 Yao Qi <yao.qi@linaro.org>
10472
10473 * linux-low.c (linux_create_inferior): Remove setting to
10474 proc->priv->new_inferior.
10475 (linux_attach): Likewise.
10476 (linux_low_filter_event): Likewise.
10477 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10478
c06cbd92
YQ
104792015-07-24 Yao Qi <yao.qi@linaro.org>
10480
10481 * linux-low.c (linux_arch_setup): New function.
10482 (linux_low_filter_event): If proc->tdesc is NULL and
10483 proc->attached is true, call the_low_target.arch_setup.
10484 Otherwise, keep status pending, and return.
10485 (linux_resume_one_lwp_throw): Don't call get_pc if
10486 thread->while_stepping isn't NULL. Don't call
10487 get_thread_regcache if proc->tdesc is NULL.
10488 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10489 (linux_target_ops): Install arch_setup.
10490 * server.c (start_inferior): Call the_target->arch_setup.
10491 * target.h (struct target_ops) <arch_setup>: New field.
10492 (target_arch_setup): New marco.
10493 * lynx-low.c (lynx_target_ops): Update.
10494 * nto-low.c (nto_target_ops): Update.
10495 * spu-low.c (spu_target_ops): Update.
10496 * win32-low.c (win32_target_ops): Update.
10497
5ae3ebba
YQ
104982015-07-24 Yao Qi <yao.qi@linaro.org>
10499
10500 * linux-low.c (linux_add_process): Don't set
10501 proc->priv->new_inferior.
10502 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10503 (linux_attach): Likewise.
10504
eb97750b
YQ
105052015-07-24 Yao Qi <yao.qi@linaro.org>
10506
10507 * server.c (start_inferior): Code refactor.
10508
51aee833
YQ
105092015-07-24 Yao Qi <yao.qi@linaro.org>
10510
10511 * server.c (process_serial_event): Set general_thread.
10512
af1b22f3
YQ
105132015-07-21 Yao Qi <yao.qi@linaro.org>
10514
10515 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10516 aarch64_linux_get_debug_reg_capacity.
10517
554717a3
YQ
105182015-07-17 Yao Qi <yao.qi@linaro.org>
10519
10520 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10521 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10522 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10523 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10524 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10525 (AARCH64_HWP_ALIGNMENT): Likewise.
10526 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10527 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10528 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10529 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10530 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10531 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10532 (struct aarch64_debug_reg_state): Likewise.
10533 (struct arch_lwp_info): Likewise.
10534 (aarch64_align_watchpoint): Likewise.
10535 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10536 (aarch64_watchpoint_length): Likewise.
10537 (aarch64_point_encode_ctrl_reg): Likewise
10538 (aarch64_point_is_aligned): Likewise.
10539 (aarch64_align_watchpoint): Likewise.
10540 (aarch64_linux_set_debug_regs):
10541 (aarch64_dr_state_insert_one_point): Likewise.
10542 (aarch64_dr_state_remove_one_point): Likewise.
10543 (aarch64_handle_breakpoint): Likewise.
10544 (aarch64_handle_aligned_watchpoint): Likewise.
10545 (aarch64_handle_unaligned_watchpoint): Likewise.
10546 (aarch64_handle_watchpoint): Likewise.
10547
c67ca4de
YQ
105482015-07-17 Yao Qi <yao.qi@linaro.org>
10549
10550 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10551 and don't aarch64_get_debug_reg_state. All callers update.
10552 (aarch64_handle_aligned_watchpoint): Likewise.
10553 (aarch64_handle_unaligned_watchpoint): Likewise.
10554 (aarch64_handle_watchpoint): Likewise.
10555 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10556 (aarch64_remove_point): Likewise.
10557
25abf979
YQ
105582015-07-17 Yao Qi <yao.qi@linaro.org>
10559
10560 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10561 debug_printf.
10562 (aarch64_handle_unaligned_watchpoint): Likewise.
10563
db1ff28b
JK
105642015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10565
10566 Revert the previous 3 commits:
10567 Move gdb_regex* to common/
10568 Move linux_find_memory_regions_full & co.
10569 gdbserver build-id attribute generator
10570
700ca40f
JK
105712015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10572 Jan Kratochvil <jan.kratochvil@redhat.com>
10573
10574 gdbserver build-id attribute generator.
10575 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10576 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10577 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10578 (find_phdr): New.
10579 (get_dynamic): Use find_pdhr to traverse program headers.
10580 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10581 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10582 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10583 (get_hex_build_id): New.
10584 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10585 to reply XML document.
10586
9904185c
JK
105872015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10588 Jan Kratochvil <jan.kratochvil@redhat.com>
10589
10590 * target.c: Include target/target-utils.h and fcntl.h.
10591 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10592 (target_fileio_read_stralloc): New functions.
10593
6e5b4429
JK
105942015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10595
10596 * Makefile.in (OBS): Add gdb_regex.o.
10597 (gdb_regex.o): New.
10598 * config.in: Rebuilt.
10599 * configure: Rebuilt.
10600
ddc98fbf
JK
106012015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10602 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10605 * Makefile.in (OBS): Add target-utils.o.
10606 (linux-maps.o, target-utils.o): New.
10607 * configure.srv (srv_linux_obj): Add linux-maps.o.
10608
e57bb7a0
PL
106092015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10610
10611 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10612 function, return 1.
10613 (the_low_target): Install it.
10614
586b02a9
PA
106152015-07-14 Pedro Alves <palves@redhat.com>
10616
10617 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10618 Instead, ignore ECHILD, and throw an error for other errnos.
10619
58c1b36c
PA
106202015-07-10 Pedro Alves <palves@redhat.com>
10621
10622 * event-loop.c (struct callback_event) <data>: Change type to
10623 gdb_client_data instance instead of gdb_client_data pointer.
10624 (append_callback_event): Adjust.
10625
421530db
PL
106262015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10627
10628 * linux-aarch64-low.c: Add comments for each linux_target_ops
10629 method. Remove comments already covered in target_ops and
10630 linux_target_ops definitions.
10631 (the_low_target): Add comments for each unimplemented method.
10632
c2d65f38
YQ
106332015-07-09 Yao Qi <yao.qi@linaro.org>
10634
10635 * linux-aarch64-low.c (aarch64_regmap): Remove.
10636 (aarch64_usrregs_info): Remove.
10637 (regs_info): Set field usrregs to NULL.
10638
b20a6524
MM
106392015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10640
10641 * linux-low.c: Include "rsp-low.h"
10642 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10643 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10644 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10645 (handle_btrace_enable_pt): New.
10646 (handle_btrace_general_set): Support "pt".
10647 (handle_btrace_conf_general_set): Support "pt:size".
10648
96c97461
PL
106492015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10650
10651 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10652 Z_PACKET_SW_BP.
10653
37d66942
PL
106542015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10655
10656 * linux-aarch64-low.c: Remove comment about endianness.
10657 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10658 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10659 memcmp.
10660
dc06243f
GB
106612015-06-24 Gary Benson <gbenson@redhat.com>
10662
10663 * linux-i386-ipa.c (stdint.h): Do not include.
10664 * lynx-i386-low.c (stdint.h): Likewise.
10665 * lynx-ppc-low.c (stdint.h): Likewise.
10666 * mem-break.c (stdint.h): Likewise.
10667 * thread-db.c (stdint.h): Likewise.
10668 * tracepoint.c (stdint.h): Likewise.
10669 * win32-low.c (stdint.h): Likewise.
10670
124e13d9
SM
106712015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10672
10673 * server.c (write_qxfer_response): Update call to
10674 remote_escape_output.
10675
909c2cda
JK
106762015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10677 Jan Kratochvil <jan.kratochvil@redhat.com>
10678
10679 Merge multiple hex conversions.
10680 * gdbreplay.c (tohex): Rename to 'fromhex'.
10681 (logchar): Use fromhex.
10682
24c05f46
JK
106832015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10684
10685 * server.c (handle_qxfer_libraries): Set `version' attribute for
10686 <library-list>.
10687
14d2069a
GB
106882015-06-10 Gary Benson <gbenson@redhat.com>
10689
10690 * target.h (struct target_ops) <multifs_open>: New field.
10691 <multifs_unlink>: Likewise.
10692 <multifs_readlink>: Likewise.
10693 * linux-low.c (nat/linux-namespaces.h): New include.
10694 (linux_target_ops): Initialize the_target->multifs_open,
10695 the_target->multifs_unlink and the_target->multifs_readlink.
10696 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10697 * hostio.c (hostio_fs_pid): New static variable.
10698 (hostio_handle_new_gdb_connection): New function.
10699 (handle_setfs): Likewise.
10700 (handle_open): Use the_target->multifs_open as appropriate.
10701 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10702 (handle_readlink): Use the_target->multifs_readlink as
10703 appropriate.
10704 (handle_vFile): Handle vFile:setfs packets.
10705 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10706 after target_handle_new_gdb_connection.
10707
4b8b5e72
GB
107082015-06-10 Gary Benson <gbenson@redhat.com>
10709
10710 * configure.ac (AC_CHECK_FUNCS): Add setns.
10711 * config.in: Regenerate.
10712 * configure: Likewise.
10713 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10714 (linux-namespaces.o): New rule.
10715 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10716
3ac2e371
GB
107172015-06-09 Gary Benson <gbenson@redhat.com>
10718
10719 * hostio.c (handle_open): Process mode argument with
10720 fileio_to_host_mode.
10721
ca9b78ce
YQ
107222015-06-01 Yao Qi <yao.qi@linaro.org>
10723
10724 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10725 * linux-x86-low.c: Likewise.
10726
bfacd19d
DB
107272015-05-28 Don Breazeal <donb@codesourcery.com>
10728
10729 * linux-low.c (handle_extended_wait): Initialize
10730 thread_info.last_resume_kind for new fork children.
10731
452003ef
PA
107322015-05-15 Pedro Alves <palves@redhat.com>
10733
10734 * target.h (target_handle_new_gdb_connection): Rewrite using if
10735 wrapped in do/while.
10736
1041a03c
JB
107372015-05-14 Joel Brobecker <brobecker@adacore.com>
10738
10739 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10740 * configure, config.in: Regenerate.
10741 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10742 Declare typedef.
10743
c269dbdb
DB
107442015-05-12 Don Breazeal <donb@codesourcery.com>
10745
10746 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10747 PTRACE_EVENT_VFORK_DONE.
10748 (linux_low_ptrace_options, extended_event_reported): Add vfork
10749 events.
10750 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10751 and "vforkdone" for RSP 'T' Stop Reply Packet.
10752 * server.h (report_vfork_events): Declare
10753 global variable.
10754
3a8a0396
DB
107552015-05-12 Don Breazeal <donb@codesourcery.com>
10756
10757 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10758 (the_low_target) <new_fork>: Initialize new member.
10759 * linux-arm-low.c (arm_new_fork): New function.
10760 (the_low_target) <new_fork>: Initialize new member.
10761 * linux-low.c (handle_extended_wait): Call new target function
10762 new_fork.
10763 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10764 * linux-mips-low.c (mips_add_watchpoint): New function
10765 extracted from mips_insert_point.
10766 (the_low_target) <new_fork>: Initialize new member.
10767 (mips_linux_new_fork): New function.
10768 (mips_insert_point): Call mips_add_watchpoint.
10769 * linux-x86-low.c (x86_linux_new_fork): New function.
10770 (the_low_target) <new_fork>: Initialize new member.
10771
de0d863e
DB
107722015-05-12 Don Breazeal <donb@codesourcery.com>
10773
10774 * linux-low.c (handle_extended_wait): Implement return value,
10775 rename argument 'event_child' to 'event_lwp', handle
10776 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10777 (linux_low_ptrace_options): New function.
10778 (linux_low_filter_event): Call linux_low_ptrace_options,
10779 use different argument fo linux_enable_event_reporting,
10780 use return value from handle_extended_wait.
10781 (extended_event_reported): New function.
10782 (linux_wait_1): Call extended_event_reported and set
10783 status to report fork events.
10784 (linux_write_memory): Add pid to debug message.
10785 (reset_lwp_ptrace_options_callback): New function.
10786 (linux_handle_new_gdb_connection): New function.
10787 (linux_target_ops): Initialize new structure member.
10788 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10789 * lynx-low.c: Initialize new structure member.
10790 * remote-utils.c (prepare_resume_reply): Implement stop reason
10791 "fork" for "T" stop message.
10792 * server.c (handle_query): Call handle_new_gdb_connection.
10793 * server.h (report_fork_events): Declare global flag.
10794 * target.h (struct target_ops) <handle_new_gdb_connection>:
10795 New member.
10796 (target_handle_new_gdb_connection): New macro.
10797 * win32-low.c: Initialize new structure member.
10798
ddcbc397
DB
107992015-05-12 Don Breazeal <donb@codesourcery.com>
10800
10801 * mem-break.c (APPEND_TO_LIST): Define macro.
10802 (clone_agent_expr): New function.
10803 (clone_one_breakpoint): New function.
10804 (clone_all_breakpoints): New function.
10805 * mem-break.h: Declare new functions.
10806
89245bc0
DB
108072015-05-12 Don Breazeal <donb@codesourcery.com>
10808
10809 * linux-low.c (linux_supports_fork_events): New function.
10810 (linux_supports_vfork_events): New function.
10811 (linux_target_ops): Initialize new structure members.
10812 (initialize_low): Call linux_check_ptrace_features.
10813 * lynx-low.c (lynx_target_ops): Initialize new structure
10814 members.
10815 * server.c (report_fork_events, report_vfork_events):
10816 New global flags.
10817 (handle_query): Add new features to qSupported packet and
10818 response.
10819 (captured_main): Initialize new global variables.
10820 * target.h (struct target_ops) <supports_fork_events>:
10821 New member.
10822 <supports_vfork_events>: New member.
10823 (target_supports_fork_events): New macro.
10824 (target_supports_vfork_events): New macro.
10825 * win32-low.c (win32_target_ops): Initialize new structure
10826 members.
10827
835205d0
GB
108282015-05-12 Gary Benson <gbenson@redhat.com>
10829
10830 * server.c (handle_qxfer_exec_file): Use current process
10831 if annex is empty.
10832
21e94bd9
SL
108332015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10834
10835 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10836 Remove HAVE_PTRACE_GETREGS conditionals.
10837 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10838 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10839
45614f15
YQ
108402015-05-08 Yao Qi <yao.qi@linaro.org>
10841
10842 * linux-low.c (linux_supports_conditional_breakpoints): New
10843 function.
10844 (linux_target_ops): Install new target method.
10845 * lynx-low.c (lynx_target_ops): Install NULL hook for
10846 supports_conditional_breakpoints.
10847 * nto-low.c (nto_target_ops): Likewise.
10848 * spu-low.c (spu_target_ops): Likewise.
10849 * win32-low.c (win32_target_ops): Likewise.
10850 * server.c (handle_query): Check
10851 target_supports_conditional_breakpoints.
10852 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10853 New field.
10854 (target_supports_conditional_breakpoints): New macro.
10855
80ad801e
PA
108562015-05-06 Pedro Alves <palves@redhat.com>
10857
10858 PR server/18081
10859 * server.c (start_inferior): If the process exits, mourn it.
10860
819843c7
GB
108612015-04-21 Gary Benson <gbenson@redhat.com>
10862
10863 * hostio.c (fileio_open_flags_to_host): Factored out to
10864 fileio_to_host_openflags in common/fileio.c. Single use
10865 updated.
10866
a2d5a9d7
MF
108672015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10868
10869 * linux-xtensa-low.c (xtensa_fill_gregset)
10870 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10871 XCHAL_HAVE_LOOP.
10872
deb44829
MF
108732015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10874
10875 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10876 (regs_info): Replace usrregs pointer with NULL.
10877
e57f1de3
GB
108782015-04-17 Gary Benson <gbenson@redhat.com>
10879
10880 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10881 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10882 * server.c (handle_qxfer_exec_file): New function.
10883 (qxfer_packets): Add exec-file entry.
10884 (handle_query): Report qXfer:exec-file:read as supported packet.
10885
62828379
RN
108862015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10887
10888 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10889
b88bb450
GB
108902015-04-09 Gary Benson <gbenson@redhat.com>
10891
10892 * hostio-errno.c (errno_to_fileio_error): Remove function.
10893 Update caller to use remote_fileio_to_fio_error.
10894
c8f4bfdd
YQ
108952015-04-09 Yao Qi <yao.qi@linaro.org>
10896
10897 * linux-low.c (linux_insert_point): Call
10898 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10899 (linux_remove_point): Call remove_memory_breakpoint if type is
10900 raw_bkpt_type_sw.
10901 * linux-x86-low.c (x86_insert_point): Don't call
10902 insert_memory_breakpoint.
10903 (x86_remove_point): Don't call remove_memory_breakpoint.
10904
41f98f02
PA
109052015-04-01 Pedro Alves <palves@redhat.com>
10906 Cleber Rosa <crosa@redhat.com>
10907
10908 * server.c (gdbserver_usage): Reorganize and extend the usage
10909 message.
10910
2bf6fb9d
PA
109112015-03-24 Pedro Alves <palves@redhat.com>
10912
10913 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10914 output. Also dump TRAP_TRACE.
10915 (linux_low_filter_event): In debug output, distinguish a
10916 resume_stop SIGSTOP from a delayed SIGSTOP.
10917
369f6daa
GB
109182015-03-24 Gary Benson <gbenson@redhat.com>
10919
10920 * linux-x86-low.c (x86_linux_new_thread): Moved to
10921 nat/x86-linux.c.
10922 (x86_linux_prepare_to_resume): Likewise.
10923
8e5d4070
GB
109242015-03-24 Gary Benson <gbenson@redhat.com>
10925
10926 * Makefile.in (x86-linux-dregs.o): New rule.
10927 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10928 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10929 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10930 (x86_linux_dr_get): Likewise.
10931 (x86_linux_dr_set): Likewise.
10932 (update_debug_registers_callback): Likewise.
10933 (x86_linux_dr_set_addr): Likewise.
10934 (x86_linux_dr_get_addr): Likewise.
10935 (x86_linux_dr_set_control): Likewise.
10936 (x86_linux_dr_get_control): Likewise.
10937 (x86_linux_dr_get_status): Likewise.
10938 (x86_linux_update_debug_registers): Likewise.
10939
2b95d440
GB
109402015-03-24 Gary Benson <gbenson@redhat.com>
10941
10942 * linux-x86-low.c (x86_linux_update_debug_registers):
10943 New function, factored out from...
10944 (x86_linux_prepare_to_resume): ...this.
10945
14b0bc68
GB
109462015-03-24 Gary Benson <gbenson@redhat.com>
10947
10948 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10949 (x86_linux_dr_set): Likewise.
10950 (update_debug_registers_callback): Likewise.
10951 (x86_linux_dr_set_addr): Likewise.
10952 (x86_linux_dr_get_addr): Likewise.
10953 (x86_linux_dr_set_control): Likewise.
10954 (x86_linux_dr_get_control): Likewise.
10955 (x86_linux_dr_get_status): Likewise.
10956 (x86_linux_prepare_to_resume): Likewise.
10957
5dfe6ca8
GB
109582015-03-24 Gary Benson <gbenson@redhat.com>
10959
10960 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10961 Use perror_with_name. Pass string through gettext.
10962 (x86_linux_dr_set): Likewise.
10963
d33472ad
GB
109642015-03-24 Gary Benson <gbenson@redhat.com>
10965
10966 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10967 (x86_linux_dr_set_addr): ...this.
10968 (x86_dr_low_get_addr): Rename to...
10969 (x86_linux_dr_get_addr): ...this.
10970 (x86_dr_low_set_control): Rename to...
10971 (x86_linux_dr_set_control): ...this.
10972 (x86_dr_low_get_control): Rename to...
10973 (x86_linux_dr_get_control): ...this.
10974 (x86_dr_low_get_status): Rename to...
10975 (x86_linux_dr_get_status): ...this.
10976 (x86_dr_low): Update with new function names.
10977
4b134ca1
GB
109782015-03-24 Gary Benson <gbenson@redhat.com>
10979
10980 * Makefile.in (x86-linux.o): New rule.
10981 * configure.srv: Add x86-linux.o to relevant targets.
10982 * linux-low.c (lwp_set_arch_private_info): New function.
10983 (lwp_arch_private_info): Likewise.
10984 * linux-x86-low.c: Include nat/x86-linux.h.
10985 (arch_lwp_info): Removed structure.
10986 (update_debug_registers_callback):
10987 Use lwp_set_debug_registers_changed.
10988 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10989 and lwp_set_debug_registers_changed.
10990 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10991
34c703da
GB
109922015-03-24 Gary Benson <gbenson@redhat.com>
10993
10994 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10995 * linux-arm-low.c (arm_new_thread): Likewise.
10996 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10997 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10998 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10999 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11000
cff068da
GB
110012015-03-24 Gary Benson <gbenson@redhat.com>
11002
11003 * linux-low.c (ptid_of_lwp): New function.
11004 (lwp_is_stopped): Likewise.
11005 (lwp_stop_reason): Likewise.
11006 * linux-x86-low.c (update_debug_registers_callback):
11007 Use lwp_is_stopped.
11008 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11009 lwp_stop_reason.
11010
b2f7c7e8
GB
110112015-03-24 Gary Benson <gbenson@redhat.com>
11012
11013 * linux-low.h (linux_stop_lwp): Remove declaration.
11014
6d4ee8c6
GB
110152015-03-24 Gary Benson <gbenson@redhat.com>
11016
11017 * linux-low.h: Include nat/linux-nat.h.
11018 * linux-low.c (iterate_over_lwps_args): New structure.
11019 (iterate_over_lwps_filter): New function.
11020 (iterate_over_lwps): Likewise.
11021 * linux-x86-low.c (update_debug_registers_callback):
11022 Update signature to what iterate_over_lwps expects.
11023 Remove PID check that iterate_over_lwps now performs.
11024 (x86_dr_low_set_addr): Use iterate_over_lwps.
11025 (x86_dr_low_set_control): Likewise.
11026
70a0bb6b
GB
110272015-03-24 Gary Benson <gbenson@redhat.com>
11028
11029 * linux-x86-low.c (x86_debug_reg_state): New function.
11030 (x86_linux_prepare_to_resume): Use the above.
11031
7b669087
GB
110322015-03-24 Gary Benson <gbenson@redhat.com>
11033
11034 * linux-low.c (current_lwp_ptid): New function.
11035 * linux-x86-low.c: Include nat/linux-nat.h.
11036 (x86_dr_low_get_addr): Use current_lwp_ptid.
11037 (x86_dr_low_get_control): Likewise.
11038 (x86_dr_low_get_status): Likewise.
11039
eef49a3d
PA
110402015-03-20 Pedro Alves <palves@redhat.com>
11041
11042 * tracepoint.c (cmd_qtstatus): Make "str" const.
11043
b2333d22
PA
110442015-03-20 Pedro Alves <palves@redhat.com>
11045
11046 * server.c (handle_general_set): Make "req_str" const.
11047
23f238d3
PA
110482015-03-19 Pedro Alves <palves@redhat.com>
11049
11050 * linux-low.c (linux_resume_one_lwp): Rename to ...
11051 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11052 instead call perror_with_name.
11053 (check_ptrace_stopped_lwp_gone): New function.
11054 (linux_resume_one_lwp): Reimplement as wrapper around
11055 linux_resume_one_lwp_throw that swallows errors if the LWP is
11056 gone.
11057
91baf43f
PA
110582015-03-19 Pedro Alves <palves@redhat.com>
11059
11060 * linux-low.c (count_events_callback, select_event_lwp_callback):
11061 No longer check whether the thread has resume_stop as last resume
11062 kind.
11063
8bf3b159
PA
110642015-03-19 Pedro Alves <palves@redhat.com>
11065
11066 * linux-low.c (count_events_callback, select_event_lwp_callback):
11067 Use the lwp's status_pending_p field, not the thread's.
11068
b90fc188
PA
110692015-03-19 Pedro Alves <palves@redhat.com>
11070
11071 * linux-low.c (select_event_lwp_callback): Update comments to
11072 no longer mention SIGTRAP.
11073
464b0089
GB
110742015-03-18 Gary Benson <gbenson@redhat.com>
11075
11076 * server.c (handle_query): Do not report vFile:fstat as supported.
11077
aa9e327f
GB
110782015-03-11 Gary Benson <gbenson@redhat.com>
11079
11080 * hostio.c (sys/types.h): New include.
11081 (sys/stat.h): Likewise.
11082 (common-remote-fileio.h): Likewise.
11083 (handle_fstat): New function.
11084 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11085
791c0056
GB
110862015-03-11 Gary Benson <gbenson@redhat.com>
11087
11088 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11089 struct stat.st_blocks and struct stat.st_blksize.
11090 * configure: Regenerate.
11091 * config.in: Likewise.
11092 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11093 (OBS): Add common-remote-fileio.o.
11094 (common-remote-fileio.o): New rule.
11095
9a9df970
PA
110962015-03-09 Pedro Alves <palves@redhat.com>
11097
11098 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11099 'struct sockaddr' pointer in 'accept' call.
11100
9eb1356e
PA
111012015-03-09 Pedro Alves <palves@redhat.com>
11102
11103 Revert:
11104 2015-03-07 Pedro Alves <palves@redhat.com>
11105 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11106 or <winsock2.h> here. Instead include "gdb_socket.h".
11107 (remote_open): Use union gdb_sockaddr_u.
11108 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11109 or <winsock2.h> here. Instead include "gdb_socket.h".
11110 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11111 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11112 or <sys/un.h>.
11113 (init_named_socket, gdb_agent_helper_thread): Use union
11114 gdb_sockaddr_u.
11115
aac331e4
PA
111162015-03-07 Pedro Alves <palves@redhat.com>
11117
11118 * configure.ac (build_warnings): Move
11119 -Wdeclaration-after-statement to the C-specific set.
11120 * configure: Regenerate.
11121
366c75fc
PA
111222015-03-07 Pedro Alves <palves@redhat.com>
11123
11124 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11125 or <winsock2.h> here. Instead include "gdb_socket.h".
11126 (remote_open): Use union gdb_sockaddr_u.
11127 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11128 or <winsock2.h> here. Instead include "gdb_socket.h".
11129 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11130 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11131 or <sys/un.h>.
11132 (init_named_socket, gdb_agent_helper_thread): Use union
11133 gdb_sockaddr_u.
11134
492d29ea
PA
111352015-03-07 Pedro Alves <palves@redhat.com>
11136
11137 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11138 instead.
11139
60a191ed
YQ
111402015-03-06 Yao Qi <yao.qi@linaro.org>
11141
11142 * linux-aarch64-low.c (aarch64_insert_point): Use
11143 show_debug_regs as a boolean.
11144 (aarch64_remove_point): Likewise.
11145
f5771b1d
PA
111462015-03-05 Pedro Alves <palves@redhat.com>
11147
11148 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11149 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11150 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11151 * nto-low.c (nto_target_ops): Likewise.
11152 * spu-low.c (spu_target_ops): Likewise.
11153 * win32-low.c (win32_target_ops): Likewise.
11154
3e572f71
PA
111552015-03-04 Pedro Alves <palves@redhat.com>
11156
72f4393d 11157 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11158 Decide whether a breakpoint triggered based on the SIGTRAP's
11159 siginfo.si_code.
72f4393d
L
11160 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11161 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11162 (linux_low_filter_event): Check for breakpoints before checking
11163 watchpoints.
11164 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11165 siginfo.si_code.
72f4393d
L
11166 (linux_stopped_by_sw_breakpoint)
11167 (linux_supports_stopped_by_sw_breakpoint)
11168 (linux_stopped_by_hw_breakpoint)
11169 (linux_supports_stopped_by_hw_breakpoint): New functions.
11170 (linux_target_ops): Install new target methods.
3e572f71 11171
1ec68e26
PA
111722015-03-04 Pedro Alves <palves@redhat.com>
11173
11174 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11175 * server.c (swbreak_feature, hwbreak_feature): New globals.
11176 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11177 (captured_main): Clear swbreak_feature and hwbreak_feature.
11178 * server.h (swbreak_feature, hwbreak_feature): Declare.
11179 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11180 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11181 supports_stopped_by_hw_breakpoint>: New fields.
11182 (target_supports_stopped_by_sw_breakpoint)
11183 (target_stopped_by_sw_breakpoint)
11184 (target_supports_stopped_by_hw_breakpoint)
11185 (target_stopped_by_hw_breakpoint): Declare.
11186
15c66dd6
PA
111872015-03-04 Pedro Alves <palves@redhat.com>
11188
11189 enum lwp_stop_reason -> enum target_stop_reason
11190 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11191 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11192 (linux_wait_1, stuck_in_jump_pad_callback)
11193 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11194 (linux_stopped_by_watchpoint):
11195 * linux-low.h (enum lwp_stop_reason): Delete.
11196 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11197 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11198
98fc70d6
YQ
111992015-03-04 Yao Qi <yao.qi@linaro.org>
11200
11201 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11202
dd2ac174
GB
112032015-03-03 Gary Benson <gbenson@redhat.com>
11204
11205 * hostio.c (handle_vFile): Fix prefix lengths.
11206
d68e53f4
MM
112072015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11208
11209 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11210 ptr_bits.
11211
bf2d68ab
AA
112122015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11213
11214 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11215 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11216 (clean): Add "rm -f" for above C files.
11217 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11218 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11219 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11220 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11221 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11222 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11223 (init_registers_s390x_vx_linux64)
11224 (init_registers_s390x_tevx_linux64)
11225 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11226 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11227 declarations.
11228 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11229 (s390_store_vxrs_high): New functions.
11230 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11231 NT_S390_VXRS_HIGH.
11232 (s390_arch_setup): Add logic for selecting one of the new target
11233 descriptions. Activate the new vector regsets if applicable.
11234 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11235 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11236 and init_registers_s390x_tevx_linux64.
11237
c966a859
PA
112382015-03-01 Pedro Alves <palves@redhat.com>
11239
11240 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11241 parameter.
11242
4180215b
PA
112432015-02-27 Pedro Alves <palves@redhat.com>
11244
11245 * linux-x86-low.c (u_debugreg_offset): New function.
11246 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11247
749bab01
PA
112482015-02-27 Pedro Alves <palves@redhat.com>
11249
11250 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11251 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11252 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11253 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11254 (ps_lsetfpregs, ps_getpid)
11255 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11256 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11257 (ps_lsetxregs, ps_plog): Declare.
11258
3c14e5a3
PA
112592015-02-27 Pedro Alves <palves@redhat.com>
11260
11261 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11262 IP_AGENT_EXPORT_FUNC.
11263 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11264 IP_AGENT_EXPORT_FUNC.
11265 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11266 (IP_AGENT_EXPORT): Delete.
11267 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11268 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11269 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11270 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11271 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11272 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11273 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11274 (traceframe_read_count, traceframe_write_count)
11275 (traceframes_created, trace_state_variables, get_raw_reg)
11276 (get_trace_state_variable_value, set_trace_state_variable_value)
11277 (ust_loaded, helper_thread_id, cmd_buf): Use
11278 IPA_SYM_EXPORTED_NAME.
11279 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11280 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11281 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11282 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11283 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11284 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11285 EXTERN_C_PUSH/EXTERN_C_POP.
11286 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11287 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11288 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11289 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11290 (traceframe_write_count, traceframe_read_count)
11291 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11292 (about_to_request_buffer_space, get_trace_state_variable_value)
11293 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11294 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11295 EXTERN_C_PUSH/EXTERN_C_POP.
11296 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11297 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11298 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11299 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11300 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11301 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11302 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11303 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11304 Define.
11305 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11306 (IP_AGENT_EXPORT_VAR_DECL): Define.
11307 (tracing): Declare.
11308 (gdb_agent_get_raw_reg): Declare.
11309
fe978cb0
PA
113102015-02-27 Tom Tromey <tromey@redhat.com>
11311 Pedro Alves <palves@redhat.com>
11312
11313 Rename symbols whose names are reserved C++ keywords throughout.
11314
3bc3d82a
PA
113152015-02-27 Pedro Alves <palves@redhat.com>
11316
11317 * Makefile.in (COMPILER): New, get it from autoconf.
11318 (CXX): Get from autoconf instead.
11319 (COMPILE.pre): Use COMPILER.
11320 (CC-LD): Rename to ...
11321 (CC_LD): ... this. Use COMPILER.
11322 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11323 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11324 * acinclude.m4: Include build-with-cxx.m4.
11325 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11326 Disable -Werror by default if building in C++ mode.
11327 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11328 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11329 the C++ compiler. Save/restore CXXFLAGS too.
11330 * configure: Regenerate.
11331
07697489
PA
113322015-02-27 Pedro Alves <palves@redhat.com>
11333
11334 * acinclude.m4: Include libiberty.m4.
11335 * configure.ac: Call libiberty_INIT.
11336 * config.in, configure: Regenerate.
11337
9beb7c4e
PA
113382015-02-26 Pedro Alves <palves@redhat.com>
11339
11340 * linux-low.c (linux_wait_1): When incrementing the PC past a
11341 program breakpoint always use the_low_target.breakpoint_len as
11342 increment, rather than the maximum between that and
11343 the_low_target.decr_pc_after_break.
11344
8090aef2
PA
113452015-02-23 Pedro Alves <palves@redhat.com>
11346
11347 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11348 thread was doing a step-over; always adjust the PC if
11349 we stepped over a permanent breakpoint.
11350 (linux_wait_1): If we stepped over breakpoint that was on top of a
11351 permanent breakpoint, manually advance the PC past it.
11352
bc9540e8
PA
113532015-02-23 Pedro Alves <palves@redhat.com>
11354
11355 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11356 modes.
11357 (x86_fill_gregset, x86_store_gregset): Use it when handling
11358 $orig_eax.
11359
2db9a427
PA
113602015-02-20 Pedro Alves <palves@redhat.com>
11361
11362 * thread-db.c: Include "nat/linux-procfs.h".
11363 (thread_db_init): Skip listing new threads if the kernel supports
11364 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11365
afa8d396
PA
113662015-02-20 Pedro Alves <palves@redhat.com>
11367
11368 * linux-low.c (status_pending_p_callback): Use ptid_match.
11369
c9587f88
AT
113702015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11371
11372 PR breakpoints/16812
11373 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11374 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11375 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11376
b05ec7a5
AT
113772015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11378
11379 PR breakpoints/15956
11380 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11381
d33501a5
MM
113822015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11383
11384 * linux-low.c (linux_low_btrace_conf): Print size.
11385 * server.c (handle_btrace_conf_general_set): New.
11386 (hanle_general_set): Call handle_btrace_conf_general_set.
11387 (handle_query): Report Qbtrace-conf:bts:size as supported.
11388
f4abbc16
MM
113892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11390
11391 * linux-low.c (linux_low_enable_btrace): Update parameters.
11392 (linux_low_btrace_conf): New.
11393 (linux_target_ops)<to_btrace_conf>: Initialize.
11394 * server.c (current_btrace_conf): New.
11395 (handle_btrace_enable): Rename to ...
11396 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11397 to target_enable_btrace. Update comment. Update users.
11398 (handle_qxfer_btrace_conf): New.
11399 (qxfer_packets): Add btrace-conf entry.
11400 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11401 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11402 (target_ops)<read_btrace_conf>: New.
11403 (target_enable_btrace): Update parameters.
11404 (target_read_btrace_conf): New.
11405
043c3577
MM
114062015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11407
11408 * server.c (handle_btrace_general_set): Remove call to
11409 target_supports_btrace.
11410 (supported_btrace_packets): New.
11411 (handle_query): Call supported_btrace_packets.
11412 * target.h: include btrace-common.h.
11413 (btrace_target_info): Removed.
11414 (supports_btrace, target_supports_btrace): Update parameters.
11415
734b0e4b
MM
114162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11417
11418 * Makefile.in (SFILES): Add common/btrace-common.c.
11419 (OBS): Add common/btrace-common.o.
11420 (btrace-common.o): Add build rules.
11421 * linux-low: Include btrace-common.h.
11422 (linux_low_read_btrace): Use struct btrace_data. Call
11423 btrace_data_init and btrace_data_fini.
11424
d6c146e9
PA
114252015-02-06 Pedro Alves <palves@redhat.com>
11426
11427 * thread-db.c (find_new_threads_callback): Add debug output.
11428
20ba1ce6
PA
114292015-02-04 Pedro Alves <palves@redhat.com>
11430
11431 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11432 (resume_stopped_resumed_lwps): New function.
11433 (linux_wait_for_event_filtered): Use it.
11434
8cc73a39
SDJ
114352015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11436
11437 * Makefile.in (SFILES): Add linux-personality.c.
11438 (linux-personality.o): New rule.
11439 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11440 list of objects to be built.
11441 * linux-low.c: Include nat/linux-personality.h.
11442 (linux_create_inferior): Remove code to disable address space
11443 randomization (moved to ../nat/linux-personality.c). Create
11444 cleanup to disable address space randomization.
11445
fb23d554
SDJ
114462015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11447
11448 * Makefile.in (posix-strerror.o): New rule.
11449 (mingw-strerror.o): Likewise.
11450 * configure: Regenerated.
11451 * configure.ac: Source file ../common/common.host. Initialize new
11452 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11453
cdf43629
YQ
114542015-01-14 Yao Qi <yao@codesourcery.com>
11455
11456 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11457 (ppc-linux.o): New rule.
11458 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11459 * configure.ac: AC_CHECK_FUNCS(getauxval).
11460 * config.in: Re-generated.
11461 * configure: Re-generated.
11462 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11463 ppc64_64bit_inferior_p
11464
514c5338
YQ
114652015-01-14 Yao Qi <yao@codesourcery.com>
11466
11467 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11468 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11469 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11470 (PT_ORIG_R3, PT_TRAP): Likewise.
11471 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11472 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11473 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11474
3368c1e5
JB
114752015-01-10 Joel Brobecker <brobecker@adacore.com>
11476
11477 * i387-fp.c (i387_cache_to_xsave): In look over
11478 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11479 zmmh_low_space field by use of zmmh_high_space.
11480
582511be
PA
114812015-01-09 Pedro Alves <palves@redhat.com>
11482
11483 * linux-low.c (step_over_bkpt): Move higher up in the file.
11484 (handle_extended_wait): Don't store the stop_pc here.
11485 (get_stop_pc): Adjust comments and rename to ...
11486 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11487 stopped for a software breakpoint or hardware breakpoint.
11488 (thread_still_has_status_pending_p): New function.
11489 (status_pending_p_callback): Use
11490 thread_still_has_status_pending_p. If the event is no longer
11491 interesting, resume the LWP.
11492 (handle_tracepoints): Add assert.
11493 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11494 (wstatus_maybe_breakpoint): New function.
11495 (cancel_breakpoint): Delete function.
11496 (check_stopped_by_watchpoint): New function, factored out from
11497 linux_low_filter_event.
11498 (lp_status_maybe_breakpoint): Delete function.
11499 (linux_low_filter_event): Remove filter_ptid argument.
11500 Leave thread group exits pending here. Store the LWP's stop PC.
11501 Always leave events pending.
11502 (linux_wait_for_event_filtered): Pull all events out of the
11503 kernel, and leave them all pending.
11504 (count_events_callback, select_event_lwp_callback): Consider all
11505 events.
11506 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11507 (select_event_lwp): Only give preference to the stepping LWP in
11508 all-stop mode. Adjust comments.
11509 (ignore_event): New function.
11510 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11511 references to cancel_breakpoints. Adjust to renames. Also give
11512 equal priority to all LWPs that have had events in non-stop mode.
11513 If reporting a software breakpoint event, unadjust the LWP's PC.
11514 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11515 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11516 Adjust.
11517 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11518 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11519 (linux_stopped_by_watchpoint): Adjust.
11520 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11521 * linux-low.h (enum lwp_stop_reason): New.
11522 (struct lwp_info) <stop_pc>: Adjust comment.
11523 <stopped_by_watchpoint>: Delete field.
11524 <stop_reason>: New field.
11525 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11526 * mem-break.c (software_breakpoint_inserted_here)
11527 (hardware_breakpoint_inserted_here): New function.
11528 * mem-break.h (software_breakpoint_inserted_here)
11529 (hardware_breakpoint_inserted_here): Declare.
11530 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11531 (cancel_breakpoints): Delete.
11532 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11533 (upload_fast_traceframes): Remove references to
11534 cancel_breakpoints.
11535
a33e3959
PA
115362015-01-09 Pedro Alves <palves@redhat.com>
11537
11538 * thread-db.c (find_new_threads_callback): Ignore thread if the
11539 kernel thread ID is -1.
11540
8784d563
PA
115412015-01-09 Pedro Alves <palves@redhat.com>
11542
11543 * linux-low.c (linux_attach_fail_reason_string): Move to
11544 nat/linux-ptrace.c, and rename.
11545 (linux_attach_lwp): Update comment.
11546 (attach_proc_task_lwp_callback): New function.
11547 (linux_attach): Adjust to rename and use
11548 linux_proc_attach_tgid_threads.
11549 (linux_attach_fail_reason_string): Delete declaration.
11550
76f2b779
JB
115512015-01-01 Joel Brobecker <brobecker@adacore.com>
11552
11553 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11554 * server.c (gdbserver_version): Likewise.
11555
fafcc06a
SDJ
115562014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11557
11558 * remote-utils.c: Include ctype.h.
11559 (input_interrupt): Explicitly handle the case when the char
11560 received is the NUL byte. Improve the printing of non-ASCII
11561 characters.
11562
beed38b8
JB
115632014-12-16 Joel Brobecker <brobecker@adacore.com>
11564
11565 * linux-low.c (linux_low_filter_event): Update call to
11566 linux_enable_event_reporting following the addition of
11567 a new parameter to that function.
11568
bf330350
CU
115692014-12-16 Catalin Udma <catalin.udma@freescale.com>
11570
11571 PR server/17457
11572 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11573 (AARCH64_FPCR_REGNO): Likewise.
11574 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11575 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11576 (aarch64_store_fpregset): Likewise.
11577
5227d625
JB
115782014-12-15 Joel Brobecker <brobecker@adacore.com>
11579
11580 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11581 Remove FIXME comment about assumption about N.
11582
f93b65a0
JB
115832014-12-13 Joel Brobecker <brobecker@adacore.com>
11584
11585 * configure.ac: If large-file support is disabled in GDBserver,
11586 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11587 * configure: Regenerate.
11588
e5a9158d
AA
115892014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11590
11591 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11592 warning upon ENODATA from ptrace.
11593 * linux-s390-low.c (s390_store_tdb): New.
11594 (s390_regsets): Add regset for NT_S390_TDB.
11595
feea5f36
AA
115962014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11597
11598 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11599 without a fill_function.
11600 * linux-s390-low.c (s390_fill_last_break): Remove.
11601 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11602 (s390_arch_setup): Use regset's size instead of fill_function for
11603 loop end condition.
11604
098dbe61
AA
116052014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11606
11607 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11608 the regset's store function when ptrace returned an error.
11609 * regcache.c (get_thread_regcache): Invalidate register cache
11610 before fetching inferior's registers.
11611
28eef672
AA
116122014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11613
11614 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11615 while-loop as for-loop.
11616 (regsets_store_inferior_registers): Likewise.
11617
bdca27a2
YQ
116182014-11-28 Yao Qi <yao@codesourcery.com>
11619
11620 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11621 * config.in, configure: Re-generate.
11622 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11623 is defined.
11624
9c232dda
YQ
116252014-11-21 Yao Qi <yao@codesourcery.com>
11626
11627 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11628 (AC_CHECK_HEADERS): Remove malloc.h.
11629 * configure: Re-generated.
11630 * config.in: Re-generated.
11631 * server.h: Don't include alloca.h and malloc.h.
11632 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11633 Don't include malloc.h.
11634
43968415
JB
116352014-11-17 Joel Brobecker <brobecker@adacore.com>
11636
11637 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11638 corresponding ERRNO check in same block.
11639
40e91bc7
PA
116402014-11-12 Pedro Alves <palves@redhat.com>
11641
11642 * server.c (cont_thread): Update comment.
11643 (start_inferior, attach_inferior): No longer clear cont_thread.
11644 (handle_v_cont): No longer set cont_thread.
11645 (captured_main): Clear cont_thread each time a GDB connects.
11646
c2c118cf
PA
116472014-11-12 Pedro Alves <palves@redhat.com>
11648
11649 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11650 thread, and don't resume all threads if the Hc thread has exited.
11651
78708b7c
PA
116522014-11-12 Pedro Alves <palves@redhat.com>
11653
11654 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11655 the process group instead of to a specific LWP.
11656
a2abc7de
PA
116572014-10-15 Pedro Alves <palves@redhat.com>
11658
11659 PR server/17487
11660 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11661 parameter.
11662 (arm_set_thread_context): Delete.
11663 (the_low_target): Adjust.
11664 * win32-i386-low.c (debug_registers_changed)
11665 (debug_registers_used): Delete.
11666 (update_debug_registers_callback): New function.
11667 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11668 needing to update their debug registers.
11669 (win32_get_current_dr): New function.
11670 (x86_dr_low_get_addr, x86_dr_low_get_control)
11671 (x86_dr_low_get_status): Fetch the debug register from the thread
11672 record's context.
11673 (i386_initial_stuff): Adjust.
11674 (i386_get_thread_context): Remove current_event parameter. Don't
11675 clear debug_registers_changed nor copy DR values to
11676 debug_reg_state.
11677 (i386_set_thread_context): Delete.
11678 (i386_prepare_to_resume): New function.
11679 (i386_thread_added): Mark the thread as needing to update irs
11680 debug registers.
11681 (the_low_target): Remove i386_set_thread_context and install
11682 i386_prepare_to_resume.
11683 * win32-low.c (win32_get_thread_context): Adjust.
11684 (win32_set_thread_context): Use SetThreadContext
11685 directly.
11686 (win32_prepare_to_resume): New function.
11687 (win32_require_context): New function, factored out from ...
11688 (thread_rec): ... this.
11689 (continue_one_thread): Call win32_prepare_to_resume on each thread
11690 we're about to continue.
11691 (win32_resume): Call win32_prepare_to_resume on the event thread.
11692 * win32-low.h (struct win32_thread_info)
11693 <debug_registers_changed>: New field.
11694 (struct win32_target_ops): Change prototype of set_thread_context,
11695 delete set_thread_context and add prepare_to_resume.
11696 (win32_require_context): New declaration.
11697
a442d071
GB
116982014-10-08 Gary Benson <gbenson@redhat.com>
11699
11700 * server.h: Do not include common-exceptions.h.
11701
6f1947e8
GB
117022014-10-08 Gary Benson <gbenson@redhat.com>
11703
11704 * server.h: Do not include cleanups.h.
11705
63b434a4
JH
117062014-09-30 James Hogan <james.hogan@imgtec.com>
11707
11708 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11709 mips64-dsp-linux.c.
11710
c4d9ceb6
YQ
117112014-09-23 Yao Qi <yao@codesourcery.com>
11712
11713 * linux-low.c (lp_status_maybe_breakpoint): New function.
11714 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11715 (count_events_callback): Likewise.
11716 (select_event_lwp_callback): Likewise.
11717 (cancel_breakpoints_callback): Likewise.
11718
89a5711c
DB
117192014-09-19 Don Breazeal <donb@codesourcery.com>
11720
11721 * linux-low.c (handle_extended_wait): Call
11722 linux_ptrace_get_extended_event.
11723 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11724 linux_is_extended_waitstatus.
11725
bffc0964
JB
117262014-09-16 Joel Brobecker <brobecker@adacore.com>
11727
11728 * Makefile.in (CPPFLAGS): Define.
11729 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11730 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11731
0bfdf32f
GB
117322014-09-16 Gary Benson <gbenson@redhat.com>
11733
11734 * inferiors.h (current_inferior): Renamed as...
11735 (current_thread): New variable. All uses updated.
11736 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11737 (maybe_move_out_of_jump_pad): Likewise.
11738 (cancel_breakpoint): Likewise.
11739 (linux_low_filter_event): Likewise.
11740 (wait_for_sigstop): Likewise.
11741 (linux_resume_one_lwp): Likewise.
11742 (need_step_over_p): Likewise.
11743 (start_step_over): Likewise.
11744 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11745 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11746 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11747 and save_inferior as saved_thread.
11748 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11749 saved_thread.
11750 (regcache_invalidate_thread): Likewise.
11751 * remote-utils.c (prepare_resume_reply): Likewise.
11752 * thread-db.c (thread_db_get_tls_address): Likewise.
11753 (disable_thread_event_reporting): Likewise.
11754 (remove_thread_event_breakpoints): Likewise.
11755 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11756 as saved_thread.
11757 * target.h (set_desired_inferior): Renamed as...
11758 (set_desired_thread): New declaration. All uses updated.
11759 * server.c (myresume): Updated comment to reference thread instead
11760 of inferior.
11761 (handle_serial_event): Likewise.
11762 (handle_target_event): Likewise.
11763
361c8ade
GB
117642014-09-12 Tom Tromey <tromey@redhat.com>
11765 Gary Benson <gbenson@redhat.com>
11766
11767 * regcache.h: Include common-regcache.h.
11768 (regcache_read_pc): Don't declare.
11769 * regcache.c (get_thread_regcache_for_ptid): New function.
11770
bd9269f7
GB
117712014-09-11 Tom Tromey <tromey@redhat.com>
11772 Gary Benson <gbenson@redhat.com>
11773
11774 * symbol.c: New file.
11775 * Makefile.in (SFILES): Add symbol.c.
11776 (OBS): Add symbol.o.
11777
f8c1d06b
GB
117782014-09-11 Gary Benson <gbenson@redhat.com>
11779
11780 * target.c (target_stop_ptid, target_continue_ptid): New
11781 functions.
11782
721ec300
GB
117832014-09-11 Tom Tromey <tromey@redhat.com>
11784 Gary Benson <gbenson@redhat.com>
11785
11786 * target.h: Include target/target.h.
11787 * target.c (target_read_memory, target_read_uint32)
11788 (target_write_memory): New functions.
11789
c5e92cca
GB
117902014-09-11 Gary Benson <gbenson@redhat.com>
11791
11792 * server.h (debug_hw_points): Don't declare.
11793 * server.c (debug_hw_points): Don't define. Replace all uses
11794 with show_debug_regs.
11795 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11796 all uses with show_debug_regs.
11797
2e4bb98a
EBM
117982014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11799
11800 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11801 endianness into account.
11802 (ppc_supply_ptrace_register): Likewise.
11803
ac740bc7
JH
118042014-09-03 James Hogan <james.hogan@imgtec.com>
11805
11806 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11807 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11808
97ea6506
GB
118092014-09-03 Gary Benson <gbenson@redhat.com>
11810
11811 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11812 ALL_DEBUG_ADDRESS_REGISTERS.
11813
df7e5265
GB
118142014-09-02 Gary Benson <gbenson@redhat.com>
11815
11816 * i386-low.h: Renamed as...
11817 * x86-low.h: New file. All type, function and variable name
11818 prefixes changed from "i386_" to "x86_". All references updated.
11819 * i386-low.c: Renamed as...
11820 * x86-low.c: New file. All type, function and variable name
11821 prefixes changed from "i386_" to "x86_". All references updated.
11822
ed859da7
GB
118232014-09-02 Gary Benson <gbenson@redhat.com>
11824
11825 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11826 (x86_linux_new_thread): Likewise.
11827
860789c7
GB
118282014-08-29 Gary Benson <gbenson@redhat.com>
11829
11830 * server.h (setjmp.h): Do not include.
11831 (toplevel): Do not declare.
11832 (common-exceptions.h): Include.
11833 (cleanups.h): Likewise.
11834 * server.c (toplevel): Do not define.
11835 (exit_code): New static global.
11836 (detach_or_kill_for_exit_cleanup): New function.
11837 (main): New function. Original main renamed to...
11838 (captured_main): New function.
11839 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11840
ff55e1b5
GB
118412014-08-29 Gary Benson <gbenson@redhat.com>
11842
11843 * Makefile.in (SFILES): Add common/common-exceptions.c.
11844 (OBS): Add common-exceptions.o.
11845 (common-exceptions.o): New rule.
11846 * utils.c (prepare_to_throw_exception): New function.
11847
e9bcb658
GB
118482014-08-29 Gary Benson <gbenson@redhat.com>
11849
11850 * config.in: Regenerate.
11851 * configure: Likewise.
11852
e3180625
GB
118532014-08-29 Gary Benson <gbenson@redhat.com>
11854
11855 * Makefile.in (SFILES): Add common/cleanups.c.
11856 (OBS): cleanups.o.
11857 (cleanups.o): New rule.
11858
e3d6ba5d
GB
118592014-08-29 Gary Benson <gbenson@redhat.com>
11860
11861 * utils.c (internal_vwarning): New function.
11862
7096e886
GB
118632014-08-28 Gary Benson <gbenson@redhat.com>
11864
11865 * utils.h (fatal): Remove declaration.
11866 * utils.c (fatal): Remove function.
11867
14ce3192
GB
118682014-08-28 Gary Benson <gbenson@redhat.com>
11869
11870 * tracepoint.c (gdb_agent_init): Replace fatal with
11871 perror_with_name.
11872 (initialize_tracepoint): Likewise.
11873
50278d59
GB
118742014-08-28 Gary Benson <gbenson@redhat.com>
11875
11876 * remote-utils.c (remote_prepare): Replace fatal with error.
11877
aa96c426
GB
118782014-08-28 Gary Benson <gbenson@redhat.com>
11879
11880 * linux-low.c (linux_async): Replace fatal with warning.
11881 Tidy up and return.
11882 (linux_start_non_stop): Return -1 if linux_async failed.
11883
f7160e97
GB
118842014-08-28 Gary Benson <gbenson@redhat.com>
11885
11886 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11887 gdb_assert.
11888 (i386_dr_low_get_addr): Remove vague comment.
11889 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11890 gdb_assert.
11891
38e08fca
GB
118922014-08-28 Gary Benson <gbenson@redhat.com>
11893
11894 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11895 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11896 internal_error.
11897 (linux_resume_one_lwp): Likewise.
11898 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11899 gdb_assert.
11900 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11901 with internal_error.
11902 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11903 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11904 (find_register_by_name): Replace fatal with internal_error.
11905 (find_regno): Likewise.
11906 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11907 * thread-db.c (thread_db_create_event): Likewise.
11908 (thread_db_load_search): Likewise.
11909 (try_thread_db_load_1): Likewise.
11910 * tracepoint.c (get_jump_space_head): Replace fatal with
11911 internal_error.
11912 (claim_trampoline_space): Likewise.
11913 (have_fast_tracepoint_trampoline_buffer): Likewise.
11914 (cmd_qtstart): Likewise.
11915 (stop_tracing): Likewise.
11916 (fast_tracepoint_collecting): Likewise.
11917 (target_malloc): Likewise.
11918 (download_tracepoint): Likewise.
11919 (download_trace_state_variables): Replace check with gdb_assert.
11920 (upload_fast_traceframes): Replace fatal with internal_error.
11921
34abf635
GB
119222014-08-19 Tom Tromey <tromey@redhat.com>
11923 Gary Benson <gbenson@redhat.com>
11924
11925 * Makefile.in (SFILES): Add common/common-debug.c.
11926 (OBS): Add common-debug.o.
11927 (common-debug.o): New rule.
11928 * debug.h (debug_printf): Don't declare.
11929 * debug.c (debug_printf): Renamed and rewritten as...
11930 (debug_vprintf): New function.
11931
f6e94d78
GB
119322014-08-19 Gary Benson <gbenson@redhat.com>
11933
11934 * utils.h: Do not include print-utils.h.
11935
9239eeab
GB
119362014-08-19 Tom Tromey <tromey@redhat.com>
11937 Gary Benson <gbenson@redhat.com>
11938
11939 * server.h: Add static assertion.
11940 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11941
ef87c8bb
GB
119422014-08-19 Tom Tromey <tromey@redhat.com>
11943 Gary Benson <gbenson@redhat.com>
11944
11945 * Makefile.in (SFILES): Add common/errors.c.
11946 (OBS): Add errors.o.
11947 (IPA_OBS): Add errors-ipa.o.
11948 (errors.o): New rule.
11949 (errors-ipa.o): Likewise.
11950 * utils.h (perror_with_name, error, warning): Don't declare.
11951 * utils.c (warning): Renamed and rewritten as...
11952 (vwarning): New function.
11953 (error): Renamed and rewritten as...
11954 (verror): New function.
11955 (internal_error): Renamed and rewritten as...
11956 (internal_verror): New function.
11957
bb974a24
GB
119582014-08-07 Gary Benson <gbenson@redhat.com>
11959
11960 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11961 * configure: Regenerate.
11962 * config.in: Likewise.
11963 * server.h: Do not include errno.h.
11964 * event-loop.c: Likewise.
11965 * hostio-errno.c: Likewise.
11966 * linux-low.c: Likewise.
11967 * remote-utils.c: Likewise.
11968 * spu-low.c: Likewise.
11969 * utils.c: Likewise.
11970 * gdbreplay.c: Unconditionally include errno.h.
11971
6d3d12eb
GB
119722014-08-07 Gary Benson <gbenson@redhat.com>
11973
11974 * server.h: Do not include string.h.
11975 * event-loop.c: Likewise.
11976 * linux-low.c: Likewise.
11977 * regcache.c: Likewise.
11978 * remote-utils.c: Likewise.
11979 * spu-low.c: Likewise.
11980 * utils.c: Likewise.
11981
dccbb609
GB
119822014-08-07 Gary Benson <gbenson@redhat.com>
11983
11984 * server.h: Do not include gdb_assert.h.
11985
e76df0d0
GB
119862014-08-07 Gary Benson <gbenson@redhat.com>
11987
11988 * server.h: Do not include common-utils.h.
11989
4cb9c816
GB
119902014-08-07 Gary Benson <gbenson@redhat.com>
11991
11992 * server.h: Do not include ptid.h.
11993 * notif.h: Likewise.
11994
3995eeee
GB
119952014-08-07 Gary Benson <gbenson@redhat.com>
11996
11997 * server.h: Do not include gdb_locale.h.
11998
cb9f1a9b
GB
119992014-08-07 Gary Benson <gbenson@redhat.com>
12000
12001 * server.h: Do not include gdb/signals.h.
12002 * win32-low.c: Likewise.
12003
a5fceff8
GB
120042014-08-07 Gary Benson <gbenson@redhat.com>
12005
12006 * server.h: Do not include pathmax.h.
12007
b9391142
GB
120082014-08-07 Gary Benson <gbenson@redhat.com>
12009
12010 * server.h: Do not include libiberty.h.
12011 * linux-bfin-low.c: Likewise.
12012
0e443c87
GB
120132014-08-07 Gary Benson <gbenson@redhat.com>
12014
12015 * server.h: Do not include ansidecl.h.
12016
8ebb3f56
GB
120172014-08-07 Gary Benson <gbenson@redhat.com>
12018
12019 * linux-x86-low.c: Do not include stddef.h.
12020 * lynx-ppc-low.c: Likewise.
12021 * tracepoint.c: Likewise.
12022
8980bdf6
GB
120232014-08-07 Gary Benson <gbenson@redhat.com>
12024
12025 * server.h: Do not include stdarg.h.
12026 * nto-low.c: Likewise.
12027
d7096f71
GB
120282014-08-07 Gary Benson <gbenson@redhat.com>
12029
12030 * server.h: Do not include stdlib.h.
12031 * inferiors.c: Likewise.
12032 * linux-low.c: Likewise.
12033 * regcache.c: Likewise.
12034 * spu-low.c: Likewise.
12035 * tracepoint.c: Likewise.
12036 * utils.c: Likewise.
12037
d02f550d
GB
120382014-08-07 Gary Benson <gbenson@redhat.com>
12039
12040 * server.h: Do not include stdio.h.
12041 * linux-low.c: Likewise.
12042 * remote-utils.c: Likewise.
12043 * spu-low.c: Likewise.
12044 * utils.c: Likewise.
12045 * wincecompat.c: Likewise.
12046
87f6c4e3
GB
120472014-08-06 Gary Benson <gbenson@redhat.com>
12048
12049 * regcache.c (init_register_cache): Move conditionals inside if.
12050
7089dca4
GB
120512014-08-06 Gary Benson <gbenson@redhat.com>
12052
12053 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12054
462f517e
GB
120552014-07-31 Gary Benson <gbenson@redhat.com>
12056
12057 * ax.h: Do not include server.h.
12058 * gdbthread.h: Likewise.
12059 * lynx-low.h: Likewise.
12060 * notif.h: Likewise.
12061
976411d6
GB
120622014-07-30 Gary Benson <gbenson@redhat.com>
12063
12064 * server.h: Include common-defs.h.
12065 Do not include config.h or build-gnulib-gdbserver/config.h.
12066
d41f6d8e
GB
120672014-07-30 Gary Benson <gbenson@redhat.com>
12068
12069 * hostio-errno.c: Move server.h to top of includes list.
12070 * inferiors.c: Likewise.
12071 * linux-x86-low.c: Likewise.
12072 * notif.c: Include server.h.
12073
314c6a35
TT
120742014-07-24 Tom Tromey <tromey@redhat.com>
12075 Gary Benson <gbenson@redhat.com>
12076
12077 * server.h (CORE_ADDR): Now unsigned.
12078
69ff6be5
PA
120792014-07-16 Pedro Alves <palves@redhat.com>
12080
12081 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12082
ce9e3fe7
PA
120832014-07-15 Pedro Alves <palves@redhat.com>
12084
12085 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12086 copy.
12087
e76126e8
PA
120882014-07-11 Pedro Alves <palves@redhat.com>
12089
12090 * linux-low.c (kill_wait_lwp): New function, based on
12091 kill_one_lwp_callback, but use my_waitpid directly.
12092 (kill_one_lwp_callback, linux_kill): Use it.
12093
8e9db26e
PA
120942014-06-23 Pedro Alves <palves@redhat.com>
12095
12096 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12097 before setting DR0..DR3.
12098
698b3e08
GB
120992014-06-20 Gary Benson <gbenson@redhat.com>
12100
12101 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12102 * configure: Regenerated.
12103 * config.in: Likewise.
12104
125f8a3d
GB
121052014-06-20 Gary Benson <gbenson@redhat.com>
12106
12107 * Makefile.in (SFILES): Update locations for files moved
12108 from common to nat.
12109 (object file files): Reordered.
12110
42995dbd
GB
121112014-06-20 Gary Benson <gbenson@redhat.com>
12112
12113 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12114 (i386_dr_low_set_addr): Likewise.
12115 (i386_dr_low_get_addr): Likewise.
12116 (i386_dr_low_can_set_control): Likewise.
12117 (i386_dr_low_set_control): Likewise.
12118 (i386_dr_low_get_control): Likewise.
12119 (i386_dr_low_get_status): Likewise.
12120 (i386_get_debug_register_length): Likewise.
12121 * linux-x86-low.c (i386_dr_low_set_addr):
12122 Changed signature. Made static.
12123 (i386_dr_low_get_addr): Likewise.
12124 (i386_dr_low_set_control): Likewise.
12125 (i386_dr_low_get_control): Likewise.
12126 (i386_dr_low_get_status): Likewise.
12127 (i386_dr_low): New global variable.
12128 * win32-i386-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
e1d2394b
MS
121362014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12137
12138 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12139 * Makefile.in (AR, AR_FLAGS): Define.
12140 * configure: Regenerate.
12141
3a8ee006
GB
121422014-06-19 Gary Benson <gbenson@redhat.com>
12143
12144 * Makefile.in (i386-dregs.o): New rule.
12145 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12146 * i386-low.c (target.h): Remove include.
12147 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12148 (DR_CONTROL_SHIFT): Likewise.
12149 (DR_CONTROL_SIZE): Likewise.
12150 (DR_RW_EXECUTE): Likewise.
12151 (DR_RW_WRITE): Likewise.
12152 (DR_RW_READ): Likewise.
12153 (DR_RW_IORW): Likewise.
12154 (DR_LEN_1): Likewise.
12155 (DR_LEN_2): Likewise.
12156 (DR_LEN_4): Likewise.
12157 (DR_LEN_8): Likewise.
12158 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12159 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12160 (DR_ENABLE_SIZE): Likewise.
12161 (DR_LOCAL_SLOWDOWN): Likewise.
12162 (DR_GLOBAL_SLOWDOWN): Likewise.
12163 (DR_CONTROL_RESERVED): Likewise.
12164 (I386_DR_CONTROL_MASK): Likewise.
12165 (I386_DR_VACANT): Likewise.
12166 (I386_DR_LOCAL_ENABLE): Likewise.
12167 (I386_DR_GLOBAL_ENABLE): Likewise.
12168 (I386_DR_DISABLE): Likewise.
12169 (I386_DR_SET_RW_LEN): Likewise.
12170 (I386_DR_GET_RW_LEN): Likewise.
12171 (I386_DR_WATCH_HIT): Likewise.
12172 (i386_wp_op_t): Likewise.
12173 (i386_show_dr): Likewise.
12174 (i386_length_and_rw_bits): Likewise.
12175 (i386_insert_aligned_watchpoint): Likewise.
12176 (i386_remove_aligned_watchpoint): Likewise.
12177 (i386_handle_nonaligned_watchpoint): Likewise.
12178 i386_update_inferior_debug_regs(): Likewise.
12179 (i386_dr_insert_watchpoint): Likewise.
12180 (i386_dr_remove_watchpoint): Likewise.
12181 (i386_dr_region_ok_for_watchpoint): Likewise.
12182 (i386_dr_stopped_data_address): Likewise.
12183 (i386_dr_stopped_by_watchpoint): Likewise.
12184
8f26655c
GB
121852014-06-19 Gary Benson <gbenson@redhat.com>
12186
12187 * i386-low.c (i386_dr_show): Renamed to
12188 i386_show_dr and made static. All uses updated.
12189 (i386_dr_length_and_rw_bits): Renamed to
12190 i386_length_and_rw_bits and made static.
12191 All uses updated.
12192 (i386_dr_insert_aligned_watchpoint): Renamed to
12193 i386_insert_aligned_watchpoint and made static.
12194 All uses updated.
12195 (i386_dr_remove_aligned_watchpoint): Renamed to
12196 i386_remove_aligned_watchpoint and made static.
12197 All uses updated.
12198 (i386_dr_update_inferior_debug_regs): Renamed to
12199 i386_update_inferior_debug_regs and made static.
12200 All uses updated.
12201
b9228891
GB
122022014-06-18 Gary Benson <gbenson@redhat.com>
12203
5171def3
GB
12204 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12205 (i386_dr_low_can_set_control): Likewise.
12206 (i386_get_debug_register_length): Likewise.
12207 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12208 (i386_dr_low_can_set_control): Likewise.
12209 (i386_get_debug_register_length): Likewise.
12210
122112014-06-17 Gary Benson <gbenson@redhat.com>
12212
b9228891
GB
12213 * i386-low.h (i386-dregs.h): New include.
12214 (DR_FIRSTADDR): Now in i386-dregs.h.
12215 (DR_LASTADDR): Likewise.
12216 (DR_NADDR): Likewise.
12217 (DR_STATUS): Likewise.
12218 (DR_CONTROL): Likewise.
12219 (i386_debug_reg_state): Likewise.
12220 (i386_dr_insert_watchpoint): Likewise.
12221 (i386_dr_remove_watchpoint): Likewise.
12222 (i386_dr_region_ok_for_watchpoint): Likewise.
12223 (i386_dr_stopped_data_address): Likewise.
12224 (i386_dr_stopped_by_watchpoint): Likewise.
12225 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12226
4be83cc2
GB
122272014-06-18 Gary Benson <gbenson@redhat.com>
12228
12229 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12230 i386_dr_insert_watchpoint.
12231 (i386_low_remove_watchpoint): Renamed to
12232 i386_dr_remove_watchpoint.
12233 (i386_low_region_ok_for_watchpoint): Renamed to
12234 i386_dr_region_ok_for_watchpoint.
12235 (i386_low_stopped_data_address): Renamed to
12236 i386_dr_stopped_data_address.
12237 (i386_low_stopped_by_watchpoint): Renamed to
12238 i386_dr_stopped_by_watchpoint.
12239 * i386-low.c (i386_show_dr): Renamed to
12240 i386_dr_show and made nonstatic. All uses updated.
12241 (i386_length_and_rw_bits): Renamed to
12242 i386_dr_length_and_rw_bits and made nonstatic.
12243 All uses updated.
12244 (i386_insert_aligned_watchpoint): Renamed to
12245 i386_dr_insert_aligned_watchpoint and made nonstatic.
12246 All uses updated.
12247 (i386_remove_aligned_watchpoint): Renamed to
12248 i386_dr_remove_aligned_watchpoint and made nonstatic.
12249 All uses updated.
12250 (i386_update_inferior_debug_regs): Renamed to
12251 i386_dr_update_inferior_debug_regs and made nonstatic.
12252 All uses updated.
12253 (i386_low_insert_watchpoint): Renamed to
12254 i386_dr_insert_watchpoint. All uses updated.
12255 (i386_low_remove_watchpoint): Renamed to
12256 i386_dr_remove_watchpoint. All uses updated.
12257 (i386_low_region_ok_for_watchpoint): Renamed to
12258 i386_dr_region_ok_for_watchpoint. All uses updated.
12259 (i386_low_stopped_data_address): Renamed to
12260 i386_dr_stopped_data_address. All uses updated.
12261 (i386_low_stopped_by_watchpoint): Renamed to
12262 i386_dr_stopped_by_watchpoint. All uses updated.
12263
131aa0d4
GB
122642014-06-18 Gary Benson <gbenson@redhat.com>
12265
12266 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12267 (i386_dr_low_can_set_control): Likewise.
12268 (i386_insert_aligned_watchpoint): New check.
12269
d9305f7f
GB
122702014-06-18 Gary Benson <gbenson@redhat.com>
12271
12272 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12273 Renamed to state.
12274
e927c9fc
GB
122752014-06-18 Gary Benson <gbenson@redhat.com>
12276
12277 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12278 instead of fatal and error.
12279 (i386_handle_nonaligned_watchpoint): Likewise.
12280
1b6d4134
GB
122812014-06-18 Gary Benson <gbenson@redhat.com>
12282
12283 * i386-low.c (i386_get_debug_register_length): New macro.
12284 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12285 (i386_show_dr): Use debug_printf instead of fprintf. Use
12286 phex to format values.
12287
6e62758f
GB
122882014-06-18 Gary Benson <gbenson@redhat.com>
12289
12290 * i386-low.h: Comment changes.
12291 * i386-low.c: Likewise.
12292
fc6e2f03
GB
122932014-06-18 Gary Benson <gbenson@redhat.com>
12294
12295 * i386-low.c: Whitespace changes.
12296
f9d1eeed
TT
122972014-06-12 Tom Tromey <tromey@redhat.com>
12298
12299 * utils.c (freeargv): Remove.
12300
0b04e523
TT
123012014-06-12 Tom Tromey <tromey@redhat.com>
12302
12303 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12304 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12305 (parse_debug_format_options): Likewise.
12306 (gdbserver_usage): Likewise.
12307 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12308 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12309 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12310 against libiberty.
12311 ($(LIBGNU)): Depend on libiberty.
12312 (all-lib): Recurse into all subdirs.
12313 (install-only): Invoke "install" target in subdirs.
12314 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12315 targets.
12316 * configure: Rebuild.
12317 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12318 for vasprintf, vsnprintf, or gettimeofday.
12319 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12320 srv_tgtobj.
12321
270c9937
JB
123222014-06-05 Joel Brobecker <brobecker@adacore.com>
12323
12324 * development.sh: Delete.
12325 * Makefile.in (config.status): Adjust dependency on development.sh.
12326 * configure.ac: Adjust development.sh source call.
12327 * configure: Regenerate.
12328
0a261ed8
PA
123292014-06-02 Pedro Alves <palves@redhat.com>
12330
12331 * ax.c (gdb_free_agent_expr): New function.
12332 * ax.h (gdb_free_agent_expr): New declaration.
12333 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12334 list.
12335 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12336 static.
12337 (clear_breakpoint_conditions_and_commands): New function.
12338 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12339 (clear_breakpoint_conditions_and_commands): New declaration.
12340
e9dae05e
RR
123412014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12342
12343 * linux-aarch64-low.c (asm/ptrace.h): Include.
12344
5876f503
JK
123452014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12346
12347 Fix TLS access for -static -pthread.
12348 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12349 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12350 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12351
802e8e6d
PA
123522014-05-20 Pedro Alves <palves@redhat.com>
12353
12354 * linux-aarch64-low.c (aarch64_insert_point)
12355 (aarch64_remove_point): No longer check whether the type is
12356 supported here. Adjust to new interface.
12357 (the_low_target): Install aarch64_supports_z_point_type as
12358 supports_z_point_type method.
12359 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12360 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12361 instead of a Z packet char. Adjust.
12362 (arm_supports_z_point_type): New function.
12363 (arm_insert_point, arm_remove_point): Adjust to new interface.
12364 (the_low_target): Install arm_supports_z_point_type.
12365 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12366 (cris_insert_point, cris_remove_point): Adjust to new interface.
12367 Don't check whether the type is supported here.
12368 (the_low_target): Install cris_supports_z_point_type.
12369 * linux-low.c (linux_supports_z_point_type): New function.
12370 (linux_insert_point, linux_remove_point): Adjust to new interface.
12371 * linux-low.h (struct linux_target_ops) <insert_point,
12372 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12373 raw_breakpoint pointer parameter.
12374 <supports_z_point_type>: New method.
12375 * linux-mips-low.c (mips_supports_z_point_type): New function.
12376 (mips_insert_point, mips_remove_point): Adjust to new interface.
12377 Use mips_supports_z_point_type.
12378 (the_low_target): Install mips_supports_z_point_type.
12379 * linux-ppc-low.c (the_low_target): Install NULL as
12380 supports_z_point_type method.
12381 * linux-s390-low.c (the_low_target): Install NULL as
12382 supports_z_point_type method.
12383 * linux-sparc-low.c (the_low_target): Install NULL as
12384 supports_z_point_type method.
12385 * linux-x86-low.c (x86_supports_z_point_type): New function.
12386 (x86_insert_point): Adjust to new insert_point interface. Use
12387 insert_memory_breakpoint. Adjust to new
12388 i386_low_insert_watchpoint interface.
12389 (x86_remove_point): Adjust to remove_point interface. Use
12390 remove_memory_breakpoint. Adjust to new
12391 i386_low_remove_watchpoint interface.
12392 (the_low_target): Install x86_supports_z_point_type.
12393 * lynx-low.c (lynx_target_ops): Install NULL as
12394 supports_z_point_type callback.
12395 * nto-low.c (nto_supports_z_point_type): New.
12396 (nto_insert_point, nto_remove_point): Adjust to new interface.
12397 (nto_target_ops): Install nto_supports_z_point_type.
12398 * mem-break.c: Adjust intro comment.
12399 (struct raw_breakpoint) <raw_type, size>: New fields.
12400 <inserted>: Update comment.
12401 <shlib_disabled>: Delete field.
12402 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12403 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12404 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12405 (raw_bkpt_type_to_target_hw_bp_type): New function.
12406 (find_enabled_raw_code_breakpoint_at): New function.
12407 (find_raw_breakpoint_at): New type and size parameters. Use them.
12408 (insert_memory_breakpoint): New function, based off
12409 set_raw_breakpoint_at.
12410 (remove_memory_breakpoint): New function.
12411 (set_raw_breakpoint_at): Reimplement.
12412 (set_breakpoint): New, based on set_breakpoint_at.
12413 (set_breakpoint_at): Reimplement.
12414 (delete_raw_breakpoint): Go through the_target->remove_point
12415 instead of assuming memory breakpoints.
12416 (find_gdb_breakpoint_at): Delete.
12417 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12418 (find_gdb_breakpoint): New function.
12419 (set_gdb_breakpoint_at): Delete.
12420 (z_type_supported): New function.
12421 (set_gdb_breakpoint_1): New function, loosely based off
12422 set_gdb_breakpoint_at.
12423 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12424 (delete_gdb_breakpoint_at): Delete.
12425 (delete_gdb_breakpoint_1): New function, loosely based off
12426 delete_gdb_breakpoint_at.
12427 (delete_gdb_breakpoint): New function.
12428 (clear_gdb_breakpoint_conditions): Rename to ...
12429 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12430 breakpoint.
12431 (add_condition_to_breakpoint): Make static.
12432 (add_breakpoint_condition): Take a struct breakpoint pointer
12433 instead of an address. Adjust.
12434 (gdb_condition_true_at_breakpoint): Rename to ...
12435 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12436 z_type parameter.
12437 (gdb_condition_true_at_breakpoint): Reimplement.
12438 (add_breakpoint_commands): Take a struct breakpoint pointer
12439 instead of an address. Adjust.
12440 (gdb_no_commands_at_breakpoint): Rename to ...
12441 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12442 parameter. Return true if no breakpoint was found. Change debug
12443 output.
12444 (gdb_no_commands_at_breakpoint): Reimplement.
12445 (run_breakpoint_commands): Rename to ...
12446 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12447 and change return type to boolean.
12448 (run_breakpoint_commands): New function.
12449 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12450 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12451 breakpoint. Go through the_target->remove_point instead of
12452 assuming memory breakpoint.
12453 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12454 software and hardware breakpoints.
12455 (reinsert_raw_breakpoint): Go through the_target->insert_point
12456 instead of assuming memory breakpoint.
12457 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12458 software and hardware breakpoints.
12459 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12460 Check both software and hardware breakpoints.
12461 (validate_inserted_breakpoint): Assert the breakpoint is a
12462 software breakpoint. Set the inserted flag to -1 instead of
12463 setting shlib_disabled.
12464 (delete_disabled_breakpoints): Adjust.
12465 (validate_breakpoints): Only validate software breakpoints.
12466 Adjust to inserted flag change.
12467 (check_mem_read, check_mem_write): Skip breakpoint types other
12468 than software breakpoints. Adjust to inserted flag change.
12469 * mem-break.h (enum raw_bkpt_type): New enum.
12470 (raw_breakpoint, struct process_info): Forward declare.
12471 (Z_packet_to_target_hw_bp_type): Delete declaration.
12472 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12473 (set_gdb_breakpoint, delete_gdb_breakpoint)
12474 (clear_breakpoint_conditions): New declarations.
12475 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12476 (breakpoint_inserted_here): Update comment.
12477 (add_breakpoint_condition, add_breakpoint_commands): Replace
12478 address parameter with a breakpoint pointer parameter.
12479 (gdb_breakpoint_here): Update comment.
12480 (delete_gdb_breakpoint_at): Delete.
12481 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12482 * server.c (process_point_options): Take a struct breakpoint
12483 pointer instead of an address. Adjust.
12484 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12485 delete_gdb_breakpoint.
12486 * spu-low.c (spu_target_ops): Install NULL as
12487 supports_z_point_type method.
12488 * target.h: Include mem-break.h.
12489 (struct target_ops) <prepare_to_access_memory>: Update comment.
12490 <supports_z_point_type>: New field.
12491 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12492 instead of a char. Also take a raw breakpoint pointer.
12493 * win32-arm-low.c (the_low_target): Install NULL as
12494 supports_z_point_type.
12495 * win32-i386-low.c (i386_supports_z_point_type): New function.
12496 (i386_insert_point, i386_remove_point): Adjust to new interface.
12497 (the_low_target): Install i386_supports_z_point_type.
12498 * win32-low.c (win32_supports_z_point_type): New function.
12499 (win32_insert_point, win32_remove_point): Adjust to new interface.
12500 (win32_target_ops): Install win32_supports_z_point_type.
12501 * win32-low.h (struct win32_target_ops):
12502 <supports_z_point_type>: New method.
12503 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12504 instead of a char. Also take a raw breakpoint pointer.
12505
932539e3
PA
125062014-05-20 Pedro Alves <palves@redhat.com>
12507
12508 * mem-break.h: Include break-common.h.
12509 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12510 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12511 (Z_packet_to_target_hw_bp_type): New declaration.
12512 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12513 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12514 (Z_PACKET_ACCESS_WP): Delete macros.
12515 (Z_packet_to_hw_type): Delete function.
12516 * i386-low.h: Don't include break-common.h here.
12517 (Z_packet_to_hw_type): Delete declaration.
12518 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12519 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12520 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12521 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12522 * linux-aarch64-low.c: Don't include break-common.h here.
12523 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12524 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12525 (Z_packet_to_target_hw_bp_type): Delete function.
12526 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12527 function.
12528 (mips_insert_point, mips_remove_point): Use
12529 Z_packet_to_target_hw_bp_type.
12530
4ff0d3d8
PA
125312014-05-20 Pedro Alves <palves@redhat.com>
12532
12533 * linux-aarch64-low.c: Include break-common.h.
12534 (enum target_point_type): Delete.
12535 (Z_packet_to_point_type): Rename to ...
12536 (Z_packet_to_target_hw_bp_type): ... this, and return a
12537 target_hw_bp_type instead.
12538 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12539 instead of an enum target_point_type.
12540 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12541 breakpoint type.
12542 (aarch64_dr_state_insert_one_point)
12543 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12544 (aarch64_handle_aligned_watchpoint)
12545 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12546 Take an enum target_hw_bp_type instead of an enum
12547 target_point_type.
12548 (aarch64_supports_z_point_type): New function.
12549 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12550 use Z_packet_to_target_hw_bp_type.
12551
786dc519
JB
125522014-05-20 Joel Brobecker <brobecker@adacore.com>
12553
12554 * configure.ac: Only use -Werror by default when DEVELOPMENT
12555 is true.
12556 * configure: Regenerate.
12557
9e0aa64f
JK
125582014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12559
12560 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12561 * linux-x86-low.c (X86_64_USER_REGS): New.
12562 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12563
2b577b92
YQ
125642014-04-28 Yao Qi <yao@codesourcery.com>
12565
12566 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12567 name.
12568
94611da2
PA
125692014-04-25 Pedro Alves <palves@redhat.com>
12570
12571 PR server/16255
12572 * linux-low.c (linux_attach_fail_reason_string): New function.
12573 (linux_attach_lwp): Delete.
12574 (linux_attach_lwp_1): Rename to ...
12575 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12576 argument. Remove "initial" parameter. Return int instead of
12577 void. Don't error or warn here.
12578 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12579 failure to attach to the tgid. Call warning when failing to
12580 attach to an lwp.
12581 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12582 argument. Remove "initial" parameter. Return int instead of
12583 void. Don't error or warn here.
12584 (linux_attach_fail_reason_string): New declaration.
12585 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12586 interface change. Use linux_attach_fail_reason_string.
12587
01f9f808
MS
125882014-04-24 Michael Sturm <michael.sturm@mintel.com>
12589 Walfred Tedeschi <walfred.tedeschi@intel.com>
12590
12591 * Makefile.in: Added rules to handle new files
12592 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12593 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12594 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12595 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12596 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12597 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12598 x32-avx512-linux.o.
12599 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12600 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12601 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12602 i386/x32-avx512.xml.
12603 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12604 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12605 i386/x32-avx512-linux.xml.
12606 * i387-fp.c (num_avx512_k_registers): New constant for number
12607 of K registers.
12608 (num_avx512_zmmh_low_registers): New constant for number of
12609 lower ZMM registers (0-15).
12610 (num_avx512_zmmh_high_registers): New constant for number of
12611 higher ZMM registers (16-31).
12612 (num_avx512_ymmh_registers): New contant for number of higher
12613 YMM registers (ymm16-31 added by avx521 on x86_64).
12614 (num_avx512_xmm_registers): New constant for number of higher
12615 XMM registers (xmm16-31 added by AVX512 on x86_64).
12616 (struct i387_xsave): Add space for AVX512 registers.
12617 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12618 Add code to handle AVX512 registers.
12619 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12620 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12621 prototypei from generated file.
12622 (tdesc_amd64_avx512_linux): Likewise.
12623 (init_registers_x32_avx512_linux): Likewise.
12624 (tdesc_x32_avx512_linux): Likewise.
12625 (init_registers_i386_avx512_linux): Likewise.
12626 (tdesc_i386_avx512_linux): Likewise.
12627 (x86_64_regmap): Add AVX512 registers.
12628 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12629 mask.
12630 (initialize_low_arch): Add code to initialize AVX512 registers.
12631
51aa91f9
PA
126322014-04-23 Pedro Alves <palves@redhat.com>
12633
12634 * mem-break.c (find_gdb_breakpoint_at): Make static.
12635 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12636
a4165e94
PA
126372014-04-23 Pedro Alves <palves@redhat.com>
12638
12639 * i386-low.c: Don't include break-common.h here.
12640 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12641 prototype to take target_hw_bp_type as argument instead of a Z
12642 packet char.
12643 * i386-low.h: Include break-common.h here.
12644 (Z_packet_to_hw_type): Declare.
12645 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12646 prototypes.
12647 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12648 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12649 (x86_remove_point): Convert the packet number to a
12650 target_hw_bp_type before calling i386_low_remove_watchpoint.
12651 * win32-i386-low.c (i386_insert_point): Convert the packet number
12652 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12653 (i386_remove_point): Convert the packet number to a
12654 target_hw_bp_type before calling i386_low_remove_watchpoint.
12655
b8acf843
PA
126562014-04-23 Pedro Alves <palves@redhat.com>
12657
12658 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12659
d708bcd1
PA
126602014-04-10 Pedro Alves <palves@redhat.com>
12661
12662 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12663 Check if the condition or command is NULL before checking if the
12664 breakpoint is known. On success, return true.
12665 * mem-break.h (add_breakpoint_condition): Document return.
12666 (add_breakpoint_commands): Add describing comment.
12667 * server.c (skip_to_semicolon): New function.
12668 (process_point_options): Use it.
12669
2eec7d5b
PA
126702014-04-09 Pedro Alves <palves@redhat.com>
12671
12672 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12673 to lwpid_of.
12674
fa96cb38
PA
126752014-02-27 Pedro Alves <palves@redhat.com>
12676
12677 PR 12702
12678 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12679 macros.
12680 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12681 output.
12682 (last_thread_of_process_p): Take a PID argument instead of a
12683 thread pointer.
12684 (linux_wait_for_lwp): Delete.
12685 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12686 functions.
12687 (linux_low_filter_event): New function, party factored out from
12688 linux_wait_for_event.
12689 (linux_wait_for_event): Rename to ...
12690 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12691 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12692 sigsuspend. Check for zombie leaders.
12693 (linux_wait_for_event): Reimplement as wrapper around
12694 linux_wait_for_event_filtered.
12695 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12696 a normal or signal exit is seen, it's the whole process exiting.
12697 (wait_for_sigstop): No longer a for_each_inferior callback.
12698 Rewrite on top of linux_wait_for_event_filtered.
12699 (stop_all_lwps): Call wait_for_sigstop directly.
12700 * server.c (resume, handle_target_event): Handle
12701 TARGET_WAITKIND_NO_RESUMED.
12702
d763de10
JB
127032014-02-26 Joel Brobecker <brobecker@adacore.com>
12704
12705 * win32-low.c (psapi_get_dll_name,
12706 * win32_CreateToolhelp32Snapshot): Delete.
12707 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12708 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12709 Delete.
12710 (handle_load_dll): Add function description.
12711 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12712
850a0f76
JB
127132014-02-26 Joel Brobecker <brobecker@adacore.com>
12714
12715 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12716 Add comment.
12717 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12718 base address when calling win32_add_one_solib.
12719 (handle_load_dll): Delete local variable load_addr.
12720 Remove 0x1000 offset applied to DLL base address when calling
12721 win32_add_one_solib.
12722 (handle_unload_dll): Add comment.
12723
f25b3fc3
JB
127242014-02-26 Joel Brobecker <brobecker@adacore.com>
12725
12726 * win32-low.c (win32_add_all_dlls): Renames
12727 win32_ensure_ntdll_loaded. Rewrite function documentation.
12728 Adjust implementation to always load all DLLs.
12729 Add 0x1000 offset to DLL base address when calling
12730 win32_add_one_solib.
12731 (child_initialization_done): New static global.
12732 (do_initial_child_stuff): Set child_initialization_done to
12733 zero during child initialization, and 1 after. Replace call
12734 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12735 Add comment.
12736 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12737 (handle_unload_dll): Add function documentation.
12738 (get_child_debug_event): Ignore load and unload DLL events
12739 during child initialization.
12740
d86d4aaf
DE
127412014-02-20 Doug Evans <dje@google.com>
12742
3bc32da3 12743 Remove global all_lwps.
d86d4aaf
DE
12744 * inferiors.h (ptid_of): Move here from linux-low.h.
12745 (pid_of, lwpid_of): Ditto.
12746 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12747 parameter is a struct thread_info * now.
12748 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12749 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12750 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12751 directly.
12752 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12753 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12754 * linux-arm-low.c (update_registers_callback): Update, "entry"
12755 parameter is a struct thread_info * now.
12756 Fetch lwpid from current_inferior directly.
12757 (arm_insert_point): Pass &all_threads to find_inferior instead of
12758 &all_lwps.
12759 (arm_remove_point): Ditto.
12760 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12761 (arm_prepare_to_resume): Fetch pid from thread.
12762 (arm_read_description): Fetch lwpid from current_inferior directly.
12763 * linux-low.c (all_lwps): Delete.
12764 (delete_lwp): Delete call to remove_inferior.
12765 (handle_extended_wait): Fetch lwpid from thread.
12766 (add_lwp): Don't set lwp->entry.id. Remove call to
12767 add_inferior_to_list.
12768 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12769 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12770 (kill_one_lwp_callback): Ditto.
12771 (linux_kill): Don't dereference NULL pointer.
12772 Fetch ptid,lwpid from thread.
12773 (get_detach_signal): Fetch ptid from thread.
12774 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12775 Simplify call to regcache_invalidate_thread.
12776 (delete_lwp_callback): Update, "entry" parameter is a
12777 struct thread_info * now. Fetch pid from thread.
12778 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12779 (status_pending_p_callback): Update, "entry" parameter is a
12780 struct thread_info * now. Fetch ptid from thread.
12781 (find_lwp_pid): Update, "entry" parameter is a
12782 struct thread_info * now.
12783 (linux_wait_for_lwp): Fetch pid from thread.
12784 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12785 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12786 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12787 (dequeue_one_deferred_signal): Ditto.
12788 (cancel_breakpoint): Fetch ptid from current_inferior.
12789 (linux_wait_for_event): Pass &all_threads to find_inferior,
12790 not &all_lwps. Fetch ptid, lwpid from thread.
12791 (count_events_callback): Update, "entry" parameter is a
12792 struct thread_info * now.
12793 (select_singlestep_lwp_callback): Ditto.
12794 (select_event_lwp_callback): Ditto.
12795 (cancel_breakpoints_callback): Ditto.
12796 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12797 not &all_lwps.
12798 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12799 (unsuspend_one_lwp): Update, "entry" parameter is a
12800 struct thread_info * now.
12801 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12802 not &all_lwps.
12803 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12804 Fetch lwpid from thread, not lwp.
12805 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12806 Pass &all_threads to find_inferior, not &all_lwps.
12807 (send_sigstop): Fetch lwpid from thread, not lwp.
12808 (send_sigstop_callback): Update, "entry" parameter is a
12809 struct thread_info * now.
12810 (suspend_and_send_sigstop_callback): Ditto.
12811 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12812 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12813 struct thread_info * now.
12814 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12815 from thread, lwp.
12816 (lwp_running): Update, "entry" parameter is a
12817 struct thread_info * now.
12818 (stop_all_lwps): Fetch ptid from thread.
12819 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12820 (linux_resume_one_lwp): Fetch lwpid from thread.
12821 (linux_set_resume_request): Update, "entry" parameter is a
12822 struct thread_info * now. Fetch pid, lwpid from thread.
12823 (resume_status_pending_p): Update, "entry" parameter is a
12824 struct thread_info * now.
12825 (need_step_over_p): Ditto. Fetch lwpid from thread.
12826 (start_step_over): Fetch lwpid from thread.
12827 (linux_resume_one_thread): Update, "entry" parameter is a
12828 struct thread_info * now. Fetch lwpid from thread.
12829 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12830 (proceed_one_lwp): Update, "entry" parameter is a
12831 struct thread_info * now. Fetch lwpid from thread.
12832 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12833 struct thread_info * now.
12834 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12835 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12836 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12837 directly.
12838 (regsets_store_inferior_registers): Ditto.
12839 (fetch_register, store_register): Ditto.
12840 (linux_read_memory, linux_write_memory): Ditto.
12841 (linux_request_interrupt): Ditto.
12842 (linux_read_auxv): Ditto.
12843 (linux_xfer_siginfo): Ditto.
12844 (linux_qxfer_spu): Ditto.
12845 (linux_qxfer_libraries_svr4): Ditto.
12846 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12847 moved to inferiors.h.
12848 (get_lwp): Delete.
12849 (get_thread_lwp): Update.
12850 (struct lwp_info): Delete member "entry". Simplify comment for
12851 member "thread".
12852 (all_lwps): Delete.
12853 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12854 current_inferior directly.
12855 (update_watch_registers_callback): Update, "entry" parameter is a
12856 struct thread_info * now. Fetch pid from thread.
12857 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12858 (mips_insert_point): Fetch lwpid from current_inferior.
12859 Pass &all_threads to find_inferior, not &all_lwps.
12860 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12861 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12862 directly.
12863 (mips_stopped_data_address): Ditto.
12864 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12865 directly.
12866 * linux-tile-low.c (tile_arch_setup): Ditto.
12867 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12868 (update_debug_registers_callback): Update, "entry" parameter is a
12869 struct thread_info * now. Fetch pid from thread.
12870 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12871 Pass &all_threads to find_inferior, not &all_lwps.
12872 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12873 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12874 Pass &all_threads to find_inferior, not &all_lwps.
12875 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12876 (i386_dr_low_get_status): Ditto.
12877 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12878 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12879 (x86_linux_read_description): Ditto.
12880 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12881
3b8361aa
DE
128822014-02-20 Doug Evans <dje@google.com>
12883
12884 * inferiors.c (get_first_inferior): Fix buglet.
12885
f7667f0d
DE
128862014-02-19 Doug Evans <dje@google.com>
12887
12888 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12889 * inferiors.c (add_thread): Change result type to struct thread_info *.
12890 All callers updated.
12891 (add_lwp): Call add_thread here instead of in callers.
12892 All callers updated.
12893 * linux-low.h (get_lwp_thread): Rewrite.
12894 (struct lwp_info): New member "thread".
12895
b3312d80
DE
128962014-02-19 Doug Evans <dje@google.com>
12897
12898 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12899 All callers updated.
12900
ecc6f45c
DE
129012014-02-19 Doug Evans <dje@google.com>
12902
12903 * inferiors.c (add_thread): Fix whitespace.
12904
649ebbca
DE
129052014-02-19 Doug Evans <dje@google.com>
12906
12907 * dll.c (clear_dlls): Replace accessing list implemention details
12908 with API function.
12909 * gdbthread.h (get_first_thread): Declare.
12910 * inferiors.c (for_each_inferior_with_data): New function.
12911 (get_first_thread): New function.
12912 (find_thread_ptid): Simplify.
12913 (get_first_inferior): New function.
12914 (clear_list): Delete.
12915 (one_inferior_p): New function.
12916 (clear_inferior_list): New function.
12917 (clear_inferiors): Update.
12918 * inferiors.h (for_each_inferior_with_data): Declare.
12919 (clear_inferior_list): Declare.
12920 (one_inferior_p): Declare.
12921 (get_first_inferior): Declare.
12922 * linux-low.c (linux_wait_for_event): Replace accessing list
12923 implemention details with API function.
12924 * server.c (target_running): Ditto.
12925 (accumulate_file_name_length): New function.
12926 (emit_dll_description): New function.
12927 (handle_qxfer_libraries): Replace accessing list implemention
12928 details with API function.
12929 (handle_qxfer_threads_worker): New function.
12930 (handle_qxfer_threads_proper): Replace accessing list implemention
12931 details with API function.
12932 (handle_query): Ditto.
12933 (visit_actioned_threads_callback_ftype): New typedef.
12934 (visit_actioned_threads_data): New struct.
12935 (visit_actioned_threads): Rewrite to be find_inferior callback.
12936 (resume): Call find_inferior.
12937 (handle_status): Replace accessing list implemention
12938 details with API function.
12939 (process_serial_event): Replace accessing list implemention details
12940 with API function.
12941 * target.c (set_desired_inferior): Replace accessing list implemention
12942 details with API function.
12943 * tracepoint.c (same_process_p): New function.
12944 (gdb_agent_about_to_close): Replace accessing list implemention
12945 details with API function.
12946 * win32-low.c (child_delete_thread): Replace accessing list
12947 implemention details with API function.
12948 (match_dll_by_basename): New function.
12949 (dll_is_loaded_by_basename): New function.
12950 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12951 details call to dll_is_loaded_by_basename.
12952
80894984
DE
129532014-02-19 Doug Evans <dje@google.com>
12954
12955 * dll.h (struct dll_info): Add comment.
12956 * gdbthread.h (struct thread_info): Add comment.
12957 (current_ptid): Simplify.
12958 * inferiors.c (add_process): Update.
12959 (remove_process): Update.
12960 * inferiors.h (struct process_info): Rename member "head" to "entry".
12961 * linux-low.c (delete_lwp): Update.
12962 (add_lwp): Update.
12963 (last_thread_of_process_p): Update.
12964 (kill_one_lwp_callback, linux_kill): Update.
12965 (status_pending_p_callback): Update.
12966 (wait_for_sigstop): Update. Simplify read of ptid.
12967 (start_step_over): Update.
12968 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12969 (get_lwp_thread): Update.
12970 (struct lwp_info): Rename member "head" to "entry".
12971 * regcache.h (inferior_list_entry): Delete.
12972 * server.c (kill_inferior_callback): Update.
12973 (detach_or_kill_inferior_callback): Update.
12974 (print_started_pid): Update.
12975 (print_attached_pid): Update.
12976 (process_serial_event): Simplify read of ptid.
12977 * thread-db.c (thread_db_create_event): Update.
12978 (thread_db_get_tls_address): Update.
12979 * win32-low.c (current_inferior_ptid): Simplify.
12980
46917d26
TT
129812014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12984 argument.
12985 (target_supports_btrace): Update.
12986
0759a81e
YQ
129872014-02-14 Yao Qi <yao@codesourcery.com>
12988
12989 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12990 (rsp-low-ipa.o): New target.
12991
a7191e8b
TT
129922014-02-12 Tom Tromey <tromey@redhat.com>
12993
12994 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12995 convert_ascii_to_int.
12996 * regcache.c (registers_to_string): Likewise.
12997 * remote-utils.c (decode_M_packet): Likewise.
12998 * server.c (process_serial_event): Likewise.
12999
ff0e980e
TT
130002014-02-12 Tom Tromey <tromey@redhat.com>
13001
13002 * server.c (handle_query, handle_v_run): Use hex2bin, not
13003 unhexify.
13004 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13005
e9371aff
TT
130062014-02-12 Tom Tromey <tromey@redhat.com>
13007
13008 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13009 convert_int_to_ascii.
13010 * regcache.c (registers_to_string, collect_register_as_string):
13011 Likewise.
13012 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13013 Likewise.
13014 * server.c (process_serial_event): Likewise.
13015 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13016 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13017
971dc0b8
TT
130182014-02-12 Tom Tromey <tromey@redhat.com>
13019
13020 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13021 bin2hex, not hexify.
13022 * tracepoint.c (cmd_qtstatus): Likewise.
13023
0a822afb
TT
130242014-02-12 Tom Tromey <tromey@redhat.com>
13025
13026 * remote-utils.c (monitor_output): Pass explicit length to
13027 hexify.
13028
9c3d6531
TT
130292014-02-12 Tom Tromey <tromey@redhat.com>
13030
13031 * tracepoint.c: Include rsp-low.h.
13032 * server.c: Include rsp-low.h.
13033 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13034 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13035 declare.
13036 * remote-utils.c: Include rsp-low.h.
13037 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13038 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13039 (convert_int_to_ascii, convert_ascii_to_int): Move to
13040 common/rsp-low.c.
13041 * regcache.c: Include rsp-low.h.
13042 * ax.c: Include rsp-low.h.
13043 * Makefile.in (SFILES): Add common/rsp-low.c.
13044 (OBS): Add rsp-low.o.
13045 (rsp-low.o): New target.
13046
01fd3ea5
TT
130472014-02-12 Tom Tromey <tromey@redhat.com>
13048
13049 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13050 Include print-utils.h.
13051 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13052 (plongest, thirty_two, phex_nz): Remove.
13053 * Makefile.in (SFILES): Add common/print-utils.c.
13054 (OBS): Add print-utils.o.
13055 (print-utils-ipa.o): New target.
13056 (print-utils.o): New target.
13057 (IPA_OBJS): Add print-utils-ipa.o.
13058
e99dc820
TT
130592014-02-06 Tom Tromey <tromey@redhat.com>
13060
13061 * Makefile.in (SFILES): Fix indentation.
13062
ee1e2d4f
DE
130632014-02-05 Doug Evans <dje@google.com>
13064
13065 * linux-low.c (linux_wait_for_event): Improve comment.
13066 (linux_wait_1): Keep current_inferior in sync with event_child.
13067
f5a02773
DE
130682014-01-22 Doug Evans <dje@google.com>
13069
13070 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13071
87ce2a04
DE
130722014-01-22 Doug Evans <dje@google.com>
13073
13074 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13075 * configure: Regenerate.
13076 * config.in: Regenerate.
13077 * Makefile.in (SFILES): Add debug.c.
13078 (OBS): Add debug.o.
13079 * debug.c: New file.
13080 * debug.h: New file.
13081 * linux-aarch64-low.c (*): Update all debugging printfs to use
13082 debug_printf instead of fprintf.
13083 * linux-arm-low.c (*): Ditto.
13084 * linux-cris-low.c (*): Ditto.
13085 * linux-crisv32-low.c (*): Ditto.
13086 * linux-m32r-low.c (*): Ditto.
13087 * linux-sparc-low.c (*): Ditto.
13088 * linux-x86.c (*): Ditto.
13089 * linux-low.c (*): Ditto.
13090 (linux_wait_1): Add calls to debug_enter, debug_exit.
13091 (linux_wait): Remove redundant debugging printf.
13092 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13093 (linux_resume, unstop_all_lwps): Ditto.
13094 * mem-break.c (*): Update all debugging printfs to use
13095 debug_printf instead of fprintf.
13096 * remote-utils.c (*): Ditto.
13097 * thread-db.c (*): Ditto.
13098 * server.c #include <ctype.h>, "gdb_vecs.h".
13099 (debug_threads): Moved to debug.c.
13100 (*): Update all debugging printfs to use debug_printf instead of
13101 fprintf.
13102 (start_inferior): Replace call to fflush with call to debug_flush.
13103 (monitor_show_help): Mention set debug-format.
13104 (parse_debug_format_options): New function.
13105 (handle_monitor_command): Handle "monitor set debug-format".
13106 (gdbserver_usage): Mention --debug-format.
13107 (main): Parse --debug-format.
13108 * server.h (debug_threads): Declaration moved to debug.h.
13109 #include "debug.h".
13110 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13111 trace_debug_1 that uses debug_printf.
13112 (tracepoint_look_up_symbols): Update all debugging printfs to use
13113 debug_printf instead of fprintf.
13114
e671835b
BS
131152014-01-20 Baruch Siach <baruch@tkos.co.il>
13116
13117 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13118 sys/ptrace.h.
13119
b5737fa9
PA
131202014-01-17 Pedro Alves <palves@redhat.com>
13121
ea38d2a9 13122 PR build/16445
c7faa97a
PA
13123 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13124 defined after including gdb_proc_service.h.
b5737fa9 13125
40ed484e
DE
131262014-01-16 Doug Evans <dje@google.com>
13127
13128 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13129 (match_dll): Use it.
13130
969c39fb
MM
131312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13132
13133 * target.h (target_ops) <read_btrace>: Change parameters and
13134 return type to allow error reporting.
13135 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13136 trace reading errors on.
13137 * linux-low.c (linux_low_read_btrace): Pass trace reading
13138 errors on.
13139 (linux_low_disable_btrace): New.
13140
ab7f45ba
DE
131412014-01-15 Doug Evans <dje@google.com>
13142
13143 * inferiors.c (thread_id_to_gdb_id): Delete.
13144 * inferiors.h (thread_id_to_gdb_id): Delete.
13145
66af0f44
EZ
131462014-01-13 Eli Zaretskii <eliz@gnu.org>
13147
13148 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13149 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13150 versions.
13151
9939e131
PA
131522014-01-08 Pedro Alves <palves@redhat.com>
13153
13154 * server.c (handle_status): Don't discard previous queued stop
13155 replies or thread's pending status here.
13156 (main) <disconnection>: Do it here instead.
13157
b7ea362b
PA
131582014-01-08 Pedro Alves <palves@redhat.com>
13159
13160 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13161 * server.c (visit_actioned_threads, handle_pending_status): New
13162 function.
13163 (handle_v_cont): Factor out parts to ...
13164 (resume): ... this new function. If in all-stop, and a thread
13165 being resumed has a pending status, report it without actually
13166 resuming.
13167 (myresume): Adjust to use the new 'resume' function.
13168 (clear_pending_status_callback, set_pending_status_callback)
13169 (find_status_pending_thread_callback): New functions.
13170 (handle_status): Handle the case of multiple threads having
13171 interesting statuses to report. Report threads' real last signal
13172 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13173 with an interesting thread to report the status for, instead of
13174 always reporting the status of the first thread.
13175
28498c42
JB
131762014-01-01 Joel Brobecker <brobecker@adacore.com>
13177
13178 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13179 * gdbreplay.c (gdbreplay_version): Likewise.
13180
f45c82da
YZ
131812013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13182
13183 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13184 iov.iov_len with the real length in use.
13185
379a5e2d
JB
131862013-12-13 Joel Brobecker <brobecker@adacore.com>
13187
13188 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13189 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13190 for all targets that use win32-low.c.
13191 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13192 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13193
4210d83e
PA
131942013-12-13 Pedro Alves <palves@redhat.com>
13195
13196 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13197 if equal to TARGET_WAITKIND_LOADED.
13198 * win32-low.c (cached_status): New static global.
13199 (win32_wait): Add declaration.
13200 (do_initial_child_stuff): Flush all initial pending debug events
13201 up to the initial breakpoint.
13202 (win32_wait): If CACHED_STATUS was set, return that instead
13203 of doing a real wait. Remove the code resuming the execution
13204 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13205 during the initial phase. Also remove the code changing
13206 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13207 TARGET_WAITKIND_STOPPED.
13208
e7f0d979
YQ
132092013-12-11 Yao Qi <yao@codesourcery.com>
13210
13211 * notif.c (handle_notif_ack): Return 0 if no notification
13212 matches.
13213
ebcf782c
DE
132142013-11-20 Doug Evans <dje@google.com>
13215
13216 * linux-low.c (linux_set_resume_request): Fix comment.
13217
20ad9378
DE
132182013-11-20 Doug Evans <dje@google.com>
13219
13220 * linux-low.c (resume_status_pending_p): Tweak comment.
13221
a196ebeb
WT
132222013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13223
13224 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13225 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13226 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13227 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13228 (srv_amd64_regobj): Add amd64-mpx.o.
13229 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13230 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13231 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13232 * i387-fp.c (num_pl_bnd_register) Added constant.
13233 (num_pl_bnd_cfg_registers) Added constant.
13234 (struct i387_xsave) Added reserved area and MPX fields.
13235 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13236 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13237 function.
13238 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13239 (init_registers_amd64_mpx_linux): Declare new function.
13240 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13241 (x86_64_regmap): Add MPX registers.
13242 (x86_linux_read_description): Add MPX case.
13243 (initialize_low_arch): Initialize MPX targets.
13244
0080a2f6
TT
132452013-11-18 Tom Tromey <tromey@redhat.com>
13246
13247 * configure: Rebuild.
13248 * configure.ac: Don't check for stdlib.h.
13249 * gdbreplay.c: Unconditionally include stdlib.h.
13250
2978b111
TT
132512013-11-18 Tom Tromey <tromey@redhat.com>
13252
13253 * config.in: Rebuild.
13254 * configure: Rebuild.
13255 * configure.ac: Don't use AC_HEADER_DIRENT.
13256
a3d08894
TT
132572013-11-18 Tom Tromey <tromey@redhat.com>
13258
13259 * server.h: Don't check HAVE_STRING_H.
13260 * gdbreplay.c: Don't check HAVE_STRING_H.
13261 * configure: Rebuild.
13262
0a5dd17d
TT
132632013-11-18 Tom Tromey <tromey@redhat.com>
13264
13265 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13266 LIBGNU.
13267
1bd2f0ba
TT
132682013-11-08 Tom Tromey <tromey@redhat.com>
13269
13270 * configure, config.in: Rebuild.
13271 * configure.ac: Remove unused configury.
13272
3266f10b
TT
132732013-11-08 Tom Tromey <tromey@redhat.com>
13274
13275 * acinclude.m4: Include common.m4, codeset.m4.
13276 * configure, config.in: Rebuild.
13277 * configure.ac: Use GDB_AC_COMMON.
13278
6682d959
AA
132792013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13280
13281 * linux-s390-low.c (HWCAP_S390_TE): New define.
13282 (s390_arch_setup): Consider the TE field in the HWCAP for
13283 determining 'have_regset_tdb'.
13284
fd0a4d76
SDJ
132852013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13286
13287 PR gdb/16014
13288 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13289 call to sizeof.
13290
1a3d890b
PA
132912013-10-02 Pedro Alves <palves@redhat.com>
13292
13293 * server.c (process_serial_event): Don't output "GDBserver
13294 exiting" if GDB is connected through stdio.
13295 * target.c (mywait): Likewise, be silent if GDB is connected
13296 through stdio.
13297
97ad4581
JB
132982013-10-01 Joel Brobecker <brobecker@adacore.com>
13299
13300 * lynx-low.c (lynx_add_threads_after_attach): New function.
13301 (lynx_attach): Remove call to add_thread. Add call to
13302 lynx_add_threads_after_attach instead.
13303
5b4e221c
MF
133042013-09-28 Mike Frysinger <vapier@gentoo.org>
13305
13306 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13307 * config.in, configure: Regenerated.
13308
ee47b2f8
YQ
133092013-09-18 Yao Qi <yao@codesourcery.com>
13310
13311 PR server/15959
13312 * server.c (start_inferior): Clear 'resume_info'.
13313
d6707650 133142013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13315
d6707650
JW
13316 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13317 for each register.
13318
9243dd0e 133192013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13320
9243dd0e
JW
13321 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13322 linux-tile-low.o to srv_tgtobj.
13323
c623a6ef
WN
133242013-09-16 Will Newton <will.newton@linaro.org>
13325
13326 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13327 out regs.
13328
fb71d39e
PA
133292013-09-06 Pedro Alves <palves@redhat.com>
13330
13331 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13332 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13333 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13334 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13335 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13336 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13337
8e7e9910
PA
133382013-09-06 Pedro Alves <palves@redhat.com>
13339
13340 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13341 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13342
7c3a12ca
PA
133432013-09-06 Pedro Alves <palves@redhat.com>
13344
13345 * linux-amd64-ipa.c: Include tracepoint.h.
13346 * linux-i386-ipa.c: Include tracepoint.h.
13347
8eb3d7b6
RW
133482013-09-06 Ricard Wanderlof <ricardw@axis.com>
13349
13350 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13351 (ps_get_thread_area): New function.
13352
eddddb9d
RW
133532013-09-06 Ricard Wanderlof <ricardw@axis.com>
13354
13355 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13356 (initialize_low_arch): Call init_registers_crisv32 rather than
13357 init_register_crisv32.
13358
533b0600
PA
133592013-09-05 Pedro Alves <palves@redhat.com>
13360
13361 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13362 to ...
13363 * hostio.h: ... this new file.
13364 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13365 win32-low.c: Include hostio.h.
13366
0ce3d3b5
PA
133672013-09-05 Pedro Alves <palves@redhat.com>
13368
13369 * server.h (gdb_client_data, handler_func, callback_handler_func)
13370 (delete_file_handler, add_file_handler, append_callback_event)
13371 (delete_callback_event, start_event_loop, initialize_event_loop):
13372 Move to event-loop.h and include it.
13373 * event-loop.h: New file.
13374
799cdc37
PA
133752013-09-05 Pedro Alves <palves@redhat.com>
13376
13377 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13378 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13379 (loaded_dll, unloaded_dll): Move to ...
13380 * dll.h: ... this new file.
13381 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13382
6a6bbd9d
PA
133832013-09-05 Pedro Alves <palves@redhat.com>
13384
13385 * server.h (current_process, get_thread_process, all_processes)
13386 (add_inferior_to_list, for_each_inferior, current_inferior)
13387 (remove_inferior, add_process, remove_process, find_process_pid)
13388 (have_started_inferiors_p, have_attached_inferiors_p)
13389 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13390 (clear_inferiors, find_inferior, find_inferior_id)
13391 (inferior_target_data, set_inferior_target_data)
13392 (inferior_regcache_data, set_inferior_regcache_data): Move to
13393 inferiors.h, and include it.
13394 * inferiors.h: New file.
13395
f699aaba
PA
133962013-09-05 Pedro Alves <palves@redhat.com>
13397
13398 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13399 Move ...
72f4393d 13400 * ax.h: ... here.
f699aaba 13401
c144c7a0
PA
134022013-09-05 Pedro Alves <palves@redhat.com>
13403
13404 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13405 tracepoint.h.
13406 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13407 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13408 (handle_tracepoint_general_set, handle_tracepoint_query)
13409 (tracepoint_finished_step, tracepoint_was_hit)
13410 (release_while_stepping_state_list, current_traceframe)
13411 (in_readonly_region, traceframe_read_mem)
13412 (fetch_traceframe_registers, traceframe_read_sdata)
13413 (traceframe_read_info, struct fast_tpoint_collect_status)
13414 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13415 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13416 (supply_fast_tracepoint_registers)
13417 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13418 (ipa_tdesc, claim_trampoline_space)
13419 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13420 (agent_mem_read, agent_get_trace_state_variable_value)
13421 (agent_set_trace_state_variable_value, agent_tsv_read)
13422 (agent_mem_read_string, get_raw_reg_func_addr)
13423 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13424 * tracepoint.h: ... this new file.
13425
ff42e6ab
PA
134262013-09-05 Pedro Alves <palves@redhat.com>
13427
13428 * server.h (perror_with_name, error, fatal, warning, paddress)
13429 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13430 include it.
13431 * utils.h: New file.
13432
541af0f4
PA
134332013-09-05 Pedro Alves <palves@redhat.com>
13434
13435 * server.h (remote_debug, noack_mode, transport_is_reliable)
13436 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13437 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13438 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13439 (write_enn, initialize_async_io, enable_async_io)
13440 (disable_async_io, check_remote_input_interrupt_request)
13441 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13442 (dead_thread_notify, prepare_resume_reply)
13443 (decode_address_to_semicolon, decode_address, decode_m_packet)
13444 (decode_M_packet, decode_X_packet, decode_xfer_write)
13445 (decode_search_memory_packet, unhexify, hexify)
13446 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13447 (look_up_one_symbol, relocate_instruction)
13448 (monitor_output): Move to remote-utils.h, and include it.
13449 * remote-utils.h: New file.
13450
eebdf26b
PA
134512013-09-05 Pedro Alves <palves@redhat.com>
13452
13453 * server.h (_): Delete.
13454
3aafd2ff
PA
134552013-09-02 Pedro Alves <palves@redhat.com>
13456
13457 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13458 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13459 allocated.
13460 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13461
cee83bcb
PM
134622013-09-02 Pierre Muller <muller@sourceware.org>
13463
13464 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13465 or WriteProcessMemory complete successfully and handle
13466 ERROR_PARTIAL_COPY error.
13467
9a13b2fa
PA
134682013-09-02 Pedro Alves <palves@redhat.com>
13469
13470 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13471 error instead of EIO.
13472
602e3198
JK
134732013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13474
13475 PR server/15604
13476 * linux-low.c: Include filestuff.h.
13477 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13478 * lynx-low.c: Include filestuff.h.
13479 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13480 * server.c: Include filestuff.h.
13481 (main): Call notice_open_fds.
13482 * spu-low.c: Include filestuff.h.
13483 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13484
96d7229d
LM
134852013-08-22 Luis Machado <lgustavo@codesourcery.com>
13486
13487 * Makefile.in: Explain why ../target and ../nat are not
13488 listed as include file search paths.
13489 (linux-waitpid.o): New object file rule.
13490 * configure.srv (srv_native_linux_obj): New variable.
13491 Replace all occurrences of linux native object files with
13492 $srv_native_linux_obj.
13493 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13494 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13495 (linux_enable_event_reporting): Remove declaration.
13496 (my_waitpid): Moved to common/linux-waitpid.c.
13497 (linux_wait_for_event): Pass ptid when calling
13498 linux_enable_event_reporting.
13499 (linux_supports_tracefork_flag): Remove.
13500 (linux_enable_event_reporting): Likewise.
13501 (linux_tracefork_grandchild): Remove.
13502 (STACK_SIZE): Moved to common/linux-ptrace.c.
13503 (linux_tracefork_child): Remove.
13504 (linux_test_for_tracefork): Remove.
13505 (linux_look_up_symbols): Call linux_supports_traceclone.
13506 (initialize_low): Remove call to linux_test_for_tracefork.
13507 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13508 common/linux-ptrace.h.
13509 (PTRACE_TYPE_ARG4): Likewise.
13510 Include linux-ptrace.h.
13511
32940073
PA
135122013-08-21 Pedro Alves <palves@redhat.com>
13513
13514 * config.in: Renegerate.
13515
33b60d58 135162013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13517
33b60d58
LM
13518 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13519 (SFILES): Remove $(srcdir)/common/target-common.c and
13520 add $(srcdir)/target/waitstatus.c.
13521 (OBS): Remove target-common.o and add waitstatus.o.
13522 (server_h): Remove $(srcdir)/../common/target-common.h and
13523 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13524 and $(srcdir)/../target/waitstatus.h.
13525 (target-common.o): Remove.
13526 (waitstatus.o): New target object file.
13527 * target.h: Do not include target-common.h and
13528 include target/resume.h, target/wait.h and
13529 target/waitstatus.h.
13530
b8e1b30e
LM
135312013-08-13 Luis Machado <lgustavo@codesourcery.com>
13532
13533 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13534 to PTRACE_TYPE_ARG3.
13535 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13536 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13537 PTRACE_TYPE_ARG4.
13538 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13539 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13540
7a60ad40
YQ
135412013-07-27 Jie Zhang <jie@codesourcery.com>
13542 Daniel Jacobowitz <dan@codesourcery.com>
13543 Yao Qi <yao@codesourcery.com>
13544
13545 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13546 (mips-linux-watch.o): New rule.
13547 (mips_linux_watch_h): New variable.
13548 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13549 srv_tgtobj.
13550 * linux-mips-low.c: Include mips-linux-watch.h.
13551 (struct arch_process_info, struct arch_lwp_info): New.
13552 (update_watch_registers_callback): New function.
13553 (mips_linux_new_process, mips_linux_new_thread) New functions.
13554 (mips_linux_prepare_to_resume, mips_insert_point): New
13555 functions.
13556 (mips_remove_point, mips_stopped_by_watchpoint): New
13557 functions.
13558 (rsp_bp_type_to_target_hw_bp_type): New function.
13559 (mips_stopped_data_address): New function.
13560 (the_low_target): Add watchpoint support functions.
13561
de6f69ad
YQ
135622013-07-27 Yao Qi <yao@codesourcery.com>
13563
13564 * i386-low.c: Include break-common.h.
13565 (enum target_hw_bp_type): Remove.
13566
3360c0bf
LM
135672013-07-24 Luis Machado <lgustavo@codesourcery.com>
13568
13569 * Makefile.in (SFILES): /common/target-common.c.
13570 (OBS): Add target-common.o.
13571 (server_h): Add $(srcdir)/../common/target-common.h.
13572 (target-common.o): New target.
13573 * server.c (queue_stop_reply_callback): Free
13574 status string after use.
13575 * target.c (target_waitstatus_to_string): Remove.
13576 * target.h: Include target-common.h.
13577 (resume_kind): Likewise.
13578 (target_waitkind): Likewise.
13579 (target_waitstatus): Likewise.
13580 (TARGET_WNOHANG): Likewise.
13581
bd885420
YQ
135822013-07-04 Yao Qi <yao@codesourcery.com>
13583
13584 * Makefile.in (host_alias): Use @host_noncanonical@.
13585 (target_alias): Use @target_noncanonical@.
13586 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13587 ACX_NONCANONICAL_HOST.
13588 * configure: Regenerated.
13589
13590 Revert:
13591 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13592
13593 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13594 * configure: Rebuild.
13595 * Makefile.in (version_host, version_target): Get from configure.
13596 (version.c): Use $(version_host) and $(version_target).
13597
17ef446e
PA
135982013-07-03 Pedro Alves <palves@redhat.com>
13599
13600 * Makefile.in (config.status): Depend on development.sh.
13601 * acinclude.m4: Include libmcheck.m4.
13602 * configure: Regenerate.
13603
7a9a7487
MG
136042013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13605
13606 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13607 attribute inside the parentheses.
13608 (winapi_DebugSetProcessKillOnExit): Ditto.
13609 (winapi_DebugBreakProcess): Ditto.
13610 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13611
49b64de6
MG
136122013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13613
13614 * notif.h (notif_event): Add a dummy member to avoid compiler
13615 errors.
13616
d5749ee7
PA
136172013-07-01 Pedro Alves <palves@redhat.com>
13618
13619 * hostio.c (HOSTIO_PATH_MAX): Define.
13620 (require_filename, handle_open, handle_unlink, handle_readlink):
13621 Use it.
13622
d8d2a3ee
PA
136232013-07-01 Pedro Alves <palves@redhat.com>
13624
13625 * server.h: Include "pathmax.h".
13626 * linux-low.c: Don't include sys/param.h.
13627 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13628 MAXPATHLEN.
13629 * win32-low.c: Don't include sys/param.h.
13630 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13631
bc7dea8d
PA
136322013-07-01 Pedro Alves <palves@redhat.com>
13633
13634 * event-loop.c: Don't check HAVE_UNISTD_H before including
13635 <unistd.h>.
13636 * gdbreplay.c: Likewise.
13637 * remote-utils.c: Likewise.
13638 * server.c: Likewise.
13639 * configure.ac: Don't check for unistd.h.
13640 * configure: Regenerate.
13641
d6c2da54
TT
136422013-06-28 Tom Tromey <tromey@redhat.com>
13643
13644 * Makefile.in (version.c): Use version.in, not
13645 common/version.in.
13646
257b6bec
MG
136472013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13648
13649 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13650 * configure: Rebuild.
13651 * Makefile.in (version_host, version_target): Get from configure.
13652 (version.c): Use $(version_host) and $(version_target).
13653
86ebe149
DK
136542013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13655
13656 Fix trace-status to output user name without trailing colon.
13657 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13658
f30aa5af
DK
136592013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13660
13661 Fix trace-status to output proper start-time and stop-time.
13662 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13663 output start time and stop time in hex as gdb expects.
13664
28a93511
YQ
136652013-06-26 Pedro Alves <pedro@codesourcery.com>
13666
13667 * tracepoint.c (build_traceframe_info_xml): Output trace state
13668 variables present in the trace buffer.
13669
01208463
TT
136702013-06-24 Tom Tromey <tromey@redhat.com>
13671
13672 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13673 create-version.sh.
13674 (version.o): Remove.
13675 * gdbreplay.c: Include version.h.
13676 (version, host_name): Don't declare.
13677 * server.h: Include version.h.
13678 (version, host_name): Don't declare.
13679
760256f9
PA
136802013-06-12 Pedro Alves <palves@redhat.com>
13681
13682 * linux-x86-low.c (linux_is_elf64): Delete global.
13683 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13684 with local linux_pid_exe_is_elf_64_file use.
13685
030031ee
PA
136862013-06-11 Pedro Alves <palves@redhat.com>
13687
13688 * linux-low.c (regset_disabled, disable_regset): New functions.
13689 (regsets_fetch_inferior_registers)
13690 (regsets_store_inferior_registers): Use them.
13691 (initialize_regsets_info); Don't allocate the disabled_regsets
13692 array here.
13693 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13694 comment.
13695
5da6eb0a
PA
136962013-06-11 Pedro Alves <palves@redhat.com>
13697
13698 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13699 xmalloc.
13700
7e5aaa09
PA
137012013-06-11 Pedro Alves <palves@redhat.com>
13702
13703 * linux-x86-low.c (initialize_low_arch): Call
13704 init_registers_x32_avx_linux.
13705
d878444c
JK
137062013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13707
13708 Fix compatibility with Android Bionic.
13709 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13710 it is not empty.
13711
3aee8918
PA
137122013-06-07 Pedro Alves <palves@redhat.com>
13713
5f2b57b5 13714 PR server/14823
3aee8918
PA
13715 * Makefile.in (OBS): Add tdesc.o.
13716 (IPA_OBJS): Add tdesc-ipa.o.
13717 (tdesc-ipa.o): New rule.
13718 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13719 interface.
13720 * linux-low.c (new_inferior): Delete.
13721 (disabled_regsets, num_regsets): Delete.
13722 (linux_add_process): Adjust to set the new per-process
13723 new_inferior flag.
13724 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13725 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13726 was a stop. When calling arch_setup, switch the current inferior
13727 to the thread that got an event.
13728 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13729 (regsets_fetch_inferior_registers)
13730 (regsets_store_inferior_registers): New regsets_info parameter.
13731 Adjust to use it.
13732 (linux_register_in_regsets): New regs_info parameter. Adjust to
13733 use it.
13734 (register_addr, fetch_register, store_register): New usrregs_info
13735 parameter. Adjust to use it.
13736 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13737 parameter regs_info. Adjust to use it.
13738 (linux_fetch_registers): Get the current inferior's regs_info, and
13739 adjust to use it.
13740 (linux_store_registers): Ditto.
13741 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13742 (initialize_low): Don't initialize the target_regsets here. Call
13743 initialize_low_arch.
13744 * linux-low.h (target_regsets): Delete declaration.
13745 (struct regsets_info): New.
13746 (struct usrregs_info): New.
13747 (struct regs_info): New.
13748 (struct process_info_private) <new_inferior>: New field.
13749 (struct linux_target_ops): Delete the num_regs, regmap, and
13750 regset_bitmap fields. New field regs_info.
13751 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13752 * i387-fp.c (num_xmm_registers): Delete.
13753 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13754 calls to new interface.
13755 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13756 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13757 Infer the number of xmm registers from the regcache's target
13758 description.
13759 * i387-fp.h (num_xmm_registers): Delete.
13760 * inferiors.c (add_thread): Don't install the thread's regcache
13761 here.
13762 * proc-service.c (gregset_info): Fetch the current inferior's
13763 regs_info. Adjust to use it.
13764 * regcache.c: Include tdesc.h.
13765 (register_bytes, reg_defs, num_registers)
13766 (gdbserver_expedite_regs): Delete.
13767 (get_thread_regcache): If the thread doesn't have a regcache yet,
13768 create one, instead of aborting gdbserver.
13769 (regcache_invalidate_one): Rename to ...
13770 (regcache_invalidate_thread): ... this.
13771 (regcache_invalidate_one): New.
13772 (regcache_invalidate): Only invalidate registers of the current
13773 process.
13774 (init_register_cache): Add target_desc parameter, and use it.
13775 (new_register_cache): Ditto. Assert the target description has a
13776 non zero registers_size.
13777 (regcache_cpy): Add assertions. Adjust.
13778 (realloc_register_cache, set_register_cache): Delete.
13779 (registers_to_string, registers_from_string): Adjust.
13780 (find_register_by_name, find_regno, find_register_by_number)
13781 (register_cache_size): Add target_desc parameter, and use it.
13782 (free_register_cache_thread, free_register_cache_thread_one)
13783 (regcache_release, register_cache_size): New.
13784 (register_size): Add target_desc parameter, and use it.
13785 (register_data, supply_register, supply_register_zeroed)
13786 (supply_regblock, supply_register_by_name, collect_register)
13787 (collect_register_as_string, collect_register_by_name): Adjust.
13788 * regcache.h (struct target_desc): Forward declare.
13789 (struct regcache) <tdesc>: New field.
13790 (init_register_cache, new_register_cache): Add target_desc
13791 parameter.
13792 (regcache_invalidate_thread): Declare.
13793 (regcache_invalidate_one): Delete declaration.
13794 (regcache_release): Declare.
13795 (find_register_by_number, register_cache_size, register_size)
13796 (find_regno): Add target_desc parameter.
13797 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13798 declarations.
13799 * remote-utils.c: Include tdesc.h.
13800 (outreg, prepare_resume_reply): Adjust.
13801 * server.c: Include tdesc.h.
13802 (gdbserver_xmltarget): Delete declaration.
13803 (get_features_xml, process_serial_event): Adjust.
13804 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13805 declare.
13806 (struct process_info) <tdesc>: New field.
13807 (ipa_tdesc): Declare.
13808 * tdesc.c: New file.
13809 * tdesc.h: New file.
13810 * tracepoint.c: Include tdesc.h.
13811 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13812 (get_context_regcache): Adjust to pass ipa_tdesc down.
13813 (do_action_at_tracepoint): Adjust to get the register cache size
13814 from the context regcache's description.
13815 (traceframe_walk_blocks): Adjust to get the register cache size
13816 from the current trace frame's description.
13817 (traceframe_get_pc): Adjust to get current trace frame's
13818 description and pass it down.
13819 (gdb_collect): Adjust to get the register cache size from the
13820 IPA's description.
13821 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13822 (gdbserver_xmltarget): Delete.
13823 (initialize_low_tracepoint): Set the ipa's target description.
13824 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13825 (initialize_low_tracepoint): Set the ipa's target description.
13826 * linux-x86-low.c: Include tdesc.h.
13827 [__x86_64__] (is_64bit_tdesc): New.
13828 (ps_get_thread_area, x86_get_thread_area): Use it.
13829 (i386_cannot_store_register): Rename to ...
13830 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13831 (i386_cannot_fetch_register): Rename to ...
13832 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13833 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13834 to new interface.
13835 (target_regsets): Rename to ...
13836 (x86_regsets): ... this.
13837 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13838 interface.
13839 (x86_siginfo_fixup): Use is_64bit_tdesc.
13840 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13841 (tdesc_x32_avx_linux, tdesc_x32_linux)
13842 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13843 Declare.
13844 (x86_linux_update_xmltarget): Delete.
13845 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13846 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13847 (AMD64_LINUX_USER64_CS): New.
13848 (x86_linux_read_description): New, based on
13849 x86_linux_update_xmltarget.
13850 (same_process_callback): New.
13851 (x86_arch_setup_process_callback): New.
13852 (x86_linux_update_xmltarget): New.
13853 (x86_regsets_info): New.
13854 (amd64_linux_regs_info): New.
13855 (i386_linux_usrregs_info): New.
13856 (i386_linux_regs_info): New.
13857 (x86_linux_regs_info): New.
13858 (x86_arch_setup): Reimplement.
13859 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13860 (x86_emit_ops): Ditto.
13861 (the_low_target): Adjust. Install x86_linux_regs_info,
13862 x86_cannot_fetch_register, and x86_cannot_store_register.
13863 (initialize_low_arch): New.
13864 * linux-ia64-low.c (tdesc_ia64): Declare.
13865 (ia64_fetch_register): Adjust.
13866 (ia64_usrregs_info, regs_info): New globals.
13867 (ia64_regs_info): New function.
13868 (the_low_target): Adjust.
13869 (initialize_low_arch): New function.
13870 * linux-sparc-low.c (tdesc_sparc64): Declare.
13871 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13872 Adjust.
13873 (sparc_arch_setup): New function.
13874 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13875 (the_low_target): Adjust.
13876 (initialize_low_arch): New function.
13877 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13878 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13879 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13880 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13881 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13882 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13883 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13884 (tdesc_powerpc_isa205_vsx64l): Declare.
13885 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13886 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13887 (ppc_set_pc, ppc_get_hwcap): Adjust.
13888 (ppc_usrregs_info): Forward declare.
13889 (!__powerpc64__) ppc_regmap_adjusted: New global.
13890 (ppc_arch_setup): Adjust to the current process'es target
13891 description.
13892 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13893 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13894 (ppc_store_evrregset): Adjust.
13895 (target_regsets): Rename to ...
13896 (ppc_regsets): ... this, and make static.
13897 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13898 (ppc_regs_info): New function.
13899 (the_low_target): Adjust.
13900 (initialize_low_arch): New function.
13901 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13902 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13903 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13904 (tdesc_s390x_linux64v2): Declare.
13905 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13906 (s390_fill_gregset, s390_store_last_break): Adjust.
13907 (target_regsets): Rename to ...
13908 (s390_regsets): ... this, and make static.
13909 (s390_get_pc, s390_set_pc): Adjust.
13910 (s390_get_hwcap): New target_desc parameter, and use it.
13911 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13912 (s390_arch_setup): Adjust to set the current process'es target
13913 description. Don't adjust the regmap.
13914 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13915 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13916 (regs_info_3264): New globals.
13917 (s390_regs_info): New function.
13918 (the_low_target): Adjust.
13919 (initialize_low_arch): New function.
13920 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13921 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13922 [__mips64] (init_registers_mips_linux)
13923 (init_registers_mips_dsp_linux): Delete defines.
13924 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13925 (have_dsp): New global.
13926 (mips_read_description): New, based on mips_arch_setup.
13927 (mips_arch_setup): Reimplement.
13928 (get_usrregs_info): New function.
13929 (mips_cannot_fetch_register, mips_cannot_store_register)
13930 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13931 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13932 (target_regsets): Rename to ...
13933 (mips_regsets): ... this, and make static.
13934 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13935 (dsp_regs_info, regs_info): New globals.
13936 (mips_regs_info): New function.
13937 (the_low_target): Adjust.
13938 (initialize_low_arch): New function.
13939 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13940 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13941 Declare.
13942 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13943 (arm_read_description): New, with bits factored from
13944 arm_arch_setup.
13945 (arm_arch_setup): Reimplement.
13946 (target_regsets): Rename to ...
13947 (arm_regsets): ... this, and make static.
13948 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13949 (arm_regs_info): New function.
13950 (the_low_target): Adjust.
13951 (initialize_low_arch): New function.
13952 * linux-m68k-low.c (tdesc_m68k): Declare.
13953 (target_regsets): Rename to ...
13954 (m68k_regsets): ... this, and make static.
13955 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13956 (m68k_regs_info): New function.
13957 (m68k_arch_setup): New function.
13958 (the_low_target): Adjust.
13959 (initialize_low_arch): New function.
13960 * linux-sh-low.c (tdesc_sharch): Declare.
13961 (target_regsets): Rename to ...
13962 (sh_regsets): ... this, and make static.
13963 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13964 (sh_regs_info, sh_arch_setup): New functions.
13965 (the_low_target): Adjust.
13966 (initialize_low_arch): New function.
13967 * linux-bfin-low.c (tdesc_bfin): Declare.
13968 (bfin_arch_setup): New function.
13969 (bfin_usrregs_info, regs_info): New globals.
13970 (bfin_regs_info): New function.
13971 (the_low_target): Adjust.
13972 (initialize_low_arch): New function.
13973 * linux-cris-low.c (tdesc_cris): Declare.
13974 (cris_arch_setup): New function.
13975 (cris_usrregs_info, regs_info): New globals.
13976 (cris_regs_info): New function.
13977 (the_low_target): Adjust.
13978 (initialize_low_arch): New function.
13979 * linux-cris-low.c (tdesc_crisv32): Declare.
13980 (cris_arch_setup): New function.
13981 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13982 (cris_regs_info): New function.
13983 (the_low_target): Adjust.
13984 (initialize_low_arch): New function.
13985 * linux-m32r-low.c (tdesc_m32r): Declare.
13986 (m32r_arch_setup): New function.
13987 (m32r_usrregs_info, regs_info): New globals.
13988 (m32r_regs_info): Adjust.
13989 (initialize_low_arch): New function.
13990 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13991 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13992 (tic6x_usrregs_info): Forward declare.
13993 (tic6x_read_description): New function, based on ...
13994 (tic6x_arch_setup): ... this. Reimplement.
13995 (target_regsets): Rename to ...
13996 (tic6x_regsets): ... this, and make static.
13997 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13998 (tic6x_regs_info): New function.
13999 (the_low_target): Adjust.
14000 (initialize_low_arch): New function.
14001 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14002 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14003 (target_regsets): Rename to ...
14004 (xtensa_regsets): ... this, and make static.
14005 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14006 globals.
14007 (xtensa_arch_setup, xtensa_regs_info): New functions.
14008 (the_low_target): Adjust.
14009 (initialize_low_arch): New function.
14010 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14011 (nios2_arch_setup): Set the current process'es tdesc.
14012 (target_regsets): Rename to ...
14013 (nios2_regsets): ... this.
14014 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14015 (nios2_regs_info): New function.
14016 (the_low_target): Adjust.
14017 (initialize_low_arch): New function.
a261b8f5
PA
14018 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14019 (aarch64_arch_setup): Set the current process'es tdesc.
14020 (target_regsets): Rename to ...
14021 (aarch64_regsets): ... this.
14022 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14023 (aarch64_regs_info): New function.
14024 (the_low_target): Adjust.
14025 (initialize_low_arch): New function.
3aee8918
PA
14026 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14027 globals.
14028 (target_regsets): Rename to ...
14029 (tile_regsets): ... this.
14030 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14031 (tile_regs_info): New function.
14032 (tile_arch_setup): Set the current process'es tdesc.
14033 (the_low_target): Adjust.
14034 (initialize_low_arch): New function.
14035 * spu-low.c (tdesc_spu): Declare.
14036 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14037 * win32-arm-low.c (tdesc_arm): Declare.
14038 (arm_arch_setup): New function.
14039 (the_low_target): Install arm_arch_setup instead of
14040 init_registers_arm.
14041 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14042 (init_windows_x86): Rename to ...
14043 (i386_arch_setup): ... this. Set `win32_tdesc'.
14044 (the_low_target): Adjust.
14045 * win32-low.c (win32_tdesc): New global.
14046 (child_add_thread): Don't create the thread cache here.
14047 (do_initial_child_stuff): Set the new process'es tdesc.
14048 * win32-low.h (struct target_desc): Forward declare.
14049 (win32_tdesc): Declare.
14050 * lynx-i386-low.c (tdesc_i386): Declare global.
14051 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14052 * lynx-low.c (lynx_tdesc): New global.
14053 (lynx_add_process): Set the new process'es tdesc.
14054 * lynx-low.h (struct target_desc): Forward declare.
14055 (lynx_tdesc): Declare global.
14056 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14057 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14058 * nto-low.c (nto_tdesc): New global.
14059 (do_attach): Set the new process'es tdesc.
14060 * nto-low.h (struct target_desc): Forward declare.
14061 (nto_tdesc): Declare.
14062 * nto-x86-low.c (tdesc_i386): Declare.
14063 (nto_x86_arch_setup): Set `nto_tdesc'.
14064
b1fbec62
GB
140652013-06-04 Gary Benson <gbenson@redhat.com>
14066
14067 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14068 to qSupported response when appropriate.
14069 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14070 with nonzero-length annex.
14071 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14072 arguments supplied in annex.
14073
d1ec4ce7
DE
140742013-05-31 Doug Evans <dje@google.com>
14075
ac44adcb 14076 PR server/15594
d1ec4ce7
DE
14077 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14078 64 bits in 64-cross-32 environment.
14079
9b25f2d3
PA
140802013-05-28 Pedro Alves <palves@redhat.com>
14081
14082 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14083 (aarch64-without-fpu.c): Delete rule.
14084 * configure.srv (aarch64*-*-linux*): Remove references to
14085 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14086 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14087 declaration.
14088
6740dc9c
PA
140892013-05-24 Pedro Alves <palves@redhat.com>
14090
14091 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14092 instead of strchr/decode_address. Error if the range isn't split
14093 with a ','. Don't assume there's be a ':' in the action.
14094
c2d6af84
PA
140952013-05-23 Yao Qi <yao@codesourcery.com>
14096 Pedro Alves <palves@redhat.com>
14097
14098 * linux-low.c (lwp_in_step_range): New function.
14099 (linux_wait_1): If the thread was range stepping and stopped
14100 outside the stepping range, report the stop to GDB. Otherwise,
14101 continue stepping. Add range stepping debug output.
14102 (linux_set_resume_request): Copy the step range from the resume
14103 request to the lwp.
14104 (linux_supports_range_stepping): New.
14105 (linux_target_ops) <supports_range_stepping>: Set to
14106 linux_supports_range_stepping.
14107 * linux-low.h (struct linux_target_ops)
14108 <supports_range_stepping>: New field.
14109 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14110 * linux-x86-low.c (x86_supports_range_stepping): New.
14111 (the_low_target) <supports_range_stepping>: Set to
14112 x86_supports_range_stepping.
14113 * server.c (handle_v_cont): Handle 'r' action.
14114 (handle_v_requests): Append ";r" if the target supports range
14115 stepping.
14116 * target.h (struct thread_resume) <step_range_start,
14117 step_range_end>: New fields.
14118 (struct target_ops) <supports_range_stepping>:
14119 New field.
14120 (target_supports_range_stepping): New macro.
14121
58794e1a
JB
141222013-05-17 Joel Brobecker <brobecker@adacore.com>
14123
14124 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14125 confusion in comment.
14126
d631c5a7
JB
141272013-05-17 Joel Brobecker <brobecker@adacore.com>
14128
14129 * lynx-low.c (struct process_info_private): New type.
14130 (lynx_add_process): New function.
14131 (lynx_create_inferior, lynx_attach): Replace calls to
14132 add_process by calls to lynx_add_process.
14133 (lynx_resume): If PTID is null, then try using
14134 current_process()->private->last_wait_event_ptid.
14135 Add comments.
14136 (lynx_clear_inferiors): Delete. The contents of that function
14137 has been inlined in lynx_mourn;
14138 (lynx_wait_1): Save the ptid in the process's private data.
14139 (lynx_mourn): Free the process' private data. Replace call
14140 to lynx_clear_inferiors by call to clear_inferiors.
14141
96f7a20f
YQ
141422013-05-17 Yao Qi <yao@codesourcery.com>
14143
14144 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14145 the right place.
14146
db0dfaa0
LM
141472013-05-16 Luis Machado <lgustavo@codesourcery.com>
14148
14149 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14150 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14151 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14152 PT_TEXT_END_ADDR guards. Update comments.
14153 (linux_target_op) <read_offsets>: Conditionally define to
14154 linux_read_offsets if the target is UCLIBC and if it defines
14155 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14156
68f5f838
SL
141572013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14158 Andrew Jenner <andrew@codesourcery.com>
14159
14160 * Makefile.in (SFILES): Add linux-nios2-low.c.
14161 (clean): Add action to delete nios2-linux.c.
14162 (nios2-linux.c): New rule.
14163 * configure.srv: Add nios2*-*-linux*.
14164 * linux-nios2-low.c: New.
14165
1ebff1fd
HAQ
141662013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14167
14168 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14169
f6150862
HZ
141702013-04-25 Hui Zhu <hui@codesourcery.com>
14171
14172 PR gdb/15186
f6150862
HZ
14173 * ax.c (ax_printf): Add fflush.
14174
614c279d
TT
141752013-04-22 Tom Tromey <tromey@redhat.com>
14176
14177 * Makefile.in (SFILES): Add filestuff.c.
14178 (OBS): Add filestuff.o.
14179 (filestuff.o): New target.
14180 * config.in, configure: Rebuild.
14181 * configure.ac: Check for fdwalk, pipe2.
14182
7d4e5717
PA
141832013-04-17 Pedro Alves <palves@redhat.com>
14184
14185 * configure.ac (USE_THREAD_DB): Delete variable.
14186 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14187 Don't AC_SUBST USE_THREAD_DB.
14188 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14189 * config.in, configure: Regenerate.
14190
d5c93e41
PA
141912013-04-16 Pedro Alves <palves@redhat.com>
14192
14193 * linux-low.h (struct lwp_info) <thread_known>: Move under
14194 the USE_THREAD_DB #ifdef.
14195
04f5fe89
PA
141962013-04-16 Pedro Alves <palves@redhat.com>
14197
14198 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14199 (linux-low.o): Delete rule.
14200 * linux-low.h: Always include "gdb_thread_db.h" instead of
14201 conditionally including thread_db.h.
14202 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14203 HAVE_THREAD_DB_H.
14204
480b27bf
JK
142052013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14206
14207 * Makefile.in (install-only): Fix make install regression.
14208
43662968
JK
142092013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14210
14211 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14212 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14213 installation.
14214 * gdbserver.1: Remove.
14215
3e74e146
PA
142162013-03-22 Pedro Alves <palves@redhat.com>
14217
14218 * linux-low.c (handle_extended_wait): Don't call
14219 linux_enable_event_reporting.
14220
a8347a2a
TT
142212013-03-15 Tony Theodore <tonyt@logyst.com>
14222
14223 PR build/9098:
14224 * Makefile.in (SHELL): Use @SHELL@.
14225
eeb56fa7
SDJ
142262013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14227
14228 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14229 compiler warning.
14230
4fa7e2ff
JB
142312013-03-13 Joel Brobecker <brobecker@adacore.com>
14232
14233 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14234 Remove extraneous NULL element.
14235
8ddb1965
YQ
142362013-03-13 Yao Qi <yao@codesourcery.com>
14237
14238 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14239 'V' block in trace frame.
14240
9accd112
MM
142412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14242
14243 * target.h (struct target_ops): Add btrace ops.
14244 (target_supports_btrace): New macro.
14245 (target_enable_btrace): New macro.
14246 (target_disable_btrace): New macro.
14247 (target_read_btrace): New macro.
14248 * gdbthread.h (struct thread_info): Add btrace field.
14249 * server.c: Include btrace-common.h.
14250 (handle_btrace_general_set): New function.
14251 (handle_btrace_enable): New function.
14252 (handle_btrace_disable): New function.
14253 (handle_general_set): Call handle_btrace_general_set.
14254 (handle_qxfer_btrace): New function.
14255 (struct qxfer qxfer_packets[]): Add btrace entry.
14256 * inferiors.c (remove_thread): Disable btrace.
14257 * linux-low: Include linux-btrace.h.
14258 (linux_low_enable_btrace): New function.
14259 (linux_low_read_btrace): New function.
14260 (linux_target_ops): Add btrace ops.
14261 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14262 Add srv_linux_btrace=yes.
14263 (x86_64-*-linux*): Add linux-btrace.o.
14264 Add srv_linux_btrace=yes.
14265 * configure.ac: Define HAVE_LINUX_BTRACE.
14266 * config.in: Regenerated.
14267 * configure: Regenerated.
14268
5cc22e4c
MM
142692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14270
14271 * server.c (handle_qxfer): Preserve error message if -3 is
14272 returned.
14273 (qxfer): Document the -3 return value.
14274
7c97f91e
MM
142752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14276
14277 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14278 (linux_btrace_h): New variable.
14279 (linux-btrace.o): New rule.
14280
be9a119c 142812013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14282 Hafiz Abid Qadeer <abidh@codesourcery.com>
14283
14284 * tracepoint.c (trace_buffer_size): New global.
14285 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14286 (init_trace_buffer): Change to one-argument function. Allocate
14287 trace buffer memory.
14288 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14289 handle QTBuffer:size packet.
14290 (cmd_bigqtbuffer_size): New function.
14291 (initialize_tracepoint): Call init_trace_buffer with
14292 DEFAULT_TRACE_BUFFER_SIZE.
14293 * server.c (handle_query): Add QTBuffer:size in the
14294 supported packets.
14295
e64f7499
YQ
142962013-03-07 Yao Qi <yao@codesourcery.com>
14297
14298 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14299 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14300 of -1.
14301 (cmd_qtsp): Adjust condition. Do post increment.
14302 Set cur_action and cur_step_action back to 0.
14303
f0ae6fc3
PA
143042013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14305
14306 PR server/15236
14307 * linux-low.c (linux_write_memory): Return early success if LEN is
14308 zero.
14309
b5b0b0af
CV
143102013-03-05 Corinna Vinschen <vinschen@redhat.de>
14311
334ad4a8 14312 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14313
589bc927
TT
143142013-02-28 Tom Tromey <tromey@redhat.com>
14315
14316 * configure.ac: Invoke AC_SYS_LARGEFILE.
14317 * configure, config.in: Rebuild.
14318
dfe07582
CV
143192013-02-28 Corinna Vinschen <vinschen@redhat.com>
14320
14321 * win32-low.c: Throughout, fix format strings and casts of
14322 printf-like functions to avoid type related warnings on all
14323 platforms.
14324 (get_child_debug_event): Print dwDebugEventCode as hex since
14325 that's how it's usually documented.
14326
736cd585
YQ
143272013-02-28 Yao Qi <yao@codesourcery.com>
14328
14329 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14330 pulongest.
14331
e1f58301
JW
143322013-02-27 Jiong Wang <jiwang@tilera.com>
14333
14334 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14335 (reg-tilegx32.c): New rule.
14336 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14337 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14338 different register info initializer according to elf class.
14339 (init_registers_tilgx32): New function. The tilegx32 register info
14340 initializer.
14341 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14342 (tile_store_gregset): Likewise.
14343
d171ca78
YQ
143442013-02-27 Yao Qi <yao@codesourcery.com>
14345
14346 * server.c (process_point_options): Print debug message when
14347 debug_threads is true.
14348
282bbdf3
YQ
143492013-02-26 Yao Qi <yao@codesourcery.com>
14350
14351 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14352
aca22551
PA
143532013-02-19 Pedro Alves <palves@redhat.com>
14354 Kai Tietz <ktietz@redhat.com>
14355
14356 PR gdb/15161
14357
14358 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14359 instead of strtoul to extract address from packet.
14360 (process_serial_event) <'z'>: Likewise.
14361
4f3cee1c
YQ
143622013-02-18 Yao Qi <yao@codesourcery.com>
14363
14364 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14365
8e1d55a3
PA
143662013-02-14 Pedro Alves <palves@redhat.com>
14367
14368 Plug memory leak.
14369
14370 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14371 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14372
458820da
PA
143732013-02-14 Pedro Alves <palves@redhat.com>
14374
14375 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14376
baea0dae
PA
143772013-02-14 Pedro Alves <palves@redhat.com>
14378
14379 * tracepoint.c (save_string): Delete.
14380 (add_tracepoint_action): Use savestring instead of save_string.
14381
0b1afbb3
PA
143822013-02-12 Pedro Alves <palves@redhat.com>
14383
14384 * linux-xtensa-low.c: Ditto.
14385 * xtensa-xtregs.c: Ditto.
14386
8a4ac37e
PA
143872013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14388
14389 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14390 thread_db.
14391
148de6bb
MS
143922013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14393
14394 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14395 aarch64_num_wp_regs and aarch64_num_bp_regs to
14396 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14397
55fac6e0
MS
143982013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14399
14400 * linux-aarch64-low.c (ps_get_thread_area): Replace
14401 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14402
176eb98c
MS
144032013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14404 Marcus Shawcroft <marcus.shawcroft@arm.com>
14405 Nigel Stephens <nigel.stephens@arm.com>
14406 Yufeng Zhang <yufeng.zhang@arm.com>
14407
14408 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14409 (aarch64.c, aarch64-without-fpu.c): New targets.
14410 * configure.srv (aarch64*-*-linux*): New.
14411 * linux-aarch64-low.c: New file.
14412
56f7af9c
MS
144132013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14414
43aaf8b6 14415 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14416 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14417 (dequeue_one_deferred_signal, linux_resume_one_thread)
14418 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14419 (linux_tracefork_grandchild, linux_test_for_tracefork)
14420 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14421 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14422 where the argument is 0.
14423
60f662b0
YQ
144242013-01-25 Yao Qi <yao@codesourcery.com>
14425
14426 * event-loop.c: Include "queue.h".
14427 (gdb_event_p): New typedef.
14428 (struct gdb_event) <next_event>: Remove.
14429 (event_queue): Change to QUEUE(gdb_event_p).
14430 (async_queue_event): Remove.
14431 (gdb_event_xfree): New.
14432 (initialize_event_loop): New.
14433 (process_event): Use API from QUEUE.
14434 (wait_for_event): Likewise.
14435 * server.c (main): Call initialize_event_loop.
14436 * server.h (initialize_event_loop): Declare.
14437
5ae4861a
YQ
144382013-01-18 Yao Qi <yao@codesourcery.com>
14439
14440 * ax.h (struct eval_agent_expr_context): New.
14441 (gdb_eval_agent_expr): Update declaration.
14442 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14443 TFRAME. Add new argument CTX.
14444 * server.h (struct eval_agent_expr_context): Declare.
14445 (agent_mem_read, agent_tsv_read): Update declaration.
14446 (agent_mem_read_string): Likewise.
14447 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14448 (add_traceframe_block): Add new argument TPOINT.
14449 Increase TPOINT->traceframe_usage.
14450 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14451 eval_tracepoint_agent_expr.
14452 (condition_true_at_tracepoint): Likewise.
14453 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14454 (agent_mem_read_string, agent_tsv_read): Likewise.
14455
85e00e85
YQ
144562013-01-16 Yao Qi <yao@codesourcery.com>
14457
14458 * linux-low.c (linux_resume_one_lwp): Don't check
14459 'lwp->bp_reinsert != 0'.
14460
4039cf45
JB
144612013-01-07 Joel Brobecker <brobecker@adacore.com>
14462 Pedro Alves <palves@redhat.com>
14463
14464 * lynx-low.c (ptrace_request_to_str): Define a temporary
14465 macro and use it to simplify this function's implementation.
14466
9044dee2
JB
144672013-01-07 Joel Brobecker <brobecker@adacore.com>
14468
14469 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14470 sets errno.
14471
e6352c8f
JB
144722013-01-07 Joel Brobecker <brobecker@adacore.com>
14473
14474 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14475
50681a27
JB
144762013-01-07 Joel Brobecker <brobecker@adacore.com>
14477
14478 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14479
3f6e77ef
JB
144802013-01-07 Joel Brobecker <brobecker@adacore.com>
14481
14482 * lynx-low.c (lynx_resume): Use the resume_info parameter
14483 to determine the ptid for the lynx_ptrace call, unless
14484 it is equal to minus_one_ptid, in which case we use the
14485 ptid of the current_inferior.
14486 (lynx_wait_1): After having received a thread create/exit
14487 event, resume the inferior's execution using the signaling
14488 thread's ptid, rather than the old ptid.
14489
7fda33ae
JB
144902013-01-07 Joel Brobecker <brobecker@adacore.com>
14491
14492 * lynx-low.c (lynx_resume): Delete variable ret.
14493
b9786c74
JB
144942013-01-01 Joel Brobecker <brobecker@adacore.com>
14495
14496 * gdbreplay.c (gdbreplay_version): Update copyright year.
14497 * server.c (gdbserver_version): Likewise.
14498
8b93d60f
JB
144992012-12-17 Joel Brobecker <brobecker@adacore.com>
14500
14501 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14502 new thread.
14503
037335a7
JB
145042012-12-17 Joel Brobecker <brobecker@adacore.com>
14505
14506 * lynx-low.c (ptrace_request_to_str): Add handling for
14507 PTRACE_GETTRACESIG.
14508
52d4cbd8
JB
145092012-12-17 Joel Brobecker <brobecker@adacore.com>
14510
14511 * lynx-low.c (lynx_attach): Delete variable new_process.
14512
ab8f6ca9
JB
145132012-12-17 Joel Brobecker <brobecker@adacore.com>
14514
14515 * lynx-low.c (lynx_create_inferior): Delete variable
14516 new_process.
14517
78cbc024
JB
145182012-12-17 Joel Brobecker <brobecker@adacore.com>
14519
14520 * lynx-low.c (ptrace_request_to_str): Do not handle
14521 PTRACE_GETTHREADLIST if this macro does not exist.
14522
14a00470
YQ
145232012-12-15 Yao Qi <yao@codesourcery.com>
14524
14525 * Makefile.in (OBS): Add notif.o.
14526 * notif.c, notif.h: New.
14527 * server.c: Include "notif.h".
14528 (struct vstop_notif) <next>: Remove.
14529 <base>: New field.
14530 (queue_stop_reply): Update.
14531 (push_event, send_next_stop_reply): Remove.
14532 (discard_queued_stop_replies): Update.
14533 (notif_stop): New variable.
14534 (handle_v_stopped): Remove.
14535 (handle_v_requests): Don't call handle_v_stopped. Call
14536 handle_ack_notif instead.
14537 (queue_stop_reply_callback): Call notif_event_enque instead
14538 of queue_stop_reply.
14539 (handle_status): Don't call send_next_stop_reply, call
14540 notif_write_event instead.
14541 (kill_inferior_callback): Likewise.
14542 (detach_or_kill_inferior_callback): Likewise.
14543 (main): Call initialize_notif.
14544 (process_serial_event): Call QUEUE_is_empty.
14545 (handle_target_event): Call notif_push instead of push event.
14546 * server.h (push_event): Remove declaration.
14547
61c125b9
TT
145482012-12-10 Tom Tromey <tromey@redhat.com>
14549
14550 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14551 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14552 macros.
14553 (.c.o): Rewrite.
14554 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14555 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14556 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14557 (amd64-linux-ipa.o, ax.o): Rewrite.
14558 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14559 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14560 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14561 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14562 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14563 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14564 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14565 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14566 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14567 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14568 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14569 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14570 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14571 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14572 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14573 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14574 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14575 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14576 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14577 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14578 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14579 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14580 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14581 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14582 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14583 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14584 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14585 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14586 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14587 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14588 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14589 (reg-tilegx.o): Remove.
14590 (all_object_files): New macro.
14591 Include .deps files.
14592 * aclocal.m4, configure: Rebuild.
14593 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14594 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14595 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14596
e90e9ad9
TT
145972012-12-05 Tom Tromey <tromey@redhat.com>
14598
14599 PR gdb/14917:
14600 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14601
02d403bf 146022012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14603
14604 * configure.ac: Check for linux/perf_event.h.
14605 * config.in: Regenerated.
14606 * configure: Regenerated.
14607
0270a750
PA
146082012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14609
14610 * hostio.c (handle_readlink): Decrease buffer size
14611 parameter passed to readlink by one byte.
14612
8c29b58e
YQ
146132012-11-26 Yao Qi <yao@codesourcery.com>
14614
14615 * configure.ac (build_warnings): Append '-Wempty-body'.
14616 * configure: Regenerated.
14617 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14618 body.
14619
8bdce1ff
PM
146202012-11-15 Pierre Muller <muller@sourceware.org>
14621
14622 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14623 * config.in: Regenerate.
14624 * configure: Regenerate.
14625 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14626 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14627 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14628 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14629 header.
14630 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14631 instead of <sys/wait.h> header.
14632 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14633
02d403bf 146342012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14635
14636 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14637 (various make rules): Remove -DGDBSERVER
14638
fbd5db48
YQ
146392012-11-09 Yao Qi <yao@codesourcery.com>
14640
14641 * spu-low.c (current_ptid): Move it to ..
14642 * gdbthread.h: ... here. New.
14643 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14644 * server.c (myresume, process_serial_event): Likewise.
14645 * thread-db.c (thread_db_find_new_threads): Likewise.
14646 * tracepoint.c (run_inferior_command): Likewise.
14647
b3dc46ff
AB
146482012-10-01 Andrew Burgess <aburgess@broadcom.com>
14649
14650 * server.c (handle_search_memory_1): Include access length in
14651 warning message.
14652
07c04788
HPN
146532012-09-05 Michael Brandt <michael.brandt@axis.com>
14654
14655 * linux-crisv32-low.c: Fix compile errors.
14656
918d227b
YQ
146572012-09-04 Yao Qi <yao@codesourcery.com>
14658
14659 * tracepoint.c (cmd_qtsv): Adjust debug message.
14660 Don't check CUR_TPOINT.
14661
18c1b81a
YQ
146622012-08-28 Yao Qi <yao@codesourcery.com>
14663
14664 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14665 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14666 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14667 Remove declarations of xmalloc, xreallloc, xstrdup and
14668 freeargv.
14669 * Makefile.in (libiberty_h): New.
14670 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14671 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14672
dc82f37b
YQ
146732012-08-23 Yao Qi <yao@codesourcery.com>
14674
14675 * server.h: Remove declaration of 'xsnprintf'.
14676
406b1477
KS
146772012-08-22 Keith Seitz <keiths@redhat.com>
14678
14679 * server.h: Include build-gnulib-gbserver/config.h.
14680 * gdbreplay.c: Likewise.
14681
e6712ff1
DE
146822012-08-08 Doug Evans <dje@google.com>
14683
14684 * Makefile.in (SFILES): Add gdb_vecs.c.
14685 (OBS): Add gdb_vecs.o.
14686 (gdb_vecs_h, host_defs_h): New variables.
14687 (thread-db.o): Add $(gdb_vecs_h) dependency.
14688 (gdb_vecs.o): New rule.
14689 * thread-db.c: #include "gdb_vecs.h".
14690 (thread_db_load_search): Use a vector to iterate over path elements.
14691 Handle text appearing after "$pdir".
14692
14693 * configure.ac: Add check for strstr.
14694 * config.in: Regenerate.
14695 * configure: Regenerate.
14696
7c3270ae
UW
146972012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14698
14699 * hostio.c (handle_pread): If pread fails, fall back to attempting
14700 lseek/read.
14701 (handle_pwrite): Likewise for pwrite.
14702
b62e2b27
UW
147032012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14704
14705 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14706 between unsupported TYPE and unimplementable ADDR/LEN combination.
14707 (arm_insert_point): Act on new return value.
14708
78a99e91
PA
147092012-07-31 Pedro Alves <palves@redhat.com>
14710
14711 * server.c (process_point_options): Only skip tokens if we find
14712 one that is unrecognized. Don't treat 'X' specially while
14713 skipping unrecognized tokens.
14714
fcf303ab
UW
147152012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14716
14717 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14718 to 4-byte-align HW breakpoint addresses for Thumb.
14719
7255706c
YQ
147202012-07-27 Yao Qi <yao@codesourcery.com>
14721
14722 PR remote/14161.
14723
14724 * server.h: Declare gdb_agent_about_to_close.
14725 * target.c (kill_inferior): Include "agent.h".
14726 New. Send command 'kill'.
14727 * target.h (kill_inferior): Removed macro.
14728 * tracepoint.c (gdb_agent_about_to_close): New.
14729 (gdb_agent_helper_thread): Handle command 'close'.
14730 Wait endlessly until the inferior stops.
14731 Install gdb_agent_remove_socket to atexit hook.
14732 (agent_socket_name): New static variable.
14733 (gdb_agent_socket_init): Replace local variable 'name' with
14734 'agent_socket_name'.
14735 (gdb_agent_remove_socket): New.
14736
5a3f286f
YQ
147372012-07-27 Yao Qi <yao@codesourcery.com>
14738
14739 * server.c (process_point_options): Stop at 'X' when parsing.
14740
961bd387
ME
147412012-07-19 Michael Eager <eager@eagercon.com>
14742
a261b8f5 14743 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14744 to hw_execute.
14745 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14746 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14747 hardware breakpoint.
14748
aa7c7447
JK
147492012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14750
14751 * gdbserver/linux-low.c (initialize_low): Call
14752 linux_ptrace_init_warnings.
14753
7f216e7c
DE
147542012-07-02 Doug Evans <dje@google.com>
14755
14756 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14757 pointer to int.
14758
d3ce09f5
SS
147592012-07-02 Stan Shebs <stan@codesourcery.com>
14760
14761 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14762 (ax.o): Add it to build rule.
14763 (ax-ipa.o): Ditto.
14764 (OBS): Add format.o.
14765 (IPA_OBS): Add format.o.
14766 * server.c (handle_query): Claim support for breakpoint commands.
14767 (process_point_options): Add command case.
14768 (process_serial_event): Leave running if there are printfs in
14769 effect.
14770 * mem-break.h (any_persistent_commands): Declare.
14771 (add_breakpoint_commands): Declare.
14772 (gdb_no_commands_at_breakpoint): Declare.
14773 (run_breakpoint_commands): Declare.
14774 * mem-break.c (struct point_command_list): New struct.
14775 (struct breakpoint): New field command_list.
14776 (any_persistent_commands): New function.
14777 (add_commands_to_breakpoint): New function.
14778 (add_breakpoint_commands): New function.
14779 (gdb_no_commands_at_breakpoint): New function.
14780 (run_breakpoint_commands): New function.
14781 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14782 locally.
14783 * ax.c: Include format.h.
14784 (ax_printf): New function.
14785 (gdb_eval_agent_expr): Add printf opcode.
14786
2f8f6aed
YQ
147872012-06-13 Yao Qi <yao@codesourcery.com>
14788
14789 * server.c (start_inferior): Remove duplicated writes to fields
14790 'last_resume_kind' and 'last_status' of 'current_inferior'.
14791
0c9070b3
YQ
147922012-06-12 Yao Qi <yao@codesourcery.com>
14793 Pedro Alves <palves@redhat.com>
14794
14795 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14796 comment.
14797 * server.c (handle_v_cont): Extend comment.
14798
c52daf70
YQ
147992012-06-11 Yao Qi <yao@codesourcery.com>
14800
14801 * linux-low.c (linux_attach): Add 'static'.
14802
d38bbb0a
YQ
148032012-06-06 Yao Qi <yao@codesourcery.com>
14804
14805 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14806
89dc0afd
JK
148072012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14808
14809 Fix gcc -flto compilation warning.
14810 * server.c (main): Make variable multi_mode and attach volatile.
14811
75f62ce7
TJB
148122012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14813
14814 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14815 if the platform doesn't know about it.
14816
65f479b6
PA
148172012-05-30 Jeff Kenton <jkenton@tilera.com>
14818
14819 * Makefile.in (SFILES): Add linux-tile-low.c.
14820 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14821 * configure.srv: Handle tilegx-*-linux*.
14822 * linux-tile-low.c: New file.
14823
0c5bf5a9
JK
148242012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14825
14826 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14827
a493e3e2
PA
148282012-05-24 Pedro Alves <palves@redhat.com>
14829
14830 PR gdb/7205
14831
43aaf8b6 14832 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14833
2ea28649
PA
148342012-05-24 Pedro Alves <palves@redhat.com>
14835
14836 PR gdb/7205
14837
14838 Replace target_signal with gdb_signal throughout.
14839
8d409d16
MR
148402012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14841
14842 * linux-low.c (linux_store_registers): Avoid the copying sequence
14843 when no data has been retrieved by ptrace.
14844
23512c01
MGD
148452012-05-22 Will Deacon <will.deacon@arm.com>
14846
14847 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14848 Include asm/ptrace.h.
14849 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14850 already defined.
14851
4934b29e
MR
148522012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14853
14854 * linux-low.c (linux_store_registers): Don't re-retrieve data
14855 with ptrace that has already been obtained from /proc. Always
14856 copy any data retrieved with ptrace to the buffer supplied.
14857
bde24c0a
PA
148582012-05-11 Yao Qi <yao@codesourcery.com>
14859 Pedro Alves <palves@redhat.com>
14860
14861 * linux-low.c (enum stopping_threads_kind): New.
14862 (stopping_threads): Change type to `enum stopping_threads_kind'.
14863 (handle_extended_wait): If stopping and suspending threads, leave
14864 the new_lwp suspended too.
14865 (linux_wait_for_event): Adjust.
14866 (stop_all_lwps): Set `stopping_threads' to
14867 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14868 whether we're suspending threads or just stopping them. Assert no
14869 recursion happens.
14870
623b6bdf
YQ
148712012-04-29 Yao Qi <yao@codesourcery.com>
14872
14873 * server.h: Move some code to ...
14874 * gdbthread.h: ... here. New.
14875 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14876 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14877 (nto-low.o, win32-low.o): Likewise.
14878 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14879 * regcache.c, remote-utils.c, server.c: Likewise.
14880 * target.c, tracepoint.c, win32-low.c: Likewise.
14881
f15f9948
TJB
148822012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14883
14884 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14885 (PTRACE_ARG4_TYPE): Likewise.
14886 (PTRACE_XFER_TYPE): Likewise.
14887 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14888 ptrace to PTRACE_ARG3_TYPE.
14889 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14890 (PTRACE_ARG4_TYPE): Likewise.
14891 (PTRACE_XFER_TYPE): Likewise.
14892 (linux_detach_one_lwp): Cast fourth argument of
14893 ptrace to long then PTRACE_ARG4_TYPE.
14894 (regsets_fetch_inferior_registers): Cast third argument of
14895 ptrace to long then PTRACE_ARG3_TYPE.
14896 (regsets_store_inferior_registers): Likewise.
14897
38ea300a
PA
148982012-04-20 Pedro Alves <palves@redhat.com>
14899
14900 * configure: Regenerate.
14901
c971b7fa
PA
149022012-04-19 Pedro Alves <palves@redhat.com>
14903
43aaf8b6 14904 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14905 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14906 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14907 (all, install-only, uninstall, clean-info, all-lib, clean): No
14908 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14909 (maintainer-clean realclean distclean): Use subdir_do.
14910 (subdir_do): New.
14911 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14912 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14913 * acinclude.m4: Include acx_configure_dir.m4.
14914 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14915 calls. Call AC_PROG_RANLIB. Configure gnulib using
14916 ACX_CONFIGURE_DIR.
14917 (GNULIB): New.
14918 (GNULIB_STDINT_H): Adjust.
14919 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14920 * gdbreplay.c: Include build-gnulib/config.h.
14921 * server.h: Likewise.
14922 * aclocal.m4: Regenerate.
14923 * config.in: Regenerate.
14924 * configure: Regenerate.
c971b7fa 14925
809277f8
PA
149262012-04-19 Pedro Alves <palves@redhat.com>
14927
14928 * Makefile.in (LIBGNU, INCGNU): Adjust.
14929 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14930 (all, install-only, uninstall, clean-info, all-lib, clean)
14931 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14932 * configure.ac: Adjust AC_OUTPUT output.
14933 * aclocal.m4: Regenerate.
14934 * configure: Regenerate.
14935
fd9bb8b8
PA
149362012-04-19 Pedro Alves <palves@redhat.com>
14937
14938 * Makefile.in (generated_files): New.
14939 (server_h): Remove the explicit dependency on config.h, and depend
14940 on $generated_files.
14941
1c298c66
PA
149422012-04-19 Pedro Alves <palves@redhat.com>
14943
14944 * Makefile.in (INCGNU): Add -Ignulib.
14945
57c4b50b
PA
149462012-04-19 Pedro Alves <palves@redhat.com>
14947
14948 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14949 (INCGNU): ... this, and spell out -I here.
14950 (GNULIB_LIB): Rename to ...
14951 (LIBGNU): ... this.
14952 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14953
1030e047
PA
149542012-04-19 Pedro Alves <palves@redhat.com>
14955
14956 * config.in: Regenerate.
14957
447d4319
PA
149582012-04-19 Pedro Alves <palves@redhat.com>
14959
14960 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14961 * server.h (memmem): Remove declaration.
14962 * config.in: Regenerate.
14963 * configure: Regenerate.
14964
aad9eab9
YQ
149652012-04-19 Yao Qi <yao@codesourcery.com>
14966
14967 * Makefile.in (SFILES): Add common/vec.c.
14968 (OBS): Add vec.o.
14969 (vec.o): New rule.
14970
3e10640f
YQ
149712012-04-19 Yao Qi <yao@codesourcery.com>
14972
14973 * remote-utils.c (prepare_resume_reply): Replace with macro
14974 target_core_of_thread.
14975 * server.c (handle_qxfer_threads_proper): Likewise.
14976 * target.h (traget_core_of_thread): New macro.
14977
71622373
PA
149782012-04-18 Pedro Alves <palves@redhat.com>
14979
14980 * aclocal.m4: Regenerate.
14981 * configure: Regenerate.
14982
80d26939
YQ
149832012-04-16 Yao Qi <yao@codesourcery.com>
14984
14985 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14986 duplicated on address.
14987
42476b70
YQ
149882012-04-16 Yao Qi <yao@codesourcery.com>
14989
14990 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14991 (struct tracepoint_action_ops) <send>: New field.
14992 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14993 (agent_expr_send, x_tracepoint_action_send): New.
14994 (l_tracepoint_action_send): New.
14995 (cmd_qtdp): Download and install tracepoint
14996 according to `use_agent'.
14997 (run_inferior_command): Add one more parameter `len'.
14998 Update callers.
14999 (tracepoint_send_agent): New.
15000 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15001
7bc83639
YQ
150022012-04-16 Yao Qi <yao@codesourcery.com>
15003
15004 * tracepoint.c (download_tracepoints): Moved to ...
15005 (cmd_qtstart): ... here.
15006
5f18041e
YQ
150072012-04-14 Yao Qi <yao@codesourcery.com>
15008
15009 * tracepoint.c: Include inttypes.h.
15010 (struct collect_memory_action): Use sized types.
15011 (struct tracepoint): Likewise.
15012 (cmd_qtdp, stop_tracing): Update print specifiers.
15013 (cmd_qtp, response_tracepoint): Likewise.
15014 (collect_data_at_tracepoint): Likewise.
15015 (collect_data_at_step): Likewise.
15016
55a8c076
YQ
150172012-04-14 Yao Qi <yao@codesourcery.com>
15018
15019 Import gnulib module inttypes.
15020 * aclocal.m4, config.in, configure: Regenerated.
15021
dc750257
YQ
150222012-04-14 Yao Qi <yao@codesourcery.com>
15023
15024 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15025 Makefile and config.status at last.
15026
0ab5faf9
YQ
150272012-04-13 Yao Qi <yao@codesourcery.com>
15028
15029 * tracepoint.c: Include stdint.h unconditionally.
15030
18f5fd81
TJB
150312012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15032
15033 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15034 on BFD_HAVE_SYS_PROCFS_TYPE.
15035 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15036 * configure: Regenerate.
15037 * config.in: Likewise.
15038
4d47af5c
L
150392012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15040
15041 * Makefile.in (clean): Also remove x32.c x32-linux.c
15042 x32-avx.c x32-avx-linux.c.
15043 (x32.o): New target.
15044 (x32.c): Likewise.
15045 (x32-linux.o): Likewise.
15046 (x32-linux.c): Likewise.
15047 (x32-avx.o): Likewise.
15048 (x32-avx.c): Likewise.
15049 (x32-avx-linux.o): Likewise.
15050 (x32-avx-linux.c): Likewise.
15051
15052 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15053 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15054 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15055 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15056 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15057 i386/x32-avx-linux.xml.
15058
15059 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15060 (init_registers_x32_avx_linux): Likwise.
15061 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15062 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15063
ecedbe58
PA
150642012-04-13 Pedro Alves <palves@redhat.com>
15065
15066 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15067 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15068 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15069 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15070 the sub-make.
15071
c92b5177
L
150722012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15073
15074 * linux-x86-low.c (compat_x32_clock_t): New.
15075 (compat_x32_siginfo_t): Likewise.
15076 (compat_x32_siginfo_from_siginfo): Likewise.
15077 (siginfo_from_compat_x32_siginfo): Likewise.
15078 (linux_is_elf64): Likewise.
15079 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15080 and siginfo_from_compat_x32_siginfo for x32.
15081 (x86_arch_setup): Set linux_is_elf64.
15082
214d508e
L
150832012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15084
15085 PR gdb/13969
15086 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15087 e_machine field.
15088 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15089 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15090 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15091 compatible with process.
15092
c9a1864a
YQ
150932012-04-12 Yao Qi <yao@codesourcery.com>
15094
15095 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15096 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15097 (install-only, install-info, clean): Handle sub dir gnulib.
15098 (all-lib, am--refresh): New targets.
15099 (memmem.o): Remove target.
15100 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15101 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15102 (AC_REPLACE_FUNCS): Remove memmem.
15103 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15104 (AC_OUTPUT): Generate Makefile in gnulib/.
15105 * aclocal.m4, config.in, configure: Regenerated.
15106
367ba2c2
MR
151072012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15108
15109 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15110
9d236627
PA
151112012-04-05 Pedro Alves <palves@redhat.com>
15112
15113 -Werror=strict-aliasing
15114
15115 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15116 pointer.
15117
111217b3
PA
151182012-04-04 Pedro Alves <palves@redhat.com>
15119
15120 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15121 (sparc_store_gregset_from_stack, sparc_store_gregset)
15122 (sparc_breakpoint_at): Fix formatting.
15123
8365dcf5
TJB
151242012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15125
15126 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15127 are available.
15128 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15129 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15130 * config.in: Regenerate.
15131 * configure: Likewise.
15132
689cc2ae
PA
151332012-03-29 Pedro Alves <palves@redhat.com>
15134
15135 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15136 Correct ptrace arguments.
15137
c14dfd32
PA
151382012-03-28 Pedro Alves <palves@redhat.com>
15139
15140 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15141 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15142 (IA64_FR1_REGNUM): New defines.
15143 (ia64_fetch_register): New.
15144 (the_low_target): Install it.
15145 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15146 field.
15147 * linux-low.c (linux_fetch_registers): Try the
15148 the_low_target.fetch_register hook first.
15149
15150 * linux-arm-low.c (the_low_target): Adjust.
15151 * linux-bfin-low.c (the_low_target): Adjust.
15152 * linux-cris-low.c (the_low_target): Adjust.
15153 * linux-crisv32-low.c (the_low_target): Adjust.
15154 * linux-m32r-low.c (the_low_target): Adjust.
15155 * linux-m68k-low.c (the_low_target): Adjust.
15156 * linux-mips-low.c (the_low_target): Adjust.
15157 * linux-ppc-low.c (the_low_target): Adjust.
15158 * linux-s390-low.c (the_low_target): Adjust.
15159 * linux-sh-low.c (the_low_target): Adjust.
15160 * linux-sparc-low.c (the_low_target): Adjust.
15161 * linux-tic6x-low.c (the_low_target): Adjust.
15162 * linux-x86-low.c (the_low_target): Adjust.
15163 * linux-xtensa-low.c (the_low_target): Adjust.
15164
63c88e13
PA
151652012-03-26 Pedro Alves <palves@redhat.com>
15166
15167 * server.c (handle_qxfer_libraries): Don't bail early if
15168 the_target->qxfer_libraries_svr4 is not NULL.
15169
fb723180
PA
151702012-03-26 Pedro Alves <palves@redhat.com>
15171
15172 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15173
0afae3cf
PA
151742012-03-23 Pedro Alves <palves@redhat.com>
15175
15176 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15177 "library-list-svr4" element's start tag when the the DSO list is
15178 empty.
15179
485f1ee4
PA
151802012-03-23 Pedro Alves <palves@redhat.com>
15181
15182 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15183 a variable whose type size is the same as the inferior's pointer
15184 size.
15185
a5362b9a
TS
151862012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15187
15188 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15189 struct siginfo.
15190 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15191 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15192 * linux-low.h: Include <signal.h>.
15193 (struct siginfo): Remove forward declaration.
15194 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15195 struct siginfo.
15196
d226c142
MF
151972012-03-21 Mike Frysinger <vapier@gentoo.org>
15198
15199 * .gitignore: Ignore more files.
15200
122f36ef
PA
152012012-03-19 Pedro Alves <palves@redhat.com>
15202 Jan Kratochvil <jan.kratochvil@redhat.com>
15203
15204 * server.c (cont_thread, general_thread): Add describing comments.
15205 (start_inferior): Clear `cont_thread'.
15206 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15207 of a process.
15208
fc3e5175
YQ
152092012-03-15 Yao Qi <yao@codesourcery.com>
15210
15211 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15212 handling to ...
15213 (cmd_qtdp): ... here.
15214
8d0d92cd
YQ
152152012-03-15 Yao Qi <yao@codesourcery.com>
15216
15217 * tracepoint.c (struct tracepoint_action_ops): New.
15218 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15219 (m_tracepoint_action_download): New.
15220 (r_tracepoint_action_download): New.
15221 (x_tracepoint_action_download): New.
15222 (l_tracepoint_action_download): New.
15223 (add_tracepoint_action): Install `action->ops' according type.
15224 (download_tracepoint_1): Move code `download' function pointer
15225 of various tracepoint_action_ops.
15226
87b0bb13
JK
152272012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15228
15229 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15230 linux_ptrace_attach_warnings.
15231
5f572dec
JK
152322012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15233
15234 * Makefile.in (linux-ptrace.o): New.
15235 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15236 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15237 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15238 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15239 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15240 of these targets.
15241 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15242
f4647387
YQ
152432012-03-08 Yao Qi <yao@codesourcery.com>
15244 Pedro Alves <palves@redhat.com>
15245
15246 Fix PR server/13392.
15247 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15248 offset of JMP insn.
15249 * tracepoint.c (remove_tracepoint): New.
15250 (cmd_qtdp): Call remove_tracepoint when failed to install.
15251
9b224c5e
PA
152522012-03-07 Pedro Alves <palves@redhat.com>
15253
15254 * linux-low.c (get_detach_signal): New.
15255 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15256 Pass on pending signals to PTRACE_DETACH. Check the result of the
15257 ptrace call.
15258 * server.c (program_signals, program_signals_p): New.
15259 (handle_general_set): Handle QProgramSignals.
15260 * server.h (program_signals, program_signals_p): Declare.
15261
e237a7e2
JK
152622012-03-05 Pedro Alves <palves@redhat.com>
15263 Jan Kratochvil <jan.kratochvil@redhat.com>
15264
15265 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15266 New comment why.
15267
5808517f
YQ
152682012-03-03 Yao Qi <yao@codesourcery.com>
15269
15270 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15271 agent_look_up_symbols.
15272
58b4daa5
YQ
152732012-03-03 Yao Qi <yao@codesourcery.com>
15274
15275 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15276 (linux-x86-low.o): Likewise.
15277 * server.h: Remove in_process_agent_loaded.
15278 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15279 common/agent.c.
15280 Update callers.
15281
8ffcbaaf
YQ
152822012-03-03 Yao Qi <yao@codesourcery.com>
15283
15284 * tracepoint.c (gdb_agent_capability): New global.
15285 (in_process_agent_loaded_ust): Renamed to
15286 `in_process_agent_supports_ust'.
15287 Update callers.
15288 (in_process_agent_supports_ust): Call agent_capability_check.
15289 (clear_installed_tracepoints): Assert that agent supports
15290 agent.
15291
d1feda86
YQ
152922012-03-03 Yao Qi <yao@codesourcery.com>
15293
15294 * linux-low.c (linux_supports_agent): New.
15295 (linux_target_ops): Initialize field `supports_agent' with
15296 linux_supports_agent.
15297 * target.h (struct target_ops) <supports_agent>: New.
15298 (target_supports_agent): New macro.
15299 * server.c (handle_general_set): Handle packet 'QAgent'.
15300 (handle_query): Send `QAgent+'.
15301 * Makefile.in (server.o): Depends on agent.h.
15302
2fa291ac
YQ
153032012-03-03 Yao Qi <yao@codesourcery.com>
15304
15305 * Makefile.in (OBS): Add agent.o.
15306 Add new rule for agent.o.
15307 Track dependence of tracepoint.c on agent.h.
15308 * tracepoint.c (run_inferior_command_1):
15309 (run_inferior_command): Call agent_run_command.
15310 (gdb_ust_connect_sync_socket): Deleted. Move it to
15311 common/agent.c.
15312 (resume_thread, stop_thread): Likewise.
15313 (gdb_ust_socket_init): Renamed to ...
15314 (gdb_agent_socket_init): ... New.
15315 (gdb_ust_thread): Renamed to ...
15316 (gdb_agent_helper_thread): ... New.
15317 (gdb_ust_init): Move some code to ...
15318 (gdb_agent_init): ... here. New.
15319 [HAVE_UST]: Call gdb_ust_init.
15320 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15321 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15322 * config.in, configure: Regenerated.
15323
05044653
PA
153242012-03-02 Pedro Alves <palves@redhat.com>
15325
15326 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15327 * linux-low.c (struct simple_pid_list): New.
15328 (stopped_pids): New a struct simple_pid_list pointer.
15329 (add_to_pid_list, pull_pid_from_list): New.
15330 (handle_extended_wait): Don't assume the first signal new children
15331 report is SIGSTOP. Adjust call to pull_pid_from_list.
15332 (linux_wait_for_lwp): Adjust.
15333
8d00225b
YQ
153342012-03-02 Yao Qi <yao@codesourcery.com>
15335
15336 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15337 debug log.
15338
19560ba5
YQ
153392012-03-02 Yao Qi <yao@codesourcery.com>
15340
15341 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15342 `stop_pc' and `tpoint'. Update caller.
15343
1faeff08
MR
153442012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15345
15346 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15347 * linux-low.c (use_linux_regsets): New macro.
15348 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15349 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15350 (linux_register_in_regsets): New function.
15351 (usr_fetch_inferior_registers): Skip registers covered by
15352 regsets.
15353 (usr_store_inferior_registers): Likewise.
15354 (usr_fetch_inferior_registers): New macro.
15355 (usr_store_inferior_registers): Likewise.
15356 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15357 (linux_store_registers): Likewise.
15358 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15359 prototype.
15360 (init_registers_mips64_dsp_linux): Likewise.
15361 (init_registers_mips_linux): New macro.
15362 (init_registers_mips_dsp_linux): Likewise.
15363 (mips_dsp_num_regs): Likewise.
15364 (DSP_BASE, DSP_CONTROL): New fallback macros.
15365 (mips_base_regs): New macro.
15366 (mips_regmap): Use it. Fix the size.
15367 (mips_dsp_regmap): New variable.
15368 (mips_dsp_regset_bitmap): Likewise.
15369 (mips_arch_setup): New function.
15370 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15371 than mips_regmap.
15372 (mips_cannot_store_register): Likewise.
15373 (the_low_target): Update .arch_setup, .num_regs and .regmap
15374 initializers. Add .regset_bitmap initializer.
15375 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15376 initializer.
15377 * linux-bfin-low.c (the_low_target): Likewise.
15378 * linux-cris-low.c (the_low_target): Likewise.
15379 * linux-crisv32-low.c (the_low_target): Likewise.
15380 * linux-ia64-low.c (the_low_target): Likewise.
15381 * linux-m32r-low.c (the_low_target): Likewise.
15382 * linux-m68k-low.c (the_low_target): Likewise.
15383 * linux-ppc-low.c (the_low_target): Likewise.
15384 * linux-s390-low.c (the_low_target): Likewise.
15385 * linux-sh-low.c (the_low_target): Likewise.
15386 * linux-sparc-low.c (the_low_target): Likewise.
15387 * linux-tic6x-low.c (the_low_target): Likewise.
15388 * linux-x86-low.c (the_low_target): Likewise.
15389 * linux-xtensa-low.c (the_low_target): Likewise.
15390 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15391 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15392 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15393 srv_xmlfiles.
15394 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15395 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15396
c03e6ccc
YQ
153972012-02-29 Yao Qi <yao@codesourcery.com>
15398 Pedro Alves <palves@redhat.com>
15399
15400 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15401 `step_over_finished' is true.
15402
644cebc9
PA
154032012-02-27 Pedro Alves <palves@redhat.com>
15404
15405 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15406 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15407
c14d7ab2
PA
154082012-02-27 Pedro Alves <palves@redhat.com>
15409
15410 PR server/9684
15411 * linux-low.c (pid_is_stopped): New.
15412 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15413
412c89dd
LM
154142012-02-25 Luis Machado <lgustavo@codesourcery.com>
15415
15416 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15417 of conditions.
15418
b745defe
MR
154192012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15420
15421 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15422
9f3a5c85
LM
154232012-02-24 Luis Machado <lgustavo@codesourcery>
15424
15425 * server.c (handle_query): Advertise support for target-side
15426 breakpoint condition evaluation.
15427 (process_point_options): New function.
15428 (process_serial_event): When inserting a breakpoint, check for
15429 a target-side condition that should be evaluated.
15430
15431 * mem-break.c: Include regcache.h and ax.h.
15432 (point_cond_list_t): New data structure.
15433 (breakpoint) <cond_list>: New field.
15434 (find_gdb_breakpoint_at): Make non-static.
15435 (delete_gdb_breakpoint_at): Clear any target-side
15436 conditions.
15437 (clear_gdb_breakpoint_conditions): New function.
15438 (add_condition_to_breakpoint): Likewise.
15439 (add_breakpoint_condition): Likewise.
15440 (gdb_condition_true_at_breakpoint): Likewise.
15441 (gdb_breakpoint_here): Return result directly instead
15442 of going through a local variable.
15443
15444 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15445 (clear_gdb_breakpoint_conditions): Likewise.
15446 (add_breakpoint_condition): Likewise.
15447 (gdb_condition_true_at_breakpoint): Likewise.
15448
15449 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15450 (need_step_over_p): Take target-side breakpoint condition into
15451 consideration.
15452
5e1dc496
LM
154532012-02-24 Luis Machado <lgustavo@codesourcery>
15454
15455 * server.h: Include tracepoint.h.
15456 (agent_mem_read, agent_get_trace_state_variable_value,
15457 agent_set_trace_state_variable_value,
15458 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15459 get_set_tsv_func_addr): New prototypes.
15460
15461 * ax.h: New include file.
15462 * ax.c: New source file.
15463
15464 * tracepoint.c: Include ax.h.
15465 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15466 agent_expr, eval_result_type): Move to ax.h.
15467 (parse_agent_expr): Rename to ...
15468 (gdb_parse_agent_expr): ... this, make it non-static and move
15469 to ax.h.
15470 (unparse_agent_expr) Rename to ...
15471 (gdb_unparse_agent_expr): ... this, make it non-static and move
15472 to ax.h.
15473 (eval_agent_expr): Rename to ...
15474 (eval_tracepoint_agent_expr): ... this.
15475 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15476 forward declarations.
15477 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15478 (agent_get_trace_state_variable_value): New function.
15479 (agent_set_trace_state_variable_value): New function.
15480 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15481 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15482 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15483 (condition_true_at_tracepoint): Likewise.
15484 (parse_agent_expr): Rename to ...
15485 (gdb_parse_agent_expr): ... this and move to ax.c.
15486 (unparse_agent_expr): Rename to ...
15487 (gdb_unparse_agent_expr): ... this and move to ax.c.
15488 (gdb_agent_op_name): Move to ax.c.
15489 (eval_agent_expr): Rename to ...
15490 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15491 and move to ax.c.
15492 (eval_tracepoint_agent_expr): New function.
15493 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15494 non-static.
5e1dc496
LM
15495 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15496 ax.c.
15497 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15498 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15499 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15500 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15501 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15502 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15503 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15504 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15505 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15506 (compile_bytecodes): Remove forward declaration.
15507 (is_goto_target): Move to ax.c.
15508 (compile_bytecodes): Move to ax.c and call
15509 agent_get_trace_state_variable_value (...) and
15510 agent_set_trace_state_variable_value (...).
15511
15512 * Makefile.in: Update ax.c and IPA dependencies.
15513
277e4e52
PA
155142012-02-24 Pedro Alves <palves@redhat.com>
15515
15516 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15517 (cmd_bigqtbuffer_circular): ... this. Only handle
15518 'QTBuffer:circular:'.
15519 (handle_tracepoint_general_set): Adjust.
15520
bf4c19f7
YQ
155212012-02-16 Yao Qi <yao@codesourcery.com>
15522
15523 * inferiors.c: Move code to ...
15524 * dll.c: .... here. New.
15525 * server.h: Declare clear_dlls.
15526 * Makefile.in (SFILES): Add dll.c.
15527 (OBS): Add dll.o
15528 (dll.o): New rule.
15529
d73f2619
YQ
155302012-02-11 Yao Qi <yao@codesourcery.com>
15531
15532 * server.c: (handle_monitor_command): Add a new parameter
15533 `own_buf'.
15534 (handle_query): Update caller.
15535
f8255c2a
JB
155362012-02-09 Joel Brobecker <brobecker@adacore.com>
15537
15538 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15539 * configure, config.in: Regenerate.
15540 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15541 is not defined.
15542
da84f473
PA
155432012-02-02 Pedro Alves <palves@redhat.com>
15544
15545 Try SIGKILL first, then PTRACE_KILL.
15546 * linux-low.c (linux_kill_one_lwp): New.
15547 (linux_kill_one_lwp): Rename to ...
15548 (kill_one_lwp_callback): ... this. Use the new
15549 linux_kill_one_lwp.
15550
e886a173
PA
155512012-02-02 Pedro Alves <palves@redhat.com>
15552
15553 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15554 inferior.
15555
be07f1a2
PA
155562012-01-27 Pedro Alves <palves@redhat.com>
15557
15558 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15559 (elf_64_file_p): Make static.
15560 (linux_pid_exe_is_elf_64_file): New.
15561 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15562 Delete declarations.
15563 (linux_pid_exe_is_elf_64_file): Declare.
15564 * linux-x86-low.c (x86_arch_setup): Use
15565 linux_pid_exe_is_elf_64_file.
15566
d8301ad1
JK
155672012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15568
15569 * linux-low.c (linux_wait_for_event_1): Rename to ...
15570 (linux_wait_for_event): ... here and merge it with former
15571 linux_wait_for_event - new variable wait_ptid, use it.
15572 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15573
01b17894
PA
155742012-01-23 Pedro Alves <palves@redhat.com>
15575
15576 * server.c (main): Avoid yet another case of infinite loop while
15577 detaching/killing after a longjmp.
15578
e825046f
JK
155792012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15580
15581 Code cleanup.
15582 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15583
b9e7b9c3
UW
155842012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15585
15586 * hostio.c (handle_readlink): New function.
15587 (handle_vFile): Call it to handle "vFile:readlink" packets.
15588
901f9912
UW
155892012-01-20 Pedro Alves <palves@redhat.com>
15590 Ulrich Weigand <ulrich.weigand@linaro.org>
15591
15592 * server.c (handle_v_requests): Only support vAttach and vRun to
15593 start multiple processes when in extended protocol mode.
15594
fc1ab1a0
PA
155952012-01-17 Pedro Alves <palves@redhat.com>
15596
15597 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15598 memalign plus mprotect to allocate the scratch buffer.
15599
7d5d4e98
PA
156002012-01-13 Pedro Alves <palves@redhat.com>
15601
15602 * server.c (attach_inferior): Clear `cont_thread'.
15603
f128d5e9
PA
156042012-01-13 Pedro Alves <palves@redhat.com>
15605
15606 * server.c (main): Avoid infinite loop while detaching/killing
15607 after a longjmp.
15608
06db92f0
DE
156092012-01-09 Doug Evans <dje@google.com>
15610
15611 * server.c (start_inferior): Set last_ptid in --wrapper case.
15612
32d92999
YQ
156132012-01-06 Yao Qi <yao@codesourcery.com>
15614
15615 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15616 defined.
15617 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15618
5e0a92a9
YQ
156192012-01-04 Yao Qi <yao@codesourcery.com>
15620
15621 * tracepoint.c (cmd_qtdp): Print debug message
15622 for static tracepoint.
15623
ae639e8c
YQ
156242012-01-04 Yao Qi <yao@codesourcery.com>
15625
15626 * tracepoint.c (trace_vdebug): Differentiate debug message
15627 between gdbserver and IPA.
15628
f72429c5
YQ
156292012-01-03 Yao Qi <yao@codesourcery.com>
15630
15631 * tracepoint.c (tracepoint_was_hit): Don't collect for
15632 static tracepoint.
15633
12c3e59c
JB
156342012-01-02 Joel Brobecker <brobecker@adacore.com>
15635
15636 * terminal.h: Reformat copyright header.
15637
67827812
JB
156382012-01-02 Joel Brobecker <brobecker@adacore.com>
15639
15640 * server.c (gdbserver_version): Update copyright year.
15641 * gdbreplay.c (gdbreplay_version): Likewise.
15642
3e52c33d
JK
156432011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15644
15645 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15646
15647 Revert:
15648 2011-12-18 Hui Zhu <teawater@gmail.com>
15649 * linux-low.c (linux_create_inferior): Save return value to ret.
15650
66f1260e
HZ
156512011-12-18 Hui Zhu <teawater@gmail.com>
15652
15653 * linux-low.c (linux_create_inferior): Save return value to ret.
15654
e77616d7
DE
156552011-12-16 Doug Evans <dje@google.com>
15656
e7b06c57
DE
15657 * linux-low.c (linux_create_inferior): If stdio connection,
15658 redirect stdin from /dev/null, stdout to stderr.
15659 * remote-utils.c (remote_is_stdio): New static global.
15660 (remote_connection_is_stdio): New function.
15661 (remote_prepare): Handle stdio connection.
15662 (remote_open): Ditto.
15663 (remote_close): Don't close stdin for stdio connections.
15664 (read_prim,write_prim): New functions. Replace all calls to
15665 read/write to these.
15666 * server.c (main): Watch for "-" argument. Move call to
15667 remote_prepare before start_inferior.
15668 * server.h (STDIO_CONNECTION_NAME): New macro.
15669 (remote_connection_is_stdio): Declare.
15670
e77616d7
DE
15671 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15672 in debugging output.
15673
82067193
YQ
156742011-12-15 Yao Qi <yao@codesourcery.com>
15675
15676 * tracepoint.c: Include sys/syscall.h.
15677 (gdb_ust_thread): Remove preprocessor conditional.
15678
82bfbe7e
PA
156792011-12-14 Pedro Alves <pedro@codesourcery.com>
15680
15681 * linux-low.c (linux_detach_one_lwp): Call
15682 the_low_target.prepare_to_resume before detaching.
15683
712c6575
YQ
156842011-12-14 Yao Qi <yao@codesourcery.com>
15685
15686 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15687 of write.
15688
d54d1edf
YQ
156892011-12-14 Yao Qi <yao@codesourcery.com>
15690
15691 * i386-low.c (i386_low_stopped_data_address): Initialize local
15692 variable `control'.
15693
6210a125
PA
156942011-12-13 Pedro Alves <pedro@codesourcery.com>
15695
15696 PR remote/13492
15697
15698 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15699 DR_CONTROL unless necessary. Extend comments.
15700 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15701 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15702
2ece8244
YQ
157032011-12-13 Yao Qi <yao@codesourcery.com>
15704
15705 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15706 macros.
15707 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15708
784867a5
JK
157092011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15710
15711 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15712 Print new debug message for such case.
15713
6bf36717
JK
157142011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15715
15716 Fix overlapping memcpy.
15717 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15718 the read_inferior_memory transfer.
15719 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15720 write_inferior_memory transfer.
15721 (set_fast_tracepoint_jump): New variable buf. Use it for the
15722 read_inferior_memory and write_inferior_memory transfers.
15723 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15724 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15725 Use it for the write_inferior_memory transfer.
15726 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15727 buffers.
15728
50275556
MR
157292011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15730
15731 * linux-low.c (fetch_register, store_register): Make code
15732 consistent, fix formatting.
15733
7325beb4
MR
157342011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15735
15736 * linux-low.c (usr_store_inferior_registers): Factor out code
15737 to handle individual registers into...
15738 (store_register): ... this new function.
15739
c642a434
UW
157402011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15741
15742 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15743 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15744 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15745 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15746 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15747 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15748 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15749 (srv_xmlfiles): Add new XML files.
15750
15751 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15752 and <sys/uio.h>.
15753 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15754 (init_registers_s390_linux32v1): Add prototype.
15755 (init_registers_s390_linux32v2): Likewise.
15756 (init_registers_s390_linux64v1): Likewise.
15757 (init_registers_s390_linux64v2): Likewise.
15758 (init_registers_s390x_linux64v1): Likewise.
15759 (init_registers_s390x_linux64v2): Likewise.
15760 (s390_num_regs): Increment to 52.
15761 (s390_regmap): Add orig_r2 register.
15762 (s390_num_regs_3264): Increment to 68.
15763 (s390_regmap_3264): Add orig_r2 register.
15764 (s390_collect_ptrace_register): Handle orig_r2 register.
15765 (s390_supply_ptrace_register): Likewise.
15766 (s390_fill_last_break): New function.
15767 (s390_store_last_break): Likewise.
15768 (s390_fill_system_call): New function.
15769 (s390_store_system_call): Likewise.
15770 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15771 register sets.
15772 (s390_check_regset): New function.
15773 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15774 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15775 Update target_regsets for available register sets.
15776
2268b414
JK
157772011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15778 Jan Kratochvil <jan.kratochvil@redhat.com>
15779
15780 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15781 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15782 New.
15783 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15784 * linux-low.h (struct process_info_private): New member r_debug.
15785 * server.c (handle_qxfer_libraries): Call
15786 the_target->qxfer_libraries_svr4.
15787 (handle_qxfer_libraries_svr4): New function.
15788 (qxfer_packets): New entry "libraries-svr4".
15789 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15790 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15791 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15792 PACKET_qXfer_libraries_svr4.
15793
d6db1fab
UW
157942011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15795
15796 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15797 PSW address/mask between 8-byte and 16-byte formats.
15798 (s390_supply_ptrace_register): Likewise.
15799 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15800 basic addressing mode bit.
15801
242f5f1c
SS
158022011-11-24 Stan Shebs <stan@codesourcery.com>
15803
15804 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15805
f196051f
SS
158062011-11-17 Stan Shebs <stan@codesourcery.com>
15807
15808 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15809 (tracing_start_time): New global.
15810 (tracing_stop_time): New global.
15811 (tracing_user_name): New global.
15812 (tracing_notes): New global.
15813 (tracing_stop_note): New global.
15814 (cmd_qtstart): Set traceframe_usage, start_time.
15815 (stop_tracing): Set stop_time.
15816 (cmd_qtstatus): Report additional status.
15817 (cmd_qtp): New function.
15818 (handle_tracepoint_query): Call it.
15819 (cmd_qtnotes): New function.
15820 (handle_tracepoint_general_set): Call it.
15821 (get_timestamp): Rename from tsv_get_timestamp.
15822
405f8e94
SS
158232011-11-14 Stan Shebs <stan@codesourcery.com>
15824 Kwok Cheung Yeung <kcy@codesourcery.com>
15825
15826 * linux-x86-low.c (small_jump_insn): New.
15827 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15828 trampoline and error message, build a trampoline and issue a small
15829 jump instruction to it.
15830 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15831 trampoline and error message.
15832 (x86_get_min_fast_tracepoint_insn_len): New.
15833 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15834 * linux-low.h (struct linux_target_ops): Add arguments to
15835 install_fast_tracepoint_jump_pad operation, add new operation.
15836 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15837 arguments.
15838 (linux_get_min_fast_tracepoint_insn_len): New function.
15839 (linux_target_op): Add new operation.
15840 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15841 (gdb_trampoline_buffer_end): Ditto.
15842 (gdb_trampoline_buffer_error): Ditto.
15843 (struct ipa_sym_addresses): Add fields for new IPA variables.
15844 (symbol_list): Add entries for new IPA variables.
15845 (struct tracepoint): Add fields to hold the address range of the
15846 trampoline used by the tracepoint.
15847 (trampoline_buffer_head): New static variable.
15848 (trampoline_buffer_tail): Ditto.
15849 (claim_trampoline_space): New function.
15850 (have_fast_tracepoint_trampoline_buffer): New function.
15851 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15852 structure.
15853 (install_fast_tracepoint): Ditto, also add error buffer argument.
15854 (cmd_qtminftpilen): New function.
15855 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15856 (fast_tracepoint_from_trampoline_address): New function.
15857 (fast_tracepoint_collecting): Handle trampoline as part of jump
15858 pad space.
15859 (set_trampoline_buffer_space): New function.
15860 (initialize_tracepoint): Initialize new IPA variables.
15861 * target.h (struct target_ops): Add arguments to
15862 install_fast_tracepoint_jump_pad operation, add new
15863 get_min_fast_tracepoint_insn_len operation.
15864 (target_get_min_fast_tracepoint_insn_len): New.
15865 (install_fast_tracepoint_jump_pad): Add arguments.
15866 * server.h (IPA_BUFSIZ): Define.
15867 * linux-i386-ipa.c: Include extra header files.
15868 (initialize_fast_tracepoint_trampoline_buffer): New function.
15869 (initialize_low_tracepoint): Call it.
15870 * server.h (set_trampoline_buffer_space): Declare.
15871 (claim_trampoline_space): Ditto.
15872 (have_fast_tracepoint_trampoline_buffer): Ditto.
15873
1e4d1764
YQ
158742011-11-14 Yao Qi <yao@codesourcery.com>
15875
15876 * server.c (handle_query): Handle InstallInTrace for qSupported.
15877 * tracepoint.c (add_tracepoint): Sort list.
15878 (install_tracepoint, download_tracepoint): New.
15879 (cmd_qtdp): Call them to install and download tracepoints.
15880 (sort_tracepoints): Removed.
15881 (cmd_qtstart): Update.
15882
5c73ff4e
YQ
158832011-11-14 Yao Qi <yao@codesourcery.com>
15884
15885 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15886 * mem-break.h: Declare.
15887 * tracepoint.c (cmd_qtstart): Move some code to ...
15888 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15889 New.
15890 (download_tracepoints): Move some code to ...
15891 (download_tracepoint_1): ... here. New.
15892
86a30030
YQ
158932011-11-08 Yao Qi <yao@codesourcery.com>
15894
15895 * remote-utils.c (relocate_instruction): A comment fix.
15896
8d26e50c
JB
158972011-11-07 Joel Brobecker <brobecker@adacore.com>
15898
15899 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15900 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15901 dr_status_mirror and dr_control_mirror from debug_reg_state.
15902 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15903 (i386_initial_stuff): Remove use of deleted globals.
15904 (i386_get_thread_context, i386_set_thread_context,
15905 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15906 from debug_reg_state.
15907
a59306a3
YQ
159082011-11-05 Yao Qi <yao@codesourcery.com>
15909
15910 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15911 address as TPOINT's.
15912
3065dfb6
SS
159132011-11-02 Stan Shebs <stan@codesourcery.com>
15914
15915 * tracepoint.c (agent_mem_read_string): New function.
15916 (eval_agent_expr): Call it for tracenz.
15917 * server.c (handle_query): Report support for tracenz.
15918
fd0d8c7c
YQ
159192011-11-02 Yao Qi <yao@codesourcery.com>
15920
15921 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15922
609086b1
YQ
159232011-11-02 Yao Qi <yao@codesourcery.com>
15924
15925 * target.h: Fix a typo in comment.
15926
b9fd1791
PA
159272011-10-31 Pedro Alves <pedro@codesourcery.com>
15928
15929 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15930 clobber the breakpoints' shadows with fast tracepoint jumps.
15931 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15932 * target.c (write_inferior_memory): Also pass MYADDR down to
15933 check_mem_write.
15934
03583c20
UW
159352011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15936
15937 * configure.ac: Check support for personality routine.
15938 * configure: Regenerate.
15939 * config.in: Likewise.
15940 * linux-low.c: Include <sys/personality.h>.
15941 Define ADDR_NO_RANDOMIZE if necessary.
15942 (linux_create_inferior): Disable address space randomization when
15943 forking inferior, if requested.
15944 (linux_supports_disable_randomization): New function.
15945 (linux_target_ops): Install it.
15946 * server.h (disable_randomization): Declare.
15947 * server.c (disable_randomization): New global variable.
15948 (handle_general_set): Handle QDisableRandomization.
15949 (handle_query): Likewise for qSupported.
15950 (main): Support --disable-randomization and --no-disable-randomization
15951 command line arguments.
15952 * target.h (struct target_ops): Add supports_disable_randomization.
15953 (target_supports_disable_randomization): New macro.
15954
723b724b
MF
159552011-09-29 Mike Frysinger <vapier@gentoo.org>
15956
15957 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15958 ifdef check.
15959 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15960 [!PT_GETDSBT] (target_loadmap): New definition.
15961 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15962 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15963 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15964 and PT_GETDSBT to LINUX_LOADMAP.
15965 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15966 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15967
55329a5c 159682011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15969
15970 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15971 (arm_linux_hwbp_cap): New static variable.
15972 (arm_linux_get_hwbp_cap): Replace by ...
15973 (arm_linux_init_hwbp_cap): ... this new function.
15974 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15975 (arm_linux_get_hw_watchpoint_count): Likewise.
15976 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15977 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15978 (arm_prepare_to_resume): Use perror_with_name instead of error.
15979
55329a5c 159802011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15981
15982 * linux-arm-low.c: Include <signal.h>.
15983 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15984 (struct arm_linux_hwbp_cap): New data type.
15985 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15986 (struct arm_linux_hw_breakpoint): New data type.
15987 (MAX_BPTS, MAX_WPTS): Define.
15988 (struct arch_process_info, struct arch_lwp_info): New data types.
15989 (arm_linux_get_hwbp_cap): New function.
15990 (arm_linux_get_hw_breakpoint_count): Likewise.
15991 (arm_linux_get_hw_watchpoint_count): Likewise.
15992 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15993 (arm_hwbp_control_initialize): Likewise.
15994 (arm_hwbp_control_is_enabled): Likewise.
15995 (arm_hwbp_control_is_initialized): Likewise.
15996 (arm_hwbp_control_disable): Likewise.
15997 (arm_linux_hw_breakpoint_equal): Likewise.
15998 (arm_linux_hw_point_initialize): Likewise.
15999 (struct update_registers_data): New data structure.
16000 (update_registers_callback: New function.
16001 (arm_insert_point): Likewise.
16002 (arm_remove_point): Likewise.
16003 (arm_stopped_by_watchpoint): Likewise.
16004 (arm_stopped_data_address): Likewise.
16005 (arm_new_process): Likewise.
16006 (arm_new_thread): Likewise.
16007 (arm_prepare_to_resume): Likewise.
16008 (the_low_target): Register arm_insert_point, arm_remove_point,
16009 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16010 arm_new_thread, and arm_prepare_to_resume.
16011
6b9801d4
SS
160122011-09-15 Stan Shebs <stan@codesourcery.com>
16013
16014 * server.h (struct emit_ops): Add compare-goto fields.
16015 * tracepoint.c (gdb_agent_op_sizes): New table.
16016 (emit_eq_goto): New function.
16017 (emit_ne_goto): New function.
16018 (emit_lt_goto): New function.
16019 (emit_le_goto): New function.
16020 (emit_gt_goto): New function.
16021 (emit_ge_goto): New function.
16022 (is_goto_target): New function.
16023 (compile_bytecodes): Recognize special cases of compare-goto
16024 combinations and call specialized emitters for them.
16025 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16026 (amd64_emit_ne_goto): New function.
16027 (amd64_emit_lt_goto): New function.
16028 (amd64_emit_le_goto): New function.
16029 (amd64_emit_gt_goto): New function.
16030 (amd64_emit_ge_goto): New function.
16031 (amd64_emit_ops): Add the new functions.
16032 (i386_emit_eq_goto): New function.
16033 (i386_emit_ne_goto): New function.
16034 (i386_emit_lt_goto): New function.
16035 (i386_emit_le_goto): New function.
16036 (i386_emit_gt_goto): New function.
16037 (i386_emit_ge_goto): New function.
16038 (i386_emit_ops): Add the new functions.
16039
bf15cbda
SS
160402011-09-08 Stan Shebs <stan@codesourcery.com>
16041
16042 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16043 (i386_emit_epilogue): Restore %ebx.
16044
943ca1dd
JZ
160452011-08-31 Jie Zhang <jzhang918@gmail.com>
16046
16047 * server.c (step_thread): Remove definition.
16048 (process_serial_event): Don't handle Hs.
16049 * server.h (step_thread): Remove declaration.
16050 * target.c (set_desired_inferior): Remove use of step_thread.
16051
e3deef73
LM
160522011-08-24 Luis Machado <lgustavo@codesourcery.com>
16053
16054 * linux-low.c: Include linux-procfs.h.
16055 (linux_attach_lwp_1): Update comments.
16056 (linux_attach): Scan for existing threads when attaching to a
16057 process that is the tgid.
16058 * Makefile.in: Update dependencies.
16059
13da1c97
LM
160602011-08-24 Luis Machado <lgustavo@codesourcery.com>
16061
16062 * configure.srv: Add linux-procfs.o dependencies.
16063
881127c9
YQ
160642011-08-14 Yao Qi <yao@codesourcery.com>
16065
16066 * target.h (struct target_ops): Fix indent.
16067 * win32-low.c (win32_target_ops): Fix comment.
16068
58dbd541
YQ
160692011-08-14 Andrew Jenner <andrew@codesourcery.com>
16070 Yao Qi <yao@codesourcery.com>
16071
16072 * Makefile.in (clean): Remove tic6x-*.c files.
16073 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16074 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16075 (tic6x-c64xp-linux.c): Likewise.
16076 * configure.srv: Add support for tic6x-*-uclinux.
16077 * linux-tic6x-low.c: New.
16078 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16079
78d85199
YQ
160802011-08-14 Andrew Stubbs <ams@codesourcery.com>
16081 Yao Qi <yao@codesourcery.com>
16082
16083 * target.h (struct target_ops): Add read_loadmap.
16084 * linux-low.c (struct target_loadseg): New type.
16085 (struct target_loadmap): New type.
16086 (linux_read_loadmap): New function.
16087 (linux_target_ops): Add linux_read_loadmap.
16088 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16089 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16090 to NULL.
78d85199 16091
a959a88d
EZ
160922011-08-05 Eli Zaretskii <eliz@gnu.org>
16093
16094 * win32-low.c: Include <stdint.h>.
16095
1ced966e
PA
160962011-07-22 Pedro Alves <pedro@codesourcery.com>
16097
16098 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16099 to the inferior here.
16100 (i386_remove_aligned_watchpoint): Ditto.
16101 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16102 fit part of the watchpoint in the debug registers.
16103 (i386_update_inferior_debug_regs): New.
16104 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16105 registers, and only update the inferior on success.
16106 (i386_low_remove_watchpoint): Ditto.
16107
d26e3629
KY
161082011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16109
16110 * linux-low.c (compare_ints, unique, list_threads, show_process,
16111 linux_core_of_thread): Delete.
16112 (linux_target_ops): Change linux_core_of_thread to
16113 linux_common_core_of_thread.
16114 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16115 * utils.c (malloc_failure): Change type of argument.
16116 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16117 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16118 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16119 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16120 (IPA_OBJS): Add common-utils-ipa.o.
16121 (ptid_h, linux_osdata_h): New macros.
16122 (server_h): Add common/common-utils.h, common/xml-utils.h,
16123 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16124 common/ptid.h.
16125 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16126 ptid.o, buffer.o): New rules.
16127 (linux-low.o): Add common/linux-osdata.h as a dependency.
16128 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16129 * configure.ac: Add AC_HEADER_DIRENT check.
16130 * config.in: Regenerate.
16131 * configure: Regenerate.
16132 * remote-utils.c (xml_escape_text): Delete.
16133 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16134 buffer_xml_printf): Move to common/buffer.c.
16135 * server.c (main): Remove call to initialize_inferiors.
16136 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16137 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16138 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16139 internal_error, gdb_assert, gdb_assert_fail): Delete.
16140 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16141 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16142 common/buffer.h.
16143 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16144 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16145 initialize_inferiors): Delete.
16146
2275a1a7
PA
161472011-07-20 Pedro Alves <pedro@codesourcery.com>
16148
16149 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16150 symbol error.
16151
0a5b1e09
PA
161522011-05-31 Pedro Alves <pedro@codesourcery.com>
16153
16154 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16155 assertion.
16156 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16157
6938fd34
YQ
161582011-05-26 Yao Qi <yao@codesourcery.com>
16159
16160 * Makefile.in (thread-db.o): Track dependence to
16161 common/gdb_thread_db.h.
16162 * thread-db.c: include gdb_thread_db.h from right place.
16163
b481f9e0
TT
161642011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16165
16166 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16167 __FILE__ and __LINE__ to internal_error.
16168
98a5dd13
DE
161692011-05-13 Doug Evans <dje@google.com>
16170
16171 * thread-db.c (try_thread_db_load_from_sdir): New function.
16172 (try_thread_db_load_from_dir): New function.
16173 (thread_db_load_search): Handle $sdir, ignore $pdir.
16174 Remove trying of system directories if search of
16175 libthread-db-search-path fails, that is now done via $sdir.
16176
d248b706
KY
161772011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16178
16179 * server.c (handle_query): Add EnableDisableTracepoints to the list
16180 of supported features.
43aaf8b6 16181 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16182 tracepoints.
43aaf8b6
PA
16183 (cmd_qtenable_disable): New.
16184 (cmd_qtstart): Install tracepoints even if disabled.
16185 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16186 receiving a QTEnable or QTDisable packet.
16187 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16188 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16189 tracepoints.
16190 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16191
84e578fb
DE
161922011-05-10 Doug Evans <dje@google.com>
16193
16194 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16195
71f55dd8
DE
161962011-05-04 Doug Evans <dje@google.com>
16197
16198 * linux-low.c (linux_join): Skip process lookup.
16199 * spu-low.c (spu_join): Ditto.
16200 * server.c (join_inferiors_callback): Delete.
16201 (process_serial_event): For 'D' packet (detach) call join_inferior
16202 directly.
16203
4d393d60
JM
162042011-05-04 Joseph Myers <joseph@codesourcery.com>
16205
16206 * README: Don't mention xscale*-*-linux*.
16207 * configure.srv (xscale*-*-linux*): Don't handle target.
16208
b00ad6ff
NF
162092011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16210
16211 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16212 casting pointers.
16213 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16214 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16215 (i386_emit_void_call_2): Likewise.
16216
af96c192
YQ
162172011-04-26 Yao Qi <yao@codesourcery.com>
16218
43aaf8b6
PA
16219 * linux-low.c: Move common macros to linux-ptrace.h.
16220 Include linux-ptrace.h.
af96c192
YQ
16221 * Makefile.in (linux_ptrace_h): New.
16222 (linux-low.o): Depends on linux-ptrace.h.
16223
03f2bd59
JK
162242011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16225
16226 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16227 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16228 (remote_prepare): New function with most of the TCP code from ...
16229 (remote_open): ... here. Detect PORT here unconditionally. Move also
16230 setting transport_is_reliable.
16231 * server.c (run_once): New variable.
16232 (gdbserver_usage): Document it.
16233 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16234 the first run if RUN_ONCE.
16235 * server.h (run_once, remote_prepare): New declarations.
16236
7a9dd1b2
TT
162372011-04-19 Tom Tromey <tromey@redhat.com>
16238
16239 * win32-low.c (handle_load_dll): Remove duplicate "the".
16240
81239425
PM
162412011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16242
16243 Remove support for old Cygwin 1.5 versions.
16244 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16245 function to avoid warning.
16246 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16247 warning.
16248
9e0627f1
PM
162492011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16250
16251 * gdbserver/server.h (Macro _): Define it if not available.
16252
588eebee
MS
162532011-03-14 Michael Snyder <msnyder@vmware.com>
16254
348af9f7 16255 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16256
43f70d4c
JB
162572011-03-10 Joel Brobecker <brobecker@adacore.com>
16258
16259 * Makefile.in (maintainer-clean realclean distclean): Remove
16260 "make ... subdir_do" command.
16261
348af9f7
MS
162622011-03-10 Michael Snyder <msnyder@vmware.com>
16263
16264 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16265
16266 * server.c (handle_v_run): Free alloced buffer on early return.
16267
e637a4f5
YQ
162682011-03-09 Yao Qi <yao@codesourcery.com>
16269
16270 Revert:
16271 2011-03-04 Yao Qi <yao@codesourcery.com>
16272
16273 * Makefile.in: Remove GNU make feature --directory.
16274
16275 2011-03-05 Yao Qi <yao@codesourcery.com>
16276
16277 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16278 (subdir_do): New make target. Copied from gdb/Makefile.
16279 (maintainer-clean, realclean, distclean, clean): Call corresponding
16280 make targets in common/Makefile.
16281
16282 2011-02-11 Yao Qi <yao@codesourcery.com>
16283
16284 * configure.ac: Call AC_PROG_RANLIB.
16285 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16286 * configure: Regenerate.
16287
e6edda56
JK
162882011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16289
16290 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16291
e5141119
JB
162922011-03-06 Yao Qi <yao@codesourcery.com>
16293
16294 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16295
64794aa4
JB
162962011-03-05 Yao Qi <yao@codesourcery.com>
16297
16298 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16299 (subdir_do): New make target. Copied from gdb/Makefile.
16300 (maintainer-clean, realclean, distclean, clean): Call corresponding
16301 make targets in common/Makefile.
16302
7a762829
YQ
163032011-03-04 Yao Qi <yao@codesourcery.com>
16304
16305 * Makefile.in: Remove GNU make feature --directory.
16306
348af9f7
MS
163072011-03-04 Michael Snyder <msnyder@vmware.com>
16308
16309 * server.c (queue_stop_reply): Call xmalloc not malloc.
16310
163112011-03-02 Michael Snyder <msnyder@vmware.com>
16312
16313 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16314
9f72fee2
MS
163152011-02-28 Michael Snyder <msnyder@vmware.com>
16316
588eebee
MS
16317 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16318 (cmd_qtframe): Ditto.
16319 (cmd_qtbuffer): Ditto.
16320 (cmd_bigqtbuffer): Ditto.
16321
9f72fee2
MS
16322 * utils.c (decimal2str): Initialize 'width' to nine, then
16323 don't mess with it.
16324
8040bd49
UW
163252011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16326
16327 * hostio.c (require_data): Free *data, not data.
16328
7e52cbd0
JK
163292011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16330
16331 * hostio.c (require_data): Use free, not xfree.
16332
9130f83e
MS
163332011-02-27 Michael Snyder <msnyder@vmware.com>
16334
4b812f4e
MS
16335 * server.c (handle_query): Discard unused value.
16336
9130f83e
MS
16337 * hostio.c (require_data): Free malloc memory before returning
16338 error.
16339
69d37113
MS
163402011-02-26 Michael Snyder <msnyder@vmware.com>
16341
16342 * linux-low.c (list_threads): Call closedir for dirent.
16343
35f5825a
MS
163442011-02-27 Michael Snyder <msnyder@vmware.com>
16345
2a589cef
MS
16346 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16347 a case statement falls through.
16348
0adea5f7
MS
16349 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16350
35f5825a
MS
16351 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16352 in comparison.
16353
238f1c74
MS
163542011-02-26 Michael Snyder <msnyder@vmware.com>
16355
16356 * utils.c (decimal2str): Eliminate dead code and dead param.
16357 (pulongest): Drop dead param from call to decimal2str.
16358 (plongest): Ditto.
16359
633ff500
JB
163602011-02-24 Joel Brobecker <brobecker@adacore.com>
16361
16362 Revert the following patch (not approved yet):
16363 2011-02-21 Hui Zhu <teawater@gmail.com>
16364 * tracepoint.c (tp_printf): New function.
16365 (eval_agent_expr): Handle gdb_agent_op_printf.
16366
f9c6ff72
HZ
163672011-02-21 Hui Zhu <teawater@gmail.com>
16368
16369 * tracepoint.c (tp_printf): New function.
16370 (eval_agent_expr): Handle gdb_agent_op_printf.
16371
94d5e490
TT
163722011-02-18 Tom Tromey <tromey@redhat.com>
16373
16374 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16375 (tracepoint.o): Likewise.
16376 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16377 (gdb_agent_op_names): Likewise.
16378
c7f96d2b
TT
163792011-02-18 Tom Tromey <tromey@redhat.com>
16380
16381 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16382 gdb_agent_op_rot>: New constants.
16383 (gdb_agent_op_names): Add pick and roll.
16384 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16385 cases.
16386
0feedb2c
JK
163872011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16388
16389 * aclocal.m4: Regenerated with aclocal-1.11.1.
16390
b3b9301e
PA
163912011-02-14 Pedro Alves <pedro@codesourcery.com>
16392
16393 * server.c (handle_qxfer_traceframe_info): New.
16394 (qxfer_packets): Register "traceframe-info".
16395 (handle_query): Report support for qXfer:traceframe-info:read+.
16396 * tracepoint.c (match_blocktype): New.
16397 (traceframe_find_block_type): Rename to ...
16398 (traceframe_walk_blocks): ... this. Add callback filter argument,
16399 and use it.
16400 (traceframe_find_block_type): New, reimplemented on top of
16401 traceframe_walk_blocks.
16402 (build_traceframe_info_xml): New.
16403 (traceframe_read_info): New.
16404 * server.h (traceframe_read_info): Declare.
16405
4f3e6fb7
YQ
164062011-02-11 Yao Qi <yao@codesourcery.com>
16407
16408 * configure.ac: Call AC_PROG_RANLIB.
16409 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16410 * configure: Regenerate.
16411
764880b7
PA
164122011-02-07 Pedro Alves <pedro@codesourcery.com>
16413
16414 * server.c (gdb_read_memory): Change return semantics to allow
16415 partial transfers.
16416 (handle_search_memory_1): Adjust.
16417 (process_serial_event) <'m' packet>: Handle partial transfers.
16418 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16419
1c79eb8a
PA
164202011-01-28 Pedro Alves <pedro@codesourcery.com>
16421
16422 * regcache.c (init_register_cache): Initialize
16423 regcache->register_status.
16424 (free_register_cache): Release regcache->register_status.
16425 (regcache_cpy): Copy register_status.
16426 (registers_to_string): Print 'x's for unavailable registers.
16427 (supply_register): Mark the register's status valid or
16428 unavailable, depending on whether a buffer was passed in or not.
16429 (supply_register_zeroed): New.
16430 (supply_regblock): Mark the registers' status valid or
16431 unavailable, depending on whether a buffer was passed in or not.
16432 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16433 (struct regcache): New `register_status' field.
16434 (supply_register_zeroed): Declare.
16435 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16436 supply_register_zeroed, rather than passing a NULL buffer to
16437 supply_register.
16438 * tracepoint.c (fetch_traceframe_registers): Update comment.
16439
85724a0e
PA
164402011-01-28 Pedro Alves <pedro@codesourcery.com>
16441
16442 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16443 buffer explicit.
16444
d08aafef
PA
164452011-01-25 Pedro Alves <pedro@codesourcery.com>
16446
16447 * server.h (decode_xfer_write): Change prototype.
16448 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16449 and don't extract the annex here.
16450 * server.c (decode_xfer_read): Remove `annex' parameter,
16451 and don't extract the annex here.
16452 (decode_xfer): New.
16453 (struct qxfer): New.
16454 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16455 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16456 (handle_qxfer_statictrace): New functions, abstracted out from
16457 handle_query, and made to use the struct qxfer interface.
16458 (handle_threads_qxfer_proper): Rename to ...
16459 (handle_qxfer_threads_proper): ... this.
16460 (handle_threads_qxfer): Rename to ...
16461 (handle_qxfer_threads): ... this. Adjust.
16462 (qxfer_packets): New array.
16463 (handle_qxfer): New function.
16464 (handle_query): Use handle_qxfer.
16465
493e2a69
MS
164662011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16467
16468 * gdbreplay.c: Shorten lines of >= 80 columns.
16469 * linux-low.c: Ditto.
16470 * linux-ppc-low.c: Ditto.
16471 * linux-s390-low.c: Ditto.
16472 * linux-sparc-low.c: Ditto.
16473 * linux-x86-low.c: Ditto.
16474 * linux-xtensa-low.c: Ditto.
16475 * mem-break.c: Ditto.
16476 * nto-low.c: Ditto.
16477 * regcache.h: Ditto.
16478 * remote-utils.c: Ditto.
16479 * server.c: Ditto.
16480 * server.h: Ditto.
16481 * thread-db.c: Ditto.
16482 * tracepoint.c: Ditto.
16483 * utils.c: Ditto.
16484 * win32-low.h: Ditto.
16485
44944448
JB
164862011-01-05 Joel Brobecker <brobecker@adacore.com>
16487
16488 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16489 update.
16490
71ce852c
JB
164912011-01-01 Joel Brobecker <brobecker@adacore.com>
16492
16493 * server.c (gdbserver_version): Update copyright year in version
16494 output.
16495 * gdbreplay.c (gdbreplay_version): Ditto.
16496
eb826dc6
MF
164972010-12-29 Jie Zhang <jie.zhang@analog.com>
16498
16499 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16500 * linux-bfin-low.c: New file.
16501 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16502 PT_DATA_ADDR for BFIN targets.
16503 * Makefile.in (SFILES): Add linux-bfin-low.c.
16504 (clean): Remove reg-bfin.c.
16505 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16506 * README: Mention supported Blackfin targets.
16507
39ab222a
MF
165082010-12-23 Mike Frysinger <vapier@gentoo.org>
16509
16510 * .gitignore: New file.
16511
a1f2ce7d
MF
165122010-11-16 Mike Frysinger <vapier@gentoo.org>
16513
16514 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16515
f474844c
JZ
165162010-10-22 Jie Zhang <jie@codesourcery.com>
16517
16518 * Makefile.in: Add FLAGS_TO_PASS variable.
16519 (install): Remove dependency of install-only and recursively
16520 invoke make for install-only.
16521
f1048712
DE
165222010-10-04 Doug Evans <dje@google.com>
16523
16524 * Makefile.in (uninstall): Use $(DESTDIR).
16525
b53a1623
PA
165262010-09-24 Pedro Alves <pedro@codesourcery.com>
16527
e6ee044d
PA
16528 PR gdb/11842
16529
b53a1623
PA
16530 * linux-x86-low.c (compat_siginfo_from_siginfo)
16531 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16532 si_code is < 0. Check for si_code == SI_TIMER before checking for
16533 si_code < 0.
16534
fa1bd1e4
JB
165352010-09-13 Joel Brobecker <brobecker@adacore.com>
16536
16537 * lynx-i386-low.c: New file.
16538 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16539
47fac8f8
JB
165402010-09-13 Joel Brobecker <brobecker@adacore.com>
16541
16542 * lynx-low.c (ptrace_request_to_str): Remove handling for
16543 request values that have been removed in LynxOS 5.x.
16544
1adfc54d
JB
165452010-09-13 Joel Brobecker <brobecker@adacore.com>
16546
16547 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16548 <ptrace.h>
16549
c2a66c29
NS
165502010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16551
16552 * configure.ac: Add --enable-inprocess-agent option.
16553 * configure: Rebuilt.
16554
32fcada3
YQ
165552010-09-06 Yao Qi <yao@codesourcery.com>
16556
16557 * linux-low.c (linux_kill): Remove unused variable.
16558 (linux_stabilize_threads): Likewise.
16559 * server.c (start_inferior): Likewise.
16560 (queue_stop_reply_callback): Likewise.
16561 * tracepoint.c (do_action_at_tracepoint): Likewise.
16562
0cccb683
YQ
165632010-09-06 Yao Qi <yao@codesourcery.com>
16564
16565 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16566 on return.
16567
423ec54c
JK
165682010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16569
16570 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16571
12ac6819
PA
165722010-09-06 Pedro Alves <pedro@codesourcery.com>
16573
16574 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16575 "$(IPA_DEPFILES)".
16576
8ed54b31
JB
165772010-09-01 Joel Brobecker <brobecker@adacore.com>
16578
16579 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16580 gdbserver/lynx-ppc-low.c: New files.
16581 * Makefile.in (lynx_low_h): New variable.
16582 (lynx-low.o, lynx-ppc-low.o): New rules.
16583 * configure.ac: On LynxOS, link with -lnetinet.
16584 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16585 * configure: regenerate.
16586
bb0116a4
JB
165872010-09-01 Joel Brobecker <brobecker@adacore.com>
16588
16589 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16590 * configure.ac: Add check for vasprintf and vsnprintf.
16591 * configure, config.in: Regenerate.
16592 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16593
a778ab81 165942010-09-01 Joel Brobecker <brobecker@adacore.com>
16595
16596 * gdbreplay.c: Move include of alloca.h up, next to include of
16597 malloc.h.
16598 * server.h: Add include of malloc.h.
16599 * mem-break.c: Remove include of malloc.h.
16600 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16601
8b034a19 166022010-09-01 Joel Brobecker <brobecker@adacore.com>
16603
16604 * Makefile.in (memmem.o): Build with -Wno-error.
16605
166062010-09-01 Joel Brobecker <brobecker@adacore.com>
16607
16608 * utils.c (xsnprintf): Make non-static.
16609 * server.h: Add xsnprintf declaration.
16610 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16611 replace calls to snprintf by calls to xsnprintf throughout.
16612
166132010-09-01 Joel Brobecker <brobecker@adacore.com>
16614
16615 * configure.ac: Add configure check for alloca.
16616 * configure, config.in: Regenerate.
16617 * server.h: Include alloca.h if it exists.
16618 * gdbreplay.c: Include alloca.h if it exists.
16619
1a981360
PA
166202010-08-28 Pedro Alves <pedro@codesourcery.com>
16621
16622 * linux-low.c (__SIGRTMIN): Define if not already defined.
16623 (linux_create_inferior): Check for __ANDROID__ rather than
16624 __SIGRTMIN.
16625 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16626 are already deferred.
16627 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16628 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16629 stopped and already has a pending signal to report.
16630 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16631 a pending signal to report or is moving out of a jump pad.
16632 (linux_init_signals): Check for __ANDROID__ rather than
16633 __SIGRTMIN.
16634
b4d51a55
PA
166352010-08-28 Pedro Alves <pedro@codesourcery.com>
16636
16637 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16638 debug_threads check. Avoid a linear search when not doing debug
16639 output.
16640
ec48365d
PA
166412010-08-27 Pedro Alves <pedro@codesourcery.com>
16642
16643 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16644 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16645 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16646 (process_event): Change local fd's type to gdb_fildes_t.
16647 (create_file_handler): Adjust prototype.
16648 (delete_file_handler): Adjust prototype.
16649 (handle_file_event): Adjust prototype. Use pfildes.
16650 (create_file_event): Adjsut prototype.
16651 * remote-utils.c (remote_desc, listen_desc): Change type to
16652 gdb_fildes_t.
16653 * server.h: New gdb_fildes_t typedef.
16654 [USE_WIN32API]: Include winsock2.h.
16655 (delete_file_handler, add_file_handler): Adjust prototypes.
16656 (pfildes): Declare.
16657 * utils.c (pfildes): New.
16658
854d88f0
PA
166592010-08-27 Pedro Alves <pedro@codesourcery.com>
16660
16661 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16662 * configure: Regenerate.
16663
0146f85b
PA
166642010-08-27 Pedro Alves <pedro@codesourcery.com>
16665
16666 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16667 (linux_done_accessing_memory): ... this.
16668 (linux_target_ops): Adjust.
16669 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16670 * nto-low.c (nto_target_ops): Adjust comment.
16671 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16672 * spu-low.c (spu_target_ops): Adjust comment.
16673 * target.h (target_ops): Rename unprepare_to_access_memory field
16674 to done_accessing_memory.
16675 (unprepare_to_access_memory): Rename to ...
16676 (done_accessing_memory): ... this.
16677
90d74c30
PA
166782010-08-26 Pedro Alves <pedro@codesourcery.com>
16679
16680 * linux-low.c (linux_prepare_to_access_memory): New.
16681 (linux_unprepare_to_access_memory): New.
16682 (linux_target_ops): Install them.
16683 * server.c (read_memory): Rename to ...
16684 (gdb_read_memory): ... this. Use
16685 prepare_to_access_memory/prepare_to_access_memory.
16686 (write_memory): Rename to ...
16687 (gdb_write_memory): ... this. Use
16688 prepare_to_access_memory/prepare_to_access_memory.
16689 (handle_search_memory_1): Adjust.
16690 (process_serial_event): Adjust.
16691 * target.h (struct target_ops): New fields
16692 prepare_to_access_memory and unprepare_to_access_memory.
16693 (prepare_to_access_memory, unprepare_to_access_memory): New.
16694 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16695 prepare_to_access_memory/prepare_to_access_memory.
16696 * nto-low.c (nto_target_ops): Adjust.
16697 * spu-low.c (spu_target_ops): Adjust.
16698 * win32-low.c (win32_target_ops): Adjust.
16699
fd467969
PA
167002010-08-26 Pedro Alves <pedro@codesourcery.com>
16701
16702 * Makefile.in (WARN_CFLAGS): Get it from configure.
16703 (WERROR_CFLAGS): New.
16704 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16705 * configure.ac: Introduce --enable-werror, which adds -Werror to
16706 the compiler command line. Enabled by default. Disable with
16707 --disable-werror. Add -Wdeclaration-after-statement
16708 Wpointer-arith and -Wformat-nonliteral to warning flags.
16709 * configure: Regenerate.
16710
331e2f5f
PA
167112010-08-26 Pedro Alves <pedro@codesourcery.com>
16712
16713 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16714
e581f2b4
PA
167152010-08-26 Pedro Alves <pedro@codesourcery.com>
16716
16717 * gdbreplay.c (remote_error): New.
16718 (gdbchar): New.
16719 (expect): Use gdbchar. Check for error reading from GDB.
16720 Clarify sync error output.
16721 (play): Check for errors writing to GDB.
16722 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16723 * remote-utils.c (getpkt): Check for errors writing to the remote
16724 descriptor.
16725
3c11dd79
PA
167262010-08-25 Pedro Alves <pedro@codesourcery.com>
16727
16728 * linux-low.c (linux_wait_1): Move non-debugging code out of
16729 `debug_threads' control.
16730
d20a8ad9
PA
167312010-08-25 Pedro Alves <pedro@codesourcery.com>
16732
16733 * linux-low.c (linux_wait_1): Don't set last_status here.
16734 * server.c (push_event, queue_stop_reply_callback): Assert we're
16735 not pushing a TARGET_WAITKIND_IGNORE event.
16736 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16737 (myresume, handle_target_event): Set the thread's last_resume_kind
16738 and last_status from the target returned status.
16739
964e4306
PA
167402010-08-25 Pedro Alves <pedro@codesourcery.com>
16741
16742 PR threads/10729
16743
16744 * linux-x86-low.c (update_debug_registers_callback): New.
16745 (i386_dr_low_set_addr): Use it.
16746 (i386_dr_low_get_addr): New.
16747 (i386_dr_low_set_control): Use update_debug_registers_callback.
16748 (i386_dr_low_get_control): New.
16749 (i386_dr_low_get_status): Adjust.
16750 * linux-low.c (linux_stop_lwp): New.
16751 * linux-low.h (linux_stop_lwp): Declare.
16752
16753 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16754 argument instead of a i386_debug_reg_state.
16755 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16756 a i386_debug_reg_state.
16757 (i386_insert_aligned_watchpoint): Adjust.
16758 (i386_remove_aligned_watchpoint): Adjust.
16759 (i386_low_stopped_data_address): Read the debug registers from the
16760 inferior instead of from the mirrors.
16761 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16762 (i386_dr_low_get_addr): Declare.
16763 (i386_dr_low_get_control): Declare.
16764 (i386_dr_low_get_status): Change prototype.
16765
16766 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16767 (i386_dr_low_get_addr): New.
16768 (i386_dr_low_get_control): New.
16769 (i386_dr_low_get_status): Adjust prototype. Return
16770 dr_status_mirror.
16771 (i386_initial_stuff): Clear dr_status_mirror and
16772 dr_control_mirror.
16773 (i386_get_thread_context): Adjust.
16774 (i386_set_thread_context): Adjust.
16775 (i386_thread_added): Adjust.
16776
5f21a75b
PA
167772010-08-24 Pedro Alves <pedro@codesourcery.com>
16778
16779 * linux-low.h (linux_thread_area): Delete declaration.
16780
3e4c1235
TS
167812010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16782
16783 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16784 after its termination.
16785
1971b033
PA
167862010-08-09 Pedro Alves <pedro@codesourcery.com>
16787
16788 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16789 (gdb_wants_all_stopped): Delete.
16790 (linux_wait_1): Don't call them.
16791 * server.c (handle_v_cont): Tag all threads as want-stopped.
16792 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16793 stopped as "client-wants-stopped".
16794
310444ac
PA
167952010-07-31 Pedro Alves <pedro@codesourcery.com>
16796
16797 * Makefile.in (signals_h): New.
16798 (server_h): Depend on it.
16799 (server.o): Don't depend on $(signals_def).
16800 (signals.o): Depend on $(signals_def).
16801
a19cae16
JK
168022010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16803
16804 * Makefile.in (signals_def): New.
16805 (server_h): Append include/gdb/signals.h and signals_def.
16806 (server.o): Append signals_def.
16807
30d50328
JK
168082010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16809
16810 * server.c (handle_target_event): Use target_signal_to_host for
16811 resume_info.sig initialization.
16812 * target.h (struct thread_resume) <sig>: New comment.
16813
5c3216e2
OS
168142010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16815
c6f46ca0
OS
16816 * server.c (handle_query): strcpy() the returned string from paddress()
16817 instead of sprintf().
5c3216e2
OS
16818 * utils.c (paddress): Return phex_nz().
16819
6bd31874
JB
168202010-07-07 Joel Brobecker <brobecker@adacore.com>
16821
16822 * server.c (handle_v_cont): Call mourn_inferior if process
16823 just exited.
16824 (myresume): Likewise.
16825
0fb4aa4b
PA
168262010-07-01 Pedro Alves <pedro@codesourcery.com>
16827
16828 Static tracepoints, and integration with UST.
16829
16830 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16831 * mem-break.c (uninsert_all_breakpoints)
16832 (reinsert_all_breakpoints): New.
16833 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16834 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16835 (gdb_agent_ust_loaded, helper_thread_id)
16836 (gdb_agent_helper_thread_id): New macros.
16837 (struct ipa_sym_addresses): Add addr_ust_loaded,
16838 addr_helper_thread_id, addr_cmd_buf.
16839 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16840 (in_process_agent_loaded_ust): New.
16841 (write_e_ust_not_loaded): New.
16842 (maybe_write_ipa_ust_not_loaded): New.
16843 (struct collect_static_trace_data_action): New.
16844 (enum tracepoint_type) <static_tracepoint>: New.
16845 (struct tracepoint) <handle>: Mention static tracepoints.
16846 (struct static_tracepoint_ctx): New.
16847 (CMD_BUF_SIZE): New.
16848 (add_tracepoint_action): Handle static tracepoint actions.
16849 (unprobe_marker_at): New.
16850 (clear_installed_tracepoints): Handle static tracepoints.
16851 (cmd_qtdp): Handle static tracepoints.
16852 (probe_marker_at): New.
16853 (cmd_qtstart): Handle static tracepoints.
16854 (response_tracepoint): Handle static tracepoints.
16855 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16856 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16857 (get_context_regcache): Handle static tracepoints.
16858 (do_action_at_tracepoint): Handle static tracepoint actions.
16859 (traceframe_find_block_type): Handle static trace data blocks.
16860 (traceframe_read_sdata): New.
16861 (download_tracepoints): Download static tracepoint actions.
16862 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16863 (GDB_PROBE_NAME): New.
16864 (ust_ops): New.
16865 (GET_UST_SYM): New.
16866 (USTF): New.
16867 (dlsym_ust): New.
16868 (ust_marker_to_static_tracepoint): New.
16869 (gdb_probe): New.
16870 (collect_ust_data_at_tracepoint): New.
16871 (gdb_ust_probe): New.
16872 (UNIX_PATH_MAX, SOCK_DIR): New.
16873 (gdb_ust_connect_sync_socket): New.
16874 (resume_thread, stop_thread): New.
16875 (run_inferior_command): New.
16876 (init_named_socket): New.
16877 (gdb_ust_socket_init): New.
16878 (cstr_to_hexstr): New.
16879 (next_st): New.
16880 (first_marker, next_marker): New.
16881 (response_ust_marker): New.
16882 (cmd_qtfstm, cmd_qtsstm): New.
16883 (unprobe_marker_at, probe_marker_at): New.
16884 (cmd_qtstmat, gdb_ust_thread): New.
16885 (gdb_ust_init): New.
16886 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16887 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16888 (ST_REGENTRY): New.
16889 (x86_64_st_collect_regmap): New.
16890 (X86_64_NUM_ST_COLLECT_GREGS): New.
16891 (AMD64_RIP_REGNUM): New.
16892 (supply_static_tracepoint_registers): New.
16893 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16894 (ST_REGENTRY): New.
16895 (i386_st_collect_regmap): New.
16896 (i386_NUM_ST_COLLECT_GREGS): New.
16897 (supply_static_tracepoint_registers): New.
16898 * server.c (handle_query): Handle qXfer:statictrace:read.
16899 <qSupported>: Report support for StaticTracepoints, and
16900 qXfer:statictrace:read features.
16901 * server.h (traceframe_read_sdata)
16902 (supply_static_tracepoint_registers): Declare.
16903 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16904 (unpack_varlen_hex): Include in IPA build.
16905 * Makefile.in (ustlibs, ustinc): New.
16906 (IPA_OBJS): Add remote-utils-ipa.o.
16907 ($(IPA_LIB)): Link -ldl and -lpthread.
16908 (UST_CFLAGS): New.
16909 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16910 * config.in, configure: Regenerate.
16911
9e4344e5
PA
169122010-06-20 Ian Lance Taylor <iant@google.com>
16913 Pedro Alves <pedro@codesourcery.com>
16914
16915 * linux-x86-low.c (always_true): Delete.
16916 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16917 trying to fool the compiler with always_true.
16918
c6beb2cb
PA
169192010-06-20 Pedro Alves <pedro@codesourcery.com>
16920
16921 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16922 conditions in gdbserver.
16923
d2ed6730
UW
169242010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16925
16926 * spu-low.c (spu_read_memory): Wrap around local store limit.
16927 (spu_write_memory): Likewise.
16928
4e29fb54
PA
169292010-06-15 Pedro Alves <pedro@codesourcery.com>
16930
16931 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16932 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16933 LONGEST uses.
16934 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16935 uses.
16936 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16937 uses with LONGEST uses.
16938
6a271cae
PA
169392010-06-14 Stan Shebs <stan@codesourcery.com>
16940 Pedro Alves <pedro@codesourcery.com>
16941
16942 Bytecode compiler.
16943
16944 * linux-x86-low.c: Include limits.h.
16945 (add_insns): New.
16946 (always_true): New.
16947 (EMIT_ASM): New.
16948 (EMIT_ASM32): New.
16949 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16950 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16951 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16952 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16953 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16954 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16955 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16956 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16957 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16958 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16959 (amd64_emit_void_call_2): New.
16960 (amd64_emit_ops): New.
16961 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16962 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16963 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16964 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16965 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16966 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16967 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16968 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16969 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16970 (i386_emit_stack_adjust, i386_emit_int_call_1)
16971 (i386_emit_void_call_2): New.
16972 (i386_emit_ops): New.
16973 (x86_emit_ops): New.
16974 (the_low_target): Install x86_emit_ops.
16975 * server.h (struct emit_ops): New.
16976 (get_raw_reg_func_addr): Declare.
16977 (current_insn_ptr, emit_error): Declare.
16978 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16979 (set_trace_state_variable_value): New defines.
16980 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16981 addr_get_trace_state_variable_value and
16982 addr_set_trace_state_variable_value.
16983 (symbol_list): New fields for get_raw_reg,
16984 get_trace_state_variable_value and set_trace_state_variable_value.
16985 (condfn): New typedef.
16986 (struct tracepoint): New field `compiled_cond'.
16987 (do_action_at_tracepoint): Clear compiled_cond.
16988 (get_trace_state_variable_value, set_trace_state_variable_value):
16989 Export in the IPA.
16990 (condition_true_at_tracepoint): If there's a compiled condition,
16991 run that.
16992 (current_insn_ptr, emit_error): New globals.
16993 (struct bytecode_address): New.
16994 (get_raw_reg_func_addr): New.
16995 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16996 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16997 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16998 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16999 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17000 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17001 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17002 (compile_tracepoint_condition, compile_bytecodes): New.
17003 * target.h (emit_ops): Forward declare.
17004 (struct target_ops): New field emit_ops.
17005 (target_emit_ops): New.
17006 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17007 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17008 * linux-low.c (linux_emit_ops): New.
17009 (linux_target_ops): Install it.
17010 * linux-low.h (struct linux_target_ops): New field emit_ops.
17011
92b72907
UW
170122010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17013
17014 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17015 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17016
fa593d66
PA
170172010-06-01 Pedro Alves <pedro@codesourcery.com>
17018 Stan Shebs <stan@codesourcery.com>
17019
17020 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17021 (all): Depend on $(extra_libraries).
17022 (install-only): Install the IPA.
17023 (IPA_OBJS, IPA_LIB): New.
17024 (clean): Remove the IPA lib.
17025 (IPAGENT_CFLAGS): New.
17026 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17027 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17028 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17029 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17030 * configure.ac: Check for atomic builtins support in the compiler.
17031 (IPA_DEPFILES, extra_libraries): Define.
17032 * configure.srv (ipa_obj): Add description.
17033 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17034 (i[34567]86-*-linux*): Set ipa_obj.
17035 (x86_64-*-linux*): Set ipa_obj.
17036 * linux-low.c (stabilizing_threads): New.
17037 (supports_fast_tracepoints): New.
17038 (linux_detach): Stabilize threads before detaching.
17039 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17040 the lwp is either not stabilizing, or is moving out of a jump pad.
17041 (linux_fast_tracepoint_collecting): New.
17042 (maybe_move_out_of_jump_pad): New.
17043 (enqueue_one_deferred_signal): New.
17044 (dequeue_one_deferred_signal): New.
17045 (linux_wait_for_event_1): If moving out of a jump pad, defer
17046 pending signals to later.
17047 (linux_stabilize_threads): New.
17048 (linux_wait_1): Check if threads need moving out of jump pads, and
17049 do it if so.
17050 (stuck_in_jump_pad_callback): New.
17051 (move_out_of_jump_pad_callback): New.
17052 (lwp_running): New.
17053 (linux_resume_one_lwp): Handle moving out of jump pads.
17054 (linux_set_resume_request): Dequeue deferred signals.
17055 (need_step_over_p): Also step over fast tracepoint jumps.
17056 (start_step_over): Also uninsert fast tracepoint jumps.
17057 (finish_step_over): Also reinsert fast tracepoint jumps.
17058 (linux_install_fast_tracepoint_jump): New.
17059 (linux_target_ops): Install linux_stabilize_threads and
17060 linux_install_fast_tracepoint_jump_pad.
17061 * linux-low.h (linux_target_ops) <get_thread_area,
17062 install_fast_tracepoint_jump_pad>: New fields.
17063 (struct lwp_info) <collecting_fast_tracepoint,
17064 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17065 (linux_get_thread_area): Declare.
17066 * linux-x86-low.c (jump_insn): New.
17067 (x86_get_thread_area): New.
17068 (append_insns): New.
17069 (push_opcode): New.
17070 (amd64_install_fast_tracepoint_jump_pad): New.
17071 (i386_install_fast_tracepoint_jump_pad): New.
17072 (x86_install_fast_tracepoint_jump_pad): New.
17073 (the_low_target): Install x86_get_thread_area and
17074 x86_install_fast_tracepoint_jump_pad.
17075 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17076 (struct fast_tracepoint_jump): New.
17077 (fast_tracepoint_jump_insn): New.
17078 (fast_tracepoint_jump_shadow): New.
17079 (find_fast_tracepoint_jump_at): New.
17080 (fast_tracepoint_jump_here): New.
17081 (delete_fast_tracepoint_jump): New.
17082 (set_fast_tracepoint_jump): New.
17083 (uninsert_fast_tracepoint_jumps_at): New.
17084 (reinsert_fast_tracepoint_jumps_at): New.
17085 (set_breakpoint_at): Use write_inferior_memory.
17086 (uninsert_raw_breakpoint): Use write_inferior_memory.
17087 (check_mem_read): Mask out fast tracepoint jumps.
17088 (check_mem_write): Mask out fast tracepoint jumps.
17089 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17090 (set_fast_tracepoint_jump): Declare.
17091 (delete_fast_tracepoint_jump)
17092 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17093 (reinsert_fast_tracepoint_jumps_at): Declare.
17094 * regcache.c: Don't compile many functions when building the
17095 in-process agent library.
17096 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17097 the register buffer in the heap.
17098 (free_register_cache): If the register buffer isn't owned by the
17099 regcache, don't free it.
17100 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17101 pre-existing register caches.
17102 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17103 type.
17104 (convert_ascii_to_int): : Constify `from' parameter type.
17105 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17106 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17107 the needed buffer in-place.
17108 (relocate_instruction): New.
17109 * server.c (handle_query) <qSymbols>: If the target supports
17110 tracepoints, give it a chance of looking up symbols. Report
17111 support for fast tracepoints.
17112 (handle_status): Stabilize threads.
17113 (process_serial_event): Adjust.
17114 * server.h (struct fast_tracepoint_jump): Forward declare.
17115 (struct process_info) <fast_tracepoint_jumps>: New field.
17116 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17117 (decode_X_packet, decode_M_packet): Adjust.
17118 (relocate_instruction): Declare.
17119 (in_process_agent_loaded): Declare.
17120 (tracepoint_look_up_symbols): Declare.
17121 (struct fast_tpoint_collect_status): Declare.
17122 (fast_tracepoint_collecting): Declare.
17123 (force_unlock_trace_buffer): Declare.
17124 (handle_tracepoint_bkpts): Declare.
17125 (initialize_low_tracepoint)
17126 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17127 * target.h (struct target_ops) <stabilize_threads,
17128 install_fast_tracepoint_jump_pad>: New fields.
17129 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17130 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17131 [HAVE_STDINT_H]: Include stdint.h.
17132 (trace_debug_1): Rename to ...
17133 (trace_vdebug): ... this.
17134 (trace_debug): Rename to ...
17135 (trace_debug_1): ... this. Add `level' parameter.
17136 (trace_debug): New.
17137 (ATTR_USED, ATTR_NOINLINE): New.
17138 (IP_AGENT_EXPORT): New.
17139 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17140 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17141 (about_to_request_buffer_space, trace_buffer_is_full)
17142 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17143 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17144 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17145 (traceframe_write_count, traceframes_created)
17146 (trace_state_variables)
17147 New renaming defines.
17148 (struct ipa_sym_addresses): New.
17149 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17150 (symbol_list): New.
17151 (ipa_sym_addrs): New.
17152 (all_tracepoint_symbols_looked_up): New.
17153 (in_process_agent_loaded): New.
17154 (write_e_ipa_not_loaded): New.
17155 (maybe_write_ipa_not_loaded): New.
17156 (tracepoint_look_up_symbols): New.
17157 (debug_threads) [IN_PROCESS_AGENT]: New.
17158 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17159 (UNKNOWN_SIDE_EFFECTS): New.
17160 (stop_tracing): New.
17161 (flush_trace_buffer): New.
17162 (stop_tracing_bkpt): New.
17163 (flush_trace_buffer_bkpt): New.
17164 (read_inferior_integer): New.
17165 (read_inferior_uinteger): New.
17166 (read_inferior_data_pointer): New.
17167 (write_inferior_data_pointer): New.
17168 (write_inferior_integer): New.
17169 (write_inferior_uinteger): New.
17170 (struct collect_static_trace_data_action): Delete.
17171 (enum tracepoint_type): New.
17172 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17173 <actions_str, step_actions, step_actions_str>: Only include in
17174 GDBserver.
fa593d66
PA
17175 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17176 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17177 (tracepoints): Use IP_AGENT_EXPORT.
17178 (last_tracepoint): Don't include in the IPA.
17179 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17180 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17181 (alloced_trace_state_variables): New.
17182 (trace_state_variables): Use IP_AGENT_EXPORT.
17183 (traceframe_t): Delete unused variable.
17184 (circular_trace_buffer): Don't include in the IPA.
17185 (trace_buffer_start): Delete.
17186 (struct trace_buffer_control): New.
17187 (trace_buffer_free): Delete.
17188 (struct ipa_trace_buffer_control): New.
17189 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17190 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17191 New.
17192 (trace_buffer_ctrl): New.
17193 (TRACE_BUFFER_CTRL_CURR): New.
17194 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17195 Reimplement as macros.
17196 (trace_buffer_wrap): Delete.
17197 (traceframe_write_count, traceframe_read_count)
17198 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17199 (struct tracepoint_hit_ctx) <type>: New field.
17200 (struct fast_tracepoint_ctx): New.
17201 (memory_barrier): New.
17202 (cmpxchg): New.
17203 (record_tracepoint_error): Update atomically in the IPA.
17204 (clear_inferior_trace_buffer): New.
17205 (about_to_request_buffer_space): New.
17206 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17207 updating the same buffer.
17208 (add_tracepoint): Default the tracepoint's type to trap
17209 tracepoint, and orig_size to -1.
17210 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17211 internal variables.
17212 (create_trace_state_variable): New parameter `gdb'. Handle it.
17213 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17214 (cmd_qtdp): Handle fast tracepoints.
17215 (cmd_qtdv): Adjust.
17216 (max_jump_pad_size): New.
17217 (gdb_jump_pad_head): New.
17218 (get_jump_space_head): New.
17219 (claim_jump_space): New.
17220 (sort_tracepoints): New.
17221 (MAX_JUMP_SIZE): New.
17222 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17223 IPA.
17224 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17225 support. Upload fast traceframes, and delete internal IPA
17226 breakpoints.
17227 (stop_tracing_handler): New.
17228 (flush_trace_buffer_handler): New.
17229 (cmd_qtstop): Upload fast tracepoints.
17230 (response_tracepoint): Handle fast tracepoints.
17231 (tracepoint_finished_step): Upload fast traceframes. Set the
17232 tracepoint hit context's tracepoint type.
17233 (handle_tracepoint_bkpts): New.
17234 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17235 type. Add comment about fast tracepoints.
17236 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17237 non-existing action_str field.
17238 (get_context_regcache): Handle fast tracepoints.
17239 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17240 to the regcache.
17241 (fast_tracepoint_from_jump_pad_address): New.
17242 (fast_tracepoint_from_ipa_tpoint_address): New.
17243 (collecting_t): New.
17244 (force_unlock_trace_buffer): New.
17245 (fast_tracepoint_collecting): New.
17246 (collecting): New.
17247 (gdb_collect): New.
17248 (write_inferior_data_ptr): New.
17249 (target_tp_heap): New.
17250 (target_malloc): New.
17251 (download_agent_expr): New.
17252 (UALIGN): New.
17253 (download_tracepoints): New.
17254 (download_trace_state_variables): New.
17255 (upload_fast_traceframes): New.
17256 (IPA_FIRST_TRACEFRAME): New.
17257 (IPA_NEXT_TRACEFRAME_1): New.
17258 (IPA_NEXT_TRACEFRAME): New.
17259 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17260 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17261 (gdb_jump_pad_buffer_end): New.
17262 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17263 (initialize_tracepoint): Adjust.
17264 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17265 buffer. Initialize the low module.
17266 * utils.c (PREFIX, TOOLNAME): New.
17267 (malloc_failure): Use PREFIX.
17268 (error): In the IPA, an error causes an exit.
17269 (fatal, warning): Use PREFIX.
17270 (internal_error): Use TOOLNAME.
17271 (NUMCELLS): Increase to 10.
17272 * configure, config.in: Regenerate.
17273
d149dd1d
PA
172742010-06-01 Pedro Alves <pedro@codesourcery.com>
17275
17276 * server.c (handle_query) <qSupported>: Do two passes over the
17277 qSupported string to avoid nesting strtok.
17278
f6528abd
JK
172792010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17280
17281 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17282 (CDEPS): New.
17283 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17284 -Wl,--dynamic-list.
17285 * configure: Regenerate.
17286 * proc-service.list: New.
17287
ca2a87a0
JK
172882010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17289
17290 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17291 New comment.
17292
363a6e9f
OS
172932010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17294
17295 * gdbreplay.c (remote_open): Check error return from socket() call by
17296 its equality to -1 not by it being negative.
17297 * remote-utils.c (remote_open): Likewise.
17298
d23b6cb1
PA
172992010-05-23 Pedro Alves <pedro@codesourcery.com>
17300
17301 * config.h: Regenerate.
17302
28d3cf85
MK
173032010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17304
17305 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17306 doesn't provide PTRACE_GET_THREAD_AREA.
17307
fea36a59
MK
173082010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17309
17310 * linux-m68k-low.c: Include <asm/ptrace.h>
17311 (ps_get_thread_area): Implement.
17312
24b066ba
DE
173132010-05-03 Doug Evans <dje@google.com>
17314
17315 * event-loop.c (struct callback_event): New struct.
17316 (callback_list): New global.
17317 (append_callback_event, delete_callback_event): New functions.
17318 (process_callback): New function.
17319 (start_event_loop): Call it.
17320 * remote-utils.c (NOT_SCHEDULED): Define.
17321 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17322 moved out of readchar.
17323 (readchar): Rewrite. Call reschedule before returning.
17324 (reset_readchar): New function.
17325 (remote_close): Call it.
17326 (process_remaining, reschedule): New functions.
17327 * server.h (callback_handler_func): New typedef.
17328 (append_callback_event, delete_callback_event): Declare.
17329
9836d6ea
PA
173302010-05-03 Pedro Alves <pedro@codesourcery.com>
17331
17332 * proc-service.c (ps_pglobal_lookup): Use
17333 thread_db_look_up_one_symbol.
17334 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17335 parameter. Use it instead of all_symbols_looked_up.
17336 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17337 field.
17338 (all_symbols_looked_up): Don't declare.
17339 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17340 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17341 field.
17342 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17343 Set all_symbols_looked_up here.
17344 (thread_db_look_up_one_symbol): New.
17345 (thread_db_get_tls_address): Adjust.
17346 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17347 thread_db object on the heap, and tentatively set it in the
17348 process structure.
17349 (thread_db_init): Don't set all_symbols_looked_up here.
17350 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17351
7984d532
PA
173522010-05-03 Pedro Alves <pedro@codesourcery.com>
17353
17354 * linux-low.c (linux_kill, linux_detach): Adjust.
17355 (status_pending_p_callback): Remove redundant statement. Check
17356 for !TARGET_WAITIKIND_IGNORE, instead of
17357 TARGET_WAITKIND_STOPPED.
17358 (handle_tracepoints): Make sure LWP is locked. Adjust.
17359 (linux_wait_for_event_1): Adjust.
17360 (linux_cancel_breakpoints): New.
17361 (unsuspend_one_lwp): New.
17362 (unsuspend_all_lwps): New.
17363 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17364 (send_sigstop_callback): Change return type to int, add new
17365 `except' parameter and handle it.
17366 (suspend_and_send_sigstop_callback): New.
17367 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17368 pass them down. If SUSPEND, also increment the lwp's suspend
17369 count.
17370 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17371 (need_step_over_p): Don't consider suspended LWPs.
17372 (start_step_over): Adjust.
17373 (proceed_one_lwp): Change return type to int, add new `except'
17374 parameter and handle it.
17375 (unsuspend_and_proceed_one_lwp): New.
17376 (proceed_all_lwps): Use find_inferior instead of
17377 for_each_inferior.
17378 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17379 also decrement the suspend count of LWPs. Pass `except' down,
17380 instead of hacking its suspend count.
17381 (linux_pause_all): Add `freeze' parameter. Adjust.
17382 (linux_unpause_all): New.
17383 (linux_target_ops): Install linux_unpause_all.
17384 * server.c (handle_status): Adjust.
17385 * target.h (struct target_ops): New fields `unpause_all' and
17386 `cancel_breakpoints'. Add new parameter to `pause_all'.
17387 (pause_all): Add new `freeze' parameter.
17388 (unpause_all): New.
17389 (cancel_breakpoints): New.
17390 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17391 cancel breakpoints.
17392 (cmd_qtstart): Pause threads.
17393 (stop_tracing): Pause threads, and cancel breakpoints.
17394 * win32-low.c (win32_target_ops): Adjust.
17395
e471f25b
PA
173962010-05-03 Pedro Alves <pedro@codesourcery.com>
17397
17398 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17399 the inferior right away from here...
17400 (linux_wait_1): ... to here, and adjust to check the thread's
17401 last_resume_kind instead of the lwp's step or stop_expected flags.
17402
1915ef4f
PA
174032010-05-02 Pedro Alves <pedro@codesourcery.com>
17404
17405 * README: Use consistent `GDB' and `GDBserver' spellings.
17406
f9e39928
PA
174072010-05-02 Pedro Alves <pedro@codesourcery.com>
17408
17409 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17410 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17411 (linux_detach_one_lwp): Assume the lwp is stopped.
17412 (any_thread_of): Delete.
17413 (linux_detach): Stop all lwps here. Don't blindly delete all
17414 breakpoints.
17415 (delete_lwp_callback): New.
17416 (linux_mourn): Delete all lwps of the process that is gone.
17417 (linux_wait_1): Don't delete the last lwp of the process here.
17418 * mem-break.h (mark_breakpoints_out): Declare.
17419 * mem-break.c (mark_breakpoints_out): New.
17420 (free_all_breakpoints): Use it.
17421 * server.c (handle_target_event): If the process is gone, mark
17422 breakpoints out.
17423 * thread-db.c (struct thread_db) <create_bp>: New field.
17424 (thread_db_enable_reporting): Fix prototype. Store a thread event
17425 breakpoint reference in the thread_db struct.
17426 (thread_db_load_search): Clear the thread_db object.
17427 (try_thread_db_load_1): Ditto.
17428 (switch_to_process): New.
17429 (disable_thread_event_reporting): Use it.
17430 (remove_thread_event_breakpoints): New.
17431 (thread_db_detach, thread_db_mourn): Use it.
17432
1e7fc18c
PA
174332010-05-01 Pedro Alves <pedro@codesourcery.com>
17434
17435 * linux-low.c (linux_enable_event_reporting): New.
17436 (linux_wait_for_event_1, handle_extended_wait): Use it.
17437
02fc4de7
PA
174382010-04-30 Pedro Alves <pedro@codesourcery.com>
17439
17440 * linux-low.c (linux_kill_one_lwp, linux_kill)
17441 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17442 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17443 SIGSTOP even if the LWP is stopped.
17444 (send_sigstop_callback): New.
17445 (stop_all_lwps): Use send_sigstop_callback instead.
17446 (linux_resume_one_thread): Adjust.
17447 (proceed_one_lwp): Still proceed an LWP that the client has
17448 requested to stop, if we haven't reported it as stopped yet. Make
17449 sure that LWPs the client want stopped, have a pending SIGSTOP.
17450
bc3b5632
DE
174512010-04-26 Doug Evans <dje@google.com>
17452
ae1ada35
DE
17453 * server.c (handle_general_set): Make static.
17454
bc3b5632
DE
17455 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17456 Print received char after testing for error/eof instead of before.
17457 (input_interrupt): Tweak comment.
17458
65730243
DE
174592010-04-23 Doug Evans <dje@google.com>
17460
17461 * server.c (start_inferior): Print inferior argv if --debug.
17462
a8ae7dc0
AR
174632010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17464
17465 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17466 * nto-x86-low.c: Include server.h
17467
1c07cc19
PM
174682010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17469
17470 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17471 be consistent with other sources of this directory.
17472 (init_registers_amd64): Correct name of source file of this function
17473 in the comment.
17474
e0a61e09
PM
174752010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17476
17477 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17478 64-bit executables.
17479
54709339
PM
174802010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17481
17482 * win32-i386-low.c: Add 64-bit support.
17483 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17484 (init_registers_amd64): Declare.
17485 (mappings): Add 64-bit version of array.
17486 (init_windows_x86): New function.
17487 (the_low_target): Change init_arch field to init_windows_x86.
17488
e8f0053d
PM
174892010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17490
17491 * win32-low.c: Adapt to support also 64-bit architecture.
17492 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17493 (get_image_name): Use SIZE_T type for local variable `done'.
17494 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17495 (toolhelp_get_dll_name): Idem.
17496 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17497 Use uintptr_t typecast to avoid warning.
17498 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17499 (handle_exception): Use phex_nz to avoid warning.
17500 (win32_wait): Remove unused local variable `process'.
17501
c481e77e
PM
175022010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17503
17504 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17505 `amd64-avx.o'.
17506
12ea4b69
PM
175072010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17508
17509 * configure.ac: Use `ws2_32' library for srv_mingw.
17510 * configure: Regenerate.
17511 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17512 * remote-utils.c: Likewise.
17513
f6d1620c
L
175142010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17515
17516 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17517 if __x86_64__ is defined.
17518
8e642873
PM
175192010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17520
17521 * configure: Regenerate.
17522
711e434b
PM
175232010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17524
17525 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17526 * target.h (target_ops): New get_tib_address field.
17527 * win32-low.h (win32_thread_info): Add thread_local_base field.
17528 * win32-low.c (child_add_thread): Add tlb argument.
17529 Set thread_local_base field to TLB.
17530 (get_child_debug_event): Adapt to child_add_thread change.
17531 (win32_get_tib_address): New function.
17532 (win32_target_ops): Set get_tib_address field to
17533 win32_get_tib_address.
17534 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17535
505106cd
PA
175362010-04-12 Pedro Alves <pedro@codesourcery.com>
17537
505106cd
PA
17538 * linux-low.c (linux_mourn): Also remove the process.
17539 * server.c (handle_target_event): Don't remove the process here.
17540 * nto-low.c (nto_mourn): New.
17541 (nto_target_ops): Install it.
17542 * spu-low.c (spu_mourn): New.
17543 (spu_target_ops): Install it.
17544 * win32-low.c (win32_mourn): New.
17545 (win32_target_ops): Install it.
17546
e8470a06
PA
175472010-04-12 Pedro Alves <pedro@codesourcery.com>
17548
17549 * server.h (buffer_xml_printf): Remove redundant `;'.
17550
45ba0d02
PA
175512010-04-12 Pedro Alves <pedro@codesourcery.com>
17552
17553 * regcache.c (set_register_cache): Invalidate regcaches before
17554 changing the register cache layout.
17555 (regcache_invalidate_one): Allow a NULL regcache.
17556 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17557 regcaches before changing the register cache layout or the target
17558 regsets.
17559
59e04013
L
175602010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17561
17562 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17563 variable warning on Linux/x86-64.
17564
8336d594
PA
175652010-04-11 Pedro Alves <pedro@codesourcery.com>
17566
17567 GDBserver disconnected tracing support.
17568
17569 * linux-low.c (linux_remove_process): Delete.
17570 (add_lwp): Don't set last_resume_kind here.
17571 (linux_kill): Use `mourn'.
17572 (linux_detach): Use `thread_db_detach', and `mourn'.
17573 (linux_mourn): New.
17574 (linux_attach_lwp_1): Adjust comment.
17575 (linux_attach): last_resume_kind moved the thread_info; adjust.
17576 (status_pending_p_callback): Adjust.
17577 (linux_wait_for_event_1): Adjust.
17578 (count_events_callback, select_singlestep_lwp_callback)
17579 (select_event_lwp_callback, cancel_breakpoints_callback)
17580 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17581 (proceed_one_lwp): Adjust.
17582 (linux_async): Add debug output.
17583 (linux_thread_stopped): New.
17584 (linux_pause_all): New.
17585 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17586 linux_pause_all.
17587 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17588 (thread_db_free): Delete declaration.
17589 (thread_db_detach, thread_db_mourn): Declare.
17590 * thread-db.c (thread_db_init): Use thread_db_mourn.
17591 (thread_db_free): Delete, split in two.
17592 (disable_thread_event_reporting): New.
17593 (thread_db_detach): New.
17594 (thread_db_mourn): New.
17595
17596 * server.h (struct thread_info) <last_resume_kind>: New field.
17597 <attached>: Add comment.
17598 <gdb_detached>: New field.
17599 (handler_func): Change return type to int.
17600 (handle_serial_event, handle_target_event): Ditto.
17601 (gdb_connected): Declare.
17602 (tracing): Delete.
17603 (disconnected_tracing): Declare.
17604 (stop_tracing): Declare.
17605
17606 * server.c (handle_query) <qSupported>: Report support for
17607 disconnected tracing.
17608 (queue_stop_reply_callback): Account for running threads.
17609 (gdb_wants_thread_stopped): New.
17610 (gdb_wants_all_threads_stopped): New.
17611 (gdb_reattached_process): New.
17612 (handle_status): Clear the `gdb_detached' flag of all processes.
17613 In all-stop, stop all threads.
17614 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17615 (process_serial_event): If the remote connection breaks, or if an
17616 exit was forced with "monitor exit", force an event loop exit.
17617 Handle disconnected tracing on detach.
17618 (handle_serial_event): Adjust.
17619 (handle_target_event): If GDB isn't connected, forward events back
17620 to the inferior, unless the last process exited, in which case,
17621 exit gdbserver. Adjust interface.
17622
17623 * remote-utils.c (remote_open): Don't block in accept. Instead
17624 register an event loop source on the listen socket file
17625 descriptor. Refactor bits into ...
17626 (listen_desc): ... this new global.
17627 (gdb_connected): ... this new function.
17628 (enable_async_notification): ... this new function.
17629 (handle_accept_event): ... this new function.
17630 (remote_close): Clear remote_desc.
17631
17632 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17633
17634 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17635 New fields.
17636 (mourn_inferior): Define.
17637 (target_process_qsupported): Avoid the dangling else problem.
17638 (thread_stopped): Define.
17639 (pause_all): Define.
17640 (target_waitstatus_to_string): Declare.
17641 * target.c (target_waitstatus_to_string): New.
17642
17643 * tracepoint.c (tracing): Make extern.
17644 (disconnected_tracing): New.
17645 (stop_tracing): Make extern. Handle tracing stops due to GDB
17646 disconnecting.
17647 (cmd_qtdisconnected): New.
17648 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17649 (handle_tracepoint_general_set): Handle QTDisconnected.
17650
17651 * event-loop.c (event_handler_func): Change return type to int.
17652 (process_event): Bail out if the event handler wants the event
17653 loop to stop.
17654 (handle_file_event): Ditto.
17655 (start_event_loop): Bail out if the event handler wants the event
17656 loop to stop.
17657
17658 * nto-low.c (nto_target_ops): Adjust.
17659 * spu-low.c (spu_wait): Don't remove the process here.
17660 (spu_target_ops): Adjust.
17661 * win32-low.c (win32_wait): Don't remove the process here.
17662 (win32_target_ops): Adjust.
17663
5d267c4c
PA
176642010-04-11 Pedro Alves <pedro@codesourcery.com>
17665
17666 * regcache.c (realloc_register_cache): Invalidate inferior's
17667 regcache before recreating it.
17668
623ccd72
PA
176692010-04-09 Pedro Alves <pedro@codesourcery.com>
17670
17671 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17672
219f2f23
PA
176732010-04-09 Stan Shebs <stan@codesourcery.com>
17674 Pedro Alves <pedro@codesourcery.com>
17675
17676 * server.h (LONGEST): New.
17677 (struct thread_info) <while_stepping>: New field.
17678 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17679 Declare.
17680 (initialize_tracepoint, handle_tracepoint_general_set)
17681 (handle_tracepoint_query, tracepoint_finished_step)
17682 (tracepoint_was_hit, release_while_stepping_state_list):
17683 (current_traceframe): Declare.
17684 * server.c (handle_general_set): Handle tracepoint packets.
17685 (read_memory): New.
17686 (write_memory): New.
17687 (handle_search_memory_1): Use read_memory.
17688 (handle_query): Report support for conditional tracepoints, trace
17689 state variables, and tracepoint sources. Handle tracepoint
17690 queries.
17691 (main): Initialize the tracepoints module.
17692 (process_serial_event): Handle traceframe reads/writes.
17693
17694 * linux-low.c (handle_tracepoints): New.
17695 (linux_wait_1): Call it.
17696 (linux_resume_one_lwp): Handle while-stepping.
17697 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17698 (linux_target_ops): Install them.
17699 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17700 New field.
17701 * linux-x86-low.c (x86_supports_tracepoints): New.
17702 (the_low_target). Install it.
17703
17704 * mem-break.h (delete_breakpoint): Declare.
17705 * mem-break.c (delete_breakpoint): Make external.
17706
17707 * target.h (struct target_ops): Add `supports_tracepoints',
17708 `read_pc', and `write_pc' fields.
17709 (target_supports_tracepoints): Define.
17710 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17711 (phex_nz): New.
17712
17713 * regcache.h (struct regcache) <registers_owned>: New field.
17714 (init_register_cache, regcache_cpy): Declare.
17715 (regcache_read_pc, regcache_write_pc): Declare.
17716 (register_cache_size): Declare.
17717 (supply_regblock): Declare.
17718 * regcache.c (init_register_cache): New.
17719 (new_register_cache): Use it.
17720 (regcache_cpy): New.
17721 (register_cache_size): New.
17722 (supply_regblock): New.
17723 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17724
219f2f23
PA
17725 * tracepoint.c: New.
17726
17727 * Makefile.in (OBS): Add tracepoint.o.
17728 (tracepoint.o): New rule.
17729
3a13a53b
L
177302010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17731
17732 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17733 (i386-mmx.o): New.
17734 (i386-mmx.c): Likewise.
17735 (i386-mmx-linux.o): Likewise.
17736 (i386-mmx-linux.c): Likewise.
17737
17738 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17739 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17740 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17741 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17742
17743 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17744 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17745 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17746
1570b33e
L
177472010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17748
17749 * Makefile.in (clean): Updated.
17750 (i386-avx.o): New.
17751 (i386-avx.c): Likewise.
17752 (i386-avx-linux.o): Likewise.
17753 (i386-avx-linux.c): Likewise.
17754 (amd64-avx.o): Likewise.
17755 (amd64-avx.c): Likewise.
17756 (amd64-avx-linux.o): Likewise.
17757 (amd64-avx-linux.c): Likewise.
17758
17759 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17760 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17761 (srv_amd64_regobj): Add amd64-avx.o.
17762 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17763 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17764 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17765 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17766 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17767 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17768 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17769
17770 * i387-fp.c: Include "i386-xstate.h".
17771 (i387_xsave): New.
17772 (i387_cache_to_xsave): Likewise.
17773 (i387_xsave_to_cache): Likewise.
17774 (x86_xcr0): Likewise.
17775
17776 * i387-fp.h (i387_cache_to_xsave): Likewise.
17777 (i387_xsave_to_cache): Likewise.
17778 (x86_xcr0): Likewise.
17779
17780 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17781 * linux-crisv32-low.c (target_regsets): Likewise.
17782 * linux-m68k-low.c (target_regsets): Likewise.
17783 * linux-mips-low.c (target_regsets): Likewise.
17784 * linux-ppc-low.c (target_regsets): Likewise.
17785 * linux-s390-low.c (target_regsets): Likewise.
17786 * linux-sh-low.c (target_regsets): Likewise.
17787 * linux-sparc-low.c (target_regsets): Likewise.
17788 * linux-xtensa-low.c (target_regsets): Likewise.
17789
17790 * linux-low.c: Include <sys/uio.h>.
17791 (regsets_fetch_inferior_registers): Support nt_type.
17792 (regsets_store_inferior_registers): Likewise.
17793 (linux_process_qsupported): New.
17794 (linux_target_ops): Add linux_process_qsupported.
17795
17796 * linux-low.h (regset_info): Add nt_type.
17797 (linux_target_ops): Add process_qsupported.
17798
17799 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17800 and <sys/uio.h>.
17801 (init_registers_i386_avx_linux): New.
17802 (init_registers_amd64_avx_linux): Likewise.
17803 (xmltarget_i386_linux_no_xml): Likewise.
17804 (xmltarget_amd64_linux_no_xml): Likewise.
17805 (PTRACE_GETREGSET): Likewise.
17806 (PTRACE_SETREGSET): Likewise.
17807 (x86_fill_xstateregset): Likewise.
17808 (x86_store_xstateregset): Likewise.
17809 (use_xml): Likewise.
17810 (x86_linux_update_xmltarget): Likewise.
17811 (x86_linux_process_qsupported): Likewise.
17812 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17813 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17814 init_registers_i386_linux here. Call
17815 x86_linux_update_xmltarget.
17816 (the_low_target): Add x86_linux_process_qsupported.
17817
17818 * server.c (handle_query): Call target_process_qsupported.
17819
17820 * target.h (target_ops): Add process_qsupported.
17821 (target_process_qsupported): New.
17822
fc7238bb
PA
178232010-04-03 Pedro Alves <pedro@codesourcery.com>
17824
17825 * inferiors.c (add_thread): Set last_status kind to
17826 TARGET_WAITKIND_IGNORE.
17827 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17828 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17829 (linux_wait_1): Move `thread' local definition to block that uses
17830 it. Don't NULL initialize `event_child'.
17831 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17832 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17833 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17834
bdabb078
PA
178352010-04-01 Pedro Alves <pedro@codesourcery.com>
17836
17837 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17838 an extended waitstatus, or by a watchpoint.
17839 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17840 thread was stepping or has been stopped by a watchpoint.
17841
d3bbe7a0
PA
178422010-04-01 Pedro Alves <pedro@codesourcery.com>
17843
17844 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17845 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17846 of another, then delete the previous, and validate all
17847 breakpoints.
17848 (validate_inserted_breakpoint): New.
17849 (delete_disabled_breakpoints): New.
17850 (validate_breakpoints): New.
17851 (check_mem_read): Validate breakpoints before trusting their
17852 shadow. Delete disabled breakpoints.
17853 (check_mem_write): Validate breakpoints before trusting they
17854 should be inserted. Delete disabled breakpoints.
17855 * mem-break.h (validate_breakpoints):
17856 * server.c (handle_query): Validate breakpoints when we see a
17857 qSymbol query.
17858
8b07ae33
PA
178592010-04-01 Pedro Alves <pedro@codesourcery.com>
17860
17861 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17862 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17863 if we could tell there's a GDB breakpoint at stop_pc.
17864 (need_step_over_p): Don't do a step over if we find a GDB
17865 breakpoint at the resume PC.
17866
17867 * mem-break.c (struct raw_breakpoint): New.
17868 (enum bkpt_type): New type `gdb_breakpoint'.
17869 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17870 fields. New field `raw'.
17871 (find_raw_breakpoint_at): New.
17872 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17873 breakpoint instead.
17874 (set_breakpoint_at): Adjust.
17875 (delete_raw_breakpoint): New.
17876 (release_breakpoint): New.
17877 (delete_breakpoint): Rename to...
17878 (delete_breakpoint_1): ... this. Add proc parameter. Use
17879 release_breakpoint. Return ENOENT.
17880 (delete_breakpoint): Reimplement.
17881 (find_breakpoint_at): Delete.
17882 (find_gdb_breakpoint_at): New.
17883 (delete_breakpoint_at): Delete.
17884 (set_gdb_breakpoint_at): New.
17885 (delete_gdb_breakpoint_at): New.
17886 (gdb_breakpoint_here): New.
17887 (set_reinsert_breakpoint): Use release_breakpoint.
17888 (uninsert_breakpoint): Rename to ...
17889 (uninsert_raw_breakpoint): ... this.
17890 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17891 (reinsert_raw_breakpoint): Change parameter type to
17892 raw_breakpoint.
17893 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17894 instead.
17895 (check_breakpoints): Adjust. Use release_breakpoint.
17896 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17897 (breakpoint_inserted_here): Ditto.
17898 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17899 Don't trust the breakpoint's shadow if it is not inserted.
17900 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17901 (delete_all_breakpoints): Adjust.
17902 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17903 use delete_breakpoint_1.
17904
17905 * mem-break.h (breakpoints_supported): Delete declaration.
17906 (set_gdb_breakpoint_at): Declare.
17907 (gdb_breakpoint_here): Declare.
17908 (delete_breakpoint_at): Delete.
17909 (delete_gdb_breakpoint_at): Declare.
17910
17911 * server.h (struct raw_breakpoint): Forward declare.
17912 (struct process_info): New field `raw_breakpoints'.
17913
17914 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17915 breakpoints.
17916
6bf5e0ba
PA
179172010-03-24 Pedro Alves <pedro@codesourcery.com>
17918
17919 * linux-low.c (status_pending_p_callback): Fix comment.
17920 (linux_wait_for_event_1): Move most of the internal breakpoint
17921 handling from here...
17922 (linux_wait_1): ... to here.
17923 (count_events_callback): New.
17924 (select_singlestep_lwp_callback): New.
17925 (select_event_lwp_callback): New.
17926 (cancel_breakpoints_callback): New.
17927 (select_event_lwp): New.
17928 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17929 priority to all LWPs that have had events that should be reported
17930 to the client. Cancel breakpoints when about to reporting the
17931 event to the client, not while stopping lwps. No longer cancel
17932 finished single-steps here.
17933 (cancel_finished_single_step): Delete.
17934 (cancel_finished_single_steps): Delete.
17935
414a389f
PA
179362010-03-24 Pedro Alves <pedro@codesourcery.com>
17937
17938 * mem-break.c (enum bkpt_type): New.
17939 (struct breakpoint): New field `type'.
17940 (set_breakpoint_at): Change return type to struct breakpoint
17941 pointer. Set type to `other_breakpoint' by default.
17942 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17943 in the breakpoint list.
17944 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17945 (reinsert_breakpoint): Rename to ...
17946 (reinsert_raw_breakpoint): ... this.
17947 (reinsert_breakpoints_at): Adjust.
17948 * mem-break.h (struct breakpoint): Declare.
17949 (set_breakpoint_at): Change return type to struct breakpoint
17950 pointer.
17951
2280c721
PA
179522010-03-24 Pedro Alves <pedro@codesourcery.com>
17953
17954 * server.c (handle_query): Assign, not compare.
17955
d50171e4
PA
179562010-03-24 Pedro Alves <pedro@codesourcery.com>
17957
17958 Teach linux gdbserver to step-over-breakpoints.
17959
17960 * linux-low.c (can_hardware_single_step): New.
17961 (supports_breakpoints): New.
17962 (handle_extended_wait): If stopping threads, read the stop pc of
17963 the new cloned LWP.
17964 (get_pc): New.
17965 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17966 low target doesn't support retrieving the PC.
17967 (add_lwp): Set last_resume_kind to resume_continue.
17968 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17969 (linux_attach): Don't clear stop_expected. Set the lwp's
17970 last_resume_kind to resume_stop.
17971 (linux_detach_one_lwp): Don't check for removed breakpoints.
17972 (check_removed_breakpoint): Delete.
17973 (status_pending_p): Rename to ...
17974 (status_pending_p_callback): ... this. Don't check for removed
17975 breakpoints. Don't consider threads that are stopped from GDB's
17976 perspective.
17977 (linux_wait_for_lwp): Always read the stop_pc here.
17978 (cancel_breakpoint): New.
17979 (step_over_bkpt): New global.
17980 (linux_wait_for_event_1): Implement stepping over breakpoints.
17981 (gdb_wants_lwp_stopped): New.
17982 (gdb_wants_all_stopped): New.
17983 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17984 single-step traps here. Store the thread's last reported target
17985 wait status.
17986 (send_sigstop): Don't clear stop_expected. Always set it,
17987 instead.
17988 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17989 (cancel_finished_single_step): New.
17990 (cancel_finished_single_steps): New.
17991 (wait_for_sigstop): Don't cancel finished single-step traps here.
17992 (linux_resume_one_lwp): Don't check for removed breakpoints.
17993 Don't set `step' on non-hardware step archs.
17994 (linux_set_resume_request): Ignore resume_stop requests if already
17995 stopping or stopped. Set the lwp's last_resume_kind.
17996 (resume_status_pending_p): Don't check for removed breakpoints.
17997 (need_step_over_p): New.
17998 (start_step_over): New.
17999 (finish_step_over): New.
18000 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18001 requests. Clear the thread's last reported target waitstatus.
18002 Don't use the `suspended' flag. Don't consider pending breakpoints.
18003 (linux_resume): Start a step-over if necessary.
18004 (proceed_one_lwp): New.
18005 (proceed_all_lwps): New.
18006 (unstop_all_lwps): New.
18007 * linux-low.h (struct lwp_info): Rewrite comment for the
18008 `suspended' flag. Add the `stop_pc' field. Delete the
18009 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18010 Add `'last_resume_kind' and `need_step_over' fields.
18011 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18012 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18013 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18014 (set_raw_breakpoint_at): New.
18015 (set_breakpoint_at): Rewrite to use it.
18016 (reinsert_breakpoint_handler): Delete.
18017 (set_reinsert_breakpoint): New.
18018 (reinsert_breakpoint_by_bp): Delete.
18019 (delete_reinsert_breakpoints): New.
18020 (uninsert_breakpoint): Rewrite.
18021 (uninsert_breakpoints_at): New.
18022 (reinsert_breakpoint): Rewrite.
18023 (reinsert_breakpoints_at): New.
18024 (check_breakpoints): Rewrite.
18025 (breakpoint_here): New.
18026 (breakpoint_inserted_here): New.
18027 (check_mem_read): Adjust.
18028 * mem-break.h (breakpoints_supported, breakpoint_here)
18029 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18030 (reinsert_breakpoint_by_bp): Delete declaration.
18031 (delete_reinsert_breakpoints): Declare.
18032 (reinsert_breakpoint): Delete declaration.
18033 (reinsert_breakpoints_at): Declare.
18034 (uninsert_breakpoint): Delete declaration.
18035 (uninsert_breakpoints_at): Declare.
18036 (check_breakpoints): Adjust prototype.
18037 * server.h: Adjust include order.
18038 (struct thread_info): Declare here. Add a `last_status' field.
18039
30ba68cb
MS
180402010-03-23 Michael Snyder <msnyder@vmware.com>
18041
18042 * server.c (crc32): New function.
18043 (handle_query): Add handling for 'qCRC:' request.
18044
b9a881c2
PA
180452010-03-23 Pedro Alves <pedro@codesourcery.com>
18046
18047 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18048 lwp had been stopped by a watchpoint.
18049
e92d13d5
PA
180502010-03-16 Pedro Alves <pedro@codesourcery.com>
18051
18052 * server.h (internal_error): Declare.
18053 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18054 * utils.c (internal_error): New function.
18055
64daa791
AS
180562010-03-15 Andreas Schwab <schwab@redhat.com>
18057
18058 * configure.srv: Fix typo setting srv_regobj.
18059
f52cd8cd
PA
180602010-03-15 Pedro Alves <pedro@codesourcery.com>
18061
18062 * linux-low.c (fetch_register): Avoid passing a non string literal
18063 format to `error'.
18064 (usr_store_inferior_registers): Ditto.
18065
93ae6fdc
PA
180662010-03-14 Pedro Alves <pedro@codesourcery.com>
18067
18068 * linux-low.c (linux_write_memory): Bail out early if peeking
18069 memory failed.
18070
c3adc08c
PA
180712010-03-14 Pedro Alves <pedro@codesourcery.com>
18072
18073 * linux-low.h (struct lwp_info): New fields
18074 `stopped_by_watchpoint' and `stopped_data_address'.
18075 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18076 here, and cache them in the lwp object.
18077 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18078 directly.
18079 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18080 field.
18081 (linux_stopped_by_watchpoint): Rewrite.
18082 (linux_stopped_data_address): Rewrite.
18083
bce522a2
PA
180842010-03-06 Simo Melenius <simo.melenius@iki.fi>
18085
18086 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18087 switching the current inferior, not before.
18088
90884b2b
L
180892010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18090
18091 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18092 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18093 i386-linux.c and amd64-linux.c.
18094 (reg-i386.o): Removed.
18095 (reg-i386.c): Likewise.
18096 (reg-i386-linux.o): Likewise.
18097 (reg-i386-linux.c): Likewise.
18098 (reg-x86-64.o): Likewise.
18099 (reg-x86-64.c): Likewise.
18100 (reg-x86-64-linux.o): Likewise.
18101 (reg-x86-64-linux.c): Likewise.
18102 (i386.o): New.
18103 (i386.c): Likewise.
18104 (i386-linux.o): Likewise.
18105 (i386-linux.c): Likewise.
18106 (amd64.o): Likewise.
18107 (amd64.c): Likewise.
18108 (amd64-linux.o): Likewise.
18109 (amd64-linux.c): Likewise.
18110
18111 * configure.srv (srv_i386_regobj): New.
18112 (srv_i386_linux_regobj): Likewise.
18113 (srv_amd64_regobj): Likewise.
18114 (srv_amd64_linux_regobj): Likewise.
18115 (srv_i386_32bit_xmlfiles): Likewise.
18116 (srv_i386_64bit_xmlfiles): Likewise.
18117 (srv_i386_xmlfiles): Likewise.
18118 (srv_amd64_xmlfiles): Likewise.
18119 (srv_i386_linux_xmlfiles): Likewise.
18120 (srv_amd64_linux_xmlfiles): Likewise.
18121 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18122 srv_xmlfiles to $srv_i386_xmlfiles.
18123 (i[34567]86-*-mingw32ce*): Likewise.
18124 (i[34567]86-*-mingw*): Likewise.
18125 (i[34567]86-*-nto*): Likewise.
18126 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18127 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18128 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18129 (x86_64-*-linux*): Likewise.
18130
18131 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18132 (init_registers_amd64_linux): New.
18133 (x86_arch_setup): Replace init_registers_x86_64_linux with
18134 init_registers_amd64_linux.
18135
193f13e6
MK
181362010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18137
18138 * configure.ac: Check for libdl. If it is not available link against
18139 static libthread_db.
18140 * configure: Regenerate.
18141
85d721b8
PA
181422010-02-22 Pedro Alves <pedro@codesourcery.com>
18143
18144 PR9605
18145
18146 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18147 handing a read watchpoint.
18148 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18149
6076632b
DE
181502010-02-12 Doug Evans <dje@google.com>
18151
18152 * linux-low.c (linux_supports_tracefork_flag): Document.
18153 (linux_look_up_symbols): Add comment.
18154
3327ccf7
L
181552010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18156
18157 * regcache.c (supply_register): Clear regcache if buf is NULL.
18158
0718675c 181592010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18160 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18161
18162 * inferiors.c (find_inferior): Add function documentation.
18163 (unloaded_dll): Handle the case where the unloaded dll has not
18164 been previously registered in the dll list.
18165
177321bd
DJ
181662010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18167
18168 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18169 (thumb2_breakpoint): New.
18170 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18171
2b009048
DJ
181722010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18173
18174 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18175 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18176 breakpoints.
18177
3be029c7
PA
181782010-01-21 Pedro Alves <pedro@codesourcery.com>
18179
18180 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18181
18f5de3b
JK
181822010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18183
18184 * linux-s390-low.c (s390_collect_ptrace_register)
18185 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18186
3743bb4f
DE
181872010-01-21 Doug Evans <dje@google.com>
18188
14ce3065
DE
18189 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18190 (PTRACE_ARG4_TYPE): New macro.
18191 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18192 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18193 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18194 (usr_store_inferior_registers): Ditto.
18195 (linux_read_memory, linux_write_memory): Ditto.
18196 (linux_test_for_tracefork): Ditto.
18197
3743bb4f
DE
18198 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18199 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18200
8b315be5
PA
182012010-01-21 Pedro Alves <pedro@codesourcery.com>
18202
18203 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18204 target.
18205
85492558
PA
182062010-01-21 Pedro Alves <pedro@codesourcery.com>
18207
18208 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18209 prototype to take a regcache. Adjust.
18210
442ea881
PA
182112010-01-20 Pedro Alves <pedro@codesourcery.com>
18212
18213 * regcache.h (struct thread_info): Forward declare.
18214 (struct regcache): New.
18215 (new_register_cache): Adjust prototype.
18216 (get_thread_regcache): Declare.
18217 (free_register_cache): Adjust prototype.
18218 (registers_to_string, registers_from_string): Ditto.
18219 (supply_register, supply_register_by_name, collect_register)
18220 (collect_register_as_string, collect_register_by_name): Ditto.
18221 * regcache.c (struct inferior_regcache_data): Delete.
18222 (get_regcache): Rename to ...
18223 (get_thread_regcache): ... this. Adjust. Switch inferior before
18224 fetching registers.
18225 (regcache_invalidate_one): Adjust.
18226 (regcache_invalidate): Fix prototype.
18227 (new_register_cache): Return the new register cache.
18228 (free_register_cache): Change prototype.
18229 (realloc_register_cache): Adjust.
18230 (registers_to_string): Change prototype to take a regcache. Adjust.
18231 (registers_from_string): Ditto.
18232 (register_data): Ditto.
18233 (supply_register): Ditto.
18234 (supply_register_by_name): Ditto.
18235 (collect_register): Ditto.
18236 (collect_register_as_string): Ditto.
18237 (collect_register_by_name): Ditto.
18238 * server.c (process_serial_event): Adjust.
18239 * linux-low.h (regset_fill_func, regset_store_func): Change
18240 prototype.
18241 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18242 Change prototype.
18243 * linux-low.c (get_stop_pc): Adjust.
18244 (check_removed_breakpoint): Adjust.
18245 (linux_wait_for_event): Adjust.
18246 (linux_resume_one_lwp): Adjust.
18247 (fetch_register): Add regcache parameter. Adjust.
18248 (usr_store_inferior_registers): Ditto.
18249 (regsets_fetch_inferior_registers): Ditto.
18250 (regsets_store_inferior_registers): Ditto.
18251 (linux_fetch_registers, linux_store_registers): Ditto.
18252 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18253 regcache. Adjust.
43aaf8b6
PA
18254 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18255 Ditto.
442ea881
PA
18256 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18257 prototype to take a regcache.
18258 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18259 * remote-utils.c (convert_ascii_to_int, outreg)
18260 (prepare_resume_reply): Change prototype to take a regcache.
18261 Adjust.
18262 * target.h (struct target_ops) <fetch_registers, store_registers>:
18263 Change prototype to take a regcache.
18264 (fetch_inferior_registers, store_inferior_registers): Change
18265 prototype to take a regcache. Adjust.
18266 * proc-service.c (ps_lgetregs): Adjust.
18267 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18268 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18269 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18270 take a regcache. Adjust.
18271 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18272 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18273 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18274 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18275 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18276 (cris_cannot_fetch_register):
18277 (cris_breakpoint_at): Change prototype to take a regcache.
18278 Adjust.
18279 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18280 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18281 to take a regcache. Adjust.
18282 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18283 Adjust.
18284 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18285 take a regcache. Adjust.
18286 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18287 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18288 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18289 * linux-mips-low.c (mips_get_pc):
18290 (mips_set_pc): Change prototype to take a regcache. Adjust.
18291 (mips_reinsert_addr): Adjust.
18292 (mips_collect_register): Change prototype to take a regcache.
18293 Adjust.
18294 (mips_supply_register):
18295 (mips_collect_register_32bit, mips_supply_register_32bit)
18296 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18297 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18298 * linux-ppc-low.c (ppc_supply_ptrace_register)
18299 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18300 (parse_spufs_run): Adjust.
18301 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18302 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18303 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18304 take a regcache. Adjust.
18305 * linux-s390-low.c (s390_collect_ptrace_register)
18306 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18307 (s390_set_pc): Change prototype to take a regcache. Adjust.
18308 (s390_arch_setup): Adjust.
18309 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18310 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18311 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18312 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18313 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18314 regcache. Adjust.
18315 (sparc_breakpoint_at): Adjust.
18316 * linux-xtensa-low.c (xtensa_fill_gregset):
18317 (xtensa_store_gregset):
18318 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18319 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18320 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18321 prototype to take a regcache. Adjust.
18322 * win32-arm-low.c (arm_fetch_inferior_register)
18323 (arm_store_inferior_register): Change prototype to take a
18324 regcache. Adjust.
18325 * win32-i386-low.c (i386_fetch_inferior_register)
18326 (i386_store_inferior_register): Change prototype to take a
18327 regcache. Adjust.
18328 * win32-low.c (child_fetch_inferior_registers)
18329 (child_store_inferior_registers): Change prototype to take a
18330 regcache. Adjust.
18331 (win32_wait): Adjust.
18332 (win32_fetch_inferior_registers): Change prototype to take a
18333 regcache. Adjust.
18334 (win32_store_inferior_registers): Adjust.
18335 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18336 store_inferior_register>: Change prototype to take a regcache.
18337
60c3d7b0
DE
183382010-01-20 Doug Evans <dje@google.com>
18339
18340 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18341 #ifdef.
18342 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18343 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18344
dc146f7c
VP
183452010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18346
18347 * linux-low.c (linux_core_of_thread): New.
18348 (compare_ints, show_process, list_threads): New.
18349 (linux_qxfer_osdata): Report threads and cores.
18350 (linux_target_op): Register linux_core_of_thread.
18351 * remote-utils.c (prepare_resume_reply): Report the core.
18352 (buffer_xml_printf): Support %d specifier.
18353 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18354 New.
18355 (handle_query): Handle qXfer:threads. Announce availability
18356 thereof.
18357 * target.h (struct target_ops): New field core_of_thread.
18358
7803799a
UW
183592010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18360
18361 * Makefile.in (clean): Remove new generated files.
18362 (reg-s390.o, reg-s390.c): Remove rules.
18363 (reg-s390x.o, reg-s390x.c): Likewise.
18364 (s390-linux32.o, s390-linux32.c): Add rules.
18365 (s390-linux64.o, s390-linux64.c): Likewise.
18366 (s390x-linux64.o, s390x-linux64.c): Likewise.
18367 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18368 * linux-s390-low.c: Include <elf.h>.
18369 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18370 (init_registers_s390): Remove prototype.
18371 (init_registers_s390x): Likewise.
18372 (init_registers_s390_linux32): Add prototype.
18373 (init_registers_s390_linux64): Likewise.
18374 (init_registers_s390x_linux64): Likewise.
18375 (s390_num_regs_3264): New define.
18376 (s390_regmap_3264): New global variable.
18377 (s390_cannot_fetch_register): Remove obsolete check.
18378 (s390_cannot_store_register): Likewise.
18379 (s390_collect_ptrace_register): Handle upper/lower register halves.
18380 (s390_supply_ptrace_register): Likewise.
18381 (s390_fill_gregset): Update to register number changes.
18382 (s390_get_hwcap): New routine.
18383 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18384 Install appropriate regmap and register set.
18385
6e7ffa39
JB
183862010-01-01 Joel Brobecker <brobecker@adacore.com>
18387
18388 * server.c (gdbserver_version): Update copyright year to 2010.
18389 * gdbreplay.c (gdbreplay_version): Likewise.
18390
957f3f49
DE
183912009-12-28 Doug Evans <dje@google.com>
18392
18393 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18394 elf/external.h. Include <elf.h> instead but only if necessary.
18395
ca5c370d
PA
183962009-12-28 Pedro Alves <pedro@codesourcery.com>
18397
18398 * linux-low.c (linux_remove_process): Remove `detaching'
18399 parameter. Don't release/detach from thread_db here.
18400 (linux_kill): Release/detach from thread_db here, ...
18401 (linux_detach): ... and here, before actually detaching.
18402 (linux_wait_1): ... and here, when a process exits.
18403 * thread-db.c (any_thread_of): New.
18404 (thread_db_free): Switch the current inferior to a thread of the
18405 passed in process.
18406
4ee62156
DE
184072009-12-21 Doug Evans <dje@google.com>
18408
d90e6a88
DE
18409 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18410
c5f62d5f
DE
18411 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18412 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18413 warning ifndef __NR_tkill. Move setting of errno there too.
18414 Delete unnecessary resetting of errno after syscall.
18415 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18416
10e86dd7
DE
18417 * configure.ac: Check for dladdr.
18418 * config.in: Regenerate.
18419 * configure: Regenerate.
18420 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18421 (try_thread_db_load): Update.
18422
4ee62156
DE
18423 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18424
00f515da
DE
184252009-12-18 Doug Evans <dje@google.com>
18426
e9464885
DE
18427 * event-loop.c: Include unistd.h if it exists.
18428
07d4f67e
DE
18429 * linux-low.c (my_waitpid): Move definition away from being in
18430 between linux_tracefork_child/linux_test_for_tracefork.
18431
00f515da
DE
18432 * gdb_proc_service.h (psaddr_t): Fix type.
18433 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18434 signature to match glibc.
18435
1de1badb
DE
184362009-12-16 Doug Evans <dje@google.com>
18437
18438 * linux-low.c (linux_read_memory): Fix argument to read.
18439
aeeb81d1
PA
184402009-11-26 Pedro Alves <pedro@codesourcery.com>
18441
18442 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18443 events, don't leave current_inferior pointing at null.
18444
10357975
PA
184452009-11-26 Pedro Alves <pedro@codesourcery.com>
18446
18447 * win32-low.c (LOG): Delete.
18448 (OUTMSG): Output to stderr.
18449 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18450 on compile time LOG macro.
18451 (win32_wait): Fix debug output.
18452
cf6e3471
PA
184532009-11-26 Pedro Alves <pedro@codesourcery.com>
18454
18455 * win32-low.c (win32_add_one_solib): If the dll name is
18456 "ntdll.dll", prepend the system directory to the dll path.
18457
0c85e18e
MK
184582009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18459
18460 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18461
9ac544ce 184622009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18463 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18464
18465 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18466 * configure.ac: Check for __mcoldfire__ and set
18467 gdb_cv_m68k_is_coldfire.
18468 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18469 reg-cf.o and reg-m68k.o.
18470 * configure: Regenerated.
18471
fd7dd3e6
PA
184722009-11-16 Pedro Alves <pedro@codesourcery.com>
18473
18474 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18475 Pass it to thread_db_free.
18476 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18477 proper `detaching' argument to linux_remove_process.
18478 * linux-low.h (thread_db_free): Add `detaching' parameter.
18479 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18480 to thread_db_free.
18481 (thread_db_free): Add `detaching' parameter. Only
18482 call td_ta_clear_event if detaching from process.
18483
75aa492e
MK
184842009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18485
18486 * thread-db.c (thread_db_free): Fix typo.
18487
21e1bee4
PP
184882009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18489
18490 PR gdb/10838
18491 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18492
8838b45e
NS
184932009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18494
18495 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18496 with an i686 compiler.
18497 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18498 needed.
18499 * configure: Rebuilt.
18500
8a35fb51
SL
185012009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18502
18503 PR gdb/10783
18504
18505 * server.c (handle_search_memory_1): Correct read_addr initialization
18506 in loop for searching subsequent chunks.
18507
96f15937
PP
185082009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18509
18510 * configure.ac: New --with-libthread-db option.
18511 * thread-db.c: Allow direct dependence on libthread_db.
18512 (thread_db_free): Adjust.
18513 * config.in: Regenerate.
18514 * configure: Likewise.
889bf7c5 18515
5f7d1694
PP
185162009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18517
18518 PR gdb/10757
18519 * thread-db.c (attach_thread): New function.
18520 (maybe_attach_thread): Return success/failure.
18521 (find_new_threads_callback): Adjust.
889bf7c5
PA
18522 (thread_db_find_new_threads): Loop until no new threads.
18523
88e3b899
PA
185242009-10-13 Pedro Alves <pedro@codesourcery.com>
18525
18526 * proc-service.c (ps_lgetregs): Formatting.
18527
cdbfd419
PP
185282009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18529
18530 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18531 * configure.ac: Adjust.
18532 * linux-low.h (struct process_info_private): Move members to struct
18533 thread_db.
18534 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18535 * linux-low.c (linux_remove_process): Adjust.
18536 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18537 * server.c (handle_query): Move code ...
18538 (handle_monitor_command): ... here. New function.
18539 * target.h (struct target_ops): New member.
18540 * thread-db.c (struct thread_db): New.
18541 (libthread_db_search_path): New variable.
18542 (thread_db_create_event, thread_db_enable_reporting)
18543 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18544 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18545 (try_thread_db_load_1, dladdr_to_soname): New functions.
18546 (try_thread_db_load, thread_db_load_search): New functions.
18547 (thread_db_init): Search for libthread_db.
18548 (thread_db_free): New function.
18549 (thread_db_handle_monitor_command): Likewise.
18550 * config.in: Regenerate.
18551 * configure: Regenerate.
889bf7c5 18552
4168d2d6
UW
185532009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18554
18555 * spu-low.c (spu_kill): Wait for inferior to terminate.
18556 Call clear_inferiors.
18557 (spu_detach): Call clear_inferiors.
18558
81ecdfbb
RW
185592009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18560
18561 * aclocal.m4: Regenerate.
18562 * config.in: Likewise.
18563 * configure: Likewise.
18564
0b9ff2c0
UW
185652009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18566
18567 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18568 (parse_spufs_run): New function.
18569 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18570 (ppc_breakpoint_at): Handle SPU breakpoints.
18571
efcbbd14
UW
185722009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18573
18574 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18575 (SPUFS_MAGIC): Define.
18576 (spu_enumerate_spu_ids): New function.
18577 (linux_qxfer_spu): New function.
18578 (linux_target_ops): Install linux_qxfer_spu.
18579
f4d9bade
UW
185802009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18581
18582 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18583 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18584 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18585 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18586 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18587 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18588 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18589 (init_registers_powerpc_cell32l): Add prototype.
18590 (init_registers_powerpc_cell64l): Likewise.
18591 (ppc_arch_setup): Detect Cell/B.E. architecture.
18592
96e946ca
RW
185932009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18594
18595 * Makefile.in (datarootdir): New variable.
18596
58d6951d
DJ
185972009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18598
18599 * linux-low.c (linux_write_memory): Update debugging output.
18600 * Makefile.in (clean): Add new descriptions.
18601 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18602 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18603 * configure.srv: Add new files for arm*-*-linux*.
18604 * linux-arm-low.c: Add new declarations.
18605 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18606 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18607 (HWCAP_VFPv3D16): New.
18608 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18609 instead of __IWMMXT__.
18610 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18611 (arm_arch_setup): New.
18612 (target_regsets): Remove #ifdef. Add VFP regset.
18613 (the_low_target): Use arm_arch_setup.
18614
12b42a12
DJ
186152009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18616
18617 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18618 the main thread again.
18619
ac8c974e
AR
186202009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18621
18622 Adding Neutrino gdbserver.
18623 * configure: Regenerated.
18624 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18625 * configure.srv (i[34567]86-*-nto*): New target.
18626 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18627 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18628 (nto_comctrl) [__QNX__]: New function.
18629 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18630
4424e0c3 186312009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18632
18633 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18634 srv_tgtobj.
18635
912cf4ba
PA
186362009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18637 Pedro Alves <pedro@codesourcery.com>
18638
18639 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18640 don't support CONTEXT_EXTENDED_REGISTERS.
18641 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18642 (the_low_target): Install them.
18643 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18644 failing with ERROR_PIPE_NOT_CONNECTED.
18645
aa5ca48f
DE
186462009-06-30 Doug Evans <dje@google.com>
18647 Pierre Muller <muller@ics.u-strasbg.fr>
18648
18649 Add h/w watchpoint support to x86-linux, win32-i386.
18650 * Makefile.in (SFILES): Add i386-low.c
18651 (i386_low_h): Define.
18652 (i386-low.o): Add dependencies.
18653 (linux-x86-low.o): Add i386-low.h dependency.
18654 (win32-i386-low.o): Ditto.
18655 * i386-low.c: New file.
18656 * i386-low.h: New file.
18657 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18658 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18659 * linux-low.c (linux_add_process): Initialize arch_private.
18660 (linux_remove_process): Free arch_private.
18661 (add_lwp): Initialize arch_private.
18662 (delete_lwp): Free arch_private.
18663 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18664 provided.
18665 * linux-low.h (process_info_private): New member arch_private.
18666 (lwp_info): New member arch_private.
18667 (linux_target_ops): New members new_process, new_thread,
18668 prepare_to_resume.
18669 (ptid_of): New macro.
18670 * linux-x86-low.c: Include stddef.h, i386-low.h.
18671 (arch_process_info): New struct.
18672 (arch_lwp_info): New struct.
18673 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18674 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18675 (i386_dr_low_get_status): New function.
18676 (x86_insert_point, x86_remove_point): New functions.
18677 (x86_stopped_by_watchpoint): New function.
18678 (x86_stopped_data_address): New function.
18679 (x86_linux_new_process, x86_linux_new_thread): New functions.
18680 (x86_linux_prepare_to_resume): New function.
18681 (the_low_target): Add entries for insert_point, remove_point,
18682 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18683 prepare_to_resume.
18684 * server.c (debug_hw_points): New global.
18685 (monitor_show_help): Document set debug-hw-points.
18686 (handle_query): Process "set debug-hw-points".
18687 * server.h (debug_hw_points): Declare.
18688 (paddress): Declare.
18689 * utils.c (NUMCELLS, CELLSIZE): New macros.
18690 (get_sell, xsnprintf, paddress): New functions.
18691 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18692 remove_point, stopped_by_watchpoint, stopped_data_address.
18693 * win32-i386-low.c: Include i386-low.h.
18694 (debug_reg_state): Replaces dr.
18695 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18696 (i386_dr_low_get_status): New function.
18697 (i386_insert_point, i386_remove_point): New functions.
18698 (i386_stopped_by_watchpoint): New function.
18699 (i386_stopped_data_address): New function.
18700 (i386_initial_stuff): Update.
18701 (get_thread_context,set_thread_context,i386_thread_added): Update.
18702 (the_low_target): Add entries for insert_point,
18703 remove_point, stopped_by_watchpoint, stopped_data_address.
18704 * win32-low.c (win32_insert_watchpoint): New function.
18705 (win32_remove_watchpoint): New function.
18706 (win32_stopped_by_watchpoint): New function.
18707 (win32_stopped_data_address): New function.
18708 (win32_target_ops): Add entries for insert_watchpoint,
18709 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18710 * win32-low.h (win32_target_ops): New members insert_point,
18711 remove_point, stopped_by_watchpoint, stopped_data_address.
18712
d993e290
PA
187132009-06-25 Pedro Alves <pedro@codesourcery.com>
18714
18715 * server.c (process_serial_event): Re-return unsupported, not
18716 error, if the type isn't recognized. Re-allow supporting only
18717 insert or remove packets. Also call require_running for
18718 breakpoints. Add missing break statement to default case. Tidy.
18719 * target.h (struct target_ops): Rename insert_watchpoint to
18720 insert_point, and remove_watchpoint to remove_point.
18721
18722 * linux-low.h (struct linux_target_ops): Likewise.
18723 * linux-low.c (linux_insert_watchpoint): Rename to ...
18724 (linux_insert_point): ... this. Adjust.
18725 (linux_remove_watchpoint): Rename to ...
18726 (linux_remove_point): ... this. Adjust.
18727 (linux_target_ops): Adjust.
18728 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18729 (cris_insert_point): ... this.
18730 (cris_remove_watchpoint): Rename to ...
18731 (cris_remove_point): ... this.
18732 (the_low_target): Adjust.
18733
0f54c268
PM
187342009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18735
18736 * server.c (handle_v_kill): Pass signal_pid to
18737 kill_inferior if multi_process is zero.
18738
c6314022
AR
187392009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18740
18741 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18742 * target.h (target_ops): Comment for *_watchpoint to make it clear
18743 the functions can get types '0' and '1'.
18744
4463ce24
AR
187452009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18746
18747 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18748 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18749 * regcache.c (get_regcache): Likewise.
18750 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18751 * win32-low.c (child_fetch_inferior_registers): Remove check for
18752 regno 0.
18753
cf8fd78b
PA
187542009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18755 Pedro Alves <pedro@codesourcery.com>
18756
18757 * target.h (struct target_ops) <supports_multi_process>: New
18758 callback.
18759 (target_supports_multi_process): New.
18760 * server.c (handle_query): Even if GDB reports support, only
18761 enable multi-process if the target also supports it. Report
18762 multi-process support only if the target backend supports it.
18763 * linux-low.c (linux_supports_multi_process): New function.
18764 (linux_target_ops): Install it as target_supports_multi_process
18765 callback.
18766
47c0c975
DE
187672009-05-24 Doug Evans <dje@google.com>
18768
e09875d4
DE
18769 Global renaming of find_thread_pid to find_thread_ptid.
18770 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18771 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18772 All callers updated.
18773
e27d73f6
DE
18774 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18775 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18776 directly.
18777
47c0c975
DE
18778 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18779 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18780 (linux_resume_one_lwp): Ditto.
18781
2acc282a
DE
187822009-05-23 Doug Evans <dje@google.com>
18783
18784 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18785 from struct inferior_list_entry * to struct lwp_info *.
18786 All callers updated.
18787
9f1036c1
DE
187882009-05-13 Doug Evans <dje@google.com>
18789
18790 * linux-x86-low.c: Don't include assert.h.
18791 (x86_siginfo_fixup): Use fatal, not assert.
18792 (x86_arch_setup): Fix comment.
18793
d0722149
DE
187942009-05-12 Doug Evans <dje@google.com>
18795
18796 Biarch support for i386/amd64 gdbserver.
18797 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18798 Add linux-x86-low.c.
18799 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18800 (linux-x86-low.o): Add.
18801 * linux-x86-64-low.c: Delete.
18802 * linux-i386-low.c: Delete.
18803 * linux-x86-low.c: New file.
18804 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18805 linux-x86-low.o.
18806 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18807 linux-x86-low.o.
18808 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18809 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18810 (linux_child_pid_to_exec_file): New function.
18811 (elf_64_header_p, elf_64_file_p): New functions.
18812 (siginfo_fixup): New function.
18813 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18814 give target a chance to convert layout.
18815 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18816 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18817
fdeb2a12
DE
188182009-05-07 Doug Evans <dje@google.com>
18819
18820 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18821 (regsets_store_inferior_registers): Ditto.
18822
a6dbe5df
PA
188232009-05-06 Pedro Alves <pedro@codesourcery.com>
18824
18825 PR server/10048
18826
18827 * linux-low.c (must_set_ptrace_flags): Delete.
18828 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18829 of the global.
18830 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18831 `lwp->must_set_ptrace_flags' instead.
ba42693b 18832 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18833 (linux_wait_1): ... not here.
18834
5091eb23
DE
188352009-04-30 Doug Evans <dje@google.com>
18836
9f767825
DE
18837 * inferiors.c (started_inferior_callback): New function.
18838 (attached_inferior_callback): New function.
18839 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18840 * server.c (print_started_pid, print_attached_pid): New functions.
18841 (detach_or_kill_for_exit): New function.
18842 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18843 * server.h (have_started_inferiors_p): Declare.
18844 (have_attached_inferiors_p): Declare.
18845
5091eb23
DE
18846 * inferiors.c (remove_process): Fix memory leak, free process.
18847 * linux-low.c (linux_remove_process): New function.
18848 (linux_kill): Call it instead of remove_process.
18849 (linux_detach, linux_wait_1): Ditto.
18850
155c8968
PA
188512009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18852
18853 * configure.srv: Add x86 Windows CE target.
18854
7fe519cb
UW
188552009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18856
18857 * inferiors.c (get_thread_process): Make global.
18858 * server.h (get_thread_process): Add prototype.
18859 * thread-db.c (find_one_thread): Use get_thread_process
18860 instead of current_process.
18861 (thread_db_get_tls_address): Do not crash if called when
18862 thread layer is not yet initialized.
18863
5472f405
UW
188642009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18865
18866 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18867 * spu-low.c (current_tid): Rename to ...
18868 (current_ptid): ... this.
18869 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18870 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18871 ptid_get_lwp (current_ptid) instead of current_tid.
18872 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18873 instead of current_tid. Use find_process_pid to verify pid
18874 argument is valid. Pass proper argument to remove_process.
18875 (spu_thread_alive): Compare current_ptid instead of current_tid.
18876 (spu_resume): Likewise.
18877
55ac2b99
PA
188782009-04-02 Pedro Alves <pedro@codesourcery.com>
18879
18880 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18881 variable.
18882
95954743
PA
188832009-04-01 Pedro Alves <pedro@codesourcery.com>
18884
18885 Implement the multiprocess extensions, and add linux multiprocess
18886 support.
18887
18888 * server.h (ULONGEST): Declare.
18889 (struct ptid, ptid_t): New.
18890 (minus_one_ptid, null_ptid): Declare.
18891 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18892 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18893 (struct inferior_list_entry): Change `id' type from unsigned from
18894 to ptid_t.
18895 (struct sym_cache, struct breakpoint, struct
18896 process_info_private): Forward declare.
18897 (struct process_info): Declare.
18898 (current_process): Declare.
18899 (all_processes): Declare.
18900 (initialize_inferiors): Declare.
18901 (add_thread): Adjust to use ptid_t.
18902 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18903 (add_process, remove_process, find_thread_pid): Declare.
18904 (find_inferior_id): Adjust to use ptid_t.
18905 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18906 (multi_process): Declare.
18907 (push_event): Adjust to use ptid_t.
18908 (read_ptid, write_ptid): Declare.
18909 (prepare_resume_reply): Adjust to use ptid_t.
18910 (clear_symbol_cache): Declare.
18911 * inferiors.c (all_processes): New.
18912 (null_ptid, minus_one_ptid): New.
18913 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18914 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18915 (add_thread): Change unsigned long to ptid. Remove gdb_id
18916 parameter. Adjust.
18917 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18918 (gdb_id_to_thread): Rename to ...
18919 (find_thread_pid): ... this. Change unsigned long to ptid.
18920 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18921 (loaded_dll, pull_pid_from_list): Adjust.
18922 (add_process, remove_process, find_process_pid)
18923 (get_thread_process, current_process, initialize_inferiors): New.
18924 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18925 (struct target_waitstatus) <related_pid>: Ditto.
18926 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18927 return type to int.
18928 (struct target_ops) <join>: Add `pid' argument.
18929 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18930 (struct target_ops) <wait>: Add `ptid' field. Change return type
18931 to ptid.
18932 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18933 (mywait): Add `ptid' argument. Change return type to ptid_t.
18934 (target_pid_to_str): Declare.
18935 * target.c (set_desired_inferior): Adjust to use ptids.
18936 (mywait): Add new `ptid' argument. Adjust.
18937 (target_pid_to_str): New.
18938 * mem-break.h (free_all_breakpoints): Declare.
18939 * mem-break.c (breakpoints): Delelete.
18940 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18941 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18942 to use per-process breakpoint list.
18943 (free_all_breakpoints): New.
18944 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18945 (symbol_cache, all_symbols_looked_up): Delete.
18946 (hexchars): New.
18947 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18948 read_ptid): New.
18949 (prepare_resume_reply): Change ptid argument's type from unsigned
18950 long to ptid_t. Adjust. Implement W;process and X;process.
18951 (free_sym_cache, clear_symbol_cache): New.
18952 (look_up_one_symbol): Adjust to per-process symbol cache. *
18953 * server.c (cont_thread, general_thread, step_thread): Change type
18954 to ptid_t.
18955 (attached): Delete.
18956 (multi_process): New.
18957 (last_ptid): Change type to ptid_t.
18958 (struct vstop_notif) <ptid>: Change type to ptid_t.
18959 (queue_stop_reply, push_event): Change `ptid' argument's type to
18960 ptid_t.
18961 (discard_queued_stop_replies): Add `pid' argument.
18962 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18963 changes. Don't reference the `attached' global.
18964 (attach_inferior): Adjust to mywait interface changes.
18965 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18966 features. Handle and report "multiprocess+". Handle
18967 "qAttached:PID".
18968 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18969 changes.
18970 (handle_v_kill): New.
18971 (handle_v_stopped): Adjust to use target_pid_to_str.
18972 (handle_v_requests): Allow multiple attaches and runs when
18973 multiprocess extensions are in effect. Handle "vKill".
18974 (myresume): Adjust to use ptids.
18975 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18976 (handle_status): Adjust to discard_queued_stop_replies interface
18977 change.
18978 (first_thread_of, kill_inferior_callback)
18979 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18980 (main): Call initialize_inferiors. Adjust to use ptids, killing
18981 and detaching from all inferiors. Handle multiprocess packet
18982 variants.
18983 * linux-low.h: Include gdb_proc_service.h.
18984 (struct process_info_private): New.
18985 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18986 <lwpid_of>: Use ptid_get_lwp.
18987 (get_lwp_thread): Adjust.
18988 (struct lwp_info): Add `dead' member.
18989 (find_lwp_pid): Declare.
18990 * linux-low.c (thread_db_active): Delete.
18991 (new_inferior): Adjust comment.
18992 (inferior_pid): Delete.
18993 (linux_add_process): New.
18994 (handle_extended_wait): Adjust.
18995 (add_lwp): Change unsigned long to ptid.
18996 (linux_create_inferior): Add process to processes table. Adjust
18997 to use ptids. Don't set new_inferior here.
18998 (linux_attach_lwp): Rename to ...
18999 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19000 it. Adjust to use ptids.
19001 (linux_attach_lwp): New.
19002 (linux_attach): Add process to processes table. Don't set
19003 new_inferior here.
19004 (struct counter): New.
19005 (second_thread_of_pid_p, last_thread_of_process_p): New.
19006 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19007 multiple processes.
19008 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19009 processes. Remove process from process table.
19010 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19011 to multiple processes.
19012 (any_thread_of): New.
19013 (linux_detach): Add `pid' argument, and handle it. Remove process
19014 from processes table.
19015 (linux_join): Add `pid' argument. Handle it.
19016 (linux_thread_alive): Change unsighed long argument to ptid_t.
19017 Consider dead lwps as not being alive.
19018 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19019 threads we're not interested in.
19020 (same_lwp, find_lwp_pid): New.
19021 (linux_wait_for_lwp): Change `pid' argument's type from int to
19022 ptid_t. Adjust.
19023 (linux_wait_for_event): Rename to ...
19024 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19025 from int to ptid_t. Adjust.
19026 (linux_wait_for_event): New.
19027 (linux_wait_1): Add `ptid' argument. Change return type to
19028 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19029 that exit from the process table.
19030 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19031 Adjust.
19032 (mark_lwp_dead): New.
19033 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19034 stopping all threads, mark its main lwp as dead.
19035 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19036 ptids.
19037 (fetch_register, usr_store_inferior_registers)
19038 (regsets_fetch_inferior_registers)
19039 (regsets_store_inferior_registers, linux_read_memory)
19040 (linux_write_memory): Inline `inferior_pid'.
19041 (linux_look_up_symbols): Adjust to use per-process
19042 `thread_db_active'.
19043 (linux_request_interrupt): Adjust to use ptids.
19044 (linux_read_auxv): Inline `inferior_pid'.
19045 (initialize_low): Don't reference thread_db_active.
19046 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19047 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19048 (ps_getpid): Return the pid of the current inferior.
19049 * thread-db.c (proc_handle, thread_agent): Delete.
19050 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19051 per-process data.
19052 (find_one_thread): Change argument type to ptid_t. Adjust to
19053 per-process data.
19054 (maybe_attach_thread): Adjust to per-process data and ptids.
19055 (thread_db_find_new_threads): Ditto.
19056 (thread_db_init): Ditto.
19057 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19058 processes table. Adjust to use ptids.
19059 (spu_kill, spu_detach): Adjust interface. Remove process from
19060 processes table.
19061 (spu_join, spu_thread_alive): Adjust interface.
19062 (spu_wait): Adjust interface. Remove process from processes
19063 table. Adjust to use ptids.
19064 * win32-low.c (current_inferior_tid): Delete.
19065 (current_inferior_ptid): New.
19066 (debug_event_ptid): New.
19067 (thread_rec): Take a ptid. Adjust.
19068 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19069 (child_delete_thread): Ditto.
19070 (do_initial_child_stuff): Add `attached' argument. Add process to
19071 processes table.
19072 (child_fetch_inferior_registers, child_store_inferior_registers):
19073 Adjust.
19074 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19075 (win32_attach): Pass 1 to do_initial_child_stuff.
19076 (win32_kill): Adjust interface. Remove process from processes
19077 table.
19078 (win32_detach): Ditto.
19079 (win32_join): Adjust interface.
19080 (win32_thread_alive): Take a ptid.
19081 (win32_resume): Adjust to use ptids.
19082 (get_child_debug_event): Ditto.
19083 (win32_wait): Adjust interface. Remove exiting process from
19084 processes table.
19085
bd99dc85
PA
190862009-04-01 Pedro Alves <pedro@codesourcery.com>
19087
19088 Non-stop mode support.
19089
19090 * server.h (non_stop): Declare.
19091 (gdb_client_data, handler_func): Declare.
19092 (delete_file_handler, add_file_handler, start_event_loop):
19093 Declare.
19094 (handle_serial_event, handle_target_event, push_event)
19095 (putpkt_notif): Declare.
19096 * target.h (enum resume_kind): New.
19097 (struct thread_resume): Replace `step' field by `kind' field.
19098 (TARGET_WNOHANG): Define.
19099 (struct target_ops) <wait>: Add `options' argument.
19100 <supports_non_stop, async, start_non_stop>: New fields.
19101 (target_supports_non_stop, target_async): New.
19102 (start_non_stop): Declare.
19103 (mywait): Add `options' argument.
19104 * target.c (mywait): Add `options' argument. Print child exit
19105 notifications here.
19106 (start_non_stop): New.
19107 * server.c (non_stop, own_buf, mem_buf): New globals.
19108 (struct vstop_notif): New.
19109 (notif_queue): New global.
19110 (queue_stop_reply, push_event, discard_queued_stop_replies)
19111 (send_next_stop_reply): New.
19112 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19113 interface changes.
19114 (attach_inferior): In non-stop mode, don't wait for the target
19115 here.
19116 (handle_general_set): Handle QNonStop.
19117 (handle_query): When handling qC, return the current general
19118 thread, instead of the first thread of the list.
19119 (handle_query): If the backend supports non-stop mode, include
19120 QNonStop+ in the qSupported query response.
19121 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19122 and non-stop mode.
19123 (handle_v_attach, handle_v_run): Handle non-stop mode.
19124 (handle_v_stopped): New.
19125 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19126 (myresume): Adjust to use resume_kind. Handle non-stop.
19127 (queue_stop_reply_callback): New.
19128 (handle_status): Handle non-stop mode.
19129 (main): Clear non_stop flag on reconnection. Use the event-loop.
19130 Refactor serial protocol handling from here ...
19131 (process_serial_event): ... to this new function. When GDB
19132 selects any thread, select one here. In non-stop mode, wait until
19133 GDB acks all pending events before exiting.
19134 (handle_serial_event, handle_target_event): New.
19135 * remote-utils.c (remote_open): Install remote_desc in the event
19136 loop.
19137 (remote_close): Remove remote_desc from the event loop.
19138 (putpkt_binary): Rename to...
19139 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19140 (putpkt_binary): New as wrapper around putpkt_binary_1.
19141 (putpkt_notif): New.
19142 (prepare_resume_reply): In non-stop mode, don't change the
19143 general_thread.
19144 * event-loop.c: New.
19145 * Makefile.in (OBJ): Add event-loop.o.
19146 (event-loop.o): New rule.
19147
19148 * linux-low.h (pid_of): Moved here.
19149 (lwpid_of): New.
19150 (get_lwp_thread): Use lwpid_of.
19151 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19152 * linux-low.c (pid_of): Delete.
19153 (inferior_pid): Use lwpid_of.
19154 (linux_event_pipe): New.
19155 (target_is_async_p): New.
19156 (delete_lwp): New.
19157 (handle_extended_wait): Use lwpid_of.
19158 (add_lwp): Don't set lwpid field.
19159 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19160 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19161 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19162 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19163 first. Adjust to linux_wait_for_event interface changes. Use
19164 lwpid_of.
19165 (linux_detach): Don't delete the main lwp here.
19166 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19167 (status_pending_p): Don't consider explicitly suspended lwps.
19168 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19169 pointer. Add OPTIONS argument. Change return type to int. Use
19170 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19171 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19172 pointer. Add status pointer argument. Return a pid instead of a
19173 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19174 changes. In non-stop mode, don't switch to a random thread.
19175 (linux_wait): Rename to...
19176 (linux_wait_1): ... this. Add target_options argument, and handle
19177 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19178 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19179 clean exit and signal exit code. Don't stop all threads in
19180 non-stop mode. In all-stop mode, only stop all threads when
19181 reporting a stop to GDB. Handle explicit thread stop requests.
19182 (async_file_flush, async_file_mark): New.
19183 (linux_wait): New.
19184 (send_sigstop): Use lwpid_of.
19185 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19186 interface changes. In non-stop mode, don't switch to a random
19187 thread.
19188 (linux_resume_one_lwp): Use lwpid_of.
19189 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19190 (linux_resume_one_thread): ... this. Handle resume_stop. In
19191 non-stop mode, don't look for pending flag in all threads.
19192 (resume_status_pending_p): Don't consider explicitly suspended
19193 threads.
19194 (my_waitpid): Reimplement. Emulate __WALL.
19195 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19196 Use lwpid_of.
19197 (sigchld_handler, linux_supports_non_stop, linux_async)
19198 (linux_start_non_stop): New.
19199 (linux_target_ops): Register linux_supports_non_stop, linux_async
19200 and linux_start_non_stop.
19201 (initialize_low): Install SIGCHLD handler.
19202 * thread-db.c (thread_db_create_event, find_one_thread)
19203 (thread_db_get_tls_address): Use lwpid_of.
19204 * win32-low.c (win32_detach): Adjust to use resume_kind.
19205 (win32_wait): Add `options' argument.
19206 * spu-low.c (spu_resume): Adjust to use resume_kind.
19207 (spu_wait): Add `options' argument.
19208
5b1c542e
PA
192092009-04-01 Pedro Alves <pedro@codesourcery.com>
19210
19211 Decouple target code from remote protocol.
19212
19213 * target.h (enum target_waitkind): New.
19214 (struct target_waitstatus): New.
19215 (struct target_ops) <wait>: Return an unsigned long. Take a
19216 target_waitstatus pointer instead of a char pointer.
19217 (mywait): Likewise.
19218 * target.c (mywait): Change prototype to return an unsigned long.
19219 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19220 * server.h (thread_from_wait, old_thread_from_wait): Delete
19221 declarations.
19222 (prepare_resume_reply): Change prototype to take a
19223 target_waitstatus.
19224 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19225 (last_status, last_ptid): New.
19226 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19227 pid instead of a signal.
19228 (attach_inferior): Remove "status" and "signal" parameters.
19229 Adjust.
19230 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19231 not as an address.
19232 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19233 (handle_v_requests, myresume): Remove "status" and "signal"
19234 parameters. Adjust.
19235 (handle_status): New.
19236 (main): Delete local `status'. Adjust.
19237 * remote-utils.c: Include target.h.
19238 (prepare_resume_reply): Change prototype to take a
19239 target_waitstatus. Adjust.
19240
19241 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19242 interface.
19243 * spu-low.c (spu_wait): Adjust.
19244 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19245 Delete.
19246 (win32_wait): Adjust.
19247
2bd7c093
PA
192482009-04-01 Pedro Alves <pedro@codesourcery.com>
19249
19250 * target.h (struct thread_resume): Delete leave_stopped member.
19251 (struct target_ops): Add a `n' argument to the `resume' callback.
19252 * server.c (start_inferior): Adjust.
19253 (handle_v_cont, myresume): Adjust.
19254 * linux-low.c (check_removed_breakpoint): Adjust to resume
19255 interface change, and to removed leave_stopped field.
19256 (resume_ptr): Delete.
19257 (struct thread_resume_array): New.
19258 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19259 resume interface change.
19260 (linux_continue_one_thread, linux_queue_one_thread)
19261 (resume_status_pending_p): Check if the resume field is NULL
19262 instead of checking the leave_stopped member.
19263 (linux_resume): Adjust to the target resume interface change.
19264 * spu-low.c (spu_resume): Adjust to the target resume interface
19265 change.
19266 * win32-low.c (win32_detach, win32_resume): Ditto.
19267
c35fafde
PA
192682009-04-01 Pedro Alves <pedro@codesourcery.com>
19269
19270 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19271 flag.
19272 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19273 pending.
19274 (linux_continue_one_thread): Only preserve the stepping flag if
19275 there's a pending breakpoint.
19276
0a59d50b
PA
192772009-03-31 Pedro Alves <pedro@codesourcery.com>
19278
19279 * server.c (main): After the inferior having exited, call
19280 remote_close before exiting gdbserver.
19281
f04c6d38
TJB
192822009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19283
19284 Fix size of FPSCR in Power 7 processors.
19285 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19286 (PPC_FEATURE_HAS_DFP): New #define.
19287 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19288 size of the FPSCR.
19289
78e5cee6
PA
192902009-03-23 Pedro Alves <pedro@codesourcery.com>
19291
19292 * server.c (handle_query) Whitespace and formatting.
19293
1b3f6016
PA
192942009-03-22 Pedro Alves <pedro@codesourcery.com>
19295
19296 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19297 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19298 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19299 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19300 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19301 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19302 Makefile.in, configure.ac: Fix whitespace throughout.
19303 * configure: Regenerate.
19304
a07b2135
PA
193052009-03-22 Pedro Alves <pedro@codesourcery.com>
19306
19307 * inferiors.c (find_inferior): Make it safe for the callback
19308 function to delete the currently iterated inferior.
19309
67cc2626
PA
193102009-03-22 Pedro Alves <pedro@codesourcery.com>
19311
19312 * Makefile.in (linuw_low_h): Move higher.
19313 (thread-db.o): Depend on $(linux_low_h).
19314
54a0b537
PA
193152009-03-17 Pedro Alves <pedro@codesourcery.com>
19316
19317 Rename "process" to "lwp" throughout.
19318
19319 * linux-low.c (all_processes): Rename to...
19320 (all_lwps): ... this.
19321 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19322 (add_process): Rename to ...
19323 (add_lwp): ... this. Adjust.
19324 (linux_create_inferior): Adjust.
19325 (linux_attach_lwp): Adjust.
19326 (linux_attach): Adjust.
19327 (linux_kill_one_process): Rename to ...
19328 (linux_kill_one_lwp): ... this. Adjust.
19329 (linux_kill): Adjust.
19330 (linux_detach_one_process): Rename to ...
19331 (linux_detach_one_lwp): ... this. Adjust.
19332 (linux_detach): Adjust.
19333 (check_removed_breakpoint): Adjust.
19334 (status_pending_p): Adjust.
19335 (linux_wait_for_process): Rename to ...
19336 (linux_wait_for_lwp): ... this. Adjust.
19337 (linux_wait_for_event): Adjust.
19338 (send_sigstop): Adjust.
19339 (wait_for_sigstop): Adjust.
19340 (stop_all_processes): Rename to ...
19341 (stop_all_lwps): ... this.
19342 (linux_resume_one_process): Rename to ...
19343 (linux_resume_one_lwp): ... this. Adjust.
19344 (linux_set_resume_request, linux_continue_one_thread)
19345 (linux_queue_one_thread, resume_status_pending_p)
19346 (usr_store_inferior_registers, regsets_store_inferior_registers)
19347 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19348 Adjust.
19349 * linux-low.h (get_process): Rename to ...
19350 (get_lwp): ... this. Adjust.
19351 (get_thread_process): Rename to ...
19352 (get_thread_lwp): ... this. Adjust.
19353 (get_process_thread): Rename to ...
19354 (get_lwp_thread): ... this. Adjust.
19355 (struct process_info): Rename to ...
19356 (struct lwp_info): ... this.
19357 (all_processes): Rename to ...
19358 (all_lwps): ... this.
19359 * proc-service.c (ps_lgetregs): Adjust.
19360 * thread-db.c (thread_db_create_event, find_one_thread)
19361 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19362
0b16c5cf
PA
193632009-03-14 Pedro Alves <pedro@codesourcery.com>
19364
19365 * server.c (handle_query): Handle "qAttached".
19366
32de4b9d
NS
193672009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19368
19369 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19370 GPLv3, update license URL.
19371
2aecd87f
DE
193722009-03-01 Doug Evans <dje@google.com>
19373
93efd302 19374 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19375 (server_h): Add gdb_signals.h.
19376 (signals.o): Update.
19377 * server.h (target_signal_from_host,target_signal_to_host_p)
19378 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19379
86b1f9c5
PM
193802009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19381
19382 * remote-utils.c (getpkt): Also generate remote-debug
19383 information if noack_mode is set.
19384
4aa995e1
PA
193852009-02-06 Pedro Alves <pedro@codesourcery.com>
19386
19387 * server.c (handle_query): Report qXfer:siginfo:read and
19388 qXfer:siginfo:write as supported and handle them.
19389 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19390 * linux-low.c (linux_xfer_siginfo): New.
19391 (linux_target_ops): Set it.
19392
62709adf
PA
193932009-01-26 Pedro Alves <pedro@codesourcery.com>
19394
19395 * server.c (gdbserver_usage): Mention --remote-debug.
19396 (main): Accept '--remote-debug' switch.
19397
aef93bd7
DE
193982009-01-18 Doug Evans <dje@google.com>
19399
19400 * regcache.c (new_register_cache): No need to check result of xcalloc.
19401 * server.c (handle_search_memory): Back out calls to xmalloc,
19402 result is checked and error is returned to user upon failure.
19403 (handle_query): Ditto. Add more checks for result of malloc.
19404 (handle_v_cont): Check result of malloc, report error back to
19405 user upon failure.
19406 (handle_v_run): Ditto. Call freeargv.
19407 * server.h (freeargv): Declare.
19408 * utils.c (freeargv): New fn.
19409
54363045
DE
194102009-01-15 Doug Evans <dje@google.com>
19411
f626972c
DE
19412 * gdbreplay.c (perror_with_name): Make arg const char *.
19413 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19414 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19415 * utils.c (perror_with_name): Make arg const char *.
54363045 19416
18aae699
PA
194172009-01-14 Pedro Alves <pedro@codesourcery.com>
19418
19419 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19420 when handling a EXIT_PROCESS_DEBUG_EVENT.
19421
ff703abe
JB
194222009-01-06 Joel Brobecker <brobecker@adacore.com>
19423
19424 * gdbreplay.c (gdbreplay_version): Update copyright year.
19425 * server.c (gdbserver_version): Likewise.
19426
f21cc1a2 194272009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19428
19429 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19430 (handle_extended_wait): Improve comment.
0e21c1ec 19431
bca929d3
DE
194322008-12-13 Doug Evans <dje@google.com>
19433
19434 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19435 * server.h (ATTR_MALLOC): New macro.
19436 (xmalloc,xcalloc,xstrdup): Declare.
19437 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19438 * inferiors.c: Ditto.
19439 * linux-low.c: Ditto.
19440 * mem-break.c: Ditto.
19441 * regcache.c: Ditto.
19442 * remote-utils.c: Ditto.
19443 * server.c: Ditto.
19444 * target.c: Ditto.
19445 * win32-low.c: Ditto.
19446
97438e3f
DE
194472008-12-12 Doug Evans <dje@google.com>
19448
896c7fbb
DE
19449 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19450 in debugging printf.
19451
97438e3f
DE
19452 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19453
e3b886f8
DE
194542008-12-09 Doug Evans <dje@google.com>
19455
19456 * linux-low.h (struct process_info): Delete member tid, unused.
19457 * thread-db.c (find_one_thread): Update.
19458 (maybe_attach_thread): Update.
19459
07e059b5
VP
194602008-12-02 Pedro Alves <pedro@codesourcery.com>
19461
889bf7c5
PA
19462 * target.h (struct target_ops): Add qxfer_osdata member.
19463 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19464 and dirent.h.
19465 (linux_qxfer_osdata): New functions.
19466 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19467 callback.
19468 * server.c (handle_query): Handle "qXfer:osdata:read:".
19469 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19470 (buffer_xml_printf): New functions.
19471 * server.h (struct buffer): New.
19472 (buffer_grow_str, buffer_grow_str0): New macros.
19473 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19474 (buffer_xml_printf): Declare.
07e059b5 19475
4cab47ab
DE
194762008-11-24 Doug Evans <dje@google.com>
19477
19478 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19479
f142445f
DJ
194802008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19481
19482 * server.c (handle_v_run): Always use the supplied argument list.
19483
d0107bb6 194842008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19485
d0107bb6
BW
19486 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19487 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19488
2c4ad781
TJB
194892008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19490
19491 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19492 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19493 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19494 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19495 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19496 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19497 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19498 XML target descriptions.
19499 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19500 when inferior is running on an ISA 2.05 or later processor. Add
19501 special case to return offset for full 64-bit slot of FPSCR when
19502 in 32-bits.
19503
dfb64f85
DJ
195042008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19505
19506 * Makefile.in (SFILES, clean): Added sparc64 files.
19507 (reg-sparc64.o, reg-sparc64.c): New.
19508 * configure.srv (sparc*-*-linux*): New configuration.
19509 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19510 syscall arguments for SPARC.
19511 (regsets_store_inferior_registers): Likewise.
19512 * linux-sparc-low.c: New file.
19513
66b6e1dd
DE
195142008-10-21 Doug Evans <dje@google.com>
19515
19516 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19517 (READLINE_DIR,READLINE_DEP): Delete.
19518 (INTERNAL_CFLAGS): Update.
19519 (LINTFLAGS): Update.
19520
9b710a42
PA
195212008-10-10 Pedro Alves <pedro@codesourcery.com>
19522
19523 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19524 whole argv from the last run, not just argv[0].
19525
5822d809
PA
195262008-09-08 Pedro Alves <pedro@codesourcery.com>
19527
19528 * regcache.c (new_register_cache): Return NULL if the register
19529 cache size isn't known yet.
19530 (free_register_cache): Avoid dereferencing a NULL regcache.
19531
74aac56f
DJ
195322008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19533
19534 * configure.srv: Merge MIPS and MIPS64.
19535
400b20f5
MR
195362008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19537
19538 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19539
677c5bb1
LM
195402008-08-18 Luis Machado <luisgpm@br.ibm.com>
19541
19542 * Makefile.in: Add required vsx dependencies.
19543
19544 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19545 Declare init_registers_powerpc_vsx32l.
19546 Declare init_registers_powerpc_vsx64l.
19547 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19548 (ppc_arch_setup): Check for VSX in hwcap.
19549 (ppc_fill_vsxregset): New function.
19550 (ppc_store_vsxregset): New function.
19551 Add new VSX entry in regset_info target_regsets.
19552
19553 * configure.srv: Add new VSX dependencies.
19554
a6f3e723
SL
195552008-08-12 Pedro Alves <pedro@codesourcery.com>
19556
19557 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19558 (remote_open): Set or clear transport_is_reliable.
19559 (putpkt_binary): Don't expect acks in noack mode.
19560 (getpkt): Don't send ack/nac in noack mode.
19561 * server.c (handle_general_set): Handle QStartNoAckMode.
19562 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19563 qSupported.
19564 (main): Reset noack_mode on every connection.
19565 * server.h (noack_mode): Declare.
19566
a417dc56
RW
195672008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19568
19569 * Makefile.in (GDBREPLAY_OBS): New variable.
19570 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19571
3221518c
UW
195722008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19573 Daniel Jacobowitz <dan@codesourcery.com>
19574
19575 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19576 (usr_store_inferior_registers): Likewise.
19577 (regsets_store_inferior_registers): Likewise.
19578
ec56be1b
PA
195792008-07-31 Rolf Jansen <rj@surtec.com>
19580 Pedro Alves <pedro@codesourcery.com>
19581
19582 * configure.ac: Check for memmem declaration.
19583 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19584 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19585 (disable_packet_qfThreadInfo): Unconditionally compile.
19586 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19587 * configure, config.in: Regenerate.
19588
2fe5e3ff
DE
195892008-07-28 Doug Kwan <dougkwan@google.com>
19590
19591 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19592 (linux_write_memory): Remove declaration of errno.
19593
836acd6d
UW
195942008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19595
19596 * linux-low.c (handle_extended_wait): Do not use "status"
19597 variable uninitialized.
19598
aeba519e
PA
195992008-07-07 Pedro Alves <pedro@codesourcery.com>
19600
19601 * server.c (handle_v_attach): Inhibit reporting dll changes.
19602
db42f210
PA
196032008-06-27 Pedro Alves <pedro@codesourcery.com>
19604
19605 * remote-utils.c (prepare_resume_reply): If requested, don't
19606 output "thread:TID" in the T stop reply.
19607
19608 * server.c (disable_packet_vCont, disable_packet_Tthread)
19609 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19610 (handle_query): If requested, disable support for qC, qfThreadInfo
19611 and qsThreadInfo.
19612 (handle_v_requests): If requested, disable support for vCont.
19613 (gdbserver_show_disableable): New.
19614 (main): Handle --disable-packet and --disable-packet=LIST.
19615
19616 * server.h (disable_packet_vCont, disable_packet_Tthread)
19617 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19618
8e4c5421
CD
196192008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19620
19621 * server.c (gdbserver_usage): Mention --version.
19622
6e23a804
DJ
196232008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19624
19625 * Makefile.in (gdbreplay.o): New rule.
19626
90aa6a40
JM
196272008-06-06 Joseph Myers <joseph@codesourcery.com>
19628
19629 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19630 message, not gdbserver.
19631
c16158bc 196322008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19633 Nathan Sidwell <nathan@codesourcery.com>
19634 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19635
19636 * acinclude.m4: Include ../../config/acx.m4.
19637 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19638 * configure, config.in: Regenerate.
19639 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19640 * server.c (gdbserver_version): Print PKGVERSION.
19641 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19642 (main): Adjust gdbserver_usage calls.
19643 * gdbreplay.c (version, host_name): Add declarations.
19644 (gdbreplay_version, gdbreplay_usage): New.
19645 (main): Accept --version and --help options.
19646
aeb75bf5
DJ
196472008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19648
19649 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19650 (arm_breakpoint_at): Handle Thumb.
19651 (the_low_target): Add comment.
19652
76b233dd
UW
196532008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19654
19655 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19656
08388c79
DE
196572008-05-09 Doug Evans <dje@google.com>
19658
a3c83fae
DE
19659 * server.h (decode_search_memory_packet): Declare.
19660 * remote-utils.c (decode_search_memory_packet): New fn.
19661 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19662 (handle_search_memory): New fn.
19663 (handle_query): Process qSearch:memory packets.
19664
bb9c3d36
UW
196652008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19666
19667 * regcache.c (registers_length): Remove.
19668 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19669 full register packet.
19670 * regcache.h (registers_length): Remove prototype.
19671 * server.h (PBUFSIZ): Define to 16384.
19672
7284e1be
UW
196732008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19674
19675 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19676 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19677 powerpc-64l.o, and powerpc-altivec64l.o.
19678 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19679 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19680 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19681 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19682 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19683 to srv_xmlfiles.
19684
19685 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19686 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19687 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19688 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19689 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19690 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19691 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19692 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19693 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19694 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19695 (clean): Update.
19696
19697 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19698 (init_registers_powerpc_32l): ... this new prototype.
19699 (init_registers_powerpc_32): Remove, replace by ...
19700 (init_registers_powerpc_altivec32l): ... this new prototype.
19701 (init_registers_powerpc_e500): Remove, replace by ...
19702 (init_registers_powerpc_e500l): ... this new prototype.
19703 (init_registers_ppc64): Remove, replace by ...
19704 (init_registers_powerpc_64l): ... this new prototype.
19705 (init_registers_powerpc_64): Remove, replace by ...
19706 (init_registers_powerpc_altivec64l): ... this new prototype.
19707 (ppc_num_regs): Set to 73.
19708 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19709 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19710 (ppc_cannot_store_register): Handle orig_r3 and trap.
19711 (ppc_arch_setup): Update init_registers_... calls.
19712 (ppc_fill_gregset): Handle orig_r3 and trap.
19713
19714 * inferiors.c (clear_inferiors): Reset current_inferior.
19715
fdc59709
PB
197162008-04-23 Paolo Bonzini <bonzini@gnu.org>
19717
889bf7c5
PA
19718 * acinclude.m4: Add override.m4.
19719 * configure: Regenerate.
fdc59709 19720
c9b2f845
UW
197212008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19722
19723 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19724 initial call to init_register_ppc64.
19725
550512b8
UW
197262008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19727
43aaf8b6
PA
19728 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19729 single powerpc*-*-linux* case.
550512b8
UW
19730 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19731
b6430ec3
UW
197322008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19733
19734 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19735 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19736 from reg_xmlfiles.
19737 * linux-ppc-low.c: Include <elf.h>.
19738 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19739 (ppc_hwcap): New global variable.
19740 (ppc_regmap): Remove __SPE__ #ifdef sections.
19741 (ppc_regmap_e500): New global variable.
19742 (ppc_cannot_store_register): Update __SPE__ special case.
19743 (ppc_get_hwcap): New function.
19744 (ppc_arch_setup): Use it to determine whether inferior supports
19745 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19746 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19747 Do not access registers if target does not support AltiVec.
19748 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19749 Do not access registers if target does not support SPE.
19750 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19751
52fa2412
UW
197522008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19753
19754 * linux-low.c (disabled_regsets, num_regsets): New.
19755 (use_regsets_p): Delete.
19756 (linux_wait_for_process): Clear disabled_regsets.
19757 (regsets_fetch_inferior_registers): Check and set it.
19758 (regsets_store_inferior_registers): Likewise.
19759 (linux_fetch_registers, linux_store_registers): Do not use
19760 use_regsets_p.
19761 (initialize_low): Allocate disabled_regsets.
19762
e28b3332
DJ
197632008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19764
19765 * Makefile.in (LIBOBJS): New.
19766 (OBS): Use LIBOBJS.
19767 (memmem.o): New rule.
19768 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19769 * configure: Regenerated.
19770
4536995d
UW
197712008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19772
19773 * server.c (handle_query): Never return "unsupported" for
19774 qXfer:features:read queries.
19775
221c031f
UW
197762008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19777
19778 * server.c (get_features_xml): Fix inverted condition.
19779 (handle_query): Always support qXfer:feature:read.
19780
ccd213ac
DJ
197812008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19782
19783 * server.c (wrapper_argv): New.
19784 (start_inferior): Handle wrapper_argv. If set, expect an extra
19785 trap.
19786 (gdbserver_usage): Document --wrapper.
19787 (main): Parse --wrapper.
19788
6fe305f7
UW
197892008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19790
19791 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19792 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19793 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19794 (ppc_set_pc): Likewise.
19795 (ppc_arch_setup): New function.
19796 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19797 of collect_register.
889bf7c5 19798 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19799
5b0a002e
UW
198002008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19801
19802 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19803 instead of linux-ppc64-low.o.
19804 * linux-ppc64-low.c: Remove file.
19805 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19806 (linux-ppc64-low.o): Remove rule.
19807
19808 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19809 (init_registers_powerpc_64): Likewise.
19810 (ppc_regmap): Conditionally define depending on __powerpc64__.
19811 (ppc_cannot_store_register): Do not special-case "fpscr" when
19812 compiled on __powerpc64__.
19813 (ppc_collect_ptrace_register): New function.
19814 (ppc_supply_ptrace_register): New function.
19815 (ppc_breakpoint): Change type to "unsigned int".
19816 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19817 (the_low_target): Conditionally provide initializers for the
889bf7c5 19818 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19819 collect_ptrace_register and supply_ptrace_register members.
19820
9b4b61c8
UW
198212008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19822
19823 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19824 * server.c (gdbserver_xmltarget): Define.
19825 (get_features_xml): Use it to replace "target.xml" and arch_string.
19826
19827 * configure.srv: Remove srv_xmltarget. Add XML files that were
19828 mentioned there to srv_xmlfiles instead. Remove conditional tests
19829 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19830 srv_xmlfiles and srv_regobj to include all possible choices.
19831 * configure.ac (srv_xmltarget): Remove.
19832 (srv_xmlfiles): Do not add "target.xml".
19833 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19834 checks for supplementary target information.
19835 * configure: Regenerate.
19836 * Makefile.in (XML_TARGET): Remove.
19837 (target.xml): Remove rule.
19838 (clean): Do not clean up target.xml.
19839 (.PRECIOUS): Do not mention target.xml.
19840
19841 * target.h (struct target_ops): Remove arch_string member.
19842 * linux-low.c (linux_arch_string): Remove.
19843 (linux_target_ops): Remove arch_string initializer.
19844 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19845 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19846 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19847 * spu-low.c (spu_arch_string): Remove.
19848 (spu_target_ops): Remove arch_string initializer.
19849 * win32-low.c (win32_arch_string): Remove.
19850 (win32_target_ops): Remove arch_string initializer.
19851 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19852 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19853 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19854
ee1a7ae4
UW
198552008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19856
19857 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19858 by collect_ptrace_register and supply_ptrace_register hooks.
19859 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19860 instead of checking for the_low_target.left_pad_xfer.
19861 (usr_store_inferior_registers): Use collect_ptrace_register callback
19862 instead of checking for the_low_target.left_pad_xfer.
19863
19864 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19865 (s390_supply_ptrace_register): Likewise.
19866 (s390_fill_gregset): Call s390_collect_ptrace_register.
19867 (the_low_target): Update.
19868
19869 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19870 (ppc_supply_ptrace_register): Likewise.
19871 (the_low_target): Update.
19872
19873 * linux-i386-low.c (the_low_target): Update.
19874 * linux-x86-64-low.c (the_low_target): Update.
19875
d61ddec4
UW
198762008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19877
19878 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19879 reg-s390.o and reg-s390x.o.
19880
19881 * linux-low.c (new_inferior): New global variable.
19882 (linux_create_inferior, linux_attach): Set it.
19883 (linux_wait_for_process): Call the_low_target.arch_setup after the
19884 target has stopped for the first time.
19885 (initialize_low): Do not call the_low_target.arch_setup.
19886
19887 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19888 (s390_set_pc): Likewise.
19889 (s390_arch_setup): New function.
19890 (the_low_target): Use s390_arch_setup as arch_setup routine.
19891
19892 * regcache.c (realloc_register_cache): New function.
19893 (set_register_cache): Call it for each existing regcache.
19894
d05b4ac3
UW
198952008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19896
19897 * server.h (init_registers): Remove prototype.
19898
19899 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19900 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19901 instead of init_registers ().
19902 * linux-arm-low.c (init_registers_arm): Add prototype.
19903 (init_registers_arm_with_iwmmxt): Likewise.
19904 (the_low_target): Add initializer for arch_setup field.
19905 * linux-cris-low.c (init_registers_cris): Add prototype.
19906 (the_low_target): Add initializer for arch_setup field.
19907 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19908 (the_low_target): Add initializer for arch_setup field.
19909 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19910 (the_low_target): Add initializer for arch_setup field.
19911 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19912 (the_low_target): Add initializer for arch_setup field.
19913 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19914 (the_low_target): Add initializer for arch_setup field.
19915 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19916 (the_low_target): Add initializer for arch_setup field.
19917 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19918 (init_registers_mips64_linux): Likewise.
19919 (the_low_target): Add initializer for arch_setup field.
19920 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19921 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19922 (the_low_target): Add initializer for arch_setup field.
19923 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19924 (init_registers_powerpc_64): Likewise.
19925 (the_low_target): Add initializer for arch_setup field.
19926 * linux-s390-low.c (init_registers_s390): Add prototype.
19927 (init_registers_s390x): Likewise.
19928 (the_low_target): Add initializer for arch_setup field.
19929 * linux-sh-low.c (init_registers_sh): Add prototype.
19930 (the_low_target): Add initializer for arch_setup field.
19931 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19932 (the_low_target): Add initializer for arch_setup field.
19933 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19934 (the_low_target): Add initializer for arch_setup field.
19935
19936 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19937 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19938 instead of init_registers ().
19939 * win32-arm-low.c (init_registers_arm): Add prototype.
19940 (the_low_target): Add initializer for arch_setup field.
19941 * win32-i386-low.c (init_registers_i386): Add prototype.
19942 (the_low_target): Add initializer for arch_setup field.
19943
19944 * spu-low.c (init_registers_spu): Add prototype.
19945 (initialize_low): Call initialie_registers_spu () instead of
19946 initialize_registers ().
19947
fd96d250
PA
199482008-02-19 Pedro Alves <pedro@codesourcery.com>
19949
19950 * server.c (handle_v_requests): When handling the vRun and vAttach
19951 packets, if already debugging a process, don't kill it. Return an
19952 error instead.
19953
d41b6bb4
DJ
199542008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19955
19956 * server.c (handle_query): Correct length check.
19957
5ac588cf
PA
199582008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19959
19960 * win32-low.c (do_initial_child_stuff): Add process handle
19961 parameter. Set current_process_handle and current_process_id from the
19962 parameters. Clear globals.
19963 (win32_create_inferior): Don't set current_process_handle and
19964 current_process_id here. Instead pass them on the call to
19965 do_initial_child_stuff.
19966 (win32_attach): Likewise.
19967 (win32_clear_inferiors): New.
19968 (win32_kill): Don't close the current process handle or the
19969 current thread handle here. Instead call win32_clear_inferiors.
19970 (win32_detach): Don't open a new handle to the process. Call
19971 win32_clear_inferiors.
19972 (win32_join): Don't rely on current_process_handle; open a new
19973 handle using the process id.
19974 (win32_wait): Call win32_clear_inferiors when the inferior process
19975 has exited.
19976
ecd7ecbc
DJ
199772008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19978
19979 * server.c (monitor_show_help): Add "exit".
19980
1525d545
MG
199812008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19982
ecd7ecbc 19983 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19984 (clean): Add reg-xtensa.c.
19985 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19986 * configure.srv (xtensa*-*-linux*) New target.
19987 * linux-xtensa-low.c: New.
19988 * xtensa-xtregs.c: New.
1525d545 19989
59a016f0
PA
199902008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19991
19992 * hostio.c: Don't include errno.h.
19993 (errno_to_fileio_errno): Move to hostio-errno.
19994 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19995 error number outputting to the target->hostio_last_error callback.
19996 (hostio_packet_error): Use FILEIO_EINVAL directly.
19997 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19998 calls to hostio_error.
19999 * hostio-errno.c: New.
20000 * server.h (hostio_last_error_from_errno): Declare.
20001 * target.h (target_ops): Add hostio_last_error member.
20002 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20003 as hostio_last_error handler.
889bf7c5 20004 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20005 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20006 (wince_hostio_last_error): New functions.
20007 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20008 as hostio_last_error handler.
20009 (win32_target_ops) [!_WIN32_WCE]: Register
20010 hostio_last_error_from_errno as hostio_last_error handler.
20011 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20012 (hostio-errno.o): New rule.
20013 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20014 * configure.srv (srv_hostio_err_objs): New variable. Default to
20015 hostio-errno.o.
20016 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20017 * configure: Regenerate.
20018
2d717e4f
DJ
200192008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20020
20021 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20022 (linux_kill, linux_detach): Clean up the process list.
20023 * remote-utils.c (remote_open): Improve port number parsing.
20024 (putpkt_binary, input_interrupt): Only send interrupts if the target
20025 is running.
20026 * server.c (extended_protocol): Make static.
20027 (attached): Define earlier.
20028 (exit_requested, response_needed, program_argv): New variables.
20029 (target_running): New.
20030 (start_inferior): Clear attached here.
20031 (attach_inferior): Set attached here.
20032 (require_running): Define.
20033 (handle_query): Use require_running and target_running. Implement
20034 "monitor exit".
20035 (handle_v_attach, handle_v_run): New.
20036 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20037 (gdbserver_usage): Update.
20038 (main): Redo argument parsing. Handle --debug and --multi. Handle
20039 --attach along with other options or after the port. Save
20040 program_argv. Support no initial program. Resynchronize
20041 communication with GDB after an error. Handle "monitor exit".
20042 Use require_running and target_running. Always allow the extended
20043 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20044 restart in extended mode.
20045 * README: Refer to the GDB manual. Update --attach usage.
20046
7407e2de
AS
200472007-12-20 Andreas Schwab <schwab@suse.de>
20048
20049 * linux-low.c (STACK_SIZE): Define.
20050 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20051 (linux_test_for_tracefork): Likewise.
20052
b65d95c5
DJ
200532007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20054
20055 * linux-low.c (linux_wait_for_event): Update messages. Do not
20056 reinsert auto-delete breakpoints.
20057 * mem-break.c (struct breakpoint): Change return type of handler to
20058 int.
20059 (set_breakpoint_at): Update handler type.
20060 (reinsert_breakpoint_handler): Return 1 instead of calling
20061 delete_breakpoint.
20062 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20063 setting a new one.
20064 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20065 * mem-break.h (set_breakpoint_at): Update handler type.
20066 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20067 * win32-low.c (auto_delete_breakpoint): New.
20068 (get_child_debug_event): Use it.
20069
4e799345
DJ
200702007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20071
20072 * configure.ac: Check for pread and pwrite.
20073 * hostio.c (handle_pread): Fall back to lseek and read.
20074 (handle_pwrite): Fall back to lseek and write.
20075 * config.in, configure: Regenerated.
20076
27524b67
DJ
200772007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20078
20079 * server.c (myresume): Add own_buf argument.
20080 (main): Update calls.
20081
a20d5e98
DJ
200822007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20083
20084 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20085 * remote-utils.c (remote_open): Do not call disable_async_io.
20086 (block_async_io): Delete.
20087 (unblock_async_io): Make static.
20088 (initialize_async_io): New.
20089 * server.c (handle_v_cont): Handle async I/O here.
20090 (myresume): Likewise. Move other common resume tasks here...
20091 (main): ... from here. Call initialize_async_io. Disable async
20092 I/O before the main loop.
20093 * server.h (initialize_async_io): Declare.
20094 (block_async_io, unblock_async_io): Delete prototypes.
20095 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20096
b79d787e
DJ
200972007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20098
20099 * remote-utils.c (readchar): Allow binary data in received messages.
20100
d97903b2
PA
201012007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20102
20103 * win32-low.c (attaching): New global.
20104 (win32_create_inferior): Clear the `attaching' global.
20105 (win32_attach): Set the `attaching' global.
20106 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20107 attaching. Only set a breakpoint at the entry point if not
20108 attaching.
20109
311de423
PA
201102007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20111
20112 * server.c (main): Don't report dll events on the initial
20113 connection on attaches.
20114
6c2d16d2
PA
201152007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20116
20117 * server.c (main): Relax numerical bases supported for the pid of
20118 the --attach command line argument.
20119
5ca906e6
PA
201202007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20121
20122 * win32-low.c (win32_attach): Call OpenProcess before
20123 DebugActiveProcess, not after. Add last error output to error
20124 call.
20125
9c6c8194
PA
201262007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20127
20128 * win32-low.c (win32_get_thread_context)
20129 (win32_set_thread_context): New functions.
20130 (thread_rec): Use win32_get_thread_context.
20131 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20132 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20133 field.
20134
4d5d1aaa
PA
201352007-12-03 Leo Zayas
20136 Pedro Alves <pedro_alves@portugalmail.pt>
20137
20138 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20139 global variables.
20140 (child_add_thread): Minor cleanup.
20141 (child_continue): Resume artificially suspended threads before
20142 calling ContinueDebugEvent.
20143 (suspend_one_thread): New.
20144 (fake_breakpoint_event): New.
20145 (get_child_debug_event): Change return type to int. Check here if
20146 gdb sent an interrupt request. If a soft interrupt was requested,
20147 fake a breakpoint event. Return 0 if there is no event to handle,
20148 and 1 otherwise.
20149 (win32_wait): Don't check here if gdb sent an interrupt request.
20150 Ensure there is a valid event to handle.
20151 (win32_request_interrupt): Add soft interruption method as last
20152 resort.
20153
c436e841
PA
201542007-12-03 Leo Zayas
20155 Pedro Alves <pedro_alves@portugalmail.pt>
20156
20157 * win32-low.h (win32_thread_info): Add descriptions to the
20158 structure members. Replace `suspend_count' counter by a
20159 `suspended' flag.
20160 * win32-low.c (thread_rec): Update condition of when to get the
20161 context from the inferior. Rely on ContextFlags being set if it
20162 has already been retrieved. Only suspend the inferior thread if
20163 we haven't already. Warn if that fails.
20164 (continue_one_thread): s/suspend_count/suspended/. Only call
20165 ResumeThread once. Warn if that fails.
20166
e7b5fa67
PA
201672007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20168
20169 * win32-low.c (win32_wait): Don't read from the inferior when it
20170 has already exited.
20171
a385171d
PA
201722007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20173
20174 * Makefile.in (win32_low_h): New variable.
20175 (win32-low.o): Add dependency on $(win32_low_h).
20176 (win32-arm-low.o, win32-i386-low.o): New rules.
20177
f80c84b3
DJ
201782007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20179
20180 * hostio.c: Correct copyright year.
20181
a6b151f1
DJ
201822007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20183
20184 * Makefile.in (OBS): Add hostio.o.
20185 (hostio.o): New rule.
20186 * server.h (handle_vFile): Declare.
20187 * hostio.c: New file.
20188 * server.c (handle_v_requests): Take packet_len and new_packet_len
20189 for binary packets. Call handle_vFile.
20190 (main): Update call to handle_v_requests.
20191
f9387fc3
DJ
201922007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20193
20194 * linux-low.c: Include <sched.h>.
20195
51c2684e
DJ
201962007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20197
20198 * linux-low.c (linux_tracefork_grandchild): New.
20199 (linux_tracefork_child): Use clone.
20200 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20201
75f83163
JB
202022007-10-31 Joel Brobecker <brobecker@adacore.com>
20203
20204 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20205
da5898ce
DJ
202062007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20207
20208 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20209
24a09b5f
DJ
202102007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20211
20212 * inferiors.c (change_inferior_id): Delete.
20213 (add_pid_to_list, pull_pid_from_list): New.
20214 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20215 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20216 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20217 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20218 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20219 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20220 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20221 (using_threads): Always set to 1.
20222 (handle_extended_wait): New.
20223 (add_process): Do not set TID.
20224 (linux_create_inferior): Set must_set_ptrace_flags.
20225 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20226 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20227 (linux_thread_alive): Rename TID argument to LWPID.
20228 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20229 (linux_wait_for_event): Do not use TID or check using_threads. Update
20230 call to dead_thread_notify. Call handle_extended_wait.
20231 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20232 (send_sigstop): Delete sigstop_sent.
20233 (wait_for_sigstop): Avoid TID.
20234 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20235 (linux_test_for_tracefork): New.
20236 (linux_lookup_signals): Use thread_db_active and
20237 linux_supports_tracefork_flag.
20238 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20239 * linux-low.h (get_process_thread): Avoid TID.
20240 (struct process_ifo): Move thread_known and tid to the end. Remove
20241 sigstop_sent.
20242 (linux_attach_lwp, thread_db_init): Update prototypes.
20243 * server.h (change_inferior_id): Delete prototype.
20244 (add_pid_to_list, pull_pid_from_list): New prototypes.
20245 * thread-db.c (thread_db_use_events): New.
20246 (find_first_thread): Rename to...
20247 (find_one_thread): ...this. Update callers and messages. Do not
20248 call fatal. Check thread_db_use_events. Do not call
20249 change_inferior_id or new_thread_notify.
20250 (maybe_attach_thread): Update. Do not call new_thread_notify.
20251 (thread_db_init): Set thread_db_use_events. Check use_events.
20252 * utils.c (fatal, warning): Correct message prefix.
20253
30ed0a8f
DJ
202542007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20255
20256 * Makefile.in (clean): Remove new files.
20257 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20258 (powerpc-64.o, powerpc-64.c): New rules.
20259 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20260 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20261 with SPE.
20262 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20263 SPE targets.
20264 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20265 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20266 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20267 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20268 (target_regsets): Add AltiVec and SPE register sets.
20269 * configure.ac: Check for AltiVec and SPE.
20270 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20271 (ppc_fill_vrregset, ppc_store_vrregset): New.
20272 (target_regsets): Add AltiVec register set.
20273 * configure: Regenerated.
20274
fd462a61
DJ
202752007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20276
20277 * linux-low.c (O_LARGEFILE): Define.
20278 (linux_read_memory): Use /proc/PID/mem.
20279 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20280 * configure, config.in: Regenerated.
20281
69f223ed
DJ
202822007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20283
20284 * linux-low.c (linux_wait_for_event): Do not pass signals while
20285 single-stepping.
20286
aec18585
PA
202872007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20288
20289 * win32-low.c (create_process): New.
20290 (win32_create_inferior): Use create_process instead of
20291 CreateProcess. If create_process failed retry appending an ".exe"
20292 suffix. Store the GetLastError result immediatelly after
20293 create_process calls and use it on the call to error.
20294
34d86ddd
PA
202952007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20296
20297 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20298
5a0e3bd0
JB
202992007-08-23 Joel Brobecker <brobecker@adacore.com>
20300
20301 * configure.ac: Switch license to GPLv3.
20302
f88c79e6
MS
203032007-08-01 Michael Snyder <msnyder@access-company.com>
20304
20305 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20306
6b3d9b83
PA
203072007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20308
20309 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20310 typedef.
20311 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20312 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20313 CloseToolhelp32Snapshot.
20314 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20315 CloseToolhelp32Snapshot.
20316
c588c53c
MS
203172007-07-27 Michael Snyder <michael.snyder@access-company.com>
20318
20319 * server.c (main): Check for inferior exit before main loop.
20320
aa0403d9
PA
203212007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20322
20323 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20324 instead of on tmp_desc.
20325
255e7678
DJ
203262007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20327 Daniel Jacobowitz <dan@codesourcery.com>
20328
20329 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20330 (add_thread): Minor cleanups.
20331 (clear_inferiors): Move lower in the file. Clear the DLL
20332 list.
20333 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20334 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20335 (xml_escape_text): New.
20336 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20337 for qSupported.
20338 (handle_v_cont): Report errors.
20339 (gdbserver_version): Update.
20340 (main): Correct size of own_buf. Do not report initial DLL events.
20341 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20342 (unloaded_dll, xml_escape_text): New.
20343 * win32-low.c (enum target_waitkind): Update comments.
20344 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20345 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20346 (win32_EnumProcessModules, win32_GetModuleInformation)
20347 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20348 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20349 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20350 (win32_Module32First, win32_Module32Next, load_toolhelp)
20351 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20352 (get_child_debug_event): Handle DLL events.
20353 (win32_wait): Likewise.
20354
0d37add9
DJ
203552007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20356
20357 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20358 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20359
45e2715e
PA
203602007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20361
20362 * win32-low.c (handle_output_debug_string): Ignore event if not
20363 waiting.
20364
c5674cf1
PA
203652007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20366
20367 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20368
2bbe3cc1
DJ
203692007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20370
20371 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20372
ae13219e
DJ
203732007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20374
20375 * inferiors.c (change_inferior_id): Add comment.
20376 * linux-low.c (check_removed_breakpoint): Add an early
20377 prototype. Improve debug output.
20378 (linux_attach): Doc update.
20379 (linux_detach_one_process, linux_detach): Clean up before releasing
20380 each process.
20381 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20382 * linux-low.h (struct process_info): Doc improvement.
20383 * mem-break.c (delete_all_breakpoints): New.
20384 * mem-break.h (delete_all_breakpoints): New prototype.
20385 * thread-db.c (find_first_thread): New.
20386 (thread_db_create_event): Call it instead of
20387 thread_db_find_new_threads. Clean up unused variables.
20388 (maybe_attach_thread): Remove first thread handling.
20389 (thread_db_find_new_threads): Use find_first_thread.
20390 (thread_db_get_tls_address): Likewise.
20391
4105de34
DJ
203922007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20393
20394 * thread-db.c (thread_db_find_new_threads): Add prototype.
20395 (thread_db_create_event): Check for the main thread before adding
20396 a new thread.
20397 (maybe_attach_thread): Only enable event reporting if TID == 0.
20398 (thread_db_get_tls_address): Check for new threads.
20399
2b876972
DJ
204002007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20401
20402 * linux-low.c (linux_create_inferior): Try execv before execvp.
20403 * spu-low.c (spu_create_inferior): Likewise.
20404
7a245884
DJ
204052007-06-13 Mike Frysinger <vapier@gentoo.org>
20406
20407 * linux-low.c (linux_create_inferior): Change execv to execvp.
20408 * spu-low.c (spu_create_inferior): Likewies.
20409
117ce543
DJ
204102007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20411
20412 * Makefile.in (clean): Clean new files instead of deleted ones.
20413 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20414 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20415 rules.
20416 * configure.srv: Specify XML files and new regformats for MIPS and
20417 MIPS64 GNU/Linux.
20418 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20419 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20420 an entry for the restart register.
20421 (mips_cannot_fetch_register, mips_cannot_store_register)
20422 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20423 register names to match the XML descriptions.
20424 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20425 restart register instead of $0.
20426
0e7f50da
UW
204272007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20428 Markus Deuling <deuling@de.ibm.com>
20429
20430 * remote-utils.c (decode_xfer_write): New function.
20431 * server.h (decode_xfer_write): Add prototype.
20432 * server.c (handle_query): Add PACKET_LEN argument. Support
20433 qXfer:spu:read and qXfer:spu:write packets.
20434 (main): Pass packet_len to handle_query.
20435 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20436 * target.h (target_ops): Add qxfer_spu.
20437
374c1d38
UW
204382007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20439
20440 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20441 accessing non-seekable spufs files.
20442
bb63802a
UW
204432007-05-16 Markus Deuling <deuling@de.ibm.com>
20444
889bf7c5 20445 * server.c (handle_query): Add reply for qC packet.
bb63802a 20446
7390519e
PA
204472007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20448 Leo Zayas <lerele@champenstudios@com>
20449
20450 * server.h (check_remote_input_interrupt_request): New function.
20451 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20452 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20453 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20454 (check_remote_input_interrupt_request): New function.
20455 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20456 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20457 winapi_GenerateConsoleCtrlEvent): New typedefs.
20458 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20459 to 250 ms.
20460 (win32_wait): Check for remote interrupt request
20461 with check_remote_input_interrupt_request.
20462 (win32_request_interrupt): New function.
20463 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20464
34b34921
PA
204652007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20466
20467 * win32-low.c (debug_registers_changed,
20468 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20469 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20470 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20471 (thread_rec): Get context using the low target.
20472 (child_add_thread): Call thread_added on the low target,
20473 which does the same thing.
20474 (regptr): Delete.
20475 (do_initial_child_stuff): Remove debug registers references.
20476 Set context using the low target. Resume threads after
20477 setting the contexts.
20478 (child_continue): Remove dead variable. Remove debug
20479 registers references.
20480 (child_fetch_inferior_registers): Go through the low target.
20481 (do_child_store_inferior_registers): Remove.
20482 (child_store_inferior_registers): Go through the low target.
20483 (win32_resume): Remove debug registers references.
20484 Set context using the low target.
20485 (handle_exception): Change return type to void. Don't record
20486 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20487 first chance exception.
889bf7c5 20488 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20489 goto loop. Always return after waiting for debug event.
20490 (win32_wait): Convert to switch statement. Handle spurious
20491 events.
20492
20493 * win32-i386-low.c (debug_registers_changed,
20494 debug_registers_used): New.
20495 (initial_stuff): Rename to ...
20496 (i386_initial_stuff): ... this. Clear debug registers
20497 state variables.
20498 (store_debug_registers): Delete.
20499 (i386_get_thread_context): New.
20500 (load_debug_registers): Delete.
20501 (i386_set_thread_context): New.
20502 (i386_thread_added): New.
20503 (single_step): Rename to ...
20504 (i386_single_step): ... this.
20505 (do_fetch_inferior_registers): Rename to ...
20506 (i386_fetch_inferior_register): ... this.
20507 (i386_store_inferior_register): New.
20508 (the_low_target): Adapt to new interface.
20509
20510 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20511 (arm_get_thread_context): New.
20512 (arm_set_thread_context): New.
20513 (regptr): New.
20514 (do_fetch_inferior_registers): Rename to ...
20515 (arm_fetch_inferior_register): ... this.
20516 (arm_store_inferior_register): New.
20517 (arm_wince_breakpoint): Reimplement as unsigned long.
20518 (arm_wince_breakpoint_len): Define.
20519 (the_low_target): Adapt to new interface.
20520
20521 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20522 load_debug_registers. Add get_thread_context, set_thread_context,
20523 thread_added and store_inferior_register. Rename
20524 fetch_inferior_registers to fetch_inferior_register.
20525 (regptr): Remove declaration.
20526
dd6953e1
PA
205272007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20528
20529 * linux-low.c (linux_detach): Change return type to int. Return 0.
20530 * spu-low.c (spu_detach): Likewise.
20531
444d6139
PA
205322007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20533
20534 * target.h (target_ops): Change return type of detach to int.
20535 Add join.
20536 (join_inferior): New.
20537 * server.c (main): Don't skip detach support on mingw32.
20538 If the inferior doesn't support detaching return error.
20539 Call join_inferior instead of using waitpid.
20540 * linux-low.c (linux_join): New.
20541 (linux_target_op): Add linux_join.
20542 * spu-low.c (spu_join): New.
20543 (spu_target_ops): Add spu_join.
20544 * win32-low.c (win32_detach): Adapt to new interface.
20545 Reopen current_process_handle before detaching. Issue a child
20546 resume before detaching.
20547 (win32_join): New.
20548 (win32_target_op): Add win32_join.
20549
1d5315fe
PA
205502007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20551
20552 * win32-low.c (win32-attach): Fix return value.
20553 * target.h (target_ops): Describe ATTACH return values.
20554
bf914831
PA
205552007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20556
20557 * win32-low.c (GETPROCADDRESS): Define.
20558 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20559 (winapi_DebugSetProcessKillOnExit): Likewise.
20560 (win32_create_inferior): Force usage of ansi CreateProcessA.
20561 (win32_attach): Use GETPROCADDRESS.
20562 (win32_detach): Likewise.
20563
f72f3e60
PA
205642007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20565
20566 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20567
ed50f18f
PA
205682007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20569
20570 * win32-low.c: Commit leftover changes from 2007-03-29.
20571
0c2ead7e
DJ
205722007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20573
20574 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20575 fields short instead of int. Add explicit padding.
20576 (i387_cache_to_fsave): Remove unnecessary casts.
20577 (i387_fsave_to_cache): Doc fix.
20578 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20579
73725ff3
DJ
205802007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20581
20582 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20583 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20584
d99f33d8
PA
205852007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20586
20587 * configure.srv (arm*-*-mingw32ce*): Move near the other
20588 arm targets.
20589
68070c10
PA
205902007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20591
2482afc6 20592 * configure.ac: Add errno checking.
68070c10
PA
20593 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20594 sys/file.h and malloc.h.
20595 (AC_CHECK_DECLS): Add perror.
20596 (srv_mingwce): Handle.
2482afc6 20597 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20598 win32-i386-low.o to srv_tgtobj.
20599 (i[34567]86-*-mingw*): Likewise.
20600 (arm*-*-mingw32ce*): Add case.
20601 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20602 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20603 [__MINGW32CE__] (strerror): New function.
20604 [__MINGW32CE__] (errno): Define to GetLastError.
20605 [__MINGW32CE__] (COUNTOF): New macro.
20606 (remote_open): Remove extra close call.
20607 * mem-break.c (delete_breakpoint_at): New function.
20608 * mem-break.h (delete_breakpoint_at): Declare.
20609 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20610 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20611 [USE_WIN32API] (read, write): Add char* casts.
20612 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20613 * server.h: Include wincecompat.h on Windows CE.
20614 [HAVE_ERRNO_H]: Check.
20615 (perror): Declare if not declared.
20616 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20617 (perror_with_name): Remove errno declaration.
20618 * wincecompat.h: New.
20619 * wincecompat.c: New.
20620 * win32-low.h: New.
20621 * win32-arm-low.c: New.
20622 * win32-i386-low.c: New.
20623 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20624 (OUTMSG2): Make it safe.
20625 (_T): New macro.
20626 (COUNTOF): New macro.
20627 (NUM_REGS): Get it from the low target.
20628 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20629 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20630 (thread_rec): Let low target handle debug registers.
20631 (child_add_thread): Likewise.
20632 (child_init_thread_list): Likewise.
20633 (continue_one_thread): Likewise.
20634 (regptr): New.
20635 (do_child_fetch_inferior_registers): Move to ...
20636 * win32-i386-low.c: ... here, and rename to ...
20637 (do_fetch_inferior_registers): ... this.
889bf7c5 20638 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20639 Go through the low target.
20640 (do_child_store_inferior_registers): Use regptr.
20641 (strwinerror): New function.
20642 (win32_create_inferior): Handle Windows CE.
20643 Use strwinerror instead of strerror on Windows error
20644 codes. Add program to the error output.
20645 Don't close the main thread handle on Windows CE.
20646 (win32_attach): Use coredll.dll on Windows CE.
20647 (win32_kill): Close current process and current
20648 thread handles.
20649 (win32_detach): Use coredll.dll on Windows CE.
20650 (win32_resume): Let low target handle debug registers, and
20651 step request.
20652 (handle_exception): Add/Remove initial breakpoint. Avoid
20653 non-existant WSTOPSIG on Windows CE.
20654 (win32_read_inferior_memory): Cast to remove warning.
20655 (win32_arch_string): Go through the low target.
20656 (initialize_low): Call set_breakpoint_data with the low
20657 target's breakpoint.
20658 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20659 FOP_REGNUM, mappings): Move to ...
20660 * win32-i386-low.c: ... here.
20661 * win32-low.c (win32_thread_info): Move to ...
20662 * win32-low.h: ... here.
20663 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20664 win32-arm-low.c and wincecompat.c.
20665 (all:): Add $EXEEXT.
20666 (install-only:): Likewise.
20667 (gdbserver:): Likewise.
20668 (gdbreplay:): Likewise.
20669 * config.in: Regenerate.
20670 * configure: Regenerate.
20671
41093d81
PA
206722007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20673
20674 * win32-low.c: Rename typedef thread_info to
20675 win32_thread_info throughout.
20676
544afa54
PA
206772007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20678
20679 * win32-i386-low.c: Rename to ...
20680 * win32-low.c: ... this.
20681 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20682 * Makefile.in: Likewise.
20683
bce7165d
PA
206842007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20685
20686 * remote-utils.c (monitor_output): Constify msg parameter.
20687 * server.h (monitor_output): Likewise.
20688 * win32-i386-low.c (handle_output_debug_string): New.
20689 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20690 handle_output_debug_string.
20691 (get_child_debug_event): Likewise.
20692
506c7aa0
DJ
206932007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20694
20695 * server.c (main): Correct strtoul check.
20696
42c81e2a
DJ
206972007-03-27 Jon Ringle <jon@ringle.org>
20698
20699 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20700
9453113a
DJ
207012007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20702
20703 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20704
64a69107
DJ
207052007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20706
20707 * terminal.h: Check HAVE_SGTTY_H.
20708
207092007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20710
20711 * remote-utils.c (remote_open): Print out the assigned port number.
20712
c74d0ad8
DJ
207132007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20714
20715 * remote-utils.c (monitor_output): New function.
20716 * server.c (debug_threads): Define here.
20717 (monitor_show_help): New function.
20718 (handle_query): Handle qRcmd.
20719 (main): Do not handle 'd' packet.
20720 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20721 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20722 of debug_threads.
20723
de7c3b4a
PA
207242007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20725
20726 * Makefile.in (EXEEXT): New.
20727 (clean): Use $(EXEEXT).
20728
ef57601b
PA
207292007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20730
20731 * target.h (target_ops): Rename send_signal to request_interrupt,
20732 and remove enum target_signal parameter.
20733 * linux-low.c (linux_request_interrupt): Rename from
20734 linux_send_signal, and always send SIGINT.
20735 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20736 and always send SIGINT.
20737 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20738 of send_signal.
20739 (input_interrupt): Likewise.
20740
820f2bda
PA
207412007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20742
20743 * server.c (get_features_xml): Check if target implemented
20744 arch_string.
20745 * win32-i386-low.c (win32_arch_string): New.
20746 (win32_target_ops): Add win32_arch_string as arch_string member.
20747
ab39bf24
UW
207482007-02-22 Markus Deuling <deuling@de.ibm.com>
20749
20750 * spu-low.c (spu_arch_string): New.
20751 (spu_target_ops): Add spu_arch_string.
20752
61ff6e04
DJ
207532007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20754
20755 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20756 * configure.ac: Do not check for terminal.h.
20757 * configure, config.in: Regenerated.
20758
fb1e4ffc
DJ
207592007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20760
20761 * Makefile.in (OBS): Add $(XML_BUILTIN).
20762 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20763 (clean): Update.
20764 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20765 (arm-with-iwmmxt.c): New.
20766 * config.in, configure: Regenerate.
20767 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20768 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20769 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20770 (arm*-*-linux*): Add iWMMXt and regset support.
20771 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20772 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20773 (arm_store_wmmxregset, target_regsets): New.
20774 * server.c (get_features_xml): Take annex argument. Check builtin
20775 XML documents.
20776 (handle_query): Handle multiple annexes.
20777
0f48aa01
DJ
207782007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20779
20780 * remote-utils.c [USE_WIN32API] (read, write): Define.
20781 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20782 write.
20783
23181151
DJ
207842007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20785
20786 * linux-i386-low.c (the_low_target): Set arch_string.
20787 * linux-x86-64-low.c (the_low_target): Likewise.
20788 * linux-low.c (linux_arch_string): New.
20789 (linux_target_ops): Add it.
20790 * linux-low.h (struct linux_target_ops): Add arch_string.
20791 * server.c (write_qxfer_response): Use const void * for DATA.
20792 (get_features_xml): New.
20793 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20794 * target.h (struct target_ops): Add arch_string method.
20795
9d606399
DJ
207962007-01-03 Denis Pilat <denis.pilat@st.com>
20797 Daniel Jacobowitz <dan@codesourcery.com>
20798
20799 * linux-low.c (linux_kill): Handle being called with no threads.
20800 * win32-i386-low.c (win32_kill): Likewise.
20801 (get_child_debug_event): Clear current_process_handle.
20802
208032006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20804 Daniel Jacobowitz <dan@codesourcery.com>
20805
20806 * remote-utils.c (remote_open): Check the type of specified
20807 serial port devices before opening them.
20808 * server.c (main): Kill the inferior if an error occurs during
20809 the first remote_open.
20810
a5e13d24
DJ
208112006-12-05 Markus Deuling <deuling@de.ibm.com>
20812
20813 * README: Update supported targets.
20814
186947f7
DJ
208152006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20816
20817 * Makefile.in (clean): Remove reg-mips64.c.
20818 (reg-mips64.c, reg-mips64.o): New rules.
20819 * configure.srv: Handle mips64. Include regset support for mips.
20820 * linux-mips-low.c (union mips_register): New.
20821 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20822 (mips_breakpoint, mips_breakpoint_at): Use int.
20823 (mips_collect_register, mips_supply_register)
20824 (mips_collect_register_32bit, mips_supply_register_32bit)
20825 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20826 (mips_store_fpregset, target_regsets): New.
20827 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20828
a13e2c95
UW
208292006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20830
20831 * configure.srv: Add target "spu*-*-*".
20832 * Makefile.in (clean): Remove reg-spu.c.
20833 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20834 * spu-low.c: New file.
20835
cb7283db
DJ
208362006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20837
20838 * configure.ac: Correct td_thr_tls_get_addr test.
20839 * configure: Regenerated.
20840
89be2091
DJ
208412006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20842
20843 * linux-low.c (linux_wait_for_event): Reformat. Use the
20844 pass_signals array.
20845 * remote-utils.c (decode_address_to_semicolon): New.
20846 * server.c (pass_signals, handle_general_set): New.
20847 (handle_query): Mention QPassSignals for qSupported.
20848 (main): Call handle_general_set.
20849 * server.h (pass_signals, decode_address_to_semicolon): New.
20850
000ef4f0
DJ
208512006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20852
20853 * server.c (handle_query): Correct error handling for read_auxv.
20854
b7149293
UW
208552005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20856
20857 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20858 and srv_linux_thread_db to yes.
20859 * linux-s390-low.c (s390_fill_gregset): New function.
20860 (target_regsets): Define data structure.
20861
dae5f5cf
DJ
208622006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20863
20864 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20865 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20866 * config.in, configure: Regenerated.
20867 * inferiors.c (gdb_id_to_thread): New function.
20868 (gdb_id_to_thread_id): Use it.
20869 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20870 * linux-low.h (struct process_info): Add th member.
20871 (thread_db_get_tls_address): New prototype.
20872 * remote-utils.c (decode_address): Make non-static.
20873 * server.c (handle_query): Handle qGetTLSAddr.
20874 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20875 * target.h (struct target_ops): Add get_tls_address.
20876 * thread-db.c (maybe_attach_thread): Save the thread handle.
20877 (thread_db_get_tls_address): New.
20878
32ca6d61
DJ
208792006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20880
20881 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20882 (linux_resume_one_process): Take a siginfo_t *. Update all
20883 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20884 (struct pending_signals): Add a siginfo_t.
20885 (linux_wait_for_process): Always set last_status.
20886 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20887 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20888 * linux-low.h (struct process_info): Add last_status.
20889
5ffff7c1
DJ
208902006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20891
20892 * remote-utils.c (try_rle): New function.
20893 (putpkt_binary): Use it.
20894
8695c747
DJ
208952006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20896
20897 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20898 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20899 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20900 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20901 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20902 point registers.
20903
290fadea
RS
209042006-08-08 Richard Sandiford <richard@codesourcery.com>
20905
20906 * server.c (terminal_fd): New variable.
20907 (old_foreground_pgrp): Likewise.
20908 (restore_old_foreground_pgrp): New function.
20909 (start_inferior): Record the terminal file descriptor in terminal_fd
20910 and its original foreground group in old_foreground_pgrp. Register
20911 restore_old_foreground_pgrp with atexit().
20912
9f2e1e63
DJ
209132006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20914
20915 * server.c (handle_query): Correct qPart to qXfer.
20916
b80864fb
DJ
209172006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20918
20919 * configure.ac: Check for more headers which are missing on
20920 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20921 * configure.srv: Add Cygwin and mingw32.
20922 * remote-utils.c: Don't include headers unconditionally which
20923 are missing on mingw32. Include <winsock.h> for mingw32.
20924 (remote_open): Adjust for mingw32 support. Flush
20925 standard error after writing to it.
20926 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20927 (unblock_async_io, enable_async_io, disable_async_io)
20928 (readchar, getpkt): Update for Winsock support.
20929 (prepare_resume_reply): Expect a protocol signal number.
20930 * server.c: Disable <sys/wait.h> on mingw32.
20931 (start_inferior): Adjust for mingw32 support. Flush
20932 standard error after writing to it.
20933 (attach_inferior): Likewise. Use protocol signal
20934 numbers.
20935 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20936 and names.
20937 * win32-i386-low.c: New file.
20938 * Makefile.in (XM_CLIBS): Set.
20939 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20940 (win32-i386-low.o): New dependency rule.
20941 * linux-low.c (linux_wait): Use target signal numbers.
20942 * target.h (struct target_ops): Doc fix.
20943 * server.h (target_signal_to_name): New prototype.
20944 * gdbreplay.c: Don't include headers unconditionally which
20945 are missing on mingw32. Include <winsock.h> for mingw32.
20946 (remote_close, remote_open): Adjust for Winsock support.
20947 * configure, config.in: Regenerated.
20948
0876f84a
DJ
209492006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20950
20951 * server.c (decode_xfer_read, write_qxfer_response): New.
20952 (handle_query): Take a packet length argument. Handle
20953 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20954 the qSupported response.
20955 (main): Update call to handle_query.
20956
01f9e8fa
DJ
209572006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20958
20959 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20960 (putpkt_binary): Renamed from putpkt and adjusted for binary
20961 data.
20962 (putpkt): New wrapper for putpkt_binary.
20963 (readchar): Don't mask off the high bit.
20964 (decode_X_packet): New function.
20965 * server.c (main): Call putpkt_binary if a handler sets the packet
20966 length. Save the length of the incoming packet. Handle 'X'.
20967 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20968
be2a5f71
DJ
209692006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20970
20971 * server.c (handle_query): Handle qSupported.
20972
ea025f5f
DJ
209732006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20974
20975 * remote-utils.c (all_symbols_looked_up): New variable.
20976 (look_up_one_symbol): Check it.
20977 * server.h (look_up_one_symbol): New declaration.
20978 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20979
9308fc88
DJ
209802006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20983 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20984 (PTRACE_GET_THREAD_AREA): Define.
20985 (ps_get_thread_area): New function.
20986
52fb6437
NS
209872006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20988
20989 * configure.srv (m68k*-*-uclinux*): New target.
20990 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20991 (linux_resume_one_process): Remove extraneous cast.
20992 (linux_read_offsets): New.
20993 (linux_target_op): Add linux_read_offsets on mmuless systems.
20994 * server.c (handle_query): Add qOffsets logic.
20995 * target.h (struct target_ops): Add read_offsets.
20996
21b0f40c
DJ
209972006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20998
20999 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21000 (PTRACE_GET_THREAD_AREA): Define.
21001 (ps_get_thread_area): New function.
21002 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21003 (linux-x86-64-low.o): Update.
21004
0050a760
DJ
210052006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21006
21007 * configure.ac: Remove checks for prfpregset_t.
21008 * gdb_proc_service.h: New file.
21009 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21010 new "gdb_proc_service.h".
21011 * proc-service.c: Likewise.
21012 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21013 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21014 * Makefile.in (gdb_proc_service_h): Updated.
21015 * configure, config.in: Regenerated.
21016
b92a518e
DJ
210172006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21018
21019 * remote-utils.c (prepare_resume_reply): Move declaration
21020 of gdb_id_from_wait to the top of the block.
21021
545587ee
DJ
210222006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21023
21024 * linux-low.c (regsets_store_inferior_registers): Read the regset
21025 from the target before filling it.
21026
9db87ebd
DJ
210272006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21028
21029 * server.c (attach_inferior): Return SIGTRAP for a successful
21030 attach.
21031
dd24457d
DJ
210322006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21033
21034 * Makefile.in (OBS): Add version.o.
21035 (STAGESTUFF): Delete.
21036 (version.o): Add dependencies.
21037 (version.c): Replace rule.
21038 (clean): Remove version.c.
21039 * server.c (gdbserver_version): New.
21040 (gdbserver_usage): Use printf.
21041 (main): Handle --version and --help.
21042 * server.h (version, host_name): Add declarations.
21043
6f0f660e
EZ
210442005-12-23 Eli Zaretskii <eliz@gnu.org>
21045
889bf7c5
PA
21046 * linux-arm-low.c:
21047 * linux-arm-low.c:
21048 * inferiors.c:
21049 * i387-fp.h:
21050 * i387-fp.c:
21051 * gdbreplay.c:
21052 * regcache.c:
21053 * proc-service.c:
21054 * mem-break.h:
21055 * mem-break.c:
21056 * linux-x86-64-low.c:
21057 * linux-sh-low.c:
21058 * linux-s390-low.c:
21059 * linux-ppc64-low.c:
21060 * linux-ppc-low.c:
21061 * linux-mips-low.c:
21062 * linux-m68k-low.c:
21063 * linux-m32r-low.c:
21064 * linux-low.h:
21065 * linux-low.c:
21066 * linux-ia64-low.c:
21067 * linux-i386-low.c:
21068 * linux-crisv32-low.c:
21069 * thread-db.c:
21070 * terminal.h:
21071 * target.h:
21072 * target.c:
21073 * server.h:
21074 * server.c:
21075 * remote-utils.c:
21076 * regcache.h:
21077 * utils.c:
21078 * Makefile.in:
21079 * configure.ac:
6f0f660e
EZ
21080 * gdbserver.1: Add (C) after Copyright. Update the FSF
21081 address.
21082
9d1fb177
DJ
210832005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21084
21085 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21086 (arm_breakpoint_at): Recognize both breakpoints.
21087 (the_low_target): Use the correct breakpoint instruction.
21088
011a70c2
DJ
210892005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21090
21091 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21092 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21093 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21094 (the_low_target): Update.
21095
7fb85e41
AS
210962005-10-25 Andreas Schwab <schwab@suse.de>
21097
21098 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21099
21100 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21101 (ia64_num_regs): Reduce to 462.
21102
3db0444b
DJ
211032005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21104
21105 * acinclude.m4: Correct quoting.
21106 * aclocal.m4: Regenerated.
21107
21108 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21109 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21110 (thread_db_init): Call thread_db_err_str.
21111 * configure.ac: Check for TD_VERSION.
21112 * config.in, configure: Regenerated.
21113
bee0189a
DJ
211142005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21115
21116 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21117
e9d25b98
DJ
211182005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21119
21120 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21121 is not available. Define HAVE_PTRACE_GETREGS if it is.
21122 * config.in, configure: Regenerated.
21123 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21124 * linux-i386-low.c, linux-m68k-low.c: Update to use
21125 HAVE_PTRACE_GETREGS.
21126 * linux-low.c (regsets_fetch_inferior_registers)
21127 (regsets_store_inferior_registers): Only return 0 if we processed
21128 GENERAL_REGS.
21129 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21130 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21131
a06660f7
DJ
211322005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21133
21134 * inferiors.c (struct thread_info): Add gdb_id.
21135 (add_thread): Add gdb_id argument.
21136 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21137 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21138 calls to add_thread.
21139 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21140 * server.c (handle_query): Use thread_to_gdb_id.
21141 (handle_v_cont, main): Use gdb_id_to_thread_id.
21142 * server.h (add_thread): Update prototype.
21143 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21144 prototypes.
21145
5a1f5858
DJ
211462005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21147
21148 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21149 left-padded registers.
21150 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21151 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21152
e122f1f5
SE
211532005-07-01 Steve Ellcey <sje@cup.hp.com>
21154
21155 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21156 * configure: Regenerate.
21157 * config.in: Regenerate.
21158 * server.h (NEED_DECLARATION_STRERROR):
21159 Replace with !HAVE_DECL_STRERROR.
21160
d592fa2f
DJ
211612005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21162
21163 * linux-low.c (linux_wait, linux_send_signal): Don't test
21164 an unsigned long variable for > 0 if it could be MAX_ULONG.
21165 * server.c (myresume): Likewise.
21166 * target.c (set_desired_inferior): Likewise.
21167
ccbd4912
MK
211682005-06-13 Mark Kettenis <kettenis@gnu.org>
21169
21170 * configure.ac: Simplify and improve check for socklen_t.
21171 * configure, config.in: Regenerate.
21172
f450004a
DJ
211732005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21174
21175 * acconfig.h: Remove.
21176 * configure.ac: Add a test for socklen_t. Use three-argument
21177 AC_DEFINE throughout.
21178 * config.in: Regenerated using autoheader 2.59.
21179 * configure: Regenerated.
21180
21181 * gdbreplay.c (socklen_t): Provide a default.
21182 (remote_open): Use socklen_t.
21183 * remote-utils.c (socklen_t): Provide a default.
21184 (remote_open): Use socklen_t.
21185 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21186 unsigned char.
21187
21188 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21189 char for buffers.
21190 * linux-low.c (linux_read_memory, linux_write_memory)
21191 (linux_read_auxv): Likewise.
21192 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21193 (check_mem_write): Likewise.
21194 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21195 Likewise.
21196 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21197 (registers_from_string, register_data): Likewise.
21198 * server.c (handle_query, main): Likewise.
21199 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21200 (decode_M_packet): Likewise.
21201 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21202 * target.h (struct target_ops): Update read_memory, write_memory,
21203 and read_auxv.
21204 (read_inferior_memory, write_inferior_memory): Update.
21205 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21206 to unsigned char *.
21207 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21208 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21209 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21210 linux-s390-low.c, linux-sh-low.c: Update for changes in
21211 read_inferior_memory and the_low_target->breakpoint.
21212
eee84df1
DJ
212132005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21214
21215 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21216 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21217 * configure.srv: Add powerpc64-*-linux*.
21218 * linux-ppc64-low.c: New file.
21219
45b134e5
OF
212202005-05-23 Orjan Friberg <orjanf@axis.com>
21221
21222 * linux-cris-low.c: New file with support for CRIS.
21223 * linux-crisv32-low.c: Ditto for CRISv32.
21224 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21225 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21226 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21227 reg-crisv32.o, and reg-crisv32.c to make rules.
21228 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21229 recognized targets.
21230
48d93c75
UW
212312005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21232
21233 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21234 of sizeof (PTRACE_XFER_TYPE).
21235 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21236
e013ee27
OF
212372005-05-12 Orjan Friberg <orjanf@axis.com>
21238
889bf7c5 21239 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21240 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21241 pointers for hardware watchpoint support.
21242 * linux-low.h (struct linux_target_ops): Ditto.
21243 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21244 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21245 to linux_target_ops.
21246 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21247 reply packet.
21248 * server.c (main): Recognize 'Z' and 'z' packets.
21249
b0ded00b
UW
212502005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21251
21252 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21253 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21254 (the_low_target): Add new members.
21255
8643e2ad
DJ
212562005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21257
21258 * proc-service.c (ps_lgetregs): Search all_processes instead of
21259 all_threads.
21260
fc620387
DJ
212612005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21262
21263 * server.c (start_inferior): Change return type to int.
21264 (attach_inferior): Change sigptr to int *.
21265 (handle_v_cont, handle_v_requests): Change signal to int *.
21266 (main): Change signal to int.
21267
212682005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21269
21270 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21271 * configure.srv: Add m32r*-*-linux*.
21272 * linux-m32r-low.c: New file.
21273
e0e76420
DJ
212742005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21275
21276 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21277
a1928bad
DJ
212782005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21279
21280 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21281 Take unsigned long arguments for PIDs.
21282 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21283 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21284 (wait_for_sigstop, linux_resume_one_process)
21285 (regsets_fetch_inferior_registers, linux_send_signal)
21286 (linux_read_auxv): Likewise. Update the types of variables holding
21287 PIDs. Update format string specifiers.
21288 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21289 * remote-utils.c (prepare_resume_reply): Likewise.
21290 * server.c (cont_thread, general_thread, step_thread)
21291 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21292 unsigned long.
21293 (handle_query): Update format specifiers.
21294 (handle_v_cont, main): Use strtoul for thread IDs.
21295 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21296 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21297 (general_thread, step_thread, thread_from_wait)
21298 (old_thread_from_wait): Update.
21299 * target.h (struct thread_resume): Use unsigned long for THREAD.
21300 (struct target_ops): Use unsigned long for arguments to attach and
21301 thread_alive.
21302
dcdb98d2
DJ
213032005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21304
21305 * acinclude.m4: Include bfd/bfd.m4 directly.
21306 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21307 <agriffis@toolchain.org>.
21308 * aclocal.m4, configure: Regenerated.
21309
bec39cab
AC
213102005-01-07 Andrew Cagney <cagney@gnu.org>
21311
21312 * configure.ac: Rename configure.in, require autoconf 2.59.
21313 * configure: Re-generate.
21314
434c4c77
DJ
213152004-12-08 Daniel Jacobowitz <dan@debian.org>
21316
21317 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21318 LIBS when finished.
21319 * aclocal.m4: Regenerated.
21320 * configure: Regenerated.
21321
db1d3e1b
AS
213222004-11-21 Andreas Schwab <schwab@suse.de>
21323
21324 * linux-m68k-low.c (m68k_num_gregs): Define.
21325 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21326 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21327 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21328 (m68k_breakpoint_at): New. Add to the_low_target.
21329
21330 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21331 srv_linux_thread_db to yes.
21332
43360365
JB
213332004-10-20 Joel Brobecker <brobecker@gnat.com>
21334
21335 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21336 (ARCH_SET_FS): Likewise.
21337 (ARCH_GET_FS): Likewise.
21338 (ARCH_GET_GS): Likewise.
21339
fd500816
DJ
213402004-10-16 Daniel Jacobowitz <dan@debian.org>
21341
21342 * linux-i386-low.c (ps_get_thread_area): New.
21343 * linux-x86-64-low.c (ps_get_thread_area): New.
21344 * linux-low.c: Include <sys/syscall.h>.
21345 (linux_kill_one_process): Don't kill the first thread here.
21346 (linux_kill): Kill the first thread here.
21347 (kill_lwp): New function.
21348 (send_sigstop, linux_send_signal): Use it.
21349 * proc-service.c: Clean up #ifdefs.
21350 (fpregset_info): Delete.
21351 (ps_lgetregs): Update and enable implementation.
21352 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21353 implementations.
21354 * remote-utils.c (struct sym_cache, symbol_cache): New.
21355 (input_interrupt): Print a clearer message.
21356 (async_io_enabled): New variable.
21357 (enable_async_io, disable_async_io): Use it. Update comments.
21358 (look_up_one_symbol): Use the symbol cache.
21359 * thread-db.c (thread_db_look_up_symbols): New function.
21360 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21361
f6de3c42
DJ
213622004-10-16 Daniel Jacobowitz <dan@debian.org>
21363
21364 * configure.in: Test for -rdynamic.
21365 * configure: Regenerated.
21366 * Makefile (INTERNAL_LDFLAGS): New.
21367 (gdbserver, gdbreplay): Use it.
21368
2c0fc042
AC
213692004-09-02 Andrew Cagney <cagney@gnu.org>
21370
21371 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21372
075b3282
DJ
213732004-03-23 Daniel Jacobowitz <drow@mvista.com>
21374
21375 * linux-low.c (linux_wait): Clear all_processes list also.
21376
fa6a77dc
DJ
213772004-03-12 Daniel Jacobowitz <drow@mvista.com>
21378
21379 * linux-low.c: Include <errno.h>. Remove extern declaration of
21380 errno.
21381
6d782a97
DJ
213822004-03-12 Daniel Jacobowitz <drow@mvista.com>
21383
21384 * gdbreplay.c, server.h, utils.c: Update copyright years.
21385
3a7fb99b
DJ
213862004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21387
21388 * server.c (main): Print child status or termination signal from
21389 variable 'signal', not 'sig'.
21390
c3e735a6
DJ
213912004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21392
21393 * linux-low.c (linux_read_memory): Change return type to
21394 int. Check for and return error from ptrace().
21395 * target.c (read_inferior_memory): Change return type to int. Pass
21396 back return status from the_target->read_memory().
21397 * target.h (struct target_ops): Adapt *read_memory() prototype.
21398 Update comment.
21399 (read_inferior_memory): Adapt prototype.
21400 * server.c (main): Return an error packet if
21401 read_inferior_memory() returns an error.
21402
a59d1c82
DJ
214032004-03-04 Daniel Jacobowitz <drow@mvista.com>
21404
21405 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21406 Unify with other clean targets.
21407
dc3f8883
DJ
214082004-02-29 Daniel Jacobowitz <drow@mvista.com>
21409
21410 * server.c (handle_v_cont): Call set_desired_inferior.
21411
89a208da
DJ
214122004-02-29 Daniel Jacobowitz <drow@mvista.com>
21413
21414 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21415
62ea82f5
DJ
214162004-02-29 Daniel Jacobowitz <drow@mvista.com>
21417
21418 * linux-low.c (linux_wait): Unblock async I/O.
21419 (linux_resume): Block and enable async I/O.
21420 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21421 * server.h (block_async_io, unblock_async_io): Add prototypes.
21422
6910d122
DJ
214232004-02-29 Daniel Jacobowitz <drow@mvista.com>
21424
21425 * remote-utils.c (remote_open): Print a status notice after
21426 opening a TCP port.
21427 * server.c (attach_inferior): Print a status notice after
21428 attaching.
21429
214302004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21431
21432 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21433
c89dc5d4
DJ
214342004-02-26 Daniel Jacobowitz <drow@mvista.com>
21435
21436 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21437 error packet.
21438 * server.c, target.h: Update copyright years.
21439
4b8dad4a
RM
214402004-02-25 Roland McGrath <roland@redhat.com>
21441
21442 * target.h (struct target_ops): New member `read_auxv'.
21443 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21444 * linux-low.c (linux_read_auxv): New function.
21445 (linux_target_ops): Initialize `read_auxv' member to that.
21446
d7446758
JB
214472004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21448
21449 Committed by Jim Blandy <jimb@redhat.com>.
21450
21451 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21452 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21453 instead of GPR_SIZE to distiguish s390 and s390x targets.
21454
5544ad89
DJ
214552004-01-31 Daniel Jacobowitz <drow@mvista.com>
21456
21457 * linux-low.c: Update copyright year.
21458 (check_removed_breakpoint): Clear pending_is_breakpoint.
21459 (linux_set_resume_request, linux_queue_one_thread)
21460 (resume_status_pending_p): New functions.
21461 (linux_continue_one_thread): Use process->resume.
21462 (linux_resume): Only resume threads if there are no pending events.
21463 * linux-low.h (struct process_info): Add resume request
21464 pointer.
21465
2a68b70e
DJ
214662004-01-30 Daniel Jacobowitz <drow@mvista.com>
21467
21468 * regcache.c (new_register_cache): Clear the allocated register
21469 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21470
64386c31
DJ
214712003-10-13 Daniel Jacobowitz <drow@mvista.com>
21472
21473 * linux-low.c (linux_resume): Take a struct thread_resume *
21474 argument.
21475 (linux_wait): Update call.
21476 (resume_ptr): New static variable.
21477 (linux_continue_one_thread): Renamed from
21478 linux_continue_one_process. Use resume_ptr.
21479 (linux_resume): Use linux_continue_one_thread.
21480 * server.c (handle_v_cont, handle_v_requests): New functions.
21481 (myresume): New function.
21482 (main): Handle 'v' case.
21483 * target.h (struct thread_resume): New type.
21484 (struct target_ops): Change argument of "resume" to struct
21485 thread_resume *.
21486 (myresume): Delete macro.
21487
c938e9b0
L
214882003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21489
21490 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21491 (uninstall): Support DESTDIR.
21492
7f313d07
BC
21493Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21494
21495 * configure.srv: Add xscale*linux copy of arm*linux entry.
21496
3b2fc2ea
DJ
214972003-07-24 Daniel Jacobowitz <drow@mvista.com>
21498
21499 * linux-arm-low.c (arm_reinsert_addr): New function.
21500 (the_low_target): Add arm_reinsert_addr.
21501
1c0a559e
MK
215022003-07-08 Mark Kettenis <kettenis@gnu.org>
21503
21504 * mem-break.c: Remove whitespace at end of file.
21505
43d5792c
DJ
215062003-06-28 Daniel Jacobowitz <drow@mvista.com>
21507
21508 * configure.in: Check whether we need to prototype strerror.
21509 * server.h: Optionally prototype strerror.
21510 * gdbreplay.c (perror_with_name): Use strerror.
21511 * linux-low.c (linux_attach_lwp): Use strerror.
21512 * utils.c (perror_with_name): Use strerror.
21513 * config.in, configure: Regenerated.
21514
c8a86edf
DJ
215152003-06-28 Daniel Jacobowitz <drow@mvista.com>
21516
21517 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21518 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21519
73d37363
DJ
215202003-06-20 Daniel Jacobowitz <drow@mvista.com>
21521
21522 * Makefile.in (SFILES): Update.
21523 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21524 low-sun3.c: Remove files.
21525
6ad8ae5c
DJ
215262003-06-17 Daniel Jacobowitz <drow@mvista.com>
21527
21528 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21529 (linux_detach_one_process, linux_detach): New functions.
21530 (linux_target_ops): Add linux_detach.
21531 * server.c (main): Handle 'D' packet.
21532 * target.h (struct target_ops): Add "detach" member.
21533 (detach_inferior): Define.
21534
1581182a
MK
215352003-06-13 Mark Kettenis <kettenis@gnu.org>
21536
21537 From Kelley Cook <kelleycook@wideopenwest.com>:
21538 * configure.srv: Accept i[34567]86 variants.
21539
e5379b03
DJ
215402003-06-05 Daniel Jacobowitz <drow@mvista.com>
21541
21542 * linux-low.c (linux_wait_for_event): Correct comment typos.
21543 (linux_resume_one_process): Call check_removed_breakpoint.
21544 (linux_send_signal): New function.
21545 (linux_target_ops): Add linux_send_signal.
21546 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21547 of kill.
21548 * target.h (struct target_ops): Add send_signal.
21549
2ff29de4
JB
215502003-05-29 Jim Blandy <jimb@redhat.com>
21551
21552 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21553 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21554 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21555 away part of the register's value.
21556
254787d4
DJ
215572003-03-26 Daniel Jacobowitz <drow@mvista.com>
21558
21559 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21560 (linux_wait_for_event, linux_init_signals): Likewise.
21561
94e10508
DJ
215622003-03-17 Daniel Jacobowitz <drow@mvista.com>
21563
21564 * configure.in: Check for stdlib.h.
21565 * configure: Regenerated.
21566 * config.in: Regenerated.
21567
4c0711e0
DJ
215682003-01-04 Andreas Schwab <schwab@suse.de>
21569
21570 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21571
ef66e766
AC
215722003-01-02 Andrew Cagney <ac131313@redhat.com>
21573
21574 * Makefile.in: Remove obsolete code.
21575
a1358604
DJ
215762002-11-20 Daniel Jacobowitz <drow@mvista.com>
21577
21578 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21579 defined(PT_FPR0_HI).
21580
23ce3b1c
DJ
215812002-11-17 Stuart Hughes <seh@zee2.com>
21582
21583 * linux-arm-low.c (arm_num_regs): Increase.
21584 (arm_regmap): Include status register.
21585
215862002-11-17 Daniel Jacobowitz <drow@mvista.com>
21587
21588 * linux-low.c (register_addr): Remove incorrect -1 check.
21589
a9fa9f7d
DJ
215902002-08-29 Daniel Jacobowitz <drow@mvista.com>
21591
21592 * linux-low.c (linux_create_inferior): Call setpgid. Return
21593 the new PID.
21594 (unstopped_p, linux_signal_pid): Remove.
21595 (linux_target_ops): Remove linux_signal_pid.
21596 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21597 global instead of target method.
21598 * target.h (struct target_ops): Remove signal_pid. Update comment
21599 for create_inferior.
21600 * server.c (signal_pid): New variable.
21601 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21602 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21603 (attach_inferior): Set signal_pid.
21604
17574093
DJ
216052002-08-23 Daniel Jacobowitz <drow@mvista.com>
21606
21607 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21608
216092002-08-20 Jim Blandy <jimb@redhat.com>
21610
21611 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21612 default for this.
21613
216142002-08-01 Andrew Cagney <cagney@redhat.com>
21615
21616 * Makefile.in: Make chill references obsolete.
21617
216182002-07-24 Kevin Buettner <kevinb@redhat.com>
21619
21620 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21621 * configure: Regenerate.
21622 * config.in: Regenerate.
21623
216242002-07-09 David O'Brien <obrien@FreeBSD.org>
21625
21626 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21627 (perror_with_name, remote_close, remote_open, expect, play): Static.
21628
216292002-07-04 Michal Ludvig <mludvig@suse.cz>
21630
4b8dad4a 21631 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21632 byte offsets instead of an array of indexes.
21633 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21634
216352002-06-13 Daniel Jacobowitz <drow@mvista.com>
21636
21637 * regcache.c: Add comment.
21638
216392002-06-11 Daniel Jacobowitz <drow@mvista.com>
21640
21641 * thread-db.c: New file.
21642 * proc-service.c: New file.
21643 * acinclude.m4: New file.
21644 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21645 proc-service.o, and thread-db.o.
21646 (linux-low.o): Add USE_THREAD_DB.
21647 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21648 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21649 * aclocal.m4: Regenerated.
21650 * config.in: Regenerated.
21651 * configure: Regenerated.
21652 * configure.in: Check for proc_service.h, sys/procfs.h,
21653 thread_db.h, and linux/elf.h headrs.
21654 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21655 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21656 Check for -lthread_db and thread support.
21657 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21658 PowerPC, and SuperH.
21659 * i387-fp.c: Constify arguments.
21660 * i387-fp.h: Likewise.
21661 * inferiors.c: (struct thread_info): Renamed from
21662 `struct inferior_info'. Remove PID member. Use generic inferior
21663 list header. All uses updated.
21664 (inferiors, signal_pid): Removed.
21665 (all_threads): New variable.
21666 (get_thread): Define.
21667 (add_inferior_to_list): New function.
21668 (for_each_inferior): New function.
21669 (change_inferior_id): New function.
21670 (add_inferior): Removed.
21671 (remove_inferior): New function.
21672 (add_thread): New function.
21673 (free_one_thread): New function.
21674 (remove_thread): New function.
21675 (clear_inferiors): Use for_each_inferior and free_one_thread.
21676 (find_inferior): New function.
21677 (find_inferior_id): New function.
21678 (inferior_target_data): Update argument type.
21679 (set_inferior_target_data): Likewise.
21680 (inferior_regcache_data): Likewise.
21681 (set_inferior_regcache_data): Likewise.
21682 * linux-low.c (linux_bp_reinsert): Remove.
21683 (all_processes, stopping_threads, using_thrads)
21684 (struct pending_signals, debug_threads, pid_of): New.
21685 (inferior_pid): Replace with macro.
21686 (struct inferior_linux_data): Remove.
21687 (get_stop_pc, add_process): New functions.
21688 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21689 Use add_process and add_thread.
21690 (linux_attach_lwp): New function, based on old linux_attach. Use
21691 add_process and add_thread. Set stop_expected for new threads.
21692 (linux_attach): New function.
21693 (linux_kill_one_process): New function.
21694 (linux_kill): Kill all LWPs.
21695 (linux_thread_alive): Use find_inferior_id.
21696 (check_removed_breakpoints, status_pending_p): New functions.
21697 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21698 Update. Use WNOHANG. Wait for cloned processes also. Update process
21699 struct for the found process.
21700 (linux_wait_for_event): New function.
21701 (linux_wait): Use it. Support LWPs.
21702 (send_sigstop, wait_for_sigstop, stop_all_processes)
21703 (linux_resume_one_process, linux_continue_one_process): New functions.
21704 (linux_resume): Support LWPs.
21705 (REGISTER_RAW_SIZE): Remove.
21706 (fetch_register): Use register_size instead. Call supply_register.
21707 (usr_store_inferior_registers): Likewise. Call collect_register.
21708 Fix recursive case.
21709 (regsets_fetch_inferior_registers): Improve error message.
21710 (regsets_store_inferior_registers): Add debugging.
21711 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21712 (unstopped_p, linux_signal_pid): New functions.
21713 (linux_target_ops): Add linux_signal_pid.
21714 (linux_init_signals): New function.
21715 (initialize_low): Call it. Initialize using_threads.
21716 * regcache.c (inferior_regcache_data): Add valid
21717 flag.
21718 (get_regcache): Fetch registers lazily. Add fetch argument
21719 and update all callers.
21720 (regcache_invalidate_one, regcache_invalidate): New
21721 functions.
21722 (new_register_cache): Renamed from create_register_cache.
21723 Return the new regcache.
21724 (free_register_cache): Change argument to a void *.
21725 (registers_to_string, registers_from_string): Call get_regcache
21726 with fetch flag set.
21727 (register_data): Make static. Pass fetch flag to get_regcache.
21728 (supply_register): Call get_regcache with fetch flag clear.
21729 (collect_register): Call get_regcache with fetch flag set.
21730 (collect_register_as_string): New function.
21731 * regcache.h: Update.
21732 * remote-utils.c (putpkt): Flush after debug output and use
21733 stderr.
21734 Handle input interrupts while waiting for an ACK.
21735 (input_interrupt): Use signal_pid method.
21736 (getpkt): Flush after debug output and use stderr.
21737 (outreg): Use collect_register_as_string.
21738 (new_thread_notify, dead_thread_notify): New functions.
21739 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21740 and general_thread.
21741 (look_up_one_symbol): Flush after debug output.
21742 * server.c (step_thread, server_waiting): New variables.
21743 (start_inferior): Don't use signal_pid. Update call to mywait.
21744 (attach_inferior): Update call to mywait.
21745 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21746 (main): Don't fetch/store registers explicitly. Use
21747 set_desired_inferior. Support proposed ``Hs'' packet. Update
21748 calls to mywait.
21749 * server.h: Update.
21750 (struct inferior_list, struct_inferior_list_entry): New.
21751 * target.c (set_desired_inferior): New.
21752 (write_inferior_memory): Constify.
21753 (mywait): New function.
21754 * target.h: Update.
21755 (struct target_ops): New signal_pid method.
21756 (mywait): Removed macro, added prototype.
21757
21758 * linux-low.h (regset_func): Removed.
21759 (regset_fill_func, regset_store_func): New.
21760 (enum regset_type): New.
21761 (struct regset_info): Add type field. Use new operation types.
21762 (struct linux_target_ops): stop_pc renamed to get_pc.
21763 Add decr_pc_after_break and breakpoint_at.
21764 (get_process, get_thread_proess, get_process_thread)
21765 (strut process_info, all_processes, linux_attach_lwp)
21766 (thread_db_init): New.
21767
21768 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21769 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21770 (the_low_target): Add new members.
21771 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21772 (i386_store_fpxregset): Constify.
21773 (target_regsets): Add new kind identifier.
21774 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21775 (i386_set_pc): Add debugging.
21776 (i386_breakpoint_at): New function.
21777 (the_low_target): Add new members.
21778 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21779 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21780 (mips_breakpoint_at): New.
21781 (the_low_target): Add new members.
21782 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21783 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21784 (the_low_target): Add new members.
21785 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21786 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21787 (the_low_target): Add new members.
21788 * linux-x86-64-low.c (target_regsets): Add new kind
21789 identifier.
21790
217912002-05-15 Daniel Jacobowitz <drow@mvista.com>
21792
21793 From Martin Pool <mbp@samba.org>:
21794 * server.c (gdbserver_usage): New function.
21795 (main): Call it.
21796
217972002-05-14 Daniel Jacobowitz <drow@mvista.com>
21798
21799 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21800 stop_at -> stop_pc.
21801
218022002-05-04 Andrew Cagney <ac131313@redhat.com>
21803
21804 * Makefile.in: Remove obsolete code.
21805
218062002-04-24 Michal Ludvig <mludvig@suse.cz>
21807
21808 * linux-low.c (regsets_fetch_inferior_registers),
21809 (regsets_store_inferior_registers): Removed cast to int from
21810 ptrace() calls.
21811 * regcache.h: Added declaration of struct inferior_info.
21812
218132002-04-20 Daniel Jacobowitz <drow@mvista.com>
21814
21815 * inferiors.c (struct inferior_info): Add regcache_data.
21816 (add_inferior): Call create_register_cache.
21817 (clear_inferiors): Call free_register_cache.
21818 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21819 * regcache.c (struct inferior_regcache_data): New.
21820 (registers): Remove.
21821 (get_regcache): New function.
21822 (create_register_cache, free_register_cache): New functions.
21823 (set_register_cache): Don't initialize the register cache here.
21824 (registers_to_string, registers_from_string, register_data): Call
21825 get_regcache.
21826 * regcache.h: Add prototypes.
21827 * server.h: Likewise.
21828
218292002-04-20 Daniel Jacobowitz <drow@mvista.com>
21830
21831 * mem-break.c: New file.
21832 * mem-break.h: New file.
21833 * Makefile.in: Add mem-break.o rule; update server.h
21834 dependencies.
21835 * inferiors.c (struct inferior_info): Add target_data
21836 member.
21837 (clear_inferiors): Free target_data member if set.
21838 (inferior_target_data, set_inferior_target_data): New functions.
21839 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21840 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21841 * linux-low.c (linux_bp_reinsert): New variable.
21842 (struct inferior_linux_data): New.
21843 (linux_create_inferior): Use set_inferior_target_data.
21844 (linux_attach): Likewise. Call add_inferior.
21845 (linux_wait_for_one_inferior): New function.
21846 (linux_wait): Call it.
21847 (linux_write_memory): Add const.
21848 (initialize_low): Call set_breakpoint_data.
21849 * linux-low.h (struct linux_target_ops): Add breakpoint
21850 handling members.
21851 * server.c (attach_inferior): Remove extra add_inferior
21852 call.
21853 * server.h: Include mem-break.h. Update inferior.c
21854 prototypes.
21855 * target.c (read_inferior_memory)
21856 (write_inferior_memory): New functions.
21857 * target.h (read_inferior_memory)
21858 (write_inferior_memory): Change macros to prototypes.
21859 (struct target_ops): Update comments. Add const to write_memory
21860 definition.
21861
218622002-04-11 Daniel Jacobowitz <drow@mvista.com>
21863
21864 * linux-low.c (usr_store_inferior_registers): Support
21865 registers which are allowed to fail to store.
21866 * linux-low.h (linux_target_ops): Likewise.
21867 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21868 (ppc_cannot_store_register): FPSCR may not be storable.
21869
218702002-04-09 Daniel Jacobowitz <drow@mvista.com>
21871
21872 * server.h: Include <string.h> if HAVE_STRING_H.
21873 * ChangeLog: Correct paths in last ChangeLog entry.
21874
218752002-04-09 Daniel Jacobowitz <drow@mvista.com>
21876
21877 * linux-low.h: Remove obsolete prototypes.
21878 (struct linux_target_ops): New.
21879 (extern the_low_target): New.
21880 * linux-low.c (num_regs, regmap): Remove declarations.
21881 (register_addr): Use the_low_target explicitly.
21882 (fetch_register): Likewise.
21883 (usr_fetch_inferior_registers): Likewise.
21884 (usr_store_inferior_registers): Likewise.
21885 * linux-arm-low.c (num_regs): Remove.
21886 (arm_num_regs): Define.
21887 (arm_regmap): Renamed from regmap, made static.
21888 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21889 made static.
21890 (arm_cannot_store_register): Renamed from cannot_store_register,
21891 made static.
21892 (the_low_target): New.
21893 * linux-i386-low.c (num_regs): Remove.
21894 (i386_num_regs): Define.
21895 (i386_regmap): Renamed from regmap, made static.
21896 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21897 made static.
21898 (i386_cannot_store_register): Renamed from cannot_store_register,
21899 made static.
21900 (the_low_target): New.
21901 * linux-ia64-low.c (num_regs): Remove.
21902 (ia64_num_regs): Define.
21903 (ia64_regmap): Renamed from regmap, made static.
21904 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21905 made static.
21906 (ia64_cannot_store_register): Renamed from cannot_store_register,
21907 made static.
21908 (the_low_target): New.
21909 * linux-m68k-low.c (num_regs): Remove.
21910 (m68k_num_regs): Define.
21911 (m68k_regmap): Renamed from regmap, made static.
21912 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21913 made static.
21914 (m68k_cannot_store_register): Renamed from cannot_store_register,
21915 made static.
21916 (the_low_target): New.
21917 * linux-mips-low.c (num_regs): Remove.
21918 (mips_num_regs): Define.
21919 (mips_regmap): Renamed from regmap, made static.
21920 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21921 made static.
21922 (mips_cannot_store_register): Renamed from cannot_store_register,
21923 made static.
21924 (the_low_target): New.
21925 * linux-ppc-low.c (num_regs): Remove.
21926 (ppc_num_regs): Define.
21927 (ppc_regmap): Renamed from regmap, made static.
21928 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21929 made static.
21930 (ppc_cannot_store_register): Renamed from cannot_store_register,
21931 made static.
21932 (the_low_target): New.
21933 * linux-s390-low.c (num_regs): Remove.
21934 (s390_num_regs): Define.
21935 (s390_regmap): Renamed from regmap, made static.
21936 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21937 made static.
21938 (s390_cannot_store_register): Renamed from cannot_store_register,
21939 made static.
21940 (the_low_target): New.
21941 * linux-sh-low.c (num_regs): Remove.
21942 (sh_num_regs): Define.
21943 (sh_regmap): Renamed from regmap, made static.
21944 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21945 made static.
21946 (sh_cannot_store_register): Renamed from cannot_store_register,
21947 made static.
21948 (the_low_target): New.
21949 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21950 (the_low_target): New.
21951
219522002-04-09 Daniel Jacobowitz <drow@mvista.com>
21953
21954 * Makefile.in: Add stamp-h target.
21955 * configure.in: Create stamp-h.
21956 * configure: Regenerated.
21957
219582002-04-09 Daniel Jacobowitz <drow@mvista.com>
21959
21960 * inferiors.c: New file.
21961 * target.c: New file.
21962 * target.h: New file.
21963 * Makefile.in: Add target.o and inferiors.o. Update
21964 dependencies.
21965 * linux-low.c (inferior_pid): New static variable,
21966 moved from server.c.
21967 (linux_create_inferior): Renamed from create_inferior.
21968 Call add_inferior. Return 0 on success instead of a PID.
21969 (linux_attach): Renamed from myattach.
21970 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21971 (linux_thread_alive): Renamed from mythread_alive.
21972 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21973 child dies.
21974 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21975 (regsets_store_inferior_registers): Correct error message.
21976 Add missing ``return 0''.
21977 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21978 (linux_store_registers): Renamed from store_inferior_registers.
21979 (linux_read_memory): Renamed from read_inferior_memory.
21980 (linux_write_memory): Renamed from write_inferior_memory.
21981 (linux_target_ops): New structure.
21982 (initialize_low): Call set_target_ops ().
21983 * remote-utils.c (unhexify): New function.
21984 (hexify): New function.
21985 (input_interrupt): Send signals to ``signal_pid''.
21986 * server.c (inferior_pid): Remove.
21987 (start_inferior): Update create_inferior call.
21988 (attach_inferior): Call add_inferior.
21989 (handle_query): New function.
21990 (main): Call handle_query for `q' packets.
21991 * server.h: Include "target.h". Remove obsolete prototypes.
21992 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21993
219942002-04-09 Daniel Jacobowitz <drow@mvista.com>
21995
21996 * Makefile.in: Add WARN_CFLAGS. Update configury
21997 dependencies.
21998 * configure.in: Check for <string.h>
21999 * configure: Regenerate.
22000 * config.in: Regenerate.
22001 * gdbreplay.c: Include needed system headers.
22002 (remote_open): Remove strchr prototype.
22003 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22004 * regcache.c (supply_register): Change buf argument to const void *.
22005 (supply_register_by_name): Likewise.
22006 (collect_register): Change buf argument to void *.
22007 (collect_register_by_name): Likewise.
22008 * regcache.h: Add missing prototypes.
22009 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22010 * server.c (handle_query): New function.
22011 (attached): New static variable, moved out of main.
22012 (main): Quiet longjmp clobber warnings.
22013 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22014 * utils.c (error): Remove NORETURN.
22015 (fatal): Likewise.