]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Implement stopped_by_sw_breakpoint for Windows gdbserver
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
523d4f80
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
4 (win32_process_target::supports_stopped_by_sw_breakpoint):
5 Declare.
6 * win32-low.c (win32_supports_z_point_type): Always handle
7 Z_PACKET_SW_BP.
8 (win32_insert_point): Call insert_memory_breakpoint when needed.
9 (win32_remove_point): Call remove_memory_breakpoint when needed.
10 (win32_process_target::stopped_by_sw_breakpoint)
11 (win32_process_target::supports_stopped_by_sw_breakpoint): New
12 methods.
13 (win32_target_ops): Update.
14 (maybe_adjust_pc): New function.
15 (win32_wait): Call maybe_adjust_pc.
16
e54e5929
TT
172020-04-08 Tom Tromey <tromey@adacore.com>
18
19 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
20 field.
21 * win32-i386-low.c (the_low_target): Update.
22 * win32-arm-low.c (the_low_target): Update.
23
d6225aff
TT
242020-04-08 Tom Tromey <tromey@adacore.com>
25
26 * win32-low.h (win32_process_target::read_pc)
27 (win32_process_target::write_pc): Declare.
28 * win32-low.c (win32_process_target::read_pc)
29 (win32_process_target::write_pc): New methods.
30 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
31 functions.
32 (the_low_target): Update.
33 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
34 functions.
35 (the_low_target): Update.
36
2c1d95e8
TT
372020-04-08 Tom Tromey <tromey@adacore.com>
38
39 * win32-low.c (win32_kill, get_child_debug_event): Use
40 wait_for_debug_event.
41
e758e19c
TT
422020-04-08 Tom Tromey <tromey@adacore.com>
43
44 * win32-low.c (child_continue): Call continue_last_debug_event.
45
8d30e395
TT
462020-04-08 Tom Tromey <tromey@adacore.com>
47
48 * win32-low.c (handle_exception): Remove.
49 (windows_nat::handle_ms_vc_exception): New function.
50 (get_child_debug_event): Add "continue_status" parameter.
51 Update.
52 (win32_wait): Update.
53
a816ba18
TT
542020-04-08 Tom Tromey <tromey@adacore.com>
55
56 * win32-low.c (windows_nat::handle_load_dll): Rename from
57 handle_load_dll. No longer static.
58 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
59 No longer static.
60
d41b524f
TT
612020-04-08 Tom Tromey <tromey@adacore.com>
62
63 * win32-low.c (handle_output_debug_string): Add parameter. Change
64 return type.
65 (win32_kill, get_child_debug_event): Update.
66
3c76026d
TT
672020-04-08 Tom Tromey <tromey@adacore.com>
68
69 * win32-low.c (current_process_handle, current_process_id)
70 (main_thread_id, last_sig, current_event, siginfo_er): Move to
71 nat/windows-nat.c.
72
9d8679cc
TT
732020-04-08 Tom Tromey <tromey@adacore.com>
74
75 * win32-low.c (get_image_name): Remove.
76 (handle_load_dll): Update.
77
28688adf
TT
782020-04-08 Tom Tromey <tromey@adacore.com>
79
80 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
81 No longer static. Change parameters.
82 (child_add_thread, child_fetch_inferior_registers)
83 (child_store_inferior_registers, win32_resume)
84 (win32_get_tib_address): Update.
85
4834dad0
TT
862020-04-08 Tom Tromey <tromey@adacore.com>
87
88 * win32-low.h (struct win32_target_ops): Use qualified names where
89 needed.
90 * win32-i386-low.c: Add "using namespace".
91 * win32-low.c: Add "using namespace".
92 * win32-arm-low.c: Add "using namespace".
93
65bafd5b
TT
942020-04-08 Tom Tromey <tromey@adacore.com>
95
96 * win32-low.c (delete_thread_info): Don't call CloseHandle.
97
98a03287
TT
982020-04-08 Tom Tromey <tromey@adacore.com>
99
100 * win32-low.c (win32_require_context, suspend_one_thread): Use
101 windows_thread_info::suspend.
102 (continue_one_thread): Use windows_thread_info::resume.
103 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
104
62fe396b
TT
1052020-04-08 Tom Tromey <tromey@adacore.com>
106
107 * win32-i386-low.c (update_debug_registers)
108 (i386_prepare_to_resume, i386_thread_added): Update.
109
e9534bd2
TT
1102020-04-08 Tom Tromey <tromey@adacore.com>
111
112 * win32-low.c (child_add_thread): Use new.
113 (delete_thread_info): Use delete.
114
ae1f8880
TT
1152020-04-08 Tom Tromey <tromey@adacore.com>
116
117 * win32-low.h (struct windows_thread_info): Remove.
118
e56f8ccb
TT
1192020-04-08 Tom Tromey <tromey@adacore.com>
120
121 * win32-low.h (struct windows_thread_info): Rename from
122 win32_thread_info. Remove typedef.
123 (struct win32_target_ops, win32_require_context): Update.
124 * win32-low.c (win32_get_thread_context)
125 (win32_set_thread_context, win32_prepare_to_resume)
126 (win32_require_context, thread_rec, child_add_thread)
127 (delete_thread_info, continue_one_thread)
128 (child_fetch_inferior_registers, child_store_inferior_registers)
129 (win32_resume, suspend_one_thread, win32_get_tib_address):
130 Update.
131 * win32-i386-low.c (update_debug_registers)
132 (win32_get_current_dr, i386_get_thread_context)
133 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
134 (i386_fetch_inferior_register, i386_store_inferior_register):
135 Update.
136 * win32-arm-low.c (arm_get_thread_context)
137 (arm_fetch_inferior_register, arm_store_inferior_register):
138 Update.
139
0dd7b52e
TBA
1402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
141
142 * linux-low.h (struct linux_target_ops): Remove.
143 (the_low_target): Remove.
144 * linux-x86-low.cc (the_low_target): Remove.
145 * linux-aarch64-low.cc (the_low_target): Ditto.
146 * linux-arm-low.cc (the_low_target): Ditto.
147 * linux-bfin-low.cc (the_low_target): Ditto.
148 * linux-cris-low.cc (the_low_target): Ditto.
149 * linux-crisv32-low.cc (the_low_target): Ditto.
150 * linux-ia64-low.cc (the_low_target): Ditto.
151 * linux-m32r-low.cc (the_low_target): Ditto.
152 * linux-m68k-low.cc (the_low_target): Ditto.
153 * linux-mips-low.cc (the_low_target): Ditto.
154 * linux-nios2-low.cc (the_low_target): Ditto.
155 * linux-ppc-low.cc (the_low_target): Ditto.
156 * linux-riscv-low.cc (the_low_target): Ditto.
157 * linux-s390-low.cc (the_low_target): Ditto.
158 * linux-sh-low.cc (the_low_target): Ditto.
159 * linux-sparc-low.cc (the_low_target): Ditto.
160 * linux-tic6x-low.cc (the_low_target): Ditto.
161 * linux-tile-low.cc (the_low_target): Ditto.
162 * linux-xtensa-low.cc (the_low_target): Ditto.
163
fc5ecdb6
TBA
1642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
165
166 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
167 linux target define the op by overriding the declaration in
168 process_stratum_target.
169
170 * linux-low.h (struct linux_target_ops): Remove the op.
171 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
172 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
173 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
174 (x86_get_ipa_tdesc_idx): Turn into...
175 (x86_target::get_ipa_tdesc_idx): ...this.
176 (the_low_target): Remove the op field.
177 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
178 (ppc_get_ipa_tdesc_idx): Turn into...
179 (ppc_target::get_ipa_tdesc_idx): ...this.
180 (the_low_target): Remove the op field.
181 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
182 (s390_get_ipa_tdesc_idx): Turn into...
183 (s390_target::get_ipa_tdesc_idx): ...this.
184 (the_low_target): Remove the op field.
185
9eedd27d
TBA
1862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
187
188 Turn the 'get_syscall_trapinfo' linux target op into a method
189 of process_stratum_target.
190
191 * linux-low.h (struct linux_target_ops): Remove the op.
192 (class linux_process_target) <get_syscall_trapinfo>
193 <gdb_catch_this_syscall>
194 <low_supports_catch_syscall>
195 <low_get_syscall_trapinfo>: Declare.
196 * linux-low.cc (get_syscall_trapinfo): Turn into...
197 (linux_process_target::get_syscall_trapinfo): ...this.
198 (linux_process_target::low_get_syscall_trapinfo): Define.
199 (gdb_catch_this_syscall_p): Turn into...
200 (linux_process_target::gdb_catch_this_syscall): ...this.
201 (linux_process_target::low_supports_catch_syscall): Define.
202
203 Update the callers below.
204
205 (linux_process_target::wait_1)
206 (linux_process_target::supports_catch_syscall)
207
208 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
209 <low_get_syscall_trapinfo>: Declare.
210 (x86_target::low_supports_catch_syscall): Define.
211 (x86_get_syscall_trapinfo): Turn into...
212 (x86_target::low_get_syscall_trapinfo): ...this.
213 (the_low_target): Remove the op field.
214 * linux-aarch64-low.cc (class aarch64_target)
215 <low_supports_catch_syscall>
216 <low_get_syscall_trapinfo>: Declare.
217 (aarch64_target::low_supports_catch_syscall): Define.
218 (aarch64_get_syscall_trapinfo): Turn into...
219 (aarch64_target::low_get_syscall_trapinfo): ...this.
220 (the_low_target): Remove the op field.
221 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
222 <low_get_syscall_trapinfo>: Declare.
223 (arm_target::low_supports_catch_syscall): Define.
224 (arm_get_syscall_trapinfo): Turn into...
225 (arm_target::low_get_syscall_trapinfo): ...this.
226 (the_low_target): Remove the op field.
227 * linux-ppc-low.cc (the_low_target): Remove the op field.
228 * linux-s390-low.cc (the_low_target): Remove the op field.
229
b31cdfa6
TBA
2302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
231
232 Remove the 'supports_hardware_single_step' linux target op and
233 override the process_stratum_target's op definition in
234 linux_process_target to return true.
235
236 * linux-low.h (struct linux_target_ops): Remove the op.
237 (class linux_process_target) <finish_step_over>
238 <maybe_hw_step>: Declare.
239 * linux-low.cc (can_hardware_single_step): Remove.
240 (maybe_hw_step): Turn into...
241 (linux_process_target::maybe_hw_step): ...this.
242 (finish_step_over): Turn into...
243 (linux_process_target::finish_step_over): ...this.
244 (linux_process_target::supports_hardware_single_step): Update
245 to return true.
246
247 Update the callers below.
248
249 (linux_process_target::single_step)
250 (linux_process_target::resume_one_lwp_throw)
251
252 * linux-arm-low.cc (class arm_target)
253 <supports_hardware_single_step>: Declare.
254 (arm_supports_hardware_single_step): Turn into...
255 (arm_target::supports_hardware_single_step): ...this.
256 (the_low_target): Remove the op field.
257 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
258 (the_low_target): Remove the op field.
259 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
260 Remove.
261 (the_low_target): Remove the op field.
262 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
263 (the_low_target): Remove the op field.
264 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
265 (the_low_target): Remove the op field.
266 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
267 (the_low_target): Remove the op field.
268 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
269 (the_low_target): Remove the op field.
270 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
271 (the_low_target): Remove the op field.
272 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
273 (the_low_target): Remove the op field.
274 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
275 (the_low_target): Remove the op field.
276 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
277 (the_low_target): Remove the op field.
278 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
279 (the_low_target): Remove the op field.
280 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
281 Remove.
282 (the_low_target): Remove the op field.
283
9cfd8715
TBA
2842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
285
286 Turn the 'supports_range_stepping' linux target op into a method
287 of linux_process_target.
288
289 * linux-low.h (struct linux_target_ops): Remove the op.
290 (class linux_process_target) <low_supports_range_stepping>: Declare.
291 * linux-low.cc (linux_process_target::low_supports_range_stepping):
292 Define.
293 (linux_process_target::supports_range_stepping): Update the call
294 site.
295 * linux-x86-low.cc (class x86_target)
296 <low_supports_range_stepping>: Declare.
297 (x86_supports_range_stepping): Turn into...
298 (x86_target::low_supports_range_stepping): ...this.
299 (the_low_target): Remove the op field.
300 * linux-aarch64-low.cc (class aarch64_target)
301 <low_supports_range_stepping>: Declare.
302 (aarch64_supports_range_stepping): Turn into...
303 (aarch64_target::low_supports_range_stepping): ...this.
304 (the_low_target): Remove the op field.
305 * linux-arm-low.cc (the_low_target): Remove the op field.
306 * linux-bfin-low.cc (the_low_target): Ditto.
307 * linux-crisv32-low.cc (the_low_target): Ditto.
308 * linux-m32r-low.cc (the_low_target): Ditto.
309 * linux-m68k-low.cc (the_low_target): Ditto.
310 * linux-ppc-low.cc (the_low_target): Ditto.
311 * linux-s390-low.cc (the_low_target): Ditto.
312 * linux-sh-low.cc (the_low_target): Ditto.
313 * linux-tic6x-low.cc (the_low_target): Ditto.
314 * linux-tile-low.cc (the_low_target): Ditto.
315 * linux-xtensa-low.cc (the_low_target): Ditto.
316
ab64c999
TBA
3172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
318
319 Remove the 'emit_ops' linux target ops and let the concrete
320 linux target define the op by overriding the declaration of
321 process_stratum_target.
322
323 * linux-low.h (struct linux_target_ops): Remove the op.
324 (class linux_process_target) <emit_ops>: Remove.
325 * linux-low.cc (linux_process_target::emit_ops): Remove.
326 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
327 (x86_emit_ops): Turn into...
328 (x86_target::emit_ops): ...this.
329 (the_low_target): Remove the op field.
330 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
331 (aarch64_emit_ops): Turn into...
332 (aarch64_target::emit_ops): ...this.
333 (the_low_target): Remove the op field.
334 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
335 (ppc_emit_ops): Turn into...
336 (ppc_target::emit_ops): ...this.
337 (the_low_target): Remove the op field.
338 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
339 (s390_emit_ops): Turn into...
340 (s390_target::emit_ops): ...this.
341 (the_low_target): Remove the op field.
342 * linux-arm-low.cc (the_low_target): Remove the op field.
343 * linux-bfin-low.cc (the_low_target): Ditto.
344 * linux-crisv32-low.cc (the_low_target): Ditto.
345 * linux-m32r-low.cc (the_low_target): Ditto.
346 * linux-m68k-low.cc (the_low_target): Ditto.
347 * linux-sh-low.cc (the_low_target): Ditto.
348 * linux-tic6x-low.cc (the_low_target): Ditto.
349 * linux-tile-low.cc (the_low_target): Ditto.
350 * linux-xtensa-low.cc (the_low_target): Ditto.
351
809a0c35
TBA
3522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
353
354 Remove the 'install_fast_tracepoint_jump_pad' and
355 'get_min_fast_tracepoint_insn_len' linux target ops to let the
356 concrete linux target define the ops by overriding the declarations
357 of process_stratum_target.
358
359 * linux-low.h (struct linux_target_ops): Remove the ops.
360 (class linux_process_target) <supports_fast_tracepoints>
361 <install_fast_tracepoint_jump_pad>
362 <get_min_fast_tracepoint_insn_len>: Remove.
363 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
364 (linux_process_target::install_fast_tracepoint_jump_pad)
365 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
366 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
367 <install_fast_tracepoint_jump_pad>
368 <get_min_fast_tracepoint_insn_len>: Declare.
369 (x86_target::supports_fast_tracepoints): Define.
370 (x86_install_fast_tracepoint_jump_pad): Turn into...
371 (x86_target::install_fast_tracepoint_jump_pad): ...this.
372 (x86_get_min_fast_tracepoint_insn_len): Turn into...
373 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
374 (the_low_target): Remove the op fields.
375 * linux-aarch64-low.cc (class aarch64_target)
376 <supports_fast_tracepoints>
377 <install_fast_tracepoint_jump_pad>
378 <get_min_fast_tracepoint_insn_len>: Declare.
379 (aarch64_target::supports_fast_tracepoints): Define.
380 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
381 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
382 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
383 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
384 (the_low_target): Remove the op fields.
385 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
386 <install_fast_tracepoint_jump_pad>
387 <get_min_fast_tracepoint_insn_len>: Declare.
388 (ppc_target::supports_fast_tracepoints): Define.
389 (ppc_install_fast_tracepoint_jump_pad): Turn into...
390 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
391 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
392 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
393 (the_low_target): Remove the op fields.
394 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
395 <install_fast_tracepoint_jump_pad>
396 <get_min_fast_tracepoint_insn_len>: Declare.
397 (s390_target::supports_fast_tracepoints): Define.
398 (s390_install_fast_tracepoint_jump_pad): Turn into...
399 (s390_target::install_fast_tracepoint_jump_pad): ...this.
400 (s390_get_min_fast_tracepoint_insn_len): Turn into...
401 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
402 (the_low_target): Remove the op fields.
403 * linux-arm-low.cc (the_low_target): Remove the op fields.
404 * linux-bfin-low.cc (the_low_target): Ditto.
405 * linux-crisv32-low.cc (the_low_target): Ditto.
406 * linux-m32r-low.cc (the_low_target): Ditto.
407 * linux-m68k-low.cc (the_low_target): Ditto.
408 * linux-sh-low.cc (the_low_target): Ditto.
409 * linux-tic6x-low.cc (the_low_target): Ditto.
410 * linux-tile-low.cc (the_low_target): Ditto.
411 * linux-xtensa-low.cc (the_low_target): Ditto.
412
13e567af
TBA
4132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
414
415 Turn the 'get_thread_area' linux target op into a method of
416 process_stratum_target.
417
418 * linux-low.h (struct linux_target_ops): Remove the op.
419 (class linux_process_target) <stuck_in_jump_pad>
420 <linux_fast_tracepoint_collecting>
421 <low_get_thread_area>: Declare.
422 * linux-low.cc (supports_fast_tracepoints): Remove.
423 (linux_fast_tracepoint_collecting): Turn into...
424 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
425 (linux_process_target::low_get_thread_area): Define.
426 (stuck_in_jump_pad_callback): Turn into...
427 (linux_process_target::stuck_in_jump_pad): ...this.
428
429 Update the caller below.
430
431 (linux_process_target::stabilize_threads)
432
433 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
434 Declare.
435 (x86_get_thread_area): Turn into...
436 (x86_target::low_get_thread_area): ...this.
437 (the_low_target): Remove the op field.
438 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
439 Declare.
440 (aarch64_get_thread_area): Turn into...
441 (aarch64_target::low_get_thread_area): ...this.
442 (the_low_target): Remove the op field.
443 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
444 Declare.
445 (ppc_get_thread_area): Turn into...
446 (ppc_target::low_get_thread_area): ...this.
447 (the_low_target): Remove the op field.
448 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
449 Declare.
450 (s390_get_thread_area): Turn into...
451 (s390_target::low_get_thread_area): ...this.
452 (the_low_target): Remove the op field.
453 * linux-arm-low.cc (the_low_target): Remove the op field.
454 * linux-bfin-low.cc (the_low_target): Ditto.
455 * linux-crisv32-low.cc (the_low_target): Ditto.
456 * linux-m32r-low.cc (the_low_target): Ditto.
457 * linux-m68k-low.cc (the_low_target): Ditto.
458 * linux-sh-low.cc (the_low_target): Ditto.
459 * linux-tic6x-low.cc (the_low_target): Ditto.
460 * linux-tile-low.cc (the_low_target): Ditto.
461 * linux-xtensa-low.cc (the_low_target): Ditto.
462
47f70aa7
TBA
4632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
464
465 Remote the 'supports_tracepoints' linux target op and let the
466 concrete linux target define it by overriding the op declared in
467 process_stratum_target.
468
469 * linux-low.h (struct linux_target_ops): Remove the op.
470 (class linux_process_target) <supports_tracepoints>: Remove.
471 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
472 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
473 Declare.
474 (x86_supports_tracepoints): Turn into...
475 (x86_target::supports_tracepoints): ...this.
476 (the_low_target): Remove the op field.
477 * linux-aarch64-low.cc (class aarch64_target)
478 <supports_tracepoints>: Declare.
479 (aarch64_supports_tracepoints): Turn into...
480 (aarch64_target::supports_tracepoints): ...this.
481 (the_low_target): Remove the op field.
482 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
483 Declare.
484 (ppc_supports_tracepoints): Turn into...
485 (ppc_target::supports_tracepoints): ...this.
486 (the_low_target): Remove the op field.
487 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
488 Declare.
489 (s390_supports_tracepoints): Turn into...
490 (s390_target::supports_tracepoints): ...this.
491 (the_low_target): Remove the op field.
492 * linux-arm-low.cc (the_low_target): Remove the op field.
493 * linux-bfin-low.cc (the_low_target): Ditto.
494 * linux-crisv32-low.cc (the_low_target): Ditto.
495 * linux-m32r-low.cc (the_low_target): Ditto.
496 * linux-m68k-low.cc (the_low_target): Ditto.
497 * linux-sh-low.cc (the_low_target): Ditto.
498 * linux-tic6x-low.cc (the_low_target): Ditto.
499 * linux-tile-low.cc (the_low_target): Ditto.
500 * linux-xtensa-low.cc (the_low_target): Ditto.
501
a5b5da92
TBA
5022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
503
504 Remove the 'process_qsupported' linux target op and let a concrete
505 linux target define the op by overriding the op declaration in
506 process_stratum_target.
507
508 * linux-low.h (struct linux_target_ops): Remove the op.
509 (class linux_process_target) <process_qsupported>: Remove.
510 * linux-low.cc (linux_process_target::process_qsupported): Remove.
511 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
512 (x86_linux_process_qsupported): Turn into...
513 (x86_target::process_qsupported): ...this.
514 (the_low_target): Remove the op field.
515 * linux-aarch64-low.cc (the_low_target): Remove the op
516 field.
517 * linux-arm-low.cc (the_low_target): Ditto.
518 * linux-bfin-low.cc (the_low_target): Ditto.
519 * linux-crisv32-low.cc (the_low_target): Ditto.
520 * linux-m32r-low.cc (the_low_target): Ditto.
521 * linux-m68k-low.cc (the_low_target): Ditto.
522 * linux-ppc-low.cc (the_low_target): Ditto.
523 * linux-s390-low.cc (the_low_target): Ditto.
524 * linux-sh-low.cc (the_low_target): Ditto.
525 * linux-tic6x-low.cc (the_low_target): Ditto.
526 * linux-tile-low.cc (the_low_target): Ditto.
527 * linux-xtensa-low.cc (the_low_target): Ditto.
528
d7599cc0
TBA
5292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530
531 Turn the 'prepare_to_resume' linux target op into a method of
532 linux_process_target.
533
534 * linux-low.h (struct linux_target_ops): Remove the op.
535 (class linux_process_target) <low_prepare_to_resume>: Declare.
536 * linux-low.cc (linux_process_target::low_prepare_to_resume):
537 Define.
538
539 Update the callers below:
540
541 (linux_process_target::resume_one_lwp_throw)
542 (linux_process_target::low_prepare_to_resume)
543
544 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
545 Declare.
546 (x86_target::low_prepare_to_resume): Define.
547 (the_low_target): Remove the op field.
548 * linux-aarch64-low.cc (class aarch64_target)
549 <low_prepare_to_resume>: Declare.
550 (aarch64_target::low_prepare_to_resume): Define.
551 (the_low_target): Remove the op field.
552 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
553 Declare.
554 (arm_prepare_to_resume): Turn into...
555 (arm_target::low_prepare_to_resume): ...this.
556 (the_low_target): Remove the op field.
557 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
558 Declare.
559 (mips_linux_prepare_to_resume): Turn into...
560 (mips_target::low_prepare_to_resume): ...this.
561 (the_low_target): Remove the op field.
562 * linux-bfin-low.cc (the_low_target): Remove the op field.
563 * linux-crisv32-low.cc (the_low_target): Ditto.
564 * linux-m32r-low.cc (the_low_target): Ditto.
565 * linux-m68k-low.cc (the_low_target): Ditto.
566 * linux-ppc-low.cc (the_low_target): Ditto.
567 * linux-s390-low.cc (the_low_target): Ditto.
568 * linux-sh-low.cc (the_low_target): Ditto.
569 * linux-tic6x-low.cc (the_low_target): Ditto.
570 * linux-tile-low.cc (the_low_target): Ditto.
571 * linux-xtensa-low.cc (the_low_target): Ditto.
572
fd000fb3
TBA
5732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574
575 Turn the 'new_process', 'delete_process', 'new_thread',
576 'delete_thread', and 'new_fork' linux target ops into methods
577 of linux_process_target.
578
579 * linux-low.h (struct linux_target_ops): Remove the ops.
580 (class linux_process_target) <add_linux_process>
581 <add_lwp>
582 <delete_lwp>
583 <attach_lwp>
584 <detach_one_lwp>
585 <check_zombie_leaders>
586 <filter_exit_event>
587 <low_new_process>
588 <low_delete_process>
589 <low_new_thread>
590 <low_delete_thread>
591 <low_new_fork>: Declare.
592 * linux-low.cc (delete_lwp): Turn into...
593 (linux_process_target::delete_lwp): ...this.
594 (linux_process_target::low_delete_thread): Define.
595 (linux_add_process): Turn into...
596 (linux_process_target::add_linux_process): ...this.
597 (linux_process_target::low_new_process): Define.
598 (linux_process_target::low_delete_process): Define.
599 (linux_process_target::low_new_fork): Define.
600 (add_lwp): Turn into...
601 (linux_process_target::add_lwp): ...this.
602 (linux_process_target::low_new_thread): Define.
603 (linux_attach_lwp): Turn into...
604 (linux_process_target::attach_lwp): ...this.
605 (linux_detach_one_lwp): Turn into...
606 (linux_process_target::detach_one_lwp): ...this.
607 (linux_detach_lwp_callback): Remove and inline...
608 (linux_process_target::detach): ...here.
609 (check_zombie_leaders): Turn into...
610 (linux_process_target::check_zombie_leaders): ...this.
611 (filter_exit_event): Turn into...
612 (linux_process_target::filter_exit_event): ...this.
613
614 Update the callers below.
615
616 (linux_process_target::handle_extended_wait)
617 (linux_process_target::create_inferior)
618 (attach_proc_task_lwp_callback)
619 (linux_process_target::attach)
620 (linux_process_target::detach)
621 (linux_process_target::mourn)
622 * thread-db.cc (attach_thread)
623
624 * linux-x86-low.cc (class x86_target) <low_new_process>
625 <low_delete_process>
626 <low_new_thread>
627 <low_delete_thread>
628 <low_new_fork>: Declare.
629 (x86_linux_new_process): Turn into...
630 (x86_target::low_new_process): ...this.
631 (x86_linux_delete_process): Turn into...
632 (x86_target::low_delete_process): ...this.
633 (x86_target::low_new_thread): Define.
634 (x86_target::low_delete_thread): Define.
635 (x86_linux_new_fork): Turn into...
636 (x86_target::low_new_fork): ...this.
637 (the_low_target): Remove the op fields.
638 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
639 <low_delete_process>
640 <low_new_thread>
641 <low_delete_thread>
642 <low_new_fork>: Declare.
643 (aarch64_linux_new_process): Turn into...
644 (aarch64_target::low_new_process): ...this.
645 (aarch64_linux_delete_process): Turn into...
646 (aarch64_target::low_delete_process): ...this.
647 (aarch64_target::low_new_thread): Define.
648 (aarch64_target::low_delete_thread): Define.
649 (aarch64_linux_new_fork): Turn into...
650 (aarch64_target::low_new_fork): ...this.
651 (the_low_target): Remove the op fields.
652 * linux-arm-low.cc (class arm_target) <low_new_process>
653 <low_delete_process>
654 <low_new_thread>
655 <low_delete_thread>
656 <low_new_fork>: Declare.
657 (arm_new_process): Turn into...
658 (arm_target::low_new_process): ...this.
659 (arm_delete_process): Turn into...
660 (arm_target::low_delete_process): ...this.
661 (arm_new_thread): Turn into...
662 (arm_target::low_new_thread): ...this.
663 (arm_delete_thread): Turn into...
664 (arm_target::low_delete_thread): ...this.
665 (arm_new_fork): Turn into...
666 (arm_target::low_new_fork): ...this.
667 (the_low_target): Remove the op fields.
668 * linux-mips-low.cc (class mips_target) <low_new_process>
669 <low_delete_process>
670 <low_new_thread>
671 <low_delete_thread>
672 <low_new_fork>: Declare.
673 (mips_linux_new_process): Turn into...
674 (mips_target::low_new_process): ...this.
675 (mips_linux_delete_process): Turn into...
676 (mips_target::low_delete_process): ...this.
677 (mips_linux_new_thread): Turn into...
678 (mips_target::low_new_thread): ...this.
679 (mips_linux_delete_thread): Turn into...
680 (mips_target::low_delete_thread): ...this.
681 (mips_linux_new_fork): Turn into...
682 (mips_target::low_new_fork): ...this.
683 (the_low_target): Remove the op fields.
684 * linux-bfin-low.cc (the_low_target): Remove the op fields.
685 * linux-crisv32-low.cc (the_low_target): Ditto.
686 * linux-m32r-low.cc (the_low_target): Ditto.
687 * linux-m68k-low.cc (the_low_target): Ditto.
688 * linux-ppc-low.cc (the_low_target): Ditto.
689 * linux-s390-low.cc (the_low_target): Ditto.
690 * linux-sh-low.cc (the_low_target): Ditto.
691 * linux-tic6x-low.cc (the_low_target): Ditto.
692 * linux-tile-low.cc (the_low_target): Ditto.
693 * linux-xtensa-low.cc (the_low_target): Ditto.
694
cb63de7c
TBA
6952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
696
697 Turn the 'siginfo_fixup' linux target op into a method of
698 linux_process_target.
699
700 * linux-low.h (struct linux_target_ops): Remove the op.
701 (class linux_process_target) <siginfo_fixup>
702 <low_siginfo_fixup>: Declare.
703 * linux-low.cc (siginfo_fixup): Turn into...
704 (linux_process_target::siginfo_fixup): ...this.
705 (linux_process_target::low_siginfo_fixup): Define.
706 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
707 (x86_siginfo_fixup): Turn into...
708 (x86_target::low_siginfo_fixup): ...this.
709 (the_low_target): Remove the op field.
710 * linux-aarch64-low.cc (class aarch64_target):
711 <low_siginfo_fixup>: Declare.
712 (aarch64_linux_siginfo_fixup): Turn into...
713 (aarch64_target::low_siginfo_fixup): ...this.
714 (the_low_target): Remove the op field.
715 * linux-arm-low.cc (the_low_target): Remove the op field.
716 * linux-bfin-low.cc (the_low_target): Ditto.
717 * linux-crisv32-low.cc (the_low_target): Ditto.
718 * linux-m32r-low.cc (the_low_target): Ditto.
719 * linux-m68k-low.cc (the_low_target): Ditto.
720 * linux-mips-low.cc (the_low_target): Ditto.
721 * linux-ppc-low.cc (the_low_target): Ditto.
722 * linux-s390-low.cc (the_low_target): Ditto.
723 * linux-sh-low.cc (the_low_target): Ditto.
724 * linux-tic6x-low.cc (the_low_target): Ditto.
725 * linux-tile-low.cc (the_low_target): Ditto.
726 * linux-xtensa-low.cc (the_low_target): Ditto.
727
b35db733
TBA
7282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
729
730 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
731 linux target ops into methods of linux_process_target.
732
733 * linux-low.h (struct linux_target_ops): Remove the ops.
734 (class linux_process_target) <low_collect_ptrace_register>
735 <low_store_ptrace_register>: Declare.
736 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
737 (linux_process_target::low_supply_ptrace_register): Define.
738
739 Update the callers below.
740
741 (linux_process_target::fetch_register)
742 (linux_process_target::store_register)
743
744 * linux-x86-low.cc (the_low_target): Remove the op fields.
745 * linux-aarch64-low.cc (the_low_target): Ditto.
746 * linux-arm-low.cc (the_low_target): Ditto.
747 * linux-bfin-low.cc (the_low_target): Ditto.
748 * linux-crisv32-low.cc (the_low_target): Ditto.
749 * linux-m32r-low.cc (the_low_target): Ditto.
750 * linux-m68k-low.cc (the_low_target): Ditto.
751 * linux-sh-low.cc (the_low_target): Ditto.
752 * linux-sparc-low.cc (the_low_target): Ditto.
753 * linux-tic6x-low.cc (the_low_target): Ditto.
754 * linux-tile-low.cc (the_low_target): Ditto.
755 * linux-xtensa-low.cc (the_low_target): Ditto.
756 * linux-mips-low.cc (class mips_target)
757 <low_collect_ptrace_register>
758 <low_supply_ptrace_register>: Declare.
759 (mips_collect_ptrace_register): Turn into ...
760 (mips_target::low_collect_ptrace_register): ...this.
761 (mips_supply_ptrace_register): Turn into...
762 (mips_target::low_supply_ptrace_register): ...this.
763 (the_low_target): Remove the op fields.
764 * linux-ppc-low.cc (class ppc_target)
765 <low_collect_ptrace_register>
766 <low_supply_ptrace_register>: Declare.
767 (ppc_collect_ptrace_register): Turn into ...
768 (ppc_target::low_collect_ptrace_register): ...this.
769 (ppc_supply_ptrace_register): Turn into ...
770 (ppc_target::low_supply_ptrace_register): ...this.
771 (ppc_fill_gregset): Update for the calls to
772 low_collect_ptrace_register.
773 (the_low_target): Remove the op fields.
774 * linux-s390-low.cc (class s390_target)
775 <low_collect_ptrace_register>
776 <low_supply_ptrace_register>: Declare.
777 (s390_collect_ptrace_register): Turn into ...
778 (s390_target::low_collect_ptrace_register): ...this.
779 (s390_supply_ptrace_register): Turn into ...
780 (s390_target::low_supply_ptrace_register): ...this.
781 (s390_fill_gregset): Update for the calls to
782 low_collect_ptrace_register.
783 (the_low_target): Remove the op fields.
784
ac1bbaca
TBA
7852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
786
787 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
788 target ops into methods of linux_process_target.
789
790 * linux-low.h (struct linux_target_ops): Remove the ops.
791 (class linux_process_target) <check_stopped_by_watchpoint>
792 <low_stopped_by_watchpoint>
793 <low_stopped_data_address>: Declare.
794 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
795 (linux_process_target::check_stopped_by_watchpoint): ...this.
796 (linux_process_target::low_stopped_by_watchpoint): Define.
797 (linux_process_target::low_stopped_data_address): Define.
798 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
799 <low_stopped_data_address>: Declare.
800 (x86_stopped_by_watchpoint): Turn into...
801 (x86_target::low_stopped_by_watchpoint): ...this.
802 (x86_stopped_data_address): Turn into...
803 (x86_target::low_stopped_data_address): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-aarch64-low.cc (class aarch64_target)
806 <low_stopped_by_watchpoint>
807 <low_stopped_data_address>: Declare.
808 (aarch64_stopped_by_watchpoint): Turn into...
809 (aarch64_target::low_stopped_by_watchpoint): ...this.
810 (aarch64_stopped_data_address): Turn into...
811 (aarch64_target::low_stopped_data_address): ...this.
812 (the_low_target): Remove the op fields.
813 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
814 <low_stopped_data_address>: Declare.
815 (arm_stopped_by_watchpoint): Turn into...
816 (arm_target::low_stopped_by_watchpoint): ...this.
817 (arm_stopped_data_address): Turn into...
818 (arm_target::low_stopped_data_address): ...this.
819 (the_low_target): Remove the op fields.
820 * linux-crisv32-low.cc (class crisv32_target)
821 <low_stopped_by_watchpoint>
822 <low_stopped_data_address>: Declare.
823 (cris_stopped_by_watchpoint): Turn into...
824 (crisv32_target::low_stopped_by_watchpoint): ...this.
825 (cris_stopped_data_address): Turn into...
826 (crisv32_target::low_stopped_data_address): ...this.
827 (the_low_target): Remove the op fields.
828 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
829 <low_stopped_data_address>: Declare.
830 (mips_stopped_by_watchpoint): Turn into...
831 (mips_target::low_stopped_by_watchpoint): ...this.
832 (mips_stopped_data_address): Turn into...
833 (mips_target::low_stopped_data_address): ...this.
834 (the_low_target): Remove the op fields.
835 * linux-bfin-low.cc (the_low_target): Remove the op fields.
836 * linux-m32r-low.cc (the_low_target): Ditto.
837 * linux-m68k-low.cc (the_low_target): Ditto.
838 * linux-ppc-low.cc (the_low_target): Ditto.
839 * linux-s390-low.cc (the_low_target): Ditto.
840 * linux-sh-low.cc (the_low_target): Ditto.
841 * linux-sparc-low.cc (the_low_target): Ditto.
842 * linux-tic6x-low.cc (the_low_target): Ditto.
843 * linux-tile-low.cc (the_low_target): Ditto.
844 * linux-xtensa-low.cc (the_low_target): Ditto.
845
9db9aa23
TBA
8462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
847
848 Turn the 'insert_point' and 'remove_point' linux target ops into
849 methods of linux_process_target.
850
851 * linux-low.h (struct linux_target_ops): Remove the ops.
852 (class linux_process_target) <low_insert_point>
853 <low_remove_point>: Declare.
854 * linux-low.cc (linux_process_target::low_insert_point)
855 (linux_process_target::low_remove_point): Define.
856 (linux_process_target::insert_point)
857 (linux_process_target::remove_point): Update for calls to
858 low_insert_point and low_remove_point.
859 * linux-x86-low.cc (class x86_target) <low_insert_point>
860 <low_remove_point>: Declare.
861 (x86_insert_point): Turn into...
862 (x86_target::low_insert_point): ...this.
863 (x86_remove_point): Turn into...
864 (x86_target::low_remove_point): ...this.
865 (the_low_target): Remove the op fields.
866 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
867 <low_remove_point>: Declare.
868 (aarch64_insert_point): Turn into...
869 (aarch64_target::low_insert_point): ...this.
870 (aarch64_remove_point): Turn into...
871 (aarch64_target::low_remove_point): ...this.
872 (the_low_target): Remove the op fields.
873 * linux-arm-low.cc (class arm_target) <low_insert_point>
874 <low_remove_point>: Declare.
875 (arm_insert_point): Turn into...
876 (arm_target::low_insert_point): ...this.
877 (arm_remove_point): Turn into...
878 (arm_target::low_remove_point): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
881 <low_remove_point>: Declare.
882 (crisv32_insert_point): Turn into...
883 (crisv32_target::low_insert_point): ...this.
884 (crisv32_remove_point): Turn into...
885 (crisv32_target::low_remove_point): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-mips-low.cc (class mips_target) <low_insert_point>
888 <low_remove_point>: Declare.
889 (mips_insert_point): Turn into...
890 (mips_target::low_insert_point): ...this.
891 (mips_remove_point): Turn into...
892 (mips_target::low_remove_point): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
895 <low_remove_point>: Declare.
896 (ppc_insert_point): Turn into...
897 (ppc_target::low_insert_point): ...this.
898 (ppc_remove_point): Turn into...
899 (ppc_target::low_remove_point): ...this.
900 (the_low_target): Remove the op fields.
901 * linux-bfin-low.cc (the_low_target): Remove the op fields.
902 * linux-m32r-low.cc (the_low_target): Ditto.
903 * linux-m68k-low.cc (the_low_target): Ditto.
904 * linux-s390-low.cc (the_low_target): Ditto.
905 * linux-sh-low.cc (the_low_target): Ditto.
906 * linux-sparc-low.cc (the_low_target): Ditto.
907 * linux-tic6x-low.cc (the_low_target): Ditto.
908 * linux-tile-low.cc (the_low_target): Ditto.
909 * linux-xtensa-low.cc (the_low_target): Ditto.
910
007c9b97
TBA
9112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 Remove the 'supports_z_point_type' linux target op and let the
914 concrete linux target define it by overriding the op declared in
915 process_stratum_target.
916
917 * linux-low.cc (linux_process_target::supports_z_point_type):
918 Remove.
919 * linux-low.h (struct linux_target_ops): Remove the op.
920 (class linux_process_target) <supports_z_point_type>: Remove.
921 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
922 Declare.
923 (x86_supports_z_point_type): Turn into...
924 (x86_target::supports_z_point_type): ...this.
925 (the_low_target): Remove the op field.
926 * linux-aarch64-low.cc (class aarch64_target)
927 <supports_z_point_type>: Declare.
928 (aarch64_supports_z_point_type): Turn into...
929 (aarch64_target::supports_z_point_type): ...this.
930 (the_low_target): Remove the op field.
931 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
932 Declare.
933 (arm_supports_z_point_type): Turn into...
934 (arm_target::supports_z_point_type): ...this.
935 (the_low_target): Remove the op field.
936 * linux-crisv32-low.cc (class crisv32_target)
937 <supports_z_point_type>: Declare.
938 (cris_supports_z_point_type): Turn into...
939 (crisv32_target::supports_z_point_type): ...this.
940 (the_low_target): Remove the op field.
941 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
942 Declare.
943 (mips_supports_z_point_type): Turn into...
944 (mips_target::supports_z_point_type): ...this.
945 (the_low_target): Remove the op field.
946 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
947 Declare.
948 (ppc_supports_z_point_type): Turn into...
949 (ppc_target::supports_z_point_type): ...this.
950 (the_low_target): Remove the op field.
951 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
952 Declare.
953 (s390_supports_z_point_type): Turn into...
954 (s390_target::supports_z_point_type): ...this.
955 (the_low_target): Remove the op field.
956 * linux-bfin-low.cc (the_low_target): Remove the op field.
957 * linux-m32r-low.cc (the_low_target): Ditto.
958 * linux-m68k-low.cc (the_low_target): Ditto.
959 * linux-sh-low.cc (the_low_target): Ditto.
960 * linux-sparc-low.cc (the_low_target): Ditto.
961 * linux-tic6x-low.cc (the_low_target): Ditto.
962 * linux-tile-low.cc (the_low_target): Ditto.
963 * linux-xtensa-low.cc (the_low_target): Ditto.
964
d7146cda
TBA
9652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
966
967 Turn the 'breakpoint_at' linux target op into a method of
968 linux_process_target.
969
970 * linux-low.h (struct linux_target_ops): Remove the op.
971 (class linux_process_target) <low_breakpoint_at>: Declare.
972
973 Update the callers below:
974
975 * linux-low.cc (linux_process_target::save_stop_reason)
976 (linux_process_target::thread_still_has_status_pending)
977 (linux_process_target::wait_1)
978
979 * linux-x86-low.cc (class x86_target)
980 <low_breakpoint_at>: Declare.
981 (x86_breakpoint_at): Turn into...
982 (x86_target::low_breakpoint_at): ...this.
983 (the_low_target): Remove the op field.
984 * linux-aarch64-low.cc (class aarch64_target)
985 <low_breakpoint_at>: Declare.
986 (aarch64_breakpoint_at): Turn into...
987 (aarch64_target::low_breakpoint_at): ...this.
988 (the_low_target): Remove the op field.
989 * linux-arm-low.cc (class arm_target)
990 <low_breakpoint_at>: Declare.
991 (arm_target::low_breakpoint_at): Define.
992 (the_low_target): Remove the op field.
993 * linux-bfin-low.cc (class bfin_target)
994 <low_breakpoint_at>: Declare.
995 (bfin_breakpoint_at): Turn into...
996 (bfin_target::low_breakpoint_at): ...this.
997 (the_low_target): Remove the op field.
998 * linux-cris-low.cc (class cris_target)
999 <low_breakpoint_at>: Declare.
1000 (cris_breakpoint_at): Turn into...
1001 (cris_target::low_breakpoint_at): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-crisv32-low.cc (class crisv32_target)
1004 <low_breakpoint_at>: Declare.
1005 (crisv32_breakpoint_at): Turn into...
1006 (crisv32_target::low_breakpoint_at): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-ia64-low.cc (class ia64_target)
1009 <low_breakpoint_at>: Declare.
1010 (ia64_target::low_breakpoint_at): Define.
1011 * linux-m32r-low.cc (class m32r_target)
1012 <low_breakpoint_at>: Declare.
1013 (m32r_breakpoint_at): Turn into...
1014 (m32r_target::low_breakpoint_at): ...this.
1015 (the_low_target): Remove the op field.
1016 * linux-m68k-low.cc (class m68k_target)
1017 <low_breakpoint_at>: Declare.
1018 (m68k_breakpoint_at): Turn into...
1019 (m68k_target::low_breakpoint_at): ...this.
1020 (the_low_target): Remove the op field.
1021 * linux-mips-low.cc (class mips_target)
1022 <low_breakpoint_at>: Declare.
1023 (mips_breakpoint_at): Turn into...
1024 (mips_target::low_breakpoint_at): ...this.
1025 (the_low_target): Remove the op field.
1026 * linux-nios2-low.cc (class nios2_target)
1027 <low_breakpoint_at>: Declare.
1028 (nios2_breakpoint_at): Turn into...
1029 (nios2_target::low_breakpoint_at): ...this.
1030 (the_low_target): Remove the op field.
1031 * linux-ppc-low.cc (class ppc_target)
1032 <low_breakpoint_at>: Declare.
1033 (ppc_breakpoint_at): Turn into...
1034 (ppc_target::low_breakpoint_at): ...this.
1035 (the_low_target): Remove the op field.
1036 * linux-riscv-low.cc (class riscv_target)
1037 <low_breakpoint_at>: Declare.
1038 (riscv_breakpoint_at): Turn into...
1039 (riscv_target::low_breakpoint_at): ...this.
1040 (the_low_target): Remove the op field.
1041 * linux-s390-low.cc (class s390_target)
1042 <low_breakpoint_at>: Declare.
1043 (s390_breakpoint_at): Turn into...
1044 (s390_target::low_breakpoint_at): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-sh-low.cc (class sh_target)
1047 <low_breakpoint_at>: Declare.
1048 (sh_breakpoint_at): Turn into...
1049 (sh_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-sparc-low.cc (class sparc_target)
1052 <low_breakpoint_at>: Declare.
1053 (sparc_breakpoint_at): Turn into...
1054 (sparc_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-tic6x-low.cc (class tic6x_target)
1057 <low_breakpoint_at>: Declare.
1058 (tic6x_breakpoint_at): Turn into...
1059 (tic6x_target::low_breakpoint_at): ...this.
1060 (the_low_target): Remove the op field.
1061 * linux-tile-low.cc (class tile_target)
1062 <low_breakpoint_at>: Declare.
1063 (tile_breakpoint_at): Turn into...
1064 (tile_target::low_breakpoint_at): ...this.
1065 (the_low_target): Remove the op field.
1066 * linux-xtensa-low.cc (class xtensa_target)
1067 <low_breakpoint_at>: Declare.
1068 (xtensa_breakpoint_at): Turn into...
1069 (xtensa_target::low_breakpoint_at): ...this.
1070 (the_low_target): Remove the op field.
1071
d4807ea2
TBA
10722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1073
1074 Turn the 'decr_pc_after_break' linux_target_ops field into
1075 a method of linux_process_target.
1076
1077 * linux-low.h (struct linux_target_ops)
1078 <decr_pc_after_break>: Remove.
1079 (class linux_process_target) <low_decr_pc_after_break>: New method
1080 declaration.
1081 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1082 New method implementation.
1083
1084 Update the users below.
1085
1086 (linux_process_target::save_stop_reason)
1087 (linux_process_target::wait_1)
1088 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1089 New declaration.
1090 (x86_target::low_decr_pc_after_break): New method implementation.
1091 (the_low_target): Remove the field.
1092 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1093 New declaration.
1094 (bfin_target::low_decr_pc_after_break): New method implementation.
1095 (the_low_target): Remove the field.
1096 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1097 New declaration.
1098 (m68k_target::low_decr_pc_after_break): New method implementation.
1099 (the_low_target): Remove the field.
1100 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1101 New declaration.
1102 (s390_target::low_decr_pc_after_break): New method implementation.
1103 (the_low_target): Remove the field.
1104 * linux-aarch64-low.cc (the_low_target): Remove the field.
1105 * linux-arm-low.cc (the_low_target): Remove the field.
1106 * linux-cris-low.cc (the_low_target): Remove the field.
1107 * linux-crisv32-low.cc (the_low_target): Remove the field.
1108 * linux-m32r-low.cc (the_low_target): Remove the field.
1109 * linux-mips-low.cc (the_low_target): Remove the field.
1110 * linux-nios2-low.cc (the_low_target): Remove the field.
1111 * linux-ppc-low.cc (the_low_target): Remove the field.
1112 * linux-riscv-low.cc (the_low_target): Remove the field.
1113 * linux-sh-low.cc (the_low_target): Remove the field.
1114 * linux-sparc-low.cc (the_low_target): Remove the field.
1115 * linux-tic6x-low.cc (the_low_target): Remove the field.
1116 * linux-tile-low.cc (the_low_target): Remove the field.
1117 * linux-xtensa-low.cc (the_low_target): Remove the field.
1118
7582c77c
TBA
11192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1120
1121 Remove the 'supports_software_single_step' linux target op and let
1122 the concrete linux target define it by overriding the op in
1123 process_stratum_target.
1124 Turn the 'get_next_pcs' linux target op into a method of
1125 linux_process_target.
1126
1127 * linux-low.h (struct linux_target_ops): Remove the ops.
1128 (class linux_process_target) <supports_software_single_step>:
1129 Remove.
1130 <low_get_next_pcs>: Declare.
1131 * linux-low.cc (can_software_single_step): Remove.
1132 (linux_process_target::low_get_next_pcs): Define.
1133 (linux_process_target::supports_software_single_step): Remove.
1134
1135 Update the callers below.
1136
1137 (linux_process_target::handle_extended_wait)
1138 (linux_process_target::wait_1)
1139 (linux_process_target::install_software_single_step_breakpoints)
1140 (linux_process_target::single_step)
1141 (linux_process_target::thread_needs_step_over)
1142 (linux_process_target::proceed_one_lwp)
1143 (linux_process_target::supports_range_stepping)
1144
1145 * linux-x86-low.cc (the_low_target): Remove the op field.
1146 * linux-aarch64-low.cc (the_low_target): Ditto.
1147 * linux-bfin-low.cc (the_low_target): Ditto.
1148 * linux-cris-low.cc (the_low_target): Ditto.
1149 * linux-crisv32-low.cc (the_low_target): Ditto.
1150 * linux-m32r-low.cc (the_low_target): Ditto.
1151 * linux-m68k-low.cc (the_low_target): Ditto.
1152 * linux-mips-low.cc (the_low_target): Ditto.
1153 * linux-nios2-low.cc (the_low_target): Ditto.
1154 * linux-ppc-low.cc (the_low_target): Ditto.
1155 * linux-riscv-low.cc (the_low_target): Ditto.
1156 * linux-s390-low.cc (the_low_target): Ditto.
1157 * linux-sh-low.cc (the_low_target): Ditto.
1158 * linux-sparc-low.cc (the_low_target): Ditto.
1159 * linux-tic6x-low.cc (the_low_target): Ditto.
1160 * linux-tile-low.cc (the_low_target): Ditto.
1161 * linux-xtensa-low.cc (the_low_target): Ditto.
1162 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1163 <supports_software_single_step>: Declare.
1164 (arm_target::supports_software_single_step): Define.
1165 (arm_gdbserver_get_next_pcs): Turn into...
1166 (arm_target::low_get_next_pcs): ...this.
1167 (the_low_target): Remove the op field.
1168
3ca4edb6
TBA
11692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1170
1171 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1172 the concrete linux target define it by overriding the op
1173 in process_stratum_target.
1174
1175 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1176 Remove.
1177 * linux-low.h (struct linux_target_ops): Remove the op.
1178 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1179 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1180 Declare.
1181 (x86_sw_breakpoint_from_kind): Turn into...
1182 (x86_target::sw_breakpoint_from_kind): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-aarch64-low.cc (class aarch64_target)
1185 <sw_breakpoint_from_kind>: Declare.
1186 (aarch64_sw_breakpoint_from_kind): Turn into...
1187 (aarch64_target::sw_breakpoint_from_kind): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1190 Declare.
1191 (arm_target::sw_breakpoint_from_kind): Define.
1192 (the_low_target): Remove the op field.
1193 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1194 Declare.
1195 (bfin_sw_breakpoint_from_kind): Turn into...
1196 (bfin_target::sw_breakpoint_from_kind): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1199 Declare.
1200 (cris_sw_breakpoint_from_kind): Turn into...
1201 (cris_target::sw_breakpoint_from_kind): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-crisv32-low.cc (class crisv32_target)
1204 <sw_breakpoint_from_kind>: Declare.
1205 (cris_sw_breakpoint_from_kind): Turn into...
1206 (crisv32_target::sw_breakpoint_from_kind): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1209 Declare.
1210 (ia64_target::sw_breakpoint_from_kind): Define.
1211 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1212 Declare.
1213 (m32r_sw_breakpoint_from_kind): Turn into...
1214 (m32r_target::sw_breakpoint_from_kind): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1217 Declare.
1218 (m68k_sw_breakpoint_from_kind): Turn into...
1219 (m68k_target::sw_breakpoint_from_kind): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1222 Declare.
1223 (mips_sw_breakpoint_from_kind): Turn into...
1224 (mips_target::sw_breakpoint_from_kind): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1227 Declare.
1228 (nios2_sw_breakpoint_from_kind): Turn into...
1229 (nios2_target::sw_breakpoint_from_kind): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1232 Declare.
1233 (ppc_sw_breakpoint_from_kind): Turn into...
1234 (ppc_target::sw_breakpoint_from_kind): ...this.
1235 (the_low_target): Remove the op field.
1236 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1237 Declare.
1238 (riscv_sw_breakpoint_from_kind): Turn into...
1239 (riscv_target::sw_breakpoint_from_kind): ...this.
1240 (the_low_target): Remove the op field.
1241 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1242 Declare.
1243 (s390_sw_breakpoint_from_kind): Turn into...
1244 (s390_target::sw_breakpoint_from_kind): ...this.
1245 (the_low_target): Remove the op field.
1246 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1247 Declare.
1248 (sh_sw_breakpoint_from_kind): Turn into...
1249 (sh_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1252 Declare.
1253 (sparc_sw_breakpoint_from_kind): Turn into...
1254 (sparc_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1257 Declare.
1258 (tic6x_sw_breakpoint_from_kind): Turn into...
1259 (tic6x_target::sw_breakpoint_from_kind): ...this.
1260 (the_low_target): Remove the op field.
1261 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1262 Declare.
1263 (tile_sw_breakpoint_from_kind): Turn into...
1264 (tile_target::sw_breakpoint_from_kind): ...this.
1265 (the_low_target): Remove the op field.
1266 * linux-xtensa-low.cc (class xtensa_target)
1267 <sw_breakpoint_from_kind>: Declare.
1268 (xtensa_sw_breakpoint_from_kind): Turn into...
1269 (xtensa_target::sw_breakpoint_from_kind): ...this.
1270 (the_low_target): Remove the op field.
1271
06250e4e
TBA
12722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273
1274 Remove the 'breakpoint_kind_from_pc' and
1275 'breakpoint_kind_from_current_state' linux target ops, and let the
1276 concrete linux target define them by overriding the ops of
1277 process_stratum_target.
1278
1279 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1280 Remove.
1281 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1282 * linux-low.h (struct linux_target_ops): Remove ops.
1283 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1284 <breakpoint_kind_from_current_state>: Remove.
1285 * linux-x86-low.cc (the_low_target): Remove the op fields.
1286 * linux-bfin-low.cc (the_low_target): Ditto.
1287 * linux-cris-low.cc (the_low_target): Ditto.
1288 * linux-crisv32-low.cc (the_low_target): Ditto.
1289 * linux-m32r-low.cc (the_low_target): Ditto.
1290 * linux-m68k-low.cc (the_low_target): Ditto.
1291 * linux-mips-low.cc (the_low_target): Ditto.
1292 * linux-nios2-low.cc (the_low_target): Ditto.
1293 * linux-ppc-low.cc (the_low_target): Ditto.
1294 * linux-s390-low.cc (the_low_target): Ditto.
1295 * linux-sh-low.cc (the_low_target): Ditto.
1296 * linux-sparc-low.cc (the_low_target): Ditto.
1297 * linux-tic6x-low.cc (the_low_target): Ditto.
1298 * linux-tile-low.cc (the_low_target): Ditto.
1299 * linux-xtensa-low.cc (the_low_target): Ditto.
1300 * linux-aarch64-low.cc (class aarch64_target)
1301 <breakpoint_kind_from_pc>
1302 <breakpoint_kind_from_current_state>: Declare.
1303 (aarch64_breakpoint_kind_from_pc): Turn into...
1304 (aarch64_target::breakpoint_kind_from_pc): ...this.
1305 (aarch64_breakpoint_kind_from_current_state): Turn into...
1306 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1307 (the_low_target): Remove the op fields.
1308 * linux-arm-low.cc (class arm_target):
1309 <breakpoint_kind_from_pc>
1310 <breakpoint_kind_from_current_state>: Declare.
1311 (arm_target::breakpoint_kind_from_pc): Define.
1312 (arm_target::breakpoint_kind_from_current_state): Define.
1313 (the_low_target): Remove the op fields.
1314 * linux-riscv-low.cc (class riscv_target):
1315 <breakpoint_kind_from_pc>: Declare.
1316 (riscv_breakpoint_kind_from_pc): Turn into...
1317 (riscv_target::breakpoint_kind_from_pc): ...this.
1318 (the_low_target): Remove the op fields.
1319
bf9ae9d8
TBA
13202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321
1322 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1323 of linux_process_target.
1324
1325 * linux-low.h (struct linux_target_ops): Remove the ops.
1326 (class linux_process_target) <low_supports_breakpoints>
1327 <low_get_pc>
1328 <low_set_pc>: Declare.
1329 * linux-low.cc (supports_breakpoints): Turn into...
1330 (linux_process_target::low_supports_breakpoints): ...this.
1331 (linux_process_target::low_get_pc): Define.
1332 (linux_process_target::low_set_pc): Define.
1333
1334 Update the callers below.
1335
1336 (linux_process_target::get_pc)
1337 (linux_process_target::save_stop_reason)
1338 (linux_process_target::maybe_move_out_of_jump_pad)
1339 (linux_process_target::wait_1)
1340 (linux_process_target::resume_one_lwp_throw)
1341 (linux_process_target::resume)
1342 (linux_process_target::proceed_all_lwps)
1343 (linux_process_target::read_pc)
1344 (linux_process_target::write_pc)
1345
1346 * linux-x86-low.cc (class linux_process_target)
1347 <low_supports_breakpoints>
1348 <low_get_pc>
1349 <low_set_pc>: Declare.
1350 (x86_target::low_supports_breakpoints): Define.
1351 (x86_get_pc): Turn into...
1352 (x86_target::low_get_pc): ...this.
1353 (x86_set_pc): Turn into...
1354 (x86_target::low_set_pc): ...this.
1355 (the_low_target): Remove the op fields.
1356 * linux-arm-low.cc (class arm_target)
1357 <low_supports_breakpoints>
1358 <low_get_pc>
1359 <low_set_pc>: Declare.
1360 (arm_target::low_supports_breakpoints)
1361 (arm_target::low_get_pc)
1362 (arm_target::low_set_pc): Define.
1363 (the_low_target): Remove the op fields.
1364 * linux-bfin-low.cc (class bfin_target)
1365 <low_supports_breakpoints>
1366 <low_get_pc>
1367 <low_set_pc>: Declare.
1368 (bfin_target::low_supports_breakpoints)
1369 (bfin_target::low_get_pc)
1370 (bfin_target::low_set_pc): Define.
1371 (the_low_target): Remove the op fields.
1372 * linux-cris-low.cc (class cris_target)
1373 <low_supports_breakpoints>
1374 <low_get_pc>
1375 <low_set_pc>: Declare.
1376 (cris_target::low_supports_breakpoints)
1377 (cris_target::low_get_pc)
1378 (cris_target::low_set_pc): Define.
1379 (the_low_target): Remove the op fields.
1380 * linux-crisv32-low.cc (class crisv32_target)
1381 <low_supports_breakpoints>
1382 <low_get_pc>
1383 <low_set_pc>: Declare.
1384 (crisv32_target::low_supports_breakpoints)
1385 (crisv32_target::low_get_pc)
1386 (crisv32_target::low_set_pc): Define.
1387 (the_low_target): Remove the op fields.
1388 * linux-m32r-low.cc (class m32r_target)
1389 <low_supports_breakpoints>
1390 <low_get_pc>
1391 <low_set_pc>: Declare.
1392 (m32r_target::low_supports_breakpoints)
1393 (m32r_target::low_get_pc)
1394 (m32r_target::low_set_pc): Define.
1395 (the_low_target): Remove the op fields.
1396 * linux-m68k-low.cc (class m68k_target)
1397 <low_supports_breakpoints>
1398 <low_get_pc>
1399 <low_set_pc>: Declare.
1400 (m68k_target::low_supports_breakpoints)
1401 (m68k_target::low_get_pc)
1402 (m68k_target::low_set_pc): Define.
1403 (the_low_target): Remove the op fields.
1404 * linux-nios2-low.cc (class nios2_target)
1405 <low_supports_breakpoints>
1406 <low_get_pc>
1407 <low_set_pc>: Declare.
1408 (nios2_target::low_supports_breakpoints)
1409 (nios2_target::low_get_pc)
1410 (nios2_target::low_set_pc): Define.
1411 (the_low_target): Remove the op fields.
1412 * linux-sh-low.cc (class sh_target)
1413 <low_supports_breakpoints>
1414 <low_get_pc>
1415 <low_set_pc>: Declare.
1416 (sh_target::low_supports_breakpoints)
1417 (sh_target::low_get_pc)
1418 (sh_target::low_set_pc): Define.
1419 (the_low_target): Remove the op fields.
1420 * linux-xtensa-low.cc (class xtensa_target)
1421 <low_supports_breakpoints>
1422 <low_get_pc>
1423 <low_set_pc>: Declare.
1424 (xtensa_target::low_supports_breakpoints)
1425 (xtensa_target::low_get_pc)
1426 (xtensa_target::low_set_pc): Define.
1427 (the_low_target): Remove the op fields.
1428 * linux-sparc-low.cc (class sparc_target)
1429 <low_supports_breakpoints>
1430 <low_get_pc>: Declare.
1431 (sparc_target::low_supports_breakpoints)
1432 (sparc_target::low_get_pc): Define.
1433 (the_low_target): Remove the op fields.
1434 * linux-tile-low.cc (class tile_target)
1435 <low_supports_breakpoints>
1436 <low_get_pc>
1437 <low_set_pc>: Declare.
1438 (tile_target::low_supports_breakpoints)
1439 (tile_target::low_get_pc)
1440 (tile_target::low_set_pc): Define.
1441 (the_low_target): Remove the op fields.
1442 * linux-aarch64-low.cc (class aarch64_target)
1443 <low_supports_breakpoints>
1444 <low_get_pc>
1445 <low_set_pc>: Declare.
1446 (aarch64_target::low_supports_breakpoints): Define.
1447 (aarch64_get_pc): Turn into...
1448 (aarch64_target::low_get_pc): ...this.
1449 (aarch64_set_pc): Turn into...
1450 (aarch64_target::low_set_pc): ...this.
1451 (the_low_target): Remove the op fields.
1452 * linux-mips-low.cc (class mips_target)
1453 <low_supports_breakpoints>
1454 <low_get_pc>
1455 <low_set_pc>: Declare.
1456 (mips_target::low_supports_breakpoints): Define.
1457 (mips_get_pc): Turn into...
1458 (mips_target::low_get_pc): ...this.
1459 (mips_set_pc): Turn into...
1460 (mips_target::low_set_pc): ...this.
1461 (the_low_target): Remove the op fields.
1462 * linux-ppc-low.cc (class ppc_target)
1463 <low_supports_breakpoints>
1464 <low_get_pc>
1465 <low_set_pc>: Declare.
1466 (ppc_target::low_supports_breakpoints): Define.
1467 (ppc_get_pc): Turn into...
1468 (ppc_target::low_get_pc): ...this.
1469 (ppc_set_pc): Turn into...
1470 (ppc_target::low_set_pc): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-riscv-low.cc (class riscv_target)
1473 <low_supports_breakpoints>
1474 <low_get_pc>
1475 <low_set_pc>: Declare.
1476 (riscv_target::low_supports_breakpoints): Define.
1477 (riscv_get_pc): Turn into...
1478 (riscv_target::low_get_pc): ...this.
1479 (riscv_set_pc): Turn into...
1480 (riscv_target::low_set_pc): ...this.
1481 (the_low_target): Remove the op fields.
1482 * linux-s390-low.cc (class s390_target)
1483 <low_supports_breakpoints>
1484 <low_get_pc>
1485 <low_set_pc>: Declare.
1486 (s390_target::low_supports_breakpoints): Define.
1487 (s390_get_pc): Turn into...
1488 (s390_target::low_get_pc): ...this.
1489 (s390_set_pc): Turn into...
1490 (s390_target::low_set_pc): ...this.
1491 (the_low_target): Remove the op fields.
1492 * linux-tic6x-low.cc (class tic6x_target)
1493 <low_supports_breakpoints>
1494 <low_get_pc>
1495 <low_set_pc>: Declare.
1496 (tic6x_target::low_supports_breakpoints): Define.
1497 (tic6x_get_pc): Turn into...
1498 (tic6x_target::low_get_pc): ...this.
1499 (tic6x_set_pc): Turn into...
1500 (tic6x_target::low_set_pc): ...this.
1501 (the_low_target): Remove the op fields.
1502
df95181f
TBA
15032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1504
1505 Turn some more static methods in linux-low into private methods
1506 of linux_process_target.
1507
1508 * linux-low.cc (get_pc): Turn into...
1509 (linux_process_target::get_pc): ...this.
1510 (save_stop_reason): Turn into...
1511 (linux_process_target::save_stop_reason): ...this.
1512 (thread_still_has_status_pending_p): Turn into...
1513 (linux_process_target::thread_still_has_status_pending): ...this.
1514 (status_pending_p_callback): Turn into...
1515 (linux_process_target::status_pending_p_callback): ...this.
1516 (resume_stopped_resumed_lwps): Turn into...
1517 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1518 (install_software_single_step_breakpoints): Turn into...
1519 (linux_process_target::install_software_single_step_breakpoints):
1520 ...this.
1521 (single_step): Turn into...
1522 (linux_process_target::single_step): ...this.
1523 (linux_resume_one_lwp_throw): Turn into...
1524 (linux_process_target::resume_one_lwp_throw): ...this.
1525 (linux_resume_one_lwp): Turn into...
1526 (linux_process_target::resume_one_lwp): ...this.
1527 (resume_status_pending_p): Turn into...
1528 (linux_process_target::resume_status_pending): ...this.
1529 (need_step_over_p): Turn into...
1530 (linux_process_target::thread_needs_step_over): ...this.
1531 (linux_resume_one_thread): Turn into...
1532 (linux_process_target::resume_one_thread): ...this.
1533 (proceed_one_lwp): Turn into...
1534 (linux_process_target::proceed_one_lwp): ...this.
1535 (unsuspend_and_proceed_one_lwp): Turn into...
1536 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1537
1538 Update the calls/references to the above functions below.
1539
1540 (linux_process_target::handle_extended_wait)
1541 (linux_process_target::filter_event)
1542 (linux_process_target::wait_for_event_filtered)
1543 (linux_process_target::wait_1)
1544 (linux_process_target::move_out_of_jump_pad)
1545 (linux_process_target::start_step_over)
1546 (linux_process_target::resume)
1547 (linux_process_target::proceed_all_lwps)
1548 (regsets_store_inferior_registers)
1549 (linux_process_target::store_register)
1550
1551 * linux-low.h (class linux_process_target)
1552 <get_pc>
1553 <save_stop_reason>
1554 <thread_still_has_status_pending>
1555 <status_pending_p_callback>
1556 <resume_stopped_resumed_lwps>
1557 <install_software_single_step_breakpoints>
1558 <single_step>
1559 <resume_one_lwp_throw>
1560 <resume_one_lwp>
1561 <resume_status_pending>
1562 <thread_needs_step_over>
1563 <resume_one_thread>
1564 <proceed_one_lwp>
1565 <unsuspend_and_proceed_one_lwp>: Declare.
1566
bd70b1f2
TBA
15672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1568
1569 Turn the 'fetch_register' linux target op into a method of
1570 linux_process_target.
1571
1572 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1573 (class linux_process_target) <low_fetch_register>: Declare.
1574 * linux-x86-low.cc (the_low_target)
1575 * linux-aarch64-low.cc (the_low_target)
1576 * linux-arm-low.cc (the_low_target)
1577 * linux-bfin-low.cc (the_low_target)
1578 * linux-cris-low.cc (the_low_target)
1579 * linux-crisv32-low.cc (the_low_target)
1580 * linux-m32r-low.cc (the_low_target)
1581 * linux-m68k-low.cc (the_low_target)
1582 * linux-nios2-low.cc (the_low_target)
1583 * linux-ppc-low.cc (the_low_target)
1584 * linux-s390-low.cc (the_low_target)
1585 * linux-sh-low.cc (the_low_target)
1586 * linux-sparc-low.cc (the_low_target)
1587 * linux-tic6x-low.cc (the_low_target)
1588 * linux-tile-low.cc (the_low_target)
1589 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1590 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1591 Declare.
1592 (ia64_fetch_register): Turn into...
1593 (ia64_target::low_fetch_register): ...this.
1594 (the_low_target): Remove the op field.
1595 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1596 Declare.
1597 (mips_fetch_register): Turn into...
1598 (mips_target::low_fetch_register): ...this.
1599 (the_low_target): Remove the op field.
1600 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1601 Declare.
1602 (riscv_fetch_register): Turn into...
1603 (riscv_target::low_fetch_register): ...this.
1604 (the_low_target): Remove the op field.
1605
1606 Update the callers below.
1607
1608 * linux-low.cc (linux_process_target::fetch_registers)
1609 (linux_process_target::low_fetch_register)
1610
daca57a7
TBA
16112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1612
1613 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1614 linux target ops into methods of linux_process_target.
1615
1616 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1617 (class linux_process_target) <fetch_register>
1618 <store_register>
1619 <usr_fetch_inferior_registers>
1620 <usr_store_inferior_registers>
1621 <low_cannot_fetch_register>
1622 <low_cannot_fetch_register> Declare.
1623 * linux-low.cc (fetch_register): Turn into...
1624 (linux_process_target::fetch_register): ...this.
1625 (store_register): Turn into ...
1626 (linux_process_target::store_register): ...this.
1627 (usr_fetch_inferior_registers): Turn into...
1628 (linux_process_target::usr_fetch_inferior_registers): ...this.
1629 (usr_store_inferior_registers): Turn into...
1630 (linux_process_target::usr_store_inferior_registers): ...this.
1631 * linux-x86-low.cc (class x86_target)
1632 <low_cannot_fetch_register>
1633 <low_cannot_store_register>: Declare.
1634 (x86_cannot_store_register): Turn into...
1635 (x86_target::low_cannot_store_register): ...this.
1636 (x86_cannot_fetch_register): Turn into...
1637 (x86_target::low_cannot_fetch_register): ...this.
1638 (the_low_target): Remove the target op fields.
1639 * linux-aarch64-low.cc (class aarch64_target)
1640 <low_cannot_fetch_register>
1641 <low_cannot_store_register>: Declare.
1642 (aarch64_target::low_cannot_fetch_register)
1643 (aarch64_target::low_cannot_store_register): Define.
1644 (the_low_target): Remove the op fields.
1645 * linux-arm-low.cc (class arm_target)
1646 <low_cannot_fetch_register>
1647 <low_cannot_store_register>: Declare.
1648 (arm_cannot_fetch_register): Turn into...
1649 (arm_target::low_cannot_fetch_register): ...this.
1650 (arm_cannot_store_register): Turn into...
1651 (arm_target::low_cannot_store_register): ...this.
1652 (the_low_target): Remove the op fields.
1653 * linux-bfin-low.cc (class bfin_target)
1654 <low_cannot_fetch_register>
1655 <low_cannot_store_register>: Declare.
1656 (bfin_cannot_fetch_register): Turn into...
1657 (bfin_target::low_cannot_fetch_register): ...this.
1658 (bfin_cannot_store_register): Turn into...
1659 (bfin_target::low_cannot_store_register): ...this.
1660 (the_low_target): Remove the op fields.
1661 * linux-cris-low.cc (class cris_target)
1662 <low_cannot_fetch_register>
1663 <low_cannot_store_register>: Declare.
1664 (cris_cannot_fetch_register): Turn into...
1665 (cris_target::low_cannot_fetch_register): ...this.
1666 (cris_cannot_store_register): Turn into...
1667 (cris_target::low_cannot_store_register): ...this.
1668 (the_low_target): Remove the op fields.
1669 * linux-crisv32-low.cc (class crisv32_target)
1670 <low_cannot_fetch_register>
1671 <low_cannot_store_register>: Declare.
1672 (crisv32_target::low_cannot_fetch_register)
1673 (crisv32_target::low_cannot_store_register): Define.
1674 (the_low_target): Remove the op fields.
1675 * linux-ia64-low.cc (class ia64_target)
1676 <low_cannot_fetch_register>
1677 <low_cannot_store_register>: Declare.
1678 (ia64_cannot_fetch_register): Turn into...
1679 (ia64_target::low_cannot_fetch_register): ...this.
1680 (ia64_cannot_store_register): Turn into...
1681 (ia64_target::low_cannot_store_register): ...this.
1682 (the_low_target): Remove the op fields.
1683 * linux-m32r-low.cc (class m32r_target)
1684 <low_cannot_fetch_register>
1685 <low_cannot_store_register>: Declare.
1686 (m32r_cannot_fetch_register): Turn into...
1687 (m32r_target::low_cannot_fetch_register): ...this.
1688 (m32r_cannot_store_register): Turn into...
1689 (m32r_target::low_cannot_store_register): ...this.
1690 (the_low_target): Remove the op fields.
1691 * linux-m68k-low.cc (class m68k_target)
1692 <low_cannot_fetch_register>
1693 <low_cannot_store_register>: Declare.
1694 (m68k_cannot_fetch_register): Turn into...
1695 (m68k_target::low_cannot_fetch_register): ...this.
1696 (m68k_cannot_store_register): Turn into...
1697 (m68k_target::low_cannot_store_register): ...this.
1698 (the_low_target): Remove the op fields.
1699 * linux-mips-low.cc (class mips_target)
1700 <low_cannot_fetch_register>
1701 <low_cannot_store_register>: Declare.
1702 (mips_cannot_fetch_register): Turn into...
1703 (mips_target::low_cannot_fetch_register): ...this.
1704 (mips_cannot_store_register): Turn into...
1705 (mips_target::low_cannot_store_register): ...this.
1706 (get_usrregs_info): Inline at the call sites in
1707 low_cannot_fetch_register and low_cannot_store_register,
1708 and remove.
1709 (the_low_target): Remove the op fields.
1710 * linux-nios2-low.cc (class nios2_target)
1711 <low_cannot_fetch_register>
1712 <low_cannot_store_register>: Declare.
1713 (nios2_cannot_fetch_register): Turn into...
1714 (nios2_target::low_cannot_fetch_register): ...this.
1715 (nios2_cannot_store_register): Turn into...
1716 (nios2_target::low_cannot_store_register): ...this.
1717 (the_low_target): Remove the op fields.
1718 * linux-ppc-low.cc (class ppc_target)
1719 <low_cannot_fetch_register>
1720 <low_cannot_store_register>: Declare.
1721 (ppc_cannot_fetch_register): Turn into...
1722 (ppc_target::low_cannot_fetch_register): ...this.
1723 (ppc_cannot_store_register): Turn into...
1724 (ppc_target::low_cannot_store_register): ...this.
1725 (the_low_target): Remove the op fields.
1726 * linux-riscv-low.cc (class riscv_target)
1727 <low_cannot_fetch_register>
1728 <low_cannot_store_register>: Declare.
1729 (riscv_target::low_cannot_fetch_register)
1730 (riscv_target::low_cannot_store_register): Define.
1731 (the_low_target): Remove the op fields.
1732 * linux-s390-low.cc (class s390_target)
1733 <low_cannot_fetch_register>
1734 <low_cannot_store_register>: Declare.
1735 (s390_cannot_fetch_register): Turn into...
1736 (s390_target::low_cannot_fetch_register): ...this.
1737 (s390_cannot_store_register): Turn into...
1738 (s390_target::low_cannot_store_register): ...this.
1739 (the_low_target): Remove the op fields.
1740 * linux-sh-low.cc (class sh_target)
1741 <low_cannot_fetch_register>
1742 <low_cannot_store_register>: Declare.
1743 (sh_cannot_fetch_register): Turn into...
1744 (sh_target::low_cannot_fetch_register): ...this.
1745 (sh_cannot_store_register): Turn into...
1746 (sh_target::low_cannot_store_register): ...this.
1747 (the_low_target): Remove the op fields.
1748 * linux-sparc-low.cc (class sparc_target)
1749 <low_cannot_fetch_register>
1750 <low_cannot_store_register>: Declare.
1751 (sparc_cannot_fetch_register): Turn into...
1752 (sparc_target::low_cannot_fetch_register): ...this.
1753 (sparc_cannot_store_register): Turn into...
1754 (sparc_target::low_cannot_store_register): ...this.
1755 (the_low_target): Remove the op fields.
1756 * linux-tic6x-low.cc (class tic6x_target)
1757 <low_cannot_fetch_register>
1758 <low_cannot_store_register>: Declare.
1759 (tic6x_cannot_fetch_register): Turn into...
1760 (tic6x_target::low_cannot_fetch_register): ...this.
1761 (tic6x_cannot_store_register): Turn into...
1762 (tic6x_target::low_cannot_store_register): ...this.
1763 (the_low_target): Remove the op fields.
1764 * linux-tile-low.cc (class tile_target)
1765 <low_cannot_fetch_register>
1766 <low_cannot_store_register>: Declare.
1767 (tile_cannot_fetch_register): Turn into...
1768 (tile_target::low_cannot_fetch_register): ...this.
1769 (tile_cannot_store_register): Turn into...
1770 (tile_target::low_cannot_store_register): ...this.
1771 (the_low_target): Remove the op fields.
1772 * linux-xtensa-low.cc (class xtensa_target)
1773 <low_cannot_fetch_register>
1774 <low_cannot_store_register>: Declare.
1775 (xtensa_target::low_cannot_fetch_register)
1776 (xtensa_target::low_cannot_store_register): Define.
1777 (the_low_target): Remove the op fields.
1778
aa8d21c9
TBA
17792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1780
1781 Turn the 'regs_info' linux target op into a method of
1782 linux_process_target.
1783
1784 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1785 (class linux_process_target) <get_regs_info>: Define.
1786
1787 Update the callers below.
1788
1789 * linux-low.cc (linux_process_target::fetch_registers)
1790 (linux_process_target::store_registers)
1791 * proc-service.cc (gregset_info)
1792
1793 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1794 (x86_linux_regs_info): Turn into ...
1795 (x86_target::get_regs_info): ...this.
1796 (the_low_target): Remove the op field.
1797 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1798 Declare.
1799 (aarch64_regs_info): Turn into ...
1800 (aarch64_target::get_regs_info): ...this.
1801 (the_low_target): Remove the op field.
1802 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1803 (arm_regs_info): Turn into ...
1804 (arm_target::get_regs_info): ...this.
1805 (the_low_target): Remove the op field.
1806 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1807 (bfin_regs_info): Turn into ...
1808 (bfin_target::get_regs_info): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1811 (cris_regs_info): Turn into ...
1812 (cris_target::get_regs_info): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1815 Declare.
1816 (crisv32_regs_info): Turn into ...
1817 (crisv32_target::get_regs_info): ...this.
1818 (the_low_target): Remove the op field.
1819 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1820 (ia64_regs_info): Turn into ...
1821 (ia64_target::get_regs_info): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1824 (m32r_regs_info): Turn into ...
1825 (m32r_target::get_regs_info): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1828 (m68k_regs_info): Turn into ...
1829 (m68k_target::get_regs_info): ...this.
1830 (the_low_target): Remove the op field.
1831 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1832 (mips_regs_info): Turn into ...
1833 (mips_target::get_regs_info): ...this.
1834 (the_low_target): Remove the op field.
1835 (get_usrregs_info): Update the call to the op.
1836 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1837 (nios2_regs_info): Turn into ...
1838 (nios2_target::get_regs_info): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1841 (ppc_regs_info): Turn into ...
1842 (ppc_target::get_regs_info): ...this.
1843 (the_low_target): Remove the op field.
1844 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1845 (riscv_regs_info): Turn into ...
1846 (riscv_target::get_regs_info): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1849 (s390_regs_info): Turn into ...
1850 (s390_target::get_regs_info): ...this.
1851 (the_low_target): Remove the op field.
1852 (s390_collect_ptrace_register)
1853 (s390_supply_ptrace_register)
1854 (s390_fill_gregset): Update the call to the op.
1855 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1856 (sh_regs_info): Turn into ...
1857 (sh_target::get_regs_info): ...this.
1858 (the_low_target): Remove the op field.
1859 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1860 (sparc_regs_info): Turn into ...
1861 (sparc_target::get_regs_info): ...this.
1862 (the_low_target): Remove the op field.
1863 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1864 (tic6x_regs_info): Turn into ...
1865 (tic6x_target::get_regs_info): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1868 (tile_regs_info): Turn into ...
1869 (tile_target::get_regs_info): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1872 Declare.
1873 (xtensa_regs_info): Turn into ...
1874 (xtensa_target::get_regs_info): ...this.
1875 (the_low_target): Remove the op field.
1876
797bcff5
TBA
18772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1878
1879 Turn the 'arch_setup' linux target op into a method of
1880 linux_process_target.
1881
1882 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1883 (class linux_process_target) <arch_setup_thread>
1884 <low_arch_setup>: New declarations.
1885 * linux-low.cc (linux_arch_setup): Delete.
1886 (linux_arch_setup_thread): Turn into...
1887 (linux_process_target::arch_setup_thread): ... this.
1888
1889 Update the callers below.
1890
1891 (linux_process_target::handle_extended_wait)
1892 (linux_process_target::post_create_inferior)
1893 (linux_process_target::filter_event)
1894
1895 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1896 declaration.
1897 (x86_linux_update_xmltarget): Turn into...
1898 (x86_target::update_xmltarget): ...this.
1899 (x86_linux_process_qsupported): Update the call to
1900 x86_linux_update_xmltarget.
1901 (x86_arch_setup): Turn into ...
1902 (x86_target::low_arch_setup): ...this.
1903 (the_low_target): Remove the op field.
1904 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1905 declaration.
1906 (aarch64_arch_setup): Turn into ...
1907 (aarch64_target::low_arch_setup): ...this.
1908 (the_low_target): Remove the op field.
1909 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1910 declaration.
1911 (arm_arch_setup): Turn into ...
1912 (arm_target::low_arch_setup): ...this.
1913 (the_low_target): Remove the op field.
1914 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1915 declaration.
1916 (bfin_arch_setup): Turn into ...
1917 (bfin_target::low_arch_setup): ...this.
1918 (the_low_target): Remove the op field.
1919 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1920 declaration.
1921 (cris_arch_setup): Turn into ...
1922 (cris_target::low_arch_setup): ...this.
1923 (the_low_target): Remove the op field.
1924 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1925 declaration.
1926 (crisv32_arch_setup): Turn into ...
1927 (crisv32_target::low_arch_setup): ...this.
1928 (the_low_target): Remove the op field.
1929 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1930 declaration.
1931 (ia64_arch_setup): Turn into ...
1932 (ia64_target::low_arch_setup): ...this.
1933 (the_low_target): Remove the op field.
1934 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1935 declaration.
1936 (m32r_arch_setup): Turn into ...
1937 (m32r_target::low_arch_setup): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1940 declaration.
1941 (m68k_arch_setup): Turn into ...
1942 (m68k_target::low_arch_setup): ...this.
1943 (the_low_target): Remove the op field.
1944 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1945 declaration.
1946 (mips_arch_setup): Turn into ...
1947 (mips_target::low_arch_setup): ...this.
1948 (the_low_target): Remove the op field.
1949 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1950 declaration.
1951 (nios2_arch_setup): Turn into ...
1952 (nios2_target::low_arch_setup): ...this.
1953 (the_low_target): Remove the op field.
1954 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1955 declaration.
1956 (ppc_arch_setup): Turn into ...
1957 (ppc_target::low_arch_setup): ...this.
1958 (the_low_target): Remove the op field.
1959 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1960 declaration.
1961 (riscv_arch_setup): Turn into ...
1962 (riscv_target::low_arch_setup): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1965 declaration.
1966 (s390_arch_setup): Turn into ...
1967 (s390_target::low_arch_setup): ...this.
1968 (the_low_target): Remove the op field.
1969 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1970 declaration.
1971 (sh_arch_setup): Turn into ...
1972 (sh_target::low_arch_setup): ...this.
1973 (the_low_target): Remove the op field.
1974 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1975 declaration.
1976 (sparc_arch_setup): Turn into ...
1977 (sparc_target::low_arch_setup): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1980 declaration.
1981 (tic6x_arch_setup): Turn into ...
1982 (tic6x_target::low_arch_setup): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1985 declaration.
1986 (tile_arch_setup): Turn into ...
1987 (tile_target::low_arch_setup): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1990 declaration.
1991 (xtensa_arch_setup): Turn into ...
1992 (xtensa_target::low_arch_setup): ...this.
1993 (the_low_target): Remove the op field.
1994
ef0478f6
TBA
19952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1996
1997 * linux-low.h (the_linux_target): New extern declaration.
1998 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1999 'the_target'.
2000 (the_linux_target): Remove.
2001 * linux-x86-low.cc (class x86_target): New class.
2002 (the_x86_target): New static object.
2003 (the_linux_target): Define as pointer to the_x86_target.
2004 * linux-aarch64-low.cc (class aarch64_target): New class.
2005 (the_aarch64_target): New static object.
2006 (the_linux_target): Define as pointer to the_aarch64_target.
2007 * linux-arm-low.cc (class arm_target): New class.
2008 (the_arm_target): New static object.
2009 (the_linux_target): Define as pointer to the_arm_target.
2010 * linux-bfin-low.cc (class bfin_target): New class.
2011 (the_bfin_target): New static object.
2012 (the_linux_target): Define as pointer to the_bfin_target.
2013 * linux-cris-low.cc (class cris_target): New class.
2014 (the_cris_target): New static object.
2015 (the_linux_target): Define as pointer to the_cris_target.
2016 * linux-crisv32-low.cc (class crisv32_target): New class.
2017 (the_crisv32_target): New static object.
2018 (the_linux_target): Define as pointer to the_crisv32_target.
2019 * linux-ia64-low.cc (class ia64_target): New class.
2020 (the_ia64_target): New static object.
2021 (the_linux_target): Define as pointer to the_ia64_target.
2022 * linux-m32r-low.cc (class m32r_target): New class.
2023 (the_m32r_target): New static object.
2024 (the_linux_target): Define as pointer to the_m32r_target.
2025 * linux-m68k-low.cc (class m68k_target): New class.
2026 (the_m68k_target): New static object.
2027 (the_linux_target): Define as pointer to the_m68k_target.
2028 * linux-mips-low.cc (class mips_target): New class.
2029 (the_mips_target): New static object.
2030 (the_linux_target): Define as pointer to the_mips_target.
2031 * linux-nios2-low.cc (class nios2_target): New class.
2032 (the_nios2_target): New static object.
2033 (the_linux_target): Define as pointer to the_nios2_target.
2034 * linux-ppc-low.cc (class ppc_target): New class.
2035 (the_ppc_target): New static object.
2036 (the_linux_target): Define as pointer to the_ppc_target.
2037 * linux-riscv-low.cc (class riscv_target): New class.
2038 (the_riscv_target): New static object.
2039 (the_linux_target): Define as pointer to the_riscv_target.
2040 * linux-s390-low.cc (class s390_target): New class.
2041 (the_s390_target): New static object.
2042 (the_linux_target): Define as pointer to the_s390_target.
2043 * linux-sh-low.cc (class sh_target): New class.
2044 (the_sh_target): New static object.
2045 (the_linux_target): Define as pointer to the_sh_target.
2046 * linux-sparc-low.cc (class sparc_target): New class.
2047 (the_sparc_target): New static object.
2048 (the_linux_target): Define as pointer to the_sparc_target.
2049 * linux-tic6x-low.cc (class tic6x_target): New class.
2050 (the_tic6x_target): New static object.
2051 (the_linux_target): Define as pointer to the_tic6x_target.
2052 * linux-tile-low.cc (class tile_target): New class.
2053 (the_tile_target): New static object.
2054 (the_linux_target): Define as pointer to the_tile_target.
2055 * linux-xtensa-low.cc (class xtensa_target): New class.
2056 (the_xtensa_target): New static object.
2057 (the_linux_target): Define as pointer to the_xtensa_target.
2058
d16f3f6c
TBA
20592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2060
2061 Turn some static functions in linux-low.cc into private methods of
2062 linux_process_target.
2063
2064 * linux-low.cc (handle_extended_wait): Turn into ...
2065 (linux_process_target::handle_extended_wait): ...this. Call
2066 'mourn' on 'this' object instead of 'the_target'.
2067 (maybe_move_out_of_jump_pad): Turn into...
2068 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2069 (linux_low_filter_event): Turn into...
2070 (linux_process_target::filter_event): ...this.
2071 (linux_wait_for_event_filtered): Turn into...
2072 (linux_process_target::wait_for_event_filtered): ...this.
2073 (linux_wait_for_event): Turn into...
2074 (linux_process_target::wait_for_event): ...this.
2075 (linux_wait_1): Turn into...
2076 (linux_process_target::wait_1): ...this.
2077 (wait_for_sigstop): Turn into...
2078 (linux_process_target::wait_for_sigstop): ...this.
2079 (move_out_of_jump_pad_callback): Turn into...
2080 (linux_process_target::move_out_of_jump_pad): ...this.
2081 (stop_all_lwps): Turn into...
2082 (linux_process_target::stop_all_lwps): ...this.
2083 (start_step_over): Turn into...
2084 (linux_process_target::start_step_over): ...this.
2085 (complete_ongoing_step_over): Turn into...
2086 (linux_process_target::complete_ongoing_step_over): ...this.
2087 (proceed_all_lwps): Turn into...
2088 (linux_process_target::proceed_all_lwps): ...this.
2089 (unstop_all_lwps): Turn into...
2090 (linux_process_target::unstop_all_lwps): ...this.
2091
2092 * linux-low.h (class linux_process_target)
2093 <handle_extended_wait>
2094 <maybe_move_out_of_jump_pad>
2095 filter_event>
2096 <wait_for_event_filtered>
2097 <wait_for_event>
2098 <wait_1>
2099 <wait_for_sigstop>
2100 <move_out_of_jump_pad>
2101 <stop_all_lwps>
2102 <start_step_over>
2103 <complete_ongoing_step_over>
2104 <proceed_all_lwps>
2105 <unstop_all_lwps>: Declare.
2106
2107 Update the callers below.
2108
2109 * linux-low.cc (linux_process_target::attach): Update.
2110 (linux_process_target::stabilize_threads): Ditto.
2111 (linux_process_target::wait): Ditto.
2112
a5863204
TBA
21132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2114
2115 * linux-low.h (struct linux_target_ops): Update the comment for
2116 'cannot_store_register' to return 0 or 1.
2117 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2118 of 2.
2119
c884cc46
SM
21202020-03-20 Simon Marchi <simon.marchi@efficios.com>
2121
2122 * config.in: Re-generate.
2123 * configure: Re-generate.
2124
5a82b8a1
KR
21252020-03-17 Kamil Rytarowski <n54@gmx.com>
2126
2127 * regcache.cc (find_register_by_number): Update.
2128 * tdesc.cc (init_target_desc): Likewise.
2129 * tdesc.h (target_desc::reg_defs): Likewise.
2130
4635ff97
TT
21312020-03-12 Tom Tromey <tom@tromey.com>
2132
2133 * configure: Rebuild.
2134 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2135 (WIN32APILIBS): New subst.
2136 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2137 gdbsupport files.
2138 (gdbsupport/%.o): Remove target.
2139 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2140 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2141 (WIN32APILIBS): New variable.
2142 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2143 (gdbreplay$(EXEEXT)): Likewise.
2144
9a665d62
TT
21452020-03-12 Tom Tromey <tom@tromey.com>
2146
2147 * config.in, configure: Rebuild.
2148 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2149 * acinclude.m4: Include gettext-sister.m4.
2150 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2151 variables.
2152 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2153 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2154
272cd5a3
SM
21552020-03-12 Simon Marchi <simon.marchi@efficios.com>
2156
2157 * acinclude.m4: Update path to selftest.m4.
2158
db6878ac
SM
21592020-03-12 Simon Marchi <simon.marchi@efficios.com>
2160
2161 * configure.ac: Don't source bfd/development.sh, move
2162 GDB_AC_COMMON higher.
2163 * configure: Re-generate.
2164
4d696a5c
SM
21652020-03-12 Simon Marchi <simon.marchi@efficios.com>
2166
2167 * configure: Re-generate.
2168
a0761e34
SM
21692020-03-11 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * configure: Re-generate.
2172
20ea4a60
AB
21732020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * .dir-locals.el: New file.
2176
842806cb
TBA
21772020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178
2179 * .gitattributes: New file.
2180
442131c1
AB
21812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2184 reply into an S reply.
2185 * server.cc (disable_packet_T): New global.
2186 (captured_main): Set new global when appropriate.
2187 * server.h (disable_packet_T): Declare.
2188
dda42c0b
TT
21892020-02-21 Tom Tromey <tom@tromey.com>
2190
2191 * Makefile.in (mostlyclean): New target.
2192
52405d85
TBA
21932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2194
2195 * target.h (struct process_stratum_target): Remove.
2196 (class process_target): Rename to ...
2197 (class process_stratum_target): ... this.
2198 * linux-low.h (class linux_process_target): Derive from
2199 'process_stratum_target'.
2200 * linux-low.cc (linux_target_ops): Remove.
2201 (initialize_low): Set the_target to the singleton instance of
2202 linux_process_target.
2203 * lynx-low.h (class lynx_process_target): Derive from
2204 'process_stratum_target'.
2205 * lynx-low.cc (lynx_target_ops): Remove.
2206 (initialize_low): Set the_target to the singleton instance of
2207 lynx_process_target.
2208 * nto-low.h (class nto_process_target): Derive from
2209 'process_stratum_target'.
2210 * nto-low.cc (nto_target_ops): Remove.
2211 (initialize_low): Set the_target to the singleton instance of
2212 nto_process_target.
2213 * win32-low.h (class win32_process_target): Derive from
2214 'process_stratum_target'.
2215 * win32-low.cc (win32_target_ops): Remove.
2216 (initialize_low): Set the_target to the singleton instance of
2217 win32_process_target.
2218
2219 Replace 'the_target->pt' with 'the_target' in the uses below.
2220
2221 * hostio.cc (hostio_error)
2222 (handle_setfs)
2223 (handle_open)
2224 (handle_unlink)
2225 (handle_readlink)
2226 * linux-aarch32-low.cc (arm_breakpoint_at)
2227 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2228 * linux-arm-low.cc (arm_sigreturn_next_pc)
2229 (arm_get_hwcap)
2230 (arm_get_syscall_trapinfo)
2231 * linux-cris-low.cc (cris_breakpoint_at)
2232 * linux-crisv32-low.cc (cris_breakpoint_at)
2233 * linux-low.cc (handle_extended_wait)
2234 (linux_wait_1)
2235 (linux_read_memory)
2236 (linux_process_target::breakpoint_kind_from_pc)
2237 (linux_get_auxv)
2238 * linux-m32r-low.cc (m32r_breakpoint_at)
2239 * linux-mips-low.cc (mips_breakpoint_at)
2240 * linux-nios2-low.cc (nios2_breakpoint_at)
2241 * linux-ppc-low.cc (ppc_breakpoint_at)
2242 * linux-s390-low.cc (s390_get_hwcap)
2243 * linux-sh-low.cc (sh_breakpoint_at)
2244 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2245 (sparc_store_gregset_from_stack)
2246 (sparc_breakpoint_at)
2247 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2248 * linux-tile-low.cc (tile_breakpoint_at)
2249 * linux-x86-low.cc (x86_breakpoint_at)
2250 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2251 * mem-break.cc (bp_size)
2252 (bp_opcode)
2253 (insert_memory_breakpoint)
2254 (set_raw_breakpoint_at)
2255 (delete_raw_breakpoint)
2256 (z_type_supported)
2257 (uninsert_raw_breakpoint)
2258 (reinsert_raw_breakpoint)
2259 (validate_inserted_breakpoint)
2260 * regcache.cc (regcache_read_pc)
2261 (regcache_write_pc)
2262 * remote-utils.cc (putpkt_binary_1)
2263 (input_interrupt)
2264 (getpkt)
2265 (prepare_resume_reply)
2266 * server.cc (handle_general_set)
2267 (handle_detach)
2268 (handle_qxfer_auxv)
2269 (handle_qxfer_exec_file)
2270 (handle_qxfer_libraries_svr4)
2271 (handle_qxfer_osdata)
2272 (handle_qxfer_siginfo)
2273 (handle_qxfer_fdpic)
2274 (handle_query)
2275 (resume)
2276 (handle_v_requests)
2277 (queue_stop_reply_callback)
2278 (captured_main)
2279 * target.cc (prepare_to_access_memory)
2280 (done_accessing_memory)
2281 (read_inferior_memory)
2282 (target_write_memory)
2283 (target_stop_and_wait)
2284 (target_wait)
2285 (target_mourn_inferior)
2286 (target_continue_no_signal)
2287 (target_continue)
2288 (target_supports_multi_process)
2289 (kill_inferior)
2290 * target.h
2291 (target_create_inferior)
2292 (target_post_create_inferior)
2293 (myattach)
2294 (target_supports_fork_events)
2295 (target_supports_vfork_events)
2296 (target_supports_exec_events)
2297 (target_handle_new_gdb_connection)
2298 (detach_inferior)
2299 (mythread_alive)
2300 (fetch_inferior_registers)
2301 (store_inferior_registers)
2302 (join_inferior)
2303 (target_supports_non_stop)
2304 (target_async)
2305 (target_process_qsupported)
2306 (target_supports_catch_syscall)
2307 (target_get_ipa_tdesc_idx)
2308 (target_supports_tracepoints)
2309 (target_supports_fast_tracepoints)
2310 (target_get_min_fast_tracepoint_insn_len)
2311 (target_thread_stopped)
2312 (target_pause_all)
2313 (target_unpause_all)
2314 (target_stabilize_threads)
2315 (target_install_fast_tracepoint_jump_pad)
2316 (target_emit_ops)
2317 (target_supports_disable_randomization)
2318 (target_supports_agent)
2319 (target_enable_btrace)
2320 (target_disable_btrace)
2321 (target_read_btrace)
2322 (target_read_btrace_conf)
2323 (target_supports_range_stepping)
2324 (target_supports_stopped_by_sw_breakpoint)
2325 (target_stopped_by_sw_breakpoint)
2326 (target_supports_stopped_by_hw_breakpoint)
2327 (target_supports_hardware_single_step)
2328 (target_stopped_by_hw_breakpoint)
2329 (target_breakpoint_kind_from_pc)
2330 (target_breakpoint_kind_from_current_state)
2331 (target_supports_software_single_step)
2332 (target_core_of_thread)
2333 (target_thread_name)
2334 (target_thread_handle)
2335 * win32-low.cc (do_initial_child_stuff)
2336
2337 Rename target op default definitions listed below.
2338
2339 * target.cc (process_target::post_create_inferior): Rename as ...
2340 (process_stratum_target::post_create_inferior): ... this.
2341 (process_target::prepare_to_access_memory): Rename as ...
2342 (process_stratum_target::prepare_to_access_memory): ... this.
2343 (process_target::done_accessing_memory): Rename as ...
2344 (process_stratum_target::done_accessing_memory): ... this.
2345 (process_target::look_up_symbols): Rename as ...
2346 (process_stratum_target::look_up_symbols): ... this.
2347 (process_target::supports_read_auxv): Rename as ...
2348 (process_stratum_target::supports_read_auxv): ... this.
2349 (process_target::read_auxv): Rename as ...
2350 (process_stratum_target::read_auxv): ... this.
2351 (process_target::supports_z_point_type): Rename as ...
2352 (process_stratum_target::supports_z_point_type): ... this.
2353 (process_target::insert_point): Rename as ...
2354 (process_stratum_target::insert_point): ... this.
2355 (process_target::remove_point): Rename as ...
2356 (process_stratum_target::remove_point): ... this.
2357 (process_target::stopped_by_sw_breakpoint): Rename as ...
2358 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2359 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2360 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2361 (process_target::stopped_by_hw_breakpoint): Rename as ...
2362 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2363 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2364 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2365 (process_target::supports_hardware_single_step): Rename as ...
2366 (process_stratum_target::supports_hardware_single_step): ... this.
2367 (process_target::stopped_by_watchpoint): Rename as ...
2368 (process_stratum_target::stopped_by_watchpoint): ... this.
2369 (process_target::stopped_data_address): Rename as ...
2370 (process_stratum_target::stopped_data_address): ... this.
2371 (process_target::supports_read_offsets): Rename as ...
2372 (process_stratum_target::supports_read_offsets): ... this.
2373 (process_target::read_offsets): Rename as ...
2374 (process_stratum_target::read_offsets): ... this.
2375 (process_target::supports_get_tls_address): Rename as ...
2376 (process_stratum_target::supports_get_tls_address): ... this.
2377 (process_target::get_tls_address): Rename as ...
2378 (process_stratum_target::get_tls_address): ... this.
2379 (process_target::hostio_last_error): Rename as ...
2380 (process_stratum_target::hostio_last_error): ... this.
2381 (process_target::supports_qxfer_osdata): Rename as ...
2382 (process_stratum_target::supports_qxfer_osdata): ... this.
2383 (process_target::qxfer_osdata): Rename as ...
2384 (process_stratum_target::qxfer_osdata): ... this.
2385 (process_target::supports_qxfer_siginfo): Rename as ...
2386 (process_stratum_target::supports_qxfer_siginfo): ... this.
2387 (process_target::qxfer_siginfo): Rename as ...
2388 (process_stratum_target::qxfer_siginfo): ... this.
2389 (process_target::supports_non_stop): Rename as ...
2390 (process_stratum_target::supports_non_stop): ... this.
2391 (process_target::async): Rename as ...
2392 (process_stratum_target::async): ... this.
2393 (process_target::start_non_stop): Rename as ...
2394 (process_stratum_target::start_non_stop): ... this.
2395 (process_target::supports_multi_process): Rename as ...
2396 (process_stratum_target::supports_multi_process): ... this.
2397 (process_target::supports_fork_events): Rename as ...
2398 (process_stratum_target::supports_fork_events): ... this.
2399 (process_target::supports_vfork_events): Rename as ...
2400 (process_stratum_target::supports_vfork_events): ... this.
2401 (process_target::supports_exec_events): Rename as ...
2402 (process_stratum_target::supports_exec_events): ... this.
2403 (process_target::handle_new_gdb_connection): Rename as ...
2404 (process_stratum_target::handle_new_gdb_connection): ... this.
2405 (process_target::handle_monitor_command): Rename as ...
2406 (process_stratum_target::handle_monitor_command): ... this.
2407 (process_target::core_of_thread): Rename as ...
2408 (process_stratum_target::core_of_thread): ... this.
2409 (process_target::supports_read_loadmap): Rename as ...
2410 (process_stratum_target::supports_read_loadmap): ... this.
2411 (process_target::read_loadmap): Rename as ...
2412 (process_stratum_target::read_loadmap): ... this.
2413 (process_target::process_qsupported): Rename as ...
2414 (process_stratum_target::process_qsupported): ... this.
2415 (process_target::supports_tracepoints): Rename as ...
2416 (process_stratum_target::supports_tracepoints): ... this.
2417 (process_target::read_pc): Rename as ...
2418 (process_stratum_target::read_pc): ... this.
2419 (process_target::write_pc): Rename as ...
2420 (process_stratum_target::write_pc): ... this.
2421 (process_target::supports_thread_stopped): Rename as ...
2422 (process_stratum_target::supports_thread_stopped): ... this.
2423 (process_target::thread_stopped): Rename as ...
2424 (process_stratum_target::thread_stopped): ... this.
2425 (process_target::supports_get_tib_address): Rename as ...
2426 (process_stratum_target::supports_get_tib_address): ... this.
2427 (process_target::get_tib_address): Rename as ...
2428 (process_stratum_target::get_tib_address): ... this.
2429 (process_target::pause_all): Rename as ...
2430 (process_stratum_target::pause_all): ... this.
2431 (process_target::unpause_all): Rename as ...
2432 (process_stratum_target::unpause_all): ... this.
2433 (process_target::stabilize_threads): Rename as ...
2434 (process_stratum_target::stabilize_threads): ... this.
2435 (process_target::supports_fast_tracepoints): Rename as ...
2436 (process_stratum_target::supports_fast_tracepoints): ... this.
2437 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2438 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2439 (process_target::emit_ops): Rename as ...
2440 (process_stratum_target::emit_ops): ... this.
2441 (process_target::supports_disable_randomization): Rename as ...
2442 (process_stratum_target::supports_disable_randomization): ... this.
2443 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2444 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2445 (process_target::qxfer_libraries_svr4): Rename as ...
2446 (process_stratum_target::qxfer_libraries_svr4): ... this.
2447 (process_target::supports_agent): Rename as ...
2448 (process_stratum_target::supports_agent): ... this.
2449 (process_target::enable_btrace): Rename as ...
2450 (process_stratum_target::enable_btrace): ... this.
2451 (process_target::disable_btrace): Rename as ...
2452 (process_stratum_target::disable_btrace): ... this.
2453 (process_target::read_btrace): Rename as ...
2454 (process_stratum_target::read_btrace): ... this.
2455 (process_target::read_btrace_conf): Rename as ...
2456 (process_stratum_target::read_btrace_conf): ... this.
2457 (process_target::supports_range_stepping): Rename as ...
2458 (process_stratum_target::supports_range_stepping): ... this.
2459 (process_target::supports_pid_to_exec_file): Rename as ...
2460 (process_stratum_target::supports_pid_to_exec_file): ... this.
2461 (process_target::pid_to_exec_file): Rename as ...
2462 (process_stratum_target::pid_to_exec_file): ... this.
2463 (process_target::supports_multifs): Rename as ...
2464 (process_stratum_target::supports_multifs): ... this.
2465 (process_target::multifs_open): Rename as ...
2466 (process_stratum_target::multifs_open): ... this.
2467 (process_target::multifs_unlink): Rename as ...
2468 (process_stratum_target::multifs_unlink): ... this.
2469 (process_target::multifs_readlink): Rename as ...
2470 (process_stratum_target::multifs_readlink): ... this.
2471 (process_target::breakpoint_kind_from_pc): Rename as ...
2472 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2473 (process_target::breakpoint_kind_from_current_state): Rename as ...
2474 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2475 (process_target::thread_name): Rename as ...
2476 (process_stratum_target::thread_name): ... this.
2477 (process_target::thread_handle): Rename as ...
2478 (process_stratum_target::thread_handle): ... this.
2479 (process_target::supports_software_single_step): Rename as ...
2480 (process_stratum_target::supports_software_single_step): ... this.
2481 (process_target::supports_catch_syscall): Rename as ...
2482 (process_stratum_target::supports_catch_syscall): ... this.
2483 (process_target::get_ipa_tdesc_idx): Rename as ...
2484 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2485
478f9adf
PA
24862020-02-20 Pedro Alves <palves@redhat.com>
2487
2488 * target.cc (set_target_ops): Simply copy the given target pointer
2489 instead of creating a copy of the pointed object.
2490
d633e831
TBA
24912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2492
2493 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2494 of process_target.
2495
2496 * target.h (struct process_stratum_target): Remove the target op.
2497 (class process_target): Add the target op.
2498 (target_get_ipa_tdesc_idx): Update the macro.
2499 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2500
2501 Update the derived classes and callers below.
2502
2503 * linux-low.cc (linux_target_ops): Update.
2504 (linux_get_ipa_tdesc_idx): Turn into ...
2505 (linux_process_target::get_ipa_tdesc_idx): ... this.
2506 * linux-low.h (class linux_process_target): Update.
2507 * lynx-low.cc (lynx_target_ops): Update.
2508 * nto-low.cc (nto_target_ops): Update.
2509 * win32-low.cc (win32_target_ops): Update.
2510
bc8d3ae4
TBA
25112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2512
2513 Turn process_stratum_target's supports_catch_syscall op into a
2514 method of process_target.
2515
2516 * target.h (struct process_stratum_target): Remove the target op.
2517 (class process_target): Add the target op.
2518 (target_supports_catch_syscall): Update the macro.
2519 * target.cc (process_target::supports_catch_syscall): Define.
2520
2521 Update the derived classes and callers below.
2522
2523 * linux-low.cc (linux_target_ops): Update.
2524 (linux_supports_catch_syscall): Turn into ...
2525 (linux_process_target::supports_catch_syscall): ... this.
2526 * linux-low.h (class linux_process_target): Update.
2527 * lynx-low.cc (lynx_target_ops): Update.
2528 * nto-low.cc (nto_target_ops): Update.
2529 * win32-low.cc (win32_target_ops): Update.
2530
5303a34f
TBA
25312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2532
2533 Turn process_stratum_target's supports_software_single_step op
2534 into a method of process_target.
2535
2536 * target.h (struct process_stratum_target): Remove the target op.
2537 (class process_target): Add the target op.
2538 (target_supports_software_single_step): Update the macro.
2539 * target.cc (process_target::supports_software_single_step): Define.
2540
2541 Update the derived classes and callers below.
2542
2543 * linux-low.cc (linux_target_ops): Update.
2544 (linux_supports_software_single_step): Turn into ...
2545 (linux_process_target::supports_software_single_step): ... this.
2546 * linux-low.h (class linux_process_target): Update.
2547 * lynx-low.cc (lynx_target_ops): Update.
2548 * nto-low.cc (nto_target_ops): Update.
2549 * win32-low.cc (win32_target_ops): Update.
2550
7f63b89b
TBA
25512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552
2553 Turn process_stratum_target's thread_name and thread_handle ops
2554 into methods of process_target.
2555
2556 * target.h (struct process_stratum_target): Remove the target ops.
2557 (class process_target): Add the target ops.
2558 (target_thread_name): Update the macro.
2559 (target_thread_handle): Update the macro.
2560 * target.cc (process_target::thread_name): Define.
2561 (process_target::thread_handle): Define.
2562
2563 Update the derived classes and callers below.
2564
2565 * linux-low.cc (linux_target_ops): Update.
2566 (linux_process_target::thread_name): Define.
2567 (linux_process_target::thread_handle): Define.
2568 * linux-low.h (class linux_process_target): Update.
2569 * lynx-low.cc (lynx_target_ops): Update.
2570 * nto-low.cc (nto_target_ops): Update.
2571 * win32-low.cc (win32_target_ops): Update.
2572
d367006f
TBA
25732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2574
2575 Turn process_stratum_target's breakpoint_kind_from_pc,
2576 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2577 ops into methods of process_target.
2578
2579 * target.h (struct process_stratum_target): Remove the target op.
2580 (class process_target): Add the target op.
2581 (target_breakpoint_kind_from_pc): Update the macro.
2582 (target_breakpoint_kind_from_current_state): Update the macro.
2583 (default_breakpoint_kind_from_pc): Remove declaration.
2584 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2585 (process_target::breakpoint_kind_from_pc): ... this.
2586 (process_target::breakpoint_kind_from_current_state): Define.
2587
2588 Update the derived classes and callers below.
2589
2590 * mem-break.cc (bp_size): Update.
2591 (bp_opcode): Update.
2592 * linux-low.cc (linux_target_ops): Update.
2593 (linux_wait_1): Update.
2594 (linux_breakpoint_kind_from_pc): Turn into ...
2595 (linux_process_target::breakpoint_kind_from_pc): ... this.
2596 (linux_sw_breakpoint_from_kind): Turn into ...
2597 (linux_process_target::sw_breakpoint_from_kind): ... this.
2598 (linux_breakpoint_kind_from_current_state): Turn into ...
2599 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2600 * linux-low.h (class linux_process_target): Update.
2601 * lynx-low.cc (lynx_target_ops): Update.
2602 (lynx_process_target::sw_breakpoint_from_kind): Define.
2603 * lynx-low.h (class lynx_process_target): Update.
2604 * nto-low.cc (nto_target_ops): Update.
2605 (nto_sw_breakpoint_from_kind): Turn into ...
2606 (nto_process_target::sw_breakpoint_from_kind): ... this.
2607 * nto-low.h (class nto_process_target): Update.
2608 * win32-low.cc (win32_target_ops): Update.
2609 (win32_sw_breakpoint_from_kind): Turn into ...
2610 (win32_process_target::sw_breakpoint_from_kind): ... this.
2611 * win32-low.h (class win32_process_target): Update.
2612
c9b7b804
TBA
26132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2614
2615 Turn process_stratum_target's multifs_open, multifs_readlink,
2616 multifs_unlink ops into methods of process_target.
2617
2618 * target.h (struct process_stratum_target): Remove the target ops.
2619 (class process_target): Add the target ops. Also add
2620 'supports_multifs'.
2621 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2622 "sys/stat.h".
2623 (process_target::supports_multifs): Define.
2624 (process_target::multifs_open): Define.
2625 (process_target::multifs_readlink): Define.
2626 (process_target::multifs_unlink): Define.
2627
2628 Update the derived classes and callers below.
2629
2630 * hostio.cc (handle_setfs): Update.
2631 (handle_open): Update.
2632 (handle_unlink): Update.
2633 (handle_readlink): Update.
2634 * linux-low.cc (linux_target_ops): Update.
2635 (linux_process_target::supports_multifs): Define.
2636 (linux_process_target::multifs_open): Define.
2637 (linux_process_target::multifs_readlink): Define.
2638 (linux_process_target::multifs_unlink): 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
8247b823
TBA
26442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645
2646 Turn process_stratum_target's pid_to_exec_file op into a method
2647 of process_target.
2648
2649 * target.h (struct process_stratum_target): Remove the target op.
2650 (class process_target): Add the target op. Also add
2651 'supports_pid_to_exec_file'.
2652 * target.cc (process_target::pid_to_exec_file): Define.
2653 (process_target::supports_pid_to_exec_file): Define.
2654
2655 Update the derived classes and callers below.
2656
2657 * server.cc (handle_qxfer_exec_file): Update.
2658 (handle_query): Update.
2659 * linux-low.cc (linux_target_ops): Update.
2660 (linux_process_target::supports_pid_to_exec_file): Define.
2661 (linux_process_target::pid_to_exec_file): Define.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2666
2526e0cd
TBA
26672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2668
2669 Turn process_stratum_target's supports_range_stepping op into a
2670 method of process_target.
2671
2672 * target.h (struct process_stratum_target): Remove the target op.
2673 (class process_target): Add the target op.
2674 (target_supports_range_stepping): Update the macro.
2675 * target.cc (process_target::supports_range_stepping): Define.
2676
2677 Update the derived classes and callers below.
2678
2679 * linux-low.cc (linux_target_ops): Update.
2680 (linux_supports_range_stepping): Turn into ...
2681 (linux_process_target::supports_range_stepping): ... this.
2682 * linux-low.h (class linux_process_target): Update.
2683 * lynx-low.cc (lynx_target_ops): Update.
2684 * nto-low.cc (nto_target_ops): Update.
2685 * win32-low.cc (win32_target_ops): Update.
2686
79597bdd
TBA
26872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2688
2689 Turn process_stratum_target's btrace-related ops (enable_btrace,
2690 disable_btrace, read_btrace, read_btrace_conf) into methods of
2691 process_target.
2692
2693 * target.h (struct process_stratum_target): Remove the target ops.
2694 (class process_target): Add the target ops.
2695 (target_enable_btrace): Update.
2696 (target_disable_btrace): Update.
2697 (target_read_btrace): Update.
2698 (target_read_btrace_conf): Update.
2699 * target.cc (process_target::enable_btrace): Define.
2700 (process_target::disable_btrace): Define.
2701 (process_target::read_btrace): Define.
2702 (process_target::read_btrace_conf): Define.
2703
2704 Update the derived classes and callers below.
2705
2706 * linux-low.cc (linux_target_ops): Update.
2707 (linux_process_target:enable_btrace): Define as a wrapper around
2708 linux_enable_btrace.
2709 (linux_low_disable_btrace): Turn into ...
2710 (linux_process_target::disable_btrace): ... this.
2711 (linux_low_read_btrace): Turn into ...
2712 (linux_process_target::read_btrace): ... this.
2713 (linux_low_btrace_conf): Turn into ...
2714 (linux_process_target::read_btrace_conf): ... this.
2715 * linux-low.h (class linux_process_target): Update.
2716 * lynx-low.cc (lynx_target_ops): Update.
2717 * nto-low.cc (nto_target_ops): Update.
2718 * win32-low.cc (win32_target_ops): Update.
2719
c0245cb9
TBA
27202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2721
2722 Turn process_stratum_target's supports_agent op into a method of
2723 process_target.
2724
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 (target_supports_agent): Update the macro.
2728 * target.cc (process_target::supports_agent): Define.
2729
2730 Update the derived classes and callers below.
2731
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_supports_agent): Turn into ...
2734 (linux_process_target::supports_agent): ... this.
2735 * linux-low.h (class linux_process_target): Update.
2736 * lynx-low.cc (lynx_target_ops): Update.
2737 * nto-low.cc (nto_target_ops): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2739
974387bb
TBA
27402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741
2742 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2743 method of process_target.
2744
2745 * target.h (struct process_stratum_target): Remove the target op.
2746 (class process_target): Add the target op. Also add
2747 'supports_qxfer_libraries_svr4'.
2748 * target.cc (process_target::qxfer_libraries_svr4): Define.
2749 (process_target::supports_qxfer_libraries_svr4): Define.
2750
2751 Update the derived classes and callers below.
2752
2753 * server.cc (handle_qxfer_libraries_svr4): Update.
2754 (handle_query): Update.
2755 * linux-low.cc (linux_target_ops): Update.
2756 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2757 (linux_qxfer_libraries_svr4): Turn into ...
2758 (linux_process_target::qxfer_libraries_svr4): ... this.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2763
c756403b
TBA
27642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765
2766 Turn process_stratum_target's supports_disable_randomization op
2767 into a method of process_target.
2768
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_supports_disable_randomization): Update the macro.
2772 * target.cc (process_target::supports_disable_randomization): Define.
2773
2774 Update the derived classes and callers below.
2775
2776 * linux-low.cc (linux_target_ops): Update.
2777 (linux_supports_disable_randomization): Turn into ...
2778 (linux_process_target::supports_disable_randomization): ... this.
2779 * linux-low.h (class linux_process_target): Update.
2780 * lynx-low.cc (lynx_target_ops): Update.
2781 * nto-low.cc (nto_target_ops): Update.
2782 * win32-low.cc (win32_target_ops): Update.
2783
345dafad
TBA
27842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785
2786 Turn process_stratum_target's emit_ops op into a method of
2787 process_target.
2788
2789 * target.h (struct process_stratum_target): Remove the target op.
2790 (class process_target): Add the target op.
2791 (target_emit_ops): Update the macro.
2792 * target.cc (process_target::emit_ops): Define.
2793
2794 Update the derived classes and callers below.
2795
2796 * linux-low.cc (linux_target_ops): Update.
2797 (linux_emit_ops): Turn into ...
2798 (linux_process_target::emit_ops): ... this.
2799 * linux-low.h (class linux_process_target): Update.
2800 * lynx-low.cc (lynx_target_ops): Update.
2801 * nto-low.cc (nto_target_ops): Update.
2802 * win32-low.cc (win32_target_ops): Update.
2803
c23c9391
TBA
28042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2805
2806 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2807 and get_min_fast_tracepoint_insn_len ops into methods of
2808 process_target.
2809
2810 * target.h (struct process_stratum_target): Remove the target ops.
2811 (class process_target): Add the target ops. Also add
2812 'supports_fast_tracepoints'.
2813 (target_supports_fast_tracepoints): Update the macro.
2814 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2815 (install_fast_tracepoint_jump_pad): Update and rename the macro
2816 to ...
2817 (target_install_fast_tracepoint_jump_pad): ... this.
2818 * target.cc (process_target::supports_fast_tracepoints): Define.
2819 (process_target::install_fast_tracepoint_jump_pad): Define.
2820 (process_target::get_min_fast_tracepoint_insn_len): Define.
2821
2822 Update the derived classes and callers below.
2823
2824 * tracepoint.cc (install_fast_tracepoint): Update.
2825 * linux-low.cc (linux_target_ops): Update.
2826 (linux_process_target::supports_fast_tracepoints): Define.
2827 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2828 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2829 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2830 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2831 * linux-low.h (class linux_process_target): Update.
2832 * lynx-low.cc (lynx_target_ops): Update.
2833 * nto-low.cc (nto_target_ops): Update.
2834 * win32-low.cc (win32_target_ops): Update.
2835
5c9eb2f2
TBA
28362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 Turn process_stratum_target's stabilize_threads op into a
2839 method of process_target.
2840
2841 * target.h (struct process_stratum_target): Remove the target op.
2842 (class process_target): Add the target op.
2843 (target_stabilize_threads): Update the macro.
2844 * target.cc (process_target::stabilize_threads): Define.
2845
2846 Update the derived classes and callers below.
2847
2848 * server.cc (handle_status): Update.
2849 * tracepoint.cc (cmd_qtdp): Update.
2850 (cmd_qtstart): Update.
2851 * linux-low.cc (linux_target_ops): Update.
2852 (linux_stabilize_threads): Turn into ...
2853 (linux_process_target::stabilize_threads): ... this.
2854 (linux_wait_1): Update.
2855 * linux-low.h (class linux_process_target): Update.
2856 * lynx-low.cc (lynx_target_ops): Update.
2857 * nto-low.cc (nto_target_ops): Update.
2858 * win32-low.cc (win32_target_ops): Update.
2859
29e8dc09
TBA
28602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2861
2862 Turn process_stratum_target's pause_all and unpause_all ops
2863 into methods of process_target.
2864
2865 * target.h (struct process_stratum_target): Remove the target ops.
2866 (class process_target): Add the target ops.
2867 (pause_all): Update the macro and rename to...
2868 (target_pause_all): ... this.
2869 (unpause_all): Update the macro and rename to...
2870 (target_unpause_all): ... this.
2871 * target.cc (process_target::pause_all): Define.
2872 (process_target::unpause_all): Define.
2873
2874 Update the derived classes and callers below.
2875
2876 * server.cc (handle_status): Update.
2877 * tracepoint.cc (clear_installed_tracepoints): Update.
2878 (cmd_qtdp): Update.
2879 (cmd_qtstart): Update.
2880 (stop_tracing): Update.
2881 (cmd_qtstatus): Update.
2882 (upload_fast_traceframes): Update.
2883 (run_inferior_command): Update.
2884 * linux-low.cc (linux_target_ops): Update.
2885 (linux_pause_all): Turn into ...
2886 (linux_process_target::pause_all): ... this.
2887 (linux_unpause_all): Turn into ...
2888 (linux_process_target::unpause_all): ... this.
2889 (linux_process_target::prepare_to_access_memory): Update.
2890 (linux_process_target::done_accessing_memory): Update.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2895
4e2e869c
TBA
28962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 Turn process_stratum_target's get_tib_address 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_get_tib_address'.
2904 * target.cc (process_target::get_tib_address): Define.
2905 (process_target::supports_get_tib_address): Define.
2906
2907 Update the derived classes and callers below.
2908
2909 * server.cc (handle_query): Update.
2910 * linux-low.cc (win32_target_ops): Update.
2911 * lynx-low.cc (lynx_target_ops): Update.
2912 * nto-low.cc (nto_target_ops): Update.
2913 * win32-low.cc (win32_target_ops): Update.
2914 (win32_process_target::supports_get_tib_address): Define.
2915 (win32_get_tib_address): Turn into ...
2916 (win32_process_target::get_tib_address): ... this.
2917 * win32-low.h (class win32_process_target): Update.
2918
68119632
TBA
29192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2920
2921 Turn process_stratum_target's thread_stopped op into a method of
2922 process_target.
2923
2924 * target.h (struct process_stratum_target): Remove the target op.
2925 (class process_target): Add the target op. Also add
2926 'supports_thread_stopped'.
2927 (target_thread_stopped): Update the macro.
2928 * target.cc (process_target::thread_stopped): Define.
2929 (process_target::supports_thread_stopped): Define.
2930 (prepare_to_access_memory): Update.
2931
2932 Update the derived classes and callers below.
2933
2934 * server.cc (queue_stop_reply_callback): Update.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_process_target::supports_thread_stopped): Define.
2937 (linux_thread_stopped): Turn into ...
2938 (linux_process_target::thread_stopped): ... this.
2939 * linux-low.h (class linux_process_target): Update.
2940 * lynx-low.cc (lynx_target_ops): Update.
2941 * nto-low.cc (nto_target_ops): Update.
2942 * win32-low.cc (win32_target_ops): Update.
2943
770d8f6a
TBA
29442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945
2946 Turn process_stratum_target's read_pc and write_pc ops into
2947 methods of process_target.
2948
2949 * target.h (struct process_stratum_target): Remove the target ops.
2950 (class process_target): Add the target ops.
2951 * target.cc (process_target::read_pc): Define.
2952 (process_target::write_pc): Define.
2953
2954 Update the derived classes and callers below.
2955
2956 * regcache.cc (regcache_read_pc): Update.
2957 (regcache_write_pc): Update.
2958 * linux-low.cc (linux_target_ops): Update.
2959 (linux_read_pc): Turn into ...
2960 (linux_process_target::read_pc): ... this.
2961 (linux_write_pc): Turn into ...
2962 (linux_process_target::write_pc): ... this.
2963 * linux-low.h (class linux_process_target): Update.
2964 * lynx-low.cc (lynx_target_ops): Update.
2965 * nto-low.cc (nto_target_ops): Update.
2966 * win32-low.cc (win32_target_ops): Update.
2967
290732bf
TBA
29682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2969
2970 Turn process_stratum_target's supports_tracepoints op into a
2971 method of process_target.
2972
2973 * target.h (struct process_stratum_target): Remove the target op.
2974 (class process_target): Add the target op.
2975 (target_supports_tracepoints): Update the macro.
2976 * target.cc (process_target::supports_tracepoints): Define.
2977
2978 Update the derived classes and callers below.
2979
2980 * linux-low.cc (linux_target_ops): Update.
2981 (linux_supports_tracepoints): Turn into ...
2982 (linux_process_target::supports_tracepoints): ... this.
2983 * linux-low.h (class linux_process_target): Update.
2984 * lynx-low.cc (lynx_target_ops): Update.
2985 * nto-low.cc (nto_target_ops): Update.
2986 * win32-low.cc (win32_target_ops): Update.
2987
0df28b1b
TBA
29882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989
2990 Turn process_stratum_target's process_qsupported op into a method
2991 of process_target.
2992
2993 * target.h (struct process_stratum_target): Remove the target op.
2994 (class process_target): Add the target op.
2995 (target_process_qsupported): Update the macro.
2996 * target.cc (process_target::process_qsupported): Define.
2997
2998 Update the derived classes and callers below.
2999
3000 * linux-low.cc (linux_target_ops): Update.
3001 (linux_process_qsupported): Turn into ...
3002 (linux_process_target::process_qsupported): ... this.
3003 * linux-low.h (class linux_process_target): Update.
3004 * lynx-low.cc (lynx_target_ops): Update.
3005 * nto-low.cc (nto_target_ops): Update.
3006 * win32-low.cc (win32_target_ops): Update.
3007
9da41fda
TBA
30082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009
3010 Turn process_stratum_target's read_loadmap op into a method of
3011 process_target.
3012
3013 * target.h (struct process_stratum_target): Remove the target op.
3014 (class process_target): Add the target op. Also add
3015 'supports_read_loadmap'.
3016 * target.cc (process_target::read_loadmap): Define.
3017 (process_target::supports_read_loadmap): Define.
3018
3019 Update the derived classes and callers below.
3020
3021 * server.cc (handle_qxfer_fdpic): Update.
3022 (handle_query): Update.
3023 * linux-low.cc (linux_target_ops): Update.
3024 (linux_process_target::supports_read_loadmap): Define.
3025 (linux_read_loadmap): Turn into ...
3026 (linux_process_target::read_loadmap): ... this.
3027 * linux-low.h (class linux_process_target): Update.
3028 * lynx-low.cc (lynx_target_ops): Update.
3029 * nto-low.cc (nto_target_ops): Update.
3030 * win32-low.cc (win32_target_ops): Update.
3031
95a45fc1
TBA
30322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3033
3034 Turn process_stratum_target's core_of_thread op into a method of
3035 process_target.
3036
3037 * target.h (struct process_stratum_target): Remove the target op.
3038 (class process_target): Add the target op.
3039 (target_core_of_thread): Update the macro.
3040 * target.cc (process_target::core_of_thread): Define.
3041
3042 Update the derived classes and callers below.
3043
3044 * linux-low.cc (linux_target_ops): Update.
3045 (linux_process_target::core_of_thread): Define.
3046 * linux-low.h (class linux_process_target): Update.
3047 * lynx-low.cc (lynx_target_ops): Update.
3048 * nto-low.cc (nto_target_ops): Update.
3049 * win32-low.cc (win32_target_ops): Update.
3050
55cf3021
TBA
30512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052
3053 Turn process_stratum_target's handle_monitor_command op into a
3054 method of process_target.
3055
3056 * target.h (struct process_stratum_target): Remove the target op.
3057 (class process_target): Add the target op.
3058 (target_handle_monitor_command): Update the macro.
3059 * target.cc (process_target::handle_monitor_command): Define.
3060
3061 Update the derived classes and callers below.
3062
3063 * server.cc (handle_query): Update.
3064 * linux-low.cc (linux_target_ops): Update.
3065 (linux_process_target::handle_monitor_command): Define.
3066 * linux-low.h (class linux_process_target): Update.
3067 * lynx-low.cc (lynx_target_ops): Update.
3068 * nto-low.cc (nto_target_ops): Update.
3069 * win32-low.cc (win32_target_ops): Update.
3070
fb00dfce
TBA
30712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3072
3073 Turn process_stratum_target's handle_new_gdb_connection op into a
3074 method of process_target.
3075
3076 * target.h (struct process_stratum_target): Remove the target op.
3077 (class process_target): Add the target op.
3078 (target_handle_new_gdb_connection): Update the macro.
3079 * target.cc (process_target::handle_new_gdb_connection): Define.
3080
3081 Update the derived classes and callers below.
3082
3083 * linux-low.cc (linux_target_ops): Update.
3084 (linux_handle_new_gdb_connection): Turn into ...
3085 (linux_process_target::handle_new_gdb_connection): ... this.
3086 * linux-low.h (class linux_process_target): Update.
3087 * lynx-low.cc (lynx_target_ops): Update.
3088 * nto-low.cc (nto_target_ops): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3090
9690a72a
TBA
30912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3092
3093 Turn process_stratum_target's supports_fork_events,
3094 supports_vfork_events, and supports_exec_events ops into methods
3095 of process_target.
3096
3097 * target.h (struct process_stratum_target): Remove the target ops.
3098 (class process_target): Add the target ops.
3099 (target_supports_fork_events): Update the macro.
3100 (target_supports_vfork_events): Update the macro.
3101 (target_supports_exec_events): Update the macro.
3102 * target.cc (process_target::supports_fork_events): Define.
3103 (process_target::supports_vfork_events): Define.
3104 (process_target::supports_exec_events): Define.
3105
3106 Update the derived classes and callers below.
3107
3108 * linux-low.cc (linux_target_ops): Update.
3109 (linux_supports_fork_events): Turn into ...
3110 (linux_process_target::supports_fork_events): ... this.
3111 (linux_supports_vfork_events): Turn into ...
3112 (linux_process_target::supports_vfork_events): ... this.
3113 (linux_supports_exec_events): Turn into ...
3114 (linux_process_target::supports_exec_events): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3119
652aef77
TBA
31202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 Turn process_stratum_target's supports_multi_process op into a
3123 method of process_target.
3124
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op.
3127 * target.cc (process_target::supports_multi_process): Define.
3128 (target_supports_multi_process): Update.
3129
3130 Update the derived classes and callers below.
3131
3132 * linux-low.cc (linux_target_ops): Update.
3133 (linux_supports_multi_process): Turn into ...
3134 (linux_process_target::supports_multi_process): ... this.
3135 * linux-low.h (class linux_process_target): Update.
3136 * lynx-low.cc (lynx_target_ops): Update.
3137 * nto-low.cc (nto_target_ops): Update.
3138 * win32-low.cc (win32_target_ops): Update.
3139
0dc587d4
TBA
31402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3141
3142 Turn process_stratum_target's supports_non_stop, async, and
3143 start_non_stop ops into methods of process_target.
3144
3145 * target.h (struct process_stratum_target): Remove the target ops.
3146 (class process_target): Add the target ops.
3147 (target_supports_non_stop): Update the macro.
3148 (target_async): Update the macro.
3149 (start_non_stop): Remove declaration.
3150 * target.cc (process_target::supports_non_stop): Define.
3151 (process_target::async): Define.
3152 (process_target::start_non_stop): Define.
3153 (start_non_stop): Remove.
3154
3155 Update the derived classes and callers below.
3156
3157 * server.cc (handle_qxfer_siginfo): Update.
3158 (handle_query): Update.
3159 * linux-low.cc (linux_target_ops): Update.
3160 (linux_supports_non_stop): Turn into ...
3161 (linux_process_target::supports_non_stop): ... this.
3162 (linux_async): Turn into ...
3163 (linux_process_target::async): ... this.
3164 (linux_start_non_stop): Turn into ...
3165 (linux_process_target::start_non_stop): ... this.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 (nto_supports_non_stop): Remove; rely on the default behavior
3170 instead.
3171 * win32-low.cc (win32_target_ops): Update.
3172
d7abedf7
TBA
31732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3174
3175 Turn process_stratum_target's qxfer_siginfo op into a method of
3176 process_target.
3177
3178 * target.h (struct process_stratum_target): Remove the target op.
3179 (class process_target): Add the target op. Also add
3180 'supports_qxfer_siginfo'.
3181 * target.cc (process_target::qxfer_siginfo): Define.
3182 (process_target::supports_qxfer_siginfo): Define.
3183
3184 Update the derived classes and callers below.
3185
3186 * server.cc (handle_qxfer_siginfo): Update.
3187 (handle_query): Update.
3188 * linux-low.cc (linux_target_ops): Update.
3189 (linux_process_target::supports_qxfer_siginfo): Define.
3190 (linux_xfer_siginfo): Turn into ...
3191 (linux_process_target::qxfer_siginfo): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3196
2d0795ee
TBA
31972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3198
3199 Turn process_stratum_target's qxfer_osdata op into a method of
3200 process_target.
3201
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op. Also add
3204 'supports_qxfer_osdata'.
3205 * target.cc (process_target::qxfer_osdata): Define.
3206 (process_target::supports_qxfer_osdata): Define.
3207
3208 Update the derived classes and callers below.
3209
3210 * server.cc (handle_qxfer_osdata): Update.
3211 (handle_query): Update.
3212 * linux-low.cc (linux_target_ops): Update.
3213 (linux_process_target::supports_qxfer_osdata): Define.
3214 (linux_qxfer_osdata): Turn into ...
3215 (linux_process_target::qxfer_osdata): ... this.
3216 * linux-low.h (class linux_process_target): Update.
3217 * lynx-low.cc (lynx_target_ops): Update.
3218 * nto-low.cc (nto_target_ops): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3220
ea06bbaa
TBA
32212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222
3223 Turn process_stratum_target's hostio_last_error op into a
3224 method of process_target.
3225
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op.
3228 * target.cc: Add "hostio.h" to includes.
3229 (process_target::hostio_last_error): Define.
3230
3231 Update the derived classes and callers below.
3232
3233 * hostio.cc (hostio_error): Update.
3234 * linux-low.cc: Remove "hostio.h" from includes.
3235 (linux_target_ops): Update.
3236 * lynx-low.cc (lynx_target_ops): Update.
3237 * nto-low.cc (nto_target_ops): Update.
3238 * win32-low.h (class win32_process_target): Update.
3239 * win32-low.cc (win32_target_ops): Update.
3240 (wince_hostio_last_error): Turn into ...
3241 (win32_process_target::hostio_last_error): ... this.
3242
6e3fd7e9
TBA
32432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244
3245 Turn process_stratum_target's get_tls_address op into a method of
3246 process_target.
3247
3248 * target.h (struct process_stratum_target): Remove the target op.
3249 (class process_target): Add the target op. Also add
3250 'supports_get_tls_address'.
3251 * target.cc (process_target::get_tls_address): Define.
3252 (process_target::supports_get_tls_address): Define.
3253
3254 Update the derived classes and callers below.
3255
3256 * server.cc (handle_query): Update.
3257 * linux-low.cc (linux_target_ops): Update.
3258 (linux_process_target::supports_get_tls_address): Define.
3259 (linux_process_target::get_tls_address): Define.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3264
5203ae1e
TBA
32652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3266
3267 Turn process_stratum_target's read_offsets op into a method of
3268 process_target.
3269
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op. Also add
3272 'supports_read_offsets'.
3273 * target.cc (process_target::read_offsets): Define.
3274 (process_target::supports_read_offsets): Define.
3275
3276 Update the derived classes and callers below.
3277
3278 * server.cc (handle_query): Update.
3279 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3280 (linux_target_ops): Update.
3281 (linux_process_target::supports_read_offsets): Define.
3282 (linux_read_offsets): Turn into ...
3283 (linux_process_target::read_offsets): ... 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 * win32-low.cc (win32_target_ops): Update.
3288
6eeb5c55
TBA
32892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3290
3291 Turn process_stratum_target's stopped_by_watchpoint and
3292 stopped_data_address ops into methods of process_target.
3293
3294 * target.h (struct process_stratum_target): Remove the target ops.
3295 (class process_target): Add the target ops.
3296 * target.cc (process_target::stopped_by_watchpoint): Define.
3297 (process_target::stopped_data_address): Define.
3298
3299 Update the derived classes and callers below.
3300
3301 * remote-utils.cc (prepare_resume_reply): Update.
3302 * linux-low.cc (linux_target_ops): Update.
3303 (linux_stopped_by_watchpoint): Turn into ...
3304 (linux_process_target::stopped_by_watchpoint): ... this.
3305 (linux_stopped_data_address): Turn into ...
3306 (linux_process_target::stopped_data_address): ... this.
3307 * linux-low.h (class linux_process_target): Update.
3308 * lynx-low.cc (lynx_target_ops): Update.
3309 * nto-low.cc (nto_target_ops): Update.
3310 (nto_stopped_by_watchpoint): Turn into ...
3311 (nto_process_target::stopped_by_watchpoint): ... this.
3312 (nto_stopped_data_address): Turn into ...
3313 (nto_process_target::stopped_data_address): ... this.
3314 * nto-low.h (class nto_process_target): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3316 (win32_stopped_by_watchpoint): Turn into ...
3317 (win32_process_target::stopped_by_watchpoint): ... this.
3318 (win32_stopped_data_address): Turn into ...
3319 (win32_process_target::stopped_data_address): ... this.
3320 * win32-low.h (class win32_process_target): Update.
3321
22aa6223
TBA
33222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323
3324 Turn process_stratum_target's supports_hardware_single_step op into
3325 a method of process_target.
3326
3327 * target.h (struct process_stratum_target): Remove the target op.
3328 (class process_target): Add the target op.
3329 (target_supports_hardware_single_step): Update the macro.
3330 (target_can_do_hardware_single_step): Remove declaration.
3331 * target.cc (process_target::supports_hardware_single_step): Define.
3332 (target_can_do_hardware_single_step): Remove.
3333
3334 Update the derived classes and callers below.
3335
3336 * linux-low.h (class linux_process_target): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_supports_hardware_single_step): Turn into ...
3339 (linux_process_target::supports_hardware_single_step): ... this.
3340 * lynx-low.h (class lynx_process_target): Update.
3341 * lynx-low.cc (lynx_target_ops): Update.
3342 (lynx_process_target::supports_hardware_single_step): Define.
3343 * nto-low.h (class nto_process_target): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 (nto_process_target::supports_hardware_single_step): Define.
3346 * win32-low.h (class win32_process_target): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3348 (win32_process_target::supports_hardware_single_step): Define.
3349
93fe88b2
TBA
33502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3351
3352 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3353 ops into methods of process_target.
3354
3355 * target.h (struct process_stratum_target): Remove the target ops.
3356 (class process_target): Add the target ops.
3357 (target_stopped_by_hw_breakpoint): Update the macro.
3358 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3359 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3360 (process_target::supports_stopped_by_hw_breakpoint): Define.
3361
3362 Update the derived classes and callers below.
3363
3364 * linux-low.cc (linux_target_ops): Update.
3365 (linux_stopped_by_hw_breakpoint): Turn into ...
3366 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3367 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3368 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3373
84320c4e
TBA
33742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3375
3376 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3377 ops into methods of process_target.
3378
3379 * target.h (struct process_stratum_target): Remove the target ops.
3380 (class process_target): Add the target ops.
3381 (target_stopped_by_sw_breakpoint): Update the macro.
3382 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3383 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3384 (process_target::supports_stopped_by_sw_breakpoint): Define.
3385
3386 Update the derived classes and callers below.
3387
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_stopped_by_sw_breakpoint): Turn into ...
3390 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3391 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3392 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3393 * linux-low.h (class linux_process_target): Update.
3394 * lynx-low.cc (lynx_target_ops): Update.
3395 * nto-low.cc (nto_target_ops): Update.
3396 * win32-low.cc (win32_target_ops): Update.
3397
7e0bde70
TBA
33982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3399
3400 Turn process_stratum_target's insert_point and remove_point ops
3401 into methods of process_target.
3402
3403 * target.h (struct process_stratum_target): Remove the target ops.
3404 (class process_target): Add the target ops.
3405 * target.cc (process_target::insert_point): Define.
3406 (process_target::remove_point): Define.
3407
3408 Update the derived classes and callers below.
3409
3410 * mem-break.cc (set_raw_breakpoint_at): Update.
3411 (delete_raw_breakpoint): Update.
3412 (uninsert_raw_breakpoint): Update.
3413 (reinsert_raw_breakpoint): Update.
3414 * linux-low.cc (linux_target_ops): Update.
3415 (linux_insert_point): Turn into ...
3416 (linux_process_target::insert_point): ... this.
3417 (linux_remove_point): Turn into ...
3418 (linux_process_target::remove_point): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 (nto_insert_point): Turn into ...
3423 (nto_process_target::insert_point): ... this.
3424 (nto_remove_point): Turn into ...
3425 (nto_process_target::remove_point): ... this.
3426 * nto-low.h (class nto_process_target): Update.
3427 * win32-low.cc (win32_target_ops): Update.
3428 (win32_insert_point): Turn into ...
3429 (win32_process_target::insert_point): ... this.
3430 (win32_remove_point): Turn into ...
3431 (win32_process_target::remove_point): ... this.
3432 * win32-low.h (class win32_process_target): Update.
3433
a2b2297a
TBA
34342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435
3436 Turn process_stratum_target's supports_z_point_type op into a
3437 method of process_target.
3438
3439 * target.h (struct process_stratum_target): Remove the target op.
3440 (class process_target): Add the target op.
3441 * target.cc (process_target::supports_z_point_type): Define.
3442
3443 Update the derived classes and callers below.
3444
3445 * mem-break.cc (z_type_supported): Update.
3446 * linux-low.cc (linux_target_ops): Update.
3447 (linux_supports_z_point_type): Turn into ...
3448 (linux_process_target::supports_z_point_type): ... this.
3449 * linux-low.h (class linux_process_target): Update.
3450 * lynx-low.cc (lynx_target_ops): Update.
3451 * nto-low.cc (nto_target_ops): Update.
3452 (nto_supports_z_point_type): Turn into ...
3453 (nto_process_target::supports_z_point_type): ... this.
3454 * nto-low.h (class nto_process_target): Update.
3455 * win32-low.cc (win32_target_ops): Update.
3456 (win32_supports_z_point_type): Turn into ...
3457 (win32_process_target::supports_z_point_type): ... this.
3458 * win32-low.h (class win32_process_target): Update.
3459
eac215cc
TBA
34602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3461
3462 Turn process_stratum_target's read_auxv op into a method of
3463 process_target.
3464
3465 * target.h (class process_stratum_target): Remove the target op.
3466 (struct process_target): Add the target op. Also add
3467 'supports_read_auxv'.
3468 * target.cc (process_target::read_auxv): Define.
3469 (process_target::supports_read_auxv): Define.
3470
3471 Update the derived classes and callers below.
3472
3473 * server.cc (handle_qxfer_auxv): Update.
3474 (handle_query): Update.
3475 * linux-low.cc (linux_target_ops): Update.
3476 (linux_process_target::supports_read_auxv): Define.
3477 (linux_read_auxv): Turn into ...
3478 (linux_process_target::read_auxv): ... this.
3479 * linux-low.h (class linux_process_target): Update.
3480 * lynx-low.cc (lynx_target_ops): Update.
3481 * nto-low.cc (nto_target_ops): Update.
3482 (nto_process_target::supports_read_auxv): Define.
3483 (nto_read_auxv): Turn into ...
3484 (nto_process_target::read_auxv): ... this.
3485 * nto-low.h (class nto_process_target): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3487
eb497a2a
TBA
34882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3489
3490 Turn process_stratum_target's request_interrupt op into a method of
3491 process_target.
3492
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op.
3495
3496 Update the derived classes and callers below.
3497
3498 * remote-utils.cc (putpkt_binary_1): Update.
3499 (input_interrupt): Update.
3500 (getpkt): Update.
3501 * server.cc (handle_v_requests): Update.
3502 * linux-low.cc (linux_target_ops): Update.
3503 (linux_request_interrupt): Turn into ...
3504 (linux_process_target::request_interrupt): ... this.
3505 * linux-low.h (class linux_process_target): Update.
3506 * lynx-low.cc (lynx_target_ops): Update.
3507 (lynx_request_interrupt): Turn into ...
3508 (lynx_process_target::request_interrupt): ... this.
3509 * lynx-low.h (class lynx_process_target): Update.
3510 * nto-low.cc (nto_target_ops): Update.
3511 (nto_request_interrupt): Turn into ...
3512 (nto_process_target::request_interrupt): ... this.
3513 * nto-low.h (class nto_process_target): Update.
3514 * win32-low.cc (win32_target_ops): Update.
3515 (win32_request_interrupt): Turn into ...
3516 (win32_process_target::request_interrupt): ... this.
3517 * win32-low.h (class win32_process_target): Update.
3518
2a31c7aa
TBA
35192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3520
3521 Turn process_stratum_target's look_up_symbols op into a method of
3522 process_target.
3523
3524 * target.h (struct process_stratum_target): Remove the target op.
3525 (class process_target): Add the target op.
3526 * target.cc (process_target::look_up_symbols): Define.
3527
3528 Update the derived classes and callers below.
3529
3530 * server.cc (handle_query): Update.
3531 * linux-low.cc (linux_target_ops): Update.
3532 (linux_look_up_symbols): Turn into ...
3533 (linux_process_target::look_up_symbols): ... this.
3534 * linux-low.h (class linux_process_target): Update.
3535 * lynx-low.cc (lynx_target_ops): Update.
3536 * nto-low.cc (nto_target_ops): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3538
e2558df3
TBA
35392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3540
3541 Turn process_stratum_target's read_memory and write_memory
3542 ops into methods of process_target.
3543
3544 * target.h (struct process_stratum_target): Remove the target ops.
3545 (class process_target): Add the target ops.
3546
3547 Update the derived classes and callers below.
3548
3549 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3550 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3551 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3552 (arm_get_syscall_trapinfo): Update.
3553 * linux-cris-low.cc (cris_breakpoint_at): Update.
3554 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3555 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3556 * linux-mips-low.cc (mips_breakpoint_at): Update.
3557 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3558 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3559 * linux-sh-low.cc (sh_breakpoint_at): Update.
3560 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3561 (sparc_store_gregset_from_stack): Update.
3562 (sparc_breakpoint_at): Update.
3563 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3564 * linux-tile-low.cc (tile_breakpoint_at): Update.
3565 * linux-x86-low.cc (x86_breakpoint_at): Update.
3566 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3567 * mem-brea.cc (insert_memory_breakpoint): Update.
3568 (validate_inserted_breakpoint): Update.
3569 * target.cc (read_inferior_memory): Update.
3570 (target_write_memory): Update.
3571 * linux-low.cc (linux_target_ops): Update.
3572 (linux_read_memory): Make a wrapper around the read_memory target
3573 op call.
3574 (linux_process_target::read_memory): Rename from linux_read_memory.
3575 (linux_write_memory): Turn into ...
3576 (linux_process_target::write_memory): ... this.
3577 * linux-low.h (class linux_process_target): Update.
3578 * lynx-low.cc (lynx_target_ops): Update.
3579 (lynx_read_memory): Turn into ...
3580 (lynx_process_target::read_memory): ... this.
3581 (lynx_write_memory): Turn into ...
3582 (lynx_process_target::write_memory): ... this.
3583 * lynx-low.h (class lynx_process_target): Update.
3584 * nto-low.cc (nto_target_ops): Update.
3585 (nto_read_memory): Turn into ...
3586 (nto_process_target::read_memory): ... this.
3587 (nto_write_memory): Turn into ...
3588 (nto_process_target::write_memory): ... this.
3589 * nto-low.h (class nto_process_target): Update.
3590 * win32-low.cc (win32_target_ops): Update.
3591 (win32_read_inferior_memory): Turn into ...
3592 (win32_process_target::read_memory): ... this.
3593 (win32_write_inferior_memory): Turn into ...
3594 (win32_process_target::write_memory): ... this.
3595 * win32-low.h (class win32_process_target): Update.
3596
79b44087
TBA
35972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3598
3599 Turn process_stratum_target's prepare_to_access_memory and
3600 done_accessing_memory ops into methods of process_target.
3601
3602 * target.h (struct process_stratum_target): Remove the target ops.
3603 (class process_target): Add the target ops.
3604 * target.cc (process_target::prepare_to_access_memory): Define.
3605 (process_target::done_accessing_memory): Define.
3606 (prepare_to_access_memory): Update.
3607 (done_accessing_memory): Update.
3608
3609 Update the derived classes and callers below.
3610
3611 * linux-low.cc (linux_target_ops): Update.
3612 (linux_prepare_to_access_memory): Turn into ...
3613 (linux_process_target::prepare_to_access_memory): ... this.
3614 (linux_done_accessing_memory): Turn into ...
3615 (linux_process_target::done_accessing_memory): ... this.
3616 * linux-low.h (class linux_process_target): Update.
3617 * lynx-low.cc (lynx_target_ops): Update.
3618 * nto-low.cc (nto_target_ops): Update.
3619 * win32-low.cc (win32_target_ops): Update.
3620
a5a4d4cd
TBA
36212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622
3623 Turn process_stratum_target's fetch_registers and store_registers
3624 ops into methods of process_target.
3625
3626 * target.h (struct process_stratum_target): Remove the target ops.
3627 (class process_target): Add the target ops.
3628 (fetch_inferior_registers): Update the macro.
3629 (store_inferior_registers): Update the macro.
3630
3631 Update the derived classes and callers below.
3632
3633 * linux-low.cc (linux_target_ops): Update.
3634 (linux_fetch_registers): Turn into ...
3635 (linux_process_target::fetch_registers): ... this.
3636 (linux_store_registers): Turn into ...
3637 (linux_process_target::store_registers): ... this.
3638 * linux-low.h (class linux_process_target): Update.
3639 * lynx-low.cc (lynx_target_ops): Update.
3640 (lynx_fetch_registers): Turn into ...
3641 (lynx_process_target::fetch_registers): ... this.
3642 (lynx_store_registers): Turn into ...
3643 (lynx_process_target::store_registers): ... this.
3644 * lynx-low.h (class lynx_process_target): Update.
3645 * nto-low.cc (nto_target_ops): Update.
3646 (nto_fetch_registers): Turn into ...
3647 (nto_process_target::fetch_registers): ... this.
3648 (nto_store_registers): Turn into ...
3649 (nto_process_target::store_registers): ... this.
3650 * nto-low.h (class nto_process_target): Update.
3651 * win32-low.cc (win32_target_ops): Update.
3652 (win32_fetch_inferior_registers): Turn into ...
3653 (win32_process_target::fetch_registers): ... this.
3654 (win32_store_inferior_registers): Turn into ...
3655 (win32_process_target::store_registers): ... this.
3656 * win32-low.h (class win32_process_target): Update.
3657
6532e7e3
TBA
36582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3659
3660 Turn process_stratum_target's wait op into a method of
3661 process_target.
3662
3663 * target.h (struct process_stratum_target): Remove the target op.
3664 (class process_target): Add the target op.
3665
3666 Update the derived classes and callers below.
3667
3668 * target.cc (target_wait): Update.
3669 * linux-low.cc (linux_target_ops): Update.
3670 (linux_wait): Turn into ...
3671 (linux_process_target::wait): ... this.
3672 * linux-low.h (class linux_process_target): Update.
3673 * lynx-low.cc (lynx_target_ops): Update.
3674 (lynx_wait): Turn into ...
3675 (lynx_process_target::wait): ... this.
3676 * lynx-low.h (class lynx_process_target): Update.
3677 * nto-low.cc (nto_target_ops): Update.
3678 (nto_wait): Turn into ...
3679 (nto_process_target::wait): ... this.
3680 * nto-low.h (class nto_process_target): Update.
3681 * win32-low.cc (win32_target_ops): Update.
3682 (win32_wait): Turn into ...
3683 (win32_process_target::wait): ... this.
3684 (do_initial_child_stuff): Update.
3685 * win32-low.h (class win32_process_target): Update.
3686
0e4d7e35
TBA
36872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3688
3689 Turn process_stratum_target's resume op into a method of
3690 process_target.
3691
3692 * target.h (struct process_stratum_target): Remove the target op.
3693 (class process_target): Add the target op.
3694
3695 Update the derived classes and callers below.
3696
3697 * server.cc (resume): Update.
3698 * target.cc (target_stop_and_wait): Update.
3699 (target_continue_no_signal): Update.
3700 (target_continue): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_resume): Turn into ...
3703 (linux_process_target::resume): ... this.
3704 * linux-low.h (class linux_process_target): Update.
3705 * lynx-low.cc (lynx_target_ops): Update.
3706 (lynx_resume): Turn into ...
3707 (lynx_process_target::resume): ... this.
3708 * lynx-low.h (class lynx_process_target): Update.
3709 * nto-low.cc (nto_target_ops): Update.
3710 (nto_resume): Turn into ...
3711 (nto_process_target::resume): ... this.
3712 * nto-low.h (class nto_process_target): Update.
3713 * win32-low.cc (win32_target_ops): Update.
3714 (win32_resume): Turn into ...
3715 (win32_process_target::resume): ... this.
3716 (win32_process_target::detach): Update.
3717 (do_initial_child_stuff): Update.
3718 * win32-low.h (class win32_process_target): Update.
3719
13d3d99b
TBA
37202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3721
3722 Turn process_stratum_target's thread_alive op into a method of
3723 process_target.
3724
3725 * target.h (struct process_stratum_target): Remove the target op.
3726 (class process_target): Add the target op.
3727 (mythread_alive): Update the macro.
3728
3729 Update the derived classes and callers below.
3730
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_thread_alive): Turn into ...
3733 (linux_process_target::thread_alive): ... this.
3734 (wait_for_sigstop): Update.
3735 * linux-low.h (class linux_process_target): Update.
3736 * lynx-low.cc (lynx_target_ops): Update.
3737 (lynx_thread_alive): Turn into ...
3738 (lynx_process_target::thread_alive): ... this.
3739 * lynx-low.h (class lynx_process_target): Update.
3740 * nto-low.cc (nto_target_ops): Update.
3741 (nto_thread_alive): Turn into ...
3742 (nto_process_target::thread_alive): ... this.
3743 * nto-low.h (class nto_process_target): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745 (win32_thread_alive): Turn into ...
3746 (win32_process_target::thread_alive): ... this.
3747 * win32-low.h (class win32_process_target): Update.
3748
95a49a39
TBA
37492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3750
3751 Turn process_stratum_target's join op into a method of
3752 process_target.
3753
3754 * target.h (struct process_stratum_target): Remove the target op.
3755 (class process_target): Add the target op.
3756 (join_inferior): Update the macro.
3757
3758 Update the derived classes and callers below.
3759
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_join): Turn into ...
3762 (linux_process_target::join): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 (lynx_join): Turn into ...
3766 (lynx_process_target::join): ... this.
3767 * lynx-low.h (class lynx_process_target): Update.
3768 * nto-low.cc (nto_target_ops): Update.
3769 (nto_process_target::join): Define.
3770 * nto-low.h (class nto_process_target): Update.
3771 * win32-low.cc (win32_target_ops): Update.
3772 (win32_join): Turn into ...
3773 (win32_process_target::join): ... this.
3774 * win32-low.h (class win32_process_target): Update.
3775
8adb37b9
TBA
37762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777
3778 Turn process_stratum_target's mourn op into a method of
3779 process_target.
3780
3781 * target.h (struct process_stratum_target): Remove the target op.
3782 (class process_target): Add the target op.
3783
3784 Update the derived classes and callers below.
3785
3786 * target.cc (target_mourn_inferior): Update.
3787 * linux-low.cc (linux_target_ops): Update.
3788 (linux_mourn): Turn into ...
3789 (linux_process_target::mourn): ... this.
3790 (handle_extended_wait): Update.
3791 (linux_process_target::kill): Update.
3792 (linux_process_target::detach): Update.
3793 * linux-low.h (class linux_process_target): Update.
3794 * lynx-low.cc (lynx_target_ops): Update.
3795 (lynx_mourn): Turn into ...
3796 (lynx_process_target::mourn): ... this.
3797 * lynx-low.h (class lynx_process_target): Update.
3798 * nto-low.cc (nto_target_ops): Update.
3799 (nto_mourn): Turn into ...
3800 (nto_process_target::mourn): ... this.
3801 * nto-low.h (class nto_process_target): Update.
3802 * win32-low.cc (win32_target_ops): Update.
3803 (win32_mourn): Turn into ...
3804 (win32_process_target::mourn): ... this.
3805 * win32-low.h (class win32_process_target): Update.
3806
9061c9cf
TBA
38072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3808
3809 Turn process_stratum_target's detach op into a method of
3810 process_target.
3811
3812 * target.h (struct process_stratum_target): Remove the target op.
3813 (class process_target): Add the target op.
3814 (detach_inferior): Update the macro.
3815
3816 Update the derived classes and callers below.
3817
3818 * linux-low.cc (linux_target_ops): Update.
3819 (linux_detach): Turn into ...
3820 (linux_process_target::detach): ... this.
3821 * linux-low.h (class linux_process_target): Update.
3822 * lynx-low.cc (lynx_target_ops): Update.
3823 (lynx_detach): Turn into ...
3824 (lynx_process_target::detach): ... this.
3825 * lynx-low.h (class lynx_process_target): Update.
3826 * nto-low.cc (nto_target_ops): Update.
3827 (nto_detach): Turn into ...
3828 (nto_process_target::detach): ... this.
3829 * nto-low.h (class nto_process_target): Update.
3830 * win32-low.cc (win32_target_ops): Update.
3831 (win32_detach): Turn into ...
3832 (win32_process_target::detach): ... this.
3833 * win32-low.h (class win32_process_target): Update.
3834
c6885a57
TBA
38352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3836
3837 Turn process_stratum_target's kill op into a method of
3838 process_target.
3839
3840 * target.h (struct process_stratum_target): Remove the target op.
3841 (class process_target): Add the target op.
3842
3843 Update the derived classes and callers below.
3844
3845 * target.cc (kill_inferior): Update.
3846 * linux-low.cc (linux_target_ops): Update.
3847 (linux_kill): Turn into ...
3848 (linux_process_target::kill): ... this.
3849 * linux-low.h (class linux_process_target): Update.
3850 * lynx-low.cc (lynx_target_ops): Update.
3851 (lynx_kill): Turn into ...
3852 (lynx_process_target::kill): ... this.
3853 * lynx-low.h (class lynx_process_target): Update.
3854 * nto-low.cc (nto_target_ops): Update.
3855 (nto_kill): Turn into ...
3856 (nto_process_target::kill): ... this.
3857 * nto-low.h (class nto_process_target): Update.
3858 * win32-low.cc (win32_target_ops): Update.
3859 (win32_kill): Turn into ...
3860 (win32_process_target::kill): ... this.
3861 * win32-low.h (class win32_process_target): Update.
3862
ef03dad8
TBA
38632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864
3865 Turn process_stratum_target's attach op into a method of
3866 process_target.
3867
3868 * target.h (struct process_stratum_target): Remove the target op.
3869 (class process_target): Add the target op.
3870 (myattach): Update the macro.
3871
3872 Update the derived classes and callers below.
3873
3874 * linux-low.cc (linux_target_ops): Update.
3875 (linux_attach): Turn into ...
3876 (linux_process_target::attach): ... this.
3877 * linux-low.h (class linux_process_target): Update.
3878 * lynx-low.cc (lynx_target_ops): Update.
3879 (lynx_attach): Turn into ...
3880 (lynx_process_target::attach): ... this.
3881 * lynx-low.h (class lynx_process_target): Update.
3882 * nto-low.cc (nto_target_ops): Update.
3883 (nto_attach): Turn into ...
3884 (nto_process_target::attach): ... this.
3885 * nto-low.h (class nto_process_target): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3887 (win32_attach): Turn into ...
3888 (win32_process_target::attach): ... this.
3889 * win32-low.h (class win32_process_target): Update.
3890
6dee9afb
TBA
38912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3892
3893 Turn process_stratum_target's post_create_inferior op into a method
3894 of process_target.
3895
3896 * target.h (struct process_stratum_target): Remove the target op.
3897 (class process_target): Add the target op.
3898 (target_post_create_inferior): Update the macro.
3899 * target.cc (process_target::post_create_inferior): Define.
3900
3901 Update the derived classes and callers below.
3902
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_post_create_inferior): Turn into ...
3905 (linux_process_target::post_create_inferior): ... this.
3906 * linux-low.h (class linux_process_target): Update.
3907 * lynx-low.cc (lynx_target_ops): Update.
3908 * nto-low.cc (nto_target_ops): Update.
3909 * win32-low.cc (win32_target_ops): Update.
3910
15295543
TBA
39112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3912
3913 Turn process_stratum_target's create_inferior op into a method of
3914 process_target.
3915
3916 * target.h (struct process_stratum_target): Remove the target op.
3917 (class process_target): Add the target op.
3918 (create_inferior): Rename the macro to ...
3919 (target_create_inferior): ... this.
3920
3921 Update the derived classes and callers below.
3922
3923 * server.cc (handle_v_run): Update.
3924 (captured_main): Update.
3925 (process_serial_event): Update.
3926 * linux-low.cc (linux_target_ops): Update.
3927 (linux_create_inferior): Turn into ...
3928 (linux_process_target::create_inferior): ... this.
3929 * linux-low.h (class linux_process_target): Update.
3930 * lynx-low.cc (lynx_target_ops): Update.
3931 (lynx_create_inferior): Turn into ...
3932 (lynx_process_target::create_inferior): ... this.
3933 * lynx-low.h (class lynx_process_target): Update.
3934 * nto-low.cc (nto_target_ops): Update.
3935 (nto_create_inferior): Turn into ...
3936 (nto_process_target::create_inferior): ... this.
3937 * nto-low.h (class nto_process_target): Update.
3938 * win32-low.cc (win32_target_ops): Update.
3939 (win32_create_inferior): Turn into ...
3940 (win32_process_target::create_inferior): ... this.
3941 * win32-low.h (class win32_process_target): Update.
3942
5ef9273d
TBA
39432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3944
3945 * target.h (class process_target): New class definition.
3946 (struct process_stratum_target) <pt>: New field with type
3947 'process_target*'.
3948 * linux-low.h (class linux_process_target): Define as a derived
3949 class of 'process_target'.
3950 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3951 as the 'pt' field.
3952 * lynx-low.h (class lynx_process_target): Define as a derived
3953 class of 'process_target'.
3954 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3955 as the 'pt' field.
3956 * nto-low.h (class nto_process_target): Define as a derived
3957 class of 'process_target'.
3958 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3959 as the 'pt' field.
3960 * win32-low.h (class win32_process_target): Define as a derived
3961 class of 'process_target'.
3962 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3963 as the 'pt' field.
3964
9f1528a1
AB
39652020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3966
3967 * configure: Regenerate.
3968
bf84f706
MR
39692020-02-19 Maciej W. Rozycki <macro@wdc.com>
3970 Andrew Burgess <andrew.burgess@embecosm.com>
3971
3972 * linux-riscv-low.cc: New file.
3973 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3974 and nat/riscv-linux-tdesc.c.
3975 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3976 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3977 Define.
3978
1a627e7e
TT
39792020-02-14 Tom Tromey <tom@tromey.com>
3980
3981 * acinclude.m4: Don't include acx_configure_dir.m4.
3982 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3983 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3984 (all, install-only, uninstall, clean-info, clean)
3985 (maintainer-clean): Don't recurse.
3986 (subdir_do, all-lib): Remove.
3987 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3988 (GNULIB_H): Remove.
3989 (generated_files): Update.
3990 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3991 * configure: Rebuild.
3992 * configure.ac: Don't configure gnulib or libiberty.
3993 (GNULIB): Update.
3994
a9b34532
EZ
39952020-02-14 Eli Zaretskii <eliz@gnu.org>
3996
3997 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3998 preparing the command line for CreateProcess.
3999 (win32_create_inferior): Reflect the program name in debugging
4000 output that shows the process and its command line.
4001
feacfcac
SM
40022020-02-13 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * Makefile.in: Rename source files from .c to .cc.
4005 * %.c: Rename to %.cc.
4006 * configure.ac: Rename server.c to server.cc.
4007 * configure: Re-generate.
4008
06b3c5bd
SM
40092020-02-13 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4012
052793ad
HD
40132020-02-12 Hannes Domani <ssbssa@yahoo.de>
4014
4015 * win32-low.c (win32_create_inferior): Set signal_pid.
4016
f20e3e82
MR
40172020-02-12 Maciej W. Rozycki <macro@wdc.com>
4018 Pedro Alves <palves@redhat.com>
4019
4020 Skip building gdbserver in a cross-configuration.
4021 * configure.srv: Set $gdbserver_host depending on whether $target
4022 is $host. Use $gdbserver_host instead of $host.
4023
8ddd8e0e
SM
40242020-02-11 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * configure: Re-generate.
4027
898e7f60
SM
40282020-02-11 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * configure: Re-generate.
4031
58df732b
SM
40322020-02-11 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * acinclude.m4: Update warning.m4 path.
4035
7928d571
HD
40362020-02-09 Hannes Domani <ssbssa@yahoo.de>
4037
4038 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4039 (handle_exception): Set siginfo_er.
4040 (win32_xfer_siginfo): New function.
4041
919adfe8
TT
40422020-02-07 Tom Tromey <tom@tromey.com>
4043 Pedro Alves <palves@redhat.com>
4044
4045 * README: Update build documentation.
4046 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4047 host, not target.
4048 * configure.ac: Update paths.
4049 * configure: Rebuild.
4050 * acinclude.m4: Update paths.
4051 * Makefile.in: Update include paths.
4052 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4053 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4054 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4055 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4056 (%-generated.c): Update paths.
4057 * Move entire directory from ../gdb/gdbserver.
4058
287c844a
MR
40592020-01-29 Maciej W. Rozycki <macro@wdc.com>
4060
4061 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4062
548a204f
PFC
40632020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4064
4065 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4066 assignment instead of srv_linux_obj.
4067
a2236a08
HD
40682020-01-28 Hannes Domani <ssbssa@yahoo.de>
4069
4070 * server.c (handle_qxfer_libraries): Write segment-address with
4071 paddress.
4072
bdaed379
HD
40732020-01-24 Hannes Domani <ssbssa@yahoo.de>
4074
4075 * Makefile.in (install-strip): New target.
4076 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4077 * aclocal.m4: Regenerate.
4078 * configure: Regenerate.
4079 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4080
42cd72aa
MR
40812020-01-24 Maciej W. Rozycki <macro@wdc.com>
4082
4083 * Makefile.in (SFILES): Adjust paths to point to real files.
4084 (OBS): Move waitstatus.o to target/waitstatus.o.
4085 (TAGS): Transform paths appropriately.
4086 (%.o): Rename to...
4087 (nat/%.o): ... this pattern rule.
4088 (%.o): Rename to...
4089 (target/%.o): ... this pattern rule.
4090 * configure.srv: Adjust paths throughout to include nat/ prefix
4091 with the revant files.
4092 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4093 * configure: Regenerate.
4094
42ba50ec
MR
40952020-01-24 Maciej W. Rozycki <macro@wdc.com>
4096
4097 * Makefile.in (TAGS): Remove config files from the recipe.
4098
05ea2a05
TT
40992020-01-14 Tom Tromey <tom@tromey.com>
4100
4101 * configure: Rebuild.
4102 * configure.ac: Remove any checks that were added to common.m4.
4103 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4104 lib-link.m4.
4105
01027315
TT
41062020-01-14 Tom Tromey <tom@tromey.com>
4107
4108 * server.h: Include config.h.
4109 * gdbreplay.c: Include config.h.
4110 * configure: Rebuild.
4111 * configure.ac: Don't source common.host.
4112 * acinclude.m4: Update path.
4113 * Makefile.in (INCSUPPORT): New variable.
4114 (INCLUDE_CFLAGS): Add INCSUPPORT.
4115 (SFILES): Update paths.
4116 (version-generated.c): Update path to create-version.sh.
4117 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4118
b2ceabe8
TT
41192020-01-14 Tom Tromey <tom@tromey.com>
4120
4121 * configure.ac (LIBS): Use WIN32APILIBS.
4122 (USE_WIN32API): Don't define.
4123 * configure: Rebuild.
4124
25c51f71
TT
41252020-01-14 Tom Tromey <tom@tromey.com>
4126
4127 * configure: Rebuild.
4128
c0bd321d
SM
41292020-01-13 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * Makefile.in (%-generated.c): Remove rule for files from
4132 regformats/i386.
4133
bb564c58
SM
41342020-01-13 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * configure: Re-generate.
4137
6e37c371
SM
41382020-01-13 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4141 Define to static.
4142 * tracepoint.c (stop_tracing, flush_trace_buffer,
4143 about_to_request_buffer_space, get_trace_state_variable_value,
4144 set_trace_state_variable_value, gdb_collect): Add declaration.
4145
df4a0200
SM
41462020-01-13 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4149 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4150 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4151 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4152 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4153 static.
4154
89e94ec9
SM
41552020-01-13 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * inferiors.c: Include gdbsupport/common-inferior.h.
4158
2552728a
SM
41592020-01-13 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * hostio-errno.c: Include hostio.h.
4162
4025fa09
SM
41632020-01-13 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4166 prerequisite.
4167
c0b0a142
SM
41682020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4169
4170 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4171 * linux-arm-tdesc.h: Include arch/arm.h.
4172
bb1183e2
SM
41732020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4176
f5df0b5f
SM
41772020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4180 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4181
5b6d1e4f
PA
41822020-01-10 Pedro Alves <palves@redhat.com>
4183
4184 * fork-child.c (post_fork_inferior): Pass target down to
4185 startup_inferior.
4186 * inferiors.c (switch_to_thread): Add process_stratum_target
4187 parameter.
4188 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4189 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4190 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4191 * remote-utils.c (prepare_resume_reply): Pass the target to
4192 switch_to_thread.
4193 * target.c (the_target): Now a process_stratum_target.
4194 (done_accessing_memory): Pass the target to switch_to_thread.
4195 (set_target_ops): Ajust to use process_stratum_target.
4196 * target.h (struct target_ops): Rename to ...
4197 (struct process_stratum_target): ... this.
4198 (the_target, set_target_ops): Adjust.
4199 (prepare_to_access_memory): Adjust comment.
4200 * win32-low.c (child_xfer_memory): Adjust to use
4201 process_stratum_target.
4202 (win32_target_ops): Now a process_stratum_target.
4203
559e7e50
EZ
42042020-01-06 Eli Zaretskii <eliz@gnu.org>
4205 Pedro Alves <palves@redhat.com>
4206
4207 * win32-low.c (get_child_debug_event): Extract the fatal exception
4208 from the exit status and convert to the equivalent Posix signal
4209 number.
4210 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4211 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4212
48189bec
HD
42132020-01-01 Hannes Domani <ssbssa@yahoo.de>
4214
4215 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4216
5dd8bf88
JB
42172020-01-01 Joel Brobecker <brobecker@adacore.com>
4218
4219 * server.c (gdbserver_version): Change copyright year to 2020.
4220 * gdbreplay.c (gdbreplay_version): Likewise.
4221
0ad6b8ee
CB
42222019-12-19 Christian Biesinger <cbiesinger@google.com>
4223
4224 * configure: Regenerate.
4225 * configure.ac: Quote variable arguments of test.
4226
1ee7b812
BE
42272019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4228
4229 * Makefile.in: Fix build with GNU Make 3.81
4230
d9fa87f4
TT
42312019-12-16 Tom Tromey <tromey@adacore.com>
4232
4233 * server.c (get_exec_file): Constify result.
4234
ab7d13f0
CB
42352019-12-10 Christian Biesinger <cbiesinger@google.com>
4236
4237 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4238 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4239 * config.in: Regenerate.
4240 * configure: Regenerate.
4241 * configure.ac: Don't check for strerror.
4242 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4243 Call safe_strerror instead of strerror.
4244 * server.h (strerror): Remove this now-unnecessary declaration.
4245 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4246 strerror.
4247 (gdb_agent_helper_thread): Likewise.
4248 * utils.c (perror_with_name): Likewise.
4249
4da8c3a8
TT
42502019-11-26 Tom Tromey <tom@tromey.com>
4251
4252 * configure, config.in: Rebuild.
4253
21987b9c
TT
42542019-11-26 Tom Tromey <tom@tromey.com>
4255
4256 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4257 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4258 gdb_sigmask.
4259 * configure, config.in: Rebuild.
4260
5e030278
TT
42612019-11-26 Tom Tromey <tom@tromey.com>
4262
4263 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4264 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4265 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4266 * acinclude.m4: Include ax_pthread.m4.
4267 * config.in, configure: Rebuild.
4268
6d91ce9a
CB
42692019-11-26 Christian Biesinger <cbiesinger@google.com>
4270
4271 * debug.c (debug_set_output): Call safe_strerror instead of
4272 strerror.
4273 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4274 (linux_kill_one_lwp): Likewise.
4275 (linux_detach_one_lwp): Likewise.
4276 (linux_wait_for_event_filtered): Likewise.
4277 (store_register): Likewise.
4278 * lynx-low.c (lynx_attach): Likewise.
4279 * mem-break.c (insert_memory_breakpoint): Likewise.
4280 (remove_memory_breakpoint): Likewise.
4281 (delete_fast_tracepoint_jump): Likewise.
4282 (set_fast_tracepoint_jump): Likewise.
4283 (uninsert_fast_tracepoint_jumps_at): Likewise.
4284 (reinsert_fast_tracepoint_jumps_at): Likewise.
4285 * nto-low.c (nto_xfer_memory): Likewise.
4286 (nto_resume): Likewise.
4287
6cdd651f
LM
42882019-11-20 Luis Machado <luis.machado@linaro.org>
4289
4290 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4291 instead of register count.
4292 * tdesc.c (tdesc_contains_feature): New function.
4293 * tdesc.h (tdesc_contains_feature): New prototype.
4294
cd850b40
CB
42952019-11-15 Christian Biesinger <cbiesinger@google.com>
4296
4297 * Makefile.in: Add safe-strerror.c.
4298 * configure: Regenerate.
4299 * configure.ac: Don't source common.host.
4300
5abebf3c
CB
43012019-11-15 Christian Biesinger <cbiesinger@google.com>
4302
4303 * config.in: Regenerate.
4304 * configure: Regenerate.
4305
e06f3d6e
AB
43062019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4307
4308 * ax.c (ax_printf): Handle size_t_arg.
4309
ca3a04f6
CB
43102019-11-06 Christian Biesinger <cbiesinger@google.com>
4311
4312 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4313 * mi/mi-main.c (output_cores): Likewise.
4314 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4315 (linux_xfer_osdata_modules): Likewise.
4316 * remote.c (register_remote_support_xml): Likewise.
4317 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4318 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4319
e48f6033
CB
43202019-11-01 Christian Biesinger <cbiesinger@google.com>
4321
4322 * configure: Regenerate.
4323 * configure.ac: Remove check for strerror_r.
4324
e7e97a2e
CB
43252019-10-31 Christian Biesinger <cbiesinger@google.com>
4326
4327 * config.in: Regenerate.
4328 * configure: Regenerate.
4329 * configure.ac: Also check for strerror_r.
4330
75cafaa6
CB
43312019-10-31 Christian Biesinger <cbiesinger@google.com>
4332
4333 * ax.h (debug_agent): Remove duplicate declaration.
4334
30baf67b
TV
43352019-10-26 Tom de Vries <tdevries@suse.de>
4336
4337 * linux-aarch64-low.c: Fix typos in comments.
4338 * linux-arm-low.c: Same.
4339 * linux-low.c: Same.
4340 * linux-ppc-low.c: Same.
4341 * proc-service.c: Same.
4342 * regcache.h: Same.
4343 * server.c: Same.
4344 * tracepoint.c: Same.
4345 * win32-low.c: Same.
4346
52c64cf7
TT
43472019-10-25 Tom Tromey <tromey@adacore.com>
4348
4349 * utils.c (xstrdup): Remove.
4350
c12d372d
TT
43512019-10-23 Tom Tromey <tom@tromey.com>
4352
4353 * configure, config.in: Rebuild.
4354
4d0b984b
TT
43552019-10-23 Tom Tromey <tom@tromey.com>
4356
4357 * configure: Rebuild.
4358 * acinclude.m4: Use m4_include, not sinclude.
4359
c5adaa19
TT
43602019-10-17 Tom Tromey <tromey@adacore.com>
4361
4362 * configure: Rebuild.
4363 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4364 in AC_CONFIG_FILES invocation.
4365 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4366 invocation.
4367
fec4e896
CB
43682019-10-16 Christian Biesinger <cbiesinger@google.com>
4369
4370 * server.c: Include xml-builtin.h.
4371 (get_xml_features): Don't declare xml_builtins here.
4372
00975ff6
AB
43732019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * Makefile.in: Remove references to vec-ipa.o.
4376
0dc32745
AB
43772019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4378
4379 * Makefile.in: Remove references to vec.c.
4380
3e6ec53a
CB
43812019-10-02 Christian Biesinger <cbiesinger@google.com>
4382
4383 * server.c (server_waiting): Change to bool.
4384 (extended_protocol): Likewise.
4385 (response_needed): Likewise.
4386 (exit_requested): Likewise.
4387 (run_once): Likewise.
4388 (report_no_resumed): Likewise.
4389 (non_stop): Likewise.
4390 (disable_packet_vCont): Likewise.
4391 (disable_packet_Tthread): Likewise.
4392 (disable_packet_qC): Likewise.
4393 (disable_packet_qfThreadInfo): Likewise.
4394 (handle_general_set): Update.
4395 (handle_detach): Update.
4396 (handle_monitor_command): Update.
4397 (handle_query): Update.
4398 (captured_main): Update.
4399 (process_serial_event): Update.
4400 * server.h (server_waiting): Change to bool.
4401 (disable_packet_vCont): Likewise.
4402 (disable_packet_Tthread): Likewise.
4403 (disable_packet_qC): Likewise.
4404 (disable_packet_qfThreadInfo): Likewise.
4405 (run_once): Likewise.
4406 (non_stop): Likewise.
4407 * target.c (target_stop_and_wait): Update.
4408
80fd2826
TT
44092019-10-02 Tom Tromey <tromey@adacore.com>
4410
4411 * Makefile.in (SFILES): Add common-inferior.c.
4412 (OBS): Add common-inferior.o.
4413 * server.c (startup_with_shell): Don't define.
4414
46f29a9a
AB
44152019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * linux-low.c (linux_low_read_btrace): Update for change to
4418 std::vector.
4419
f9d949fb
CB
44202019-09-20 Christian Biesinger <cbiesinger@google.com>
4421
4422 * debug.c (debug_threads): Remove comment in favor of the header.
4423 * debug.h (using_threads): Add declaration.
4424 (debug_threads): Add comment.
4425 * linux-aarch64-low.c: Include debug.h and remove declaration of
4426 debug_threads.
4427 * nto-low.c: Likewise.
4428 * remote-utils.c: Likewise.
4429 * thread-db.c: Likewise.
4430
abf516c6
UW
44312019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4432
4433 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4434 and powerpc-cell64l-ipa.o.
4435 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4436 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4437 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4438 (spu*-*-*): Remove.
4439
4440 * spu-low.c: Remove file.
4441
4442 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4443 (parse_spufs_run): Remove.
4444 (ppc_get_pc): Remove Cell/B.E. support.
4445 (ppc_set_pc): Likewise.
4446 (ppc_breakpoint_at): Likewise.
4447 (ppc_arch_setup): Likewise.
4448 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4449 tdesc_powerpc_cell32l.
4450 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4451 or init_registers_powerpc_cell32l.
4452 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4453 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4454 or init_registers_powerpc_cell32l.
4455 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4456 (init_registers_powerpc_cell32l): Remove prototype.
4457 (init_registers_powerpc_cell64l): Likewise.
4458
4459 * target.h (struct target_ops): Remove qxfer_spu member.
4460 * server.c (handle_qxfer_spu): Remove.
4461 (qxfer_packets): Remove entry for "spu".
4462 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4463 * linux-low.c (SPUFS_MAGIC): Remove.
4464 (spu_enumerate_spu_ids): Remove.
4465 (linux_qxfer_spu): Remove.
4466 (linux_target_ops): Remove qxfer_spu member.
4467 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4468 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4469 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4470
2d41fa11
SDJ
44712019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4472
4473 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4474 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4475 * config.in: Regenerate.
4476 * configure: Regenerate.
4477
d59b55f0
TT
44782019-08-15 Tom Tromey <tromey@adacore.com>
4479
4480 * target.c (target_write_memory): Use gdb::byte_vector.
4481
4196ab2a
TT
44822019-08-15 Tom Tromey <tromey@adacore.com>
4483
4484 * tracepoint.c (write_inferior_data_pointer)
4485 (write_inferior_integer, write_inferior_int8)
4486 (write_inferior_uinteger, m_tracepoint_action_download)
4487 (r_tracepoint_action_download, x_tracepoint_action_download)
4488 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4489 (download_agent_expr, download_tracepoint_1)
4490 (download_trace_state_variables, upload_fast_traceframes): Update.
4491 * server.c (gdb_write_memory): Update.
4492 * remote-utils.c (relocate_instruction): Update.
4493 * proc-service.c (ps_pdwrite): Update.
4494 * mem-break.c (remove_memory_breakpoint)
4495 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4496 (uninsert_fast_tracepoint_jumps_at)
4497 (reinsert_fast_tracepoint_jumps_at): Update.
4498 * linux-x86-low.c (append_insns)
4499 (i386_install_fast_tracepoint_jump_pad)
4500 (amd64_write_goto_address, i386_write_goto_address): Update.
4501 * linux-s390-low.c (append_insns, s390_write_goto_address):
4502 Update.
4503 * linux-ppc-low.c (ppc_relocate_instruction)
4504 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4505 (ppc_write_goto_address): Update.
4506 * linux-aarch64-low.c (append_insns): Update.
4507 * target.h (struct target_ops): Update.
4508 (write_inferior_memory): Don't declare.
4509 * target.c (target_write_memory): Rename from
4510 write_inferior_memory. Remove old target_write_memory.
4511
c6778d00
TT
45122019-08-15 Tom Tromey <tromey@adacore.com>
4513
4514 * target.c (write_inferior_memory): Use std::vector.
4515
404f2902
FCE
45162019-08-06 Frank Ch. Eigler <fche@redhat.com>
4517
4518 PR build/24886
4519 * configure.ac: Drop enable-libmcheck support.
4520 * configure, config.in: Rebuild.
4521 * acinclude.m4: Don't include it.
4522
4c5aa8e0
AH
45232019-07-19 Alan Hayward <alan.hayward@arm.com>
4524
4525 * configure.srv: Remove Arm xml files.
4526
7cc17433
AH
45272019-07-19 Alan Hayward <alan.hayward@arm.com>
4528
4529 * configure.srv: Add new files. Remove xml generated files.
4530 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4531 registers.
4532 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4533 * linux-aarch32-tdesc.c: New file.
4534 * linux-aarch32-tdesc.h: New file.
4535 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4536 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4537 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4538 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4539 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4540 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4541 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4542 (arm_read_description): Call arm_linux_read_description.
4543 (initialize_low_arch): Don't init registers.
4544 * linux-arm-tdesc.c: New file.
4545 * linux-arm-tdesc.h: New file.
4546
166a82be
AH
45472019-07-10 Alan Hayward <alan.hayward@arm.com>
4548
4549 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4550 Move counter inside for.
4551 (arm_read_description): Check ptrace earlier.
4552 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4553
268a13a5
TT
45542019-07-09 Tom Tromey <tom@tromey.com>
4555
4556 * configure: Rebuild.
4557 * configure.ac: Change common to gdbsupport.
4558 * acinclude.m4: Change common to gdbsupport.
4559 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4560 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4561 common to gdbsupport.
4562 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4563 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4564 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4565 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4566 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4567 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4568 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4569 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4570 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4571 common to gdbsupport.
4572
350fab54
AH
45732019-07-04 Alan Hayward <alan.hayward@arm.com>
4574
4575 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4576 defines.
4577 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4578
2b40fda7
AH
45792019-07-04 Alan Hayward <alan.hayward@arm.com>
4580
4581 * configure.srv: Remove legacy xml.
4582 * linux-aarch64-low.c (initialize_low_arch): Remove
4583 initialize_low_tdesc call.
4584 * linux-aarch64-tdesc-selftest.c: Remove file.
4585 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4586 * linux-x86-low.c (initialize_low_arch): Remove
4587 initialize_low_tdesc call.
4588 * linux-x86-tdesc-selftest.c: Remove file.
4589 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4590
7d10623d
TV
45912019-06-20 Tom de Vries <tdevries@suse.de>
4592
4593 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4594 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4595
8d6a48df
TV
45962019-06-19 Tom de Vries <tdevries@suse.de>
4597
4598 * debug.h (debug_write): Change return type to ssize_t.
4599 * debug.c (debug_write): Same.
4600
73cc7272
TT
46012019-06-14 Tom Tromey <tom@tromey.com>
4602
4603 * configure.ac: Use new path to gnulib.
4604 * configure: Rebuild.
4605 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4606 to gnulib.
4607
08f10e02
TT
46082019-06-11 Tom Tromey <tom@tromey.com>
4609
4610 * Makefile.in (SFILES): Add alloc.c.
4611 (OBS): Add alloc.o.
4612 (IPA_OBJS): Add alloc-ipa.o.
4613 (alloc-ipa.o): New target.
4614 (%.o: ../%.c): New pattern rule.
4615
422186a9
TT
46162019-06-10 Tom Tromey <tromey@adacore.com>
4617
4618 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4619 end warning with a newline.
4620 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4621 newline.
4622 * thread-db.c (attach_thread): Don't end warning with a newline.
4623 (thread_db_notice_clone): Likewise.
4624 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4625 newline.
4626 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4627 end warning with a newline.
4628
b02f78f9
PA
46292019-06-04 Pedro Alves <palves@redhat.com>
4630
4631 * server.c (captured_main): Use make_unique_xstrdup.
4632
88ed7edb
TT
46332019-06-02 Tom Tromey <tom@tromey.com>
4634
4635 * gdbreplay.c (fromhex): Remove.
4636 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4637
33a6bc35
TT
46382019-05-29 Tom Tromey <tromey@adacore.com>
4639
4640 * configure: Rebuild.
4641
e90a813d
KB
46422019-05-06 Kevin Buettner <kevinb@redhat.com>
4643
4644 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4645 sign extension code on 32-bit builds.
4646
353ea2d1
EZ
46472019-05-03 Eli Zaretskii <eliz@gnu.org>
4648
4649 * remote-utils.c:
4650 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4651
b494cdff
TT
46522019-04-19 Tom Tromey <tom@tromey.com>
4653
4654 * server.c (struct vstop_notif): Derive from notif_event.
4655 <base>: Remove.
4656 (queue_stop_reply): Update.
4657 (remove_all_on_match_ptid): Change type. Rewrite.
4658 (discard_queued_stop_replies): Rewrite.
4659 (in_queued_stop_replies_ptid): Change type.
4660 (in_queued_stop_replies): Rewrite.
4661 (notif_stop): Update.
4662 (queue_stop_reply_callback): Update.
4663 (captured_main): Don't call initialize_notif.
4664 (push_stop_notification): Update.
4665 * notif.c (notif_write_event, handle_notif_ack)
4666 (notif_event_enque, notif_push): Update.
4667 (notif_event_xfree, initialize_notif): Remove.
4668 * notif.h (struct notif_event): Include <list>, not
4669 "common/queue.h".
4670 (struct notif_server) <queue>: Now a std::list.
4671 (notif_event_p): Remove typedef.
4672 (initialize_notif): Don't declare.
4673 (struct notif_event): Add virtual destructor.
4674
a7e559cc
AH
46752019-04-17 Alan Hayward <alan.hayward@arm.com>
4676
4677 * ax.c (ax_vdebug): Call debug_printf.
4678 * debug.c (debug_write): New function.
4679 * debug.h (debug_write): New declaration.
4680 * linux-low.c (sigchld_handler): Call debug_write.
4681
aeb2e706
AH
46822019-04-17 Alan Hayward <alan.hayward@arm.com>
4683
4684 * debug.c (debug_set_output): New function.
4685 (debug_vprintf): Send output to debug_file.
4686 (debug_flush): Likewise.
4687 * debug.h (debug_set_output): New declaration.
4688 * server.c (handle_monitor_command): Add debug-file option.
4689 (captured_main): Likewise.
4690
c1bc0935
AH
46912019-04-17 Alan Hayward <alan.hayward@arm.com>
4692
4693 * debug.c (remote_debug): Add definition.
4694 * debug.h (remote_debug): Add declaration.
4695 * hostio.c (remote_debug): Remove declaration.
4696 * remote-utils.c (struct ui_file): Likewise.
4697 (remote_debug): Likewise.
4698 * remote-utils.h (remote_debug): Likewise,
4699 * server.c (remote_debug): Remove definition.
4700
3f52fdbc
KB
47012019-04-10 Kevin Buettner <kevinb@redhat.com>
4702
4703 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4704 when using a 64-bit gdbserver.
4705
b0319eaa
TT
47062019-04-09 Tom Tromey <tromey@adacore.com>
4707
4708 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4709
eedc3f4f
TT
47102019-04-08 Tom Tromey <tom@tromey.com>
4711
4712 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4713 throw.
4714 (linux_resume_one_lwp): Likewise.
4715
230d2906
TT
47162019-04-08 Tom Tromey <tom@tromey.com>
4717
4718 * gdbreplay.c: Update.
4719 * linux-low.c: Update.
4720 * server.c: Update.
4721
a70b8144
TT
47222019-04-08 Tom Tromey <tom@tromey.com>
4723
4724 * server.c: Use C++ exception handling.
4725 * linux-low.c: Use C++ exception handling.
4726 * gdbreplay.c: Use C++ exception handling.
4727
3d6e9d23
TT
47282019-04-08 Tom Tromey <tom@tromey.com>
4729
4730 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4731 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4732 (captured_main, main): Update.
4733 * gdbreplay.c (main): Update.
4734
0570503d
PFC
47352019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4736
4737 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4738 value in argument pointer, return 1 if the entry is found and 0
4739 otherwise. Move comment.
4740 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4741 * linux-low.h (linux_get_auxv): Declare.
4742 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4743
227a9e65
TT
47442019-04-05 Tom Tromey <tromey@adacore.com>
4745
4746 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4747 variables.
4748
69f4c9cc
AH
47492019-03-28 Alan Hayward <alan.hayward@arm.com>
4750
4751 * linux-low.c (AT_HWCAP2): Add define if not already included.
4752
974c89e0
AH
47532019-03-26 Alan Hayward <alan.hayward@arm.com>
4754
4755 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4756 (aarch64_arch_setup): Call linux_get_hwcap.
4757 * linux-arm-low.c (arm_get_hwcap): Remove function.
4758 (arm_read_description): Call linux_get_hwcap.
4759 * linux-low.c (linux_get_auxv): New function.
4760 (linux_get_hwcap): Likewise.
4761 (linux_get_hwcap2): Likewise.
4762 * linux-low.h (linux_get_hwcap): New declaration.
4763 (linux_get_hwcap2): Likewise.
4764 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4765 (ppc_arch_setup): Call linux_get_hwcap.
4766 * linux-s390-low.c (s390_get_hwcap): Remove function.
4767 (s390_arch_setup): Call linux_get_hwcap.
4768
1ef53e6b
AH
47692019-03-22 Alan Hayward <alan.hayward@arm.com>
4770 Jiong Wang <jiong.wang@arm.com>
4771
4772 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4773 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4774 to fail.
4775 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4776
ee4fbcfa
AH
47772019-03-22 Alan Hayward <alan.hayward@arm.com>
4778 Jiong Wang <jiong.wang@arm.com>
4779
4780 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4781 (aarch64_get_hwcap): New function.
4782 (aarch64_arch_setup): Read APIA hwcap.
4783
6dc0ebde
AH
47842019-03-22 Alan Hayward <alan.hayward@arm.com>
4785 Jiong Wang <jiong.wang@arm.com>
4786
4787 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4788 (initialize_low_tracepoint): Likewise.
4789 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4790 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4791 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4792 (aarch64_linux_read_description): Likewise.
4793 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4794
1163a4b7
JB
47952019-03-12 John Baldwin <jhb@FreeBSD.org>
4796
4797 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4798 i386_create_target_description for 'segments' parameter.
4799 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4800 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4801 * win32-i386-low.c (i386_arch_setup): Likewise.
4802
d3a70e03
TT
48032019-03-12 Tom Tromey <tromey@adacore.com>
4804
4805 * linux-low.c (iterate_over_lwps): Update.
4806
37991b4f
TT
48072019-03-06 Tom Tromey <tom@tromey.com>
4808
4809 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4810 (captured_main): Use SCOPE_EXIT.
4811
45950eb6
SDJ
48122019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4813
4814 * configure.srv: Use '$enable_unittest' instead of '$development'
4815 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4816 case.
4817
43ac54fc
TT
48182019-02-27 Tom Tromey <tromey@adacore.com>
4819
4820 * gdbreplay.c (logchar): Handle \r\n.
4821
df0da8a2
AH
48222019-02-07 Alan Hayward <alan.hayward@arm.com>
4823
4824 * linux-low.c (linux_attach): Add process before lwp.
4825 * server.c (attach_inferior): Check if already attached.
4826
1a5c2598
TT
48272019-02-07 Tom Tromey <tom@tromey.com>
4828
4829 * x86-tdesc.h: Rename include guard.
4830 * x86-low.h: Add include guard.
4831 * wincecompat.h: Rename include guard.
4832 * win32-low.h: Add include guard.
4833 * utils.h: Rename include guard.
4834 * tracepoint.h: Rename include guard.
4835 * tdesc.h: Rename include guard.
4836 * target.h: Rename include guard.
4837 * server.h: Rename include guard.
4838 * remote-utils.h: Rename include guard.
4839 * regcache.h: Rename include guard.
4840 * nto-low.h: Rename include guard.
4841 * notif.h: Add include guard.
4842 * mem-break.h: Rename include guard.
4843 * lynx-low.h: Add include guard.
4844 * linux-x86-tdesc.h: Add include guard.
4845 * linux-s390-tdesc.h: Add include guard.
4846 * linux-ppc-tdesc-init.h: Add include guard.
4847 * linux-low.h: Add include guard.
4848 * linux-aarch64-tdesc.h: Add include guard.
4849 * linux-aarch32-low.h: Add include guard.
4850 * inferiors.h: Rename include guard.
4851 * i387-fp.h: Rename include guard.
4852 * hostio.h: Rename include guard.
4853 * gdbthread.h: Rename include guard.
4854 * gdb_proc_service.h: Rename include guard.
4855 * event-loop.h: Rename include guard.
4856 * dll.h: Rename include guard.
4857 * debug.h: Rename include guard.
4858 * ax.h: Rename include guard.
4859
956cc47c
SN
48602018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4861
4862 PR gdb/23985
4863 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4864 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4865
a0707f3c
TT
48662019-01-25 Tom Tromey <tom@tromey.com>
4867
4868 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4869
0747795c
TT
48702019-01-25 Tom Tromey <tom@tromey.com>
4871
4872 * win32-low.c: Fix common/ includes.
4873 * win32-i386-low.c: Fix common/ includes.
4874 * tracepoint.c: Fix common/ includes.
4875 * thread-db.c: Fix common/ includes.
4876 * target.h: Fix common/ includes.
4877 * symbol.c: Fix common/ includes.
4878 * spu-low.c: Fix common/ includes.
4879 * server.h: Fix common/ includes.
4880 * server.c: Fix common/ includes.
4881 * remote-utils.c: Fix common/ includes.
4882 * regcache.h: Fix common/ includes.
4883 * regcache.c: Fix common/ includes.
4884 * nto-x86-low.c: Fix common/ includes.
4885 * notif.h: Fix common/ includes.
4886 * mem-break.h: Fix common/ includes.
4887 * lynx-low.c: Fix common/ includes.
4888 * lynx-i386-low.c: Fix common/ includes.
4889 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4890 * linux-x86-low.c: Fix common/ includes.
4891 * linux-low.c: Fix common/ includes.
4892 * inferiors.h: Fix common/ includes.
4893 * i387-fp.c: Fix common/ includes.
4894 * hostio.c: Fix common/ includes.
4895 * hostio-errno.c: Fix common/ includes.
4896 * gdbthread.h: Fix common/ includes.
4897 * gdbreplay.c: Fix common/ includes.
4898 * fork-child.c: Fix common/ includes.
4899 * event-loop.c: Fix common/ includes.
4900 * ax.c:
4901 (enum gdb_agent_op): Fix common/ includes.
4902
be6d4f74
TT
49032019-01-21 Tom Tromey <tom@tromey.com>
4904
4905 * tracepoint.c: Fix includes.
4906 * remote-utils.c: Fix includes.
4907 * linux-x86-low.c: Fix includes.
4908
66d91b39
JB
49092019-01-01 Joel Brobecker <brobecker@adacore.com>
4910
4911 * gdbreplay.c (gdbreplay_version): Update copyright year in
4912 version message.
4913 * server.c (gdbserver_version): Likewise.
4914
754e3168
AH
49152018-12-05 Alan Hayward <alan.hayward@arm.com>
4916
4917 * linux-low.c (add_lwp): Switch ordering.
4918
d105de22
TT
49192018-11-29 Tom Tromey <tom@tromey.com>
4920
4921 * win32-low.c (win32_join): Take pid, not process.
4922 * target.h (struct target_ops) <join>: Change argument type.
4923 (join_inferior): Change argument name.
4924 * spu-low.c (spu_join): Take pid, not process.
4925 * server.c (handle_detach): Preserve pid before destroying
4926 process.
4927 * lynx-low.c (lynx_join): Take pid, not process.
4928 * linux-low.c (linux_join): Take pid, not process.
4929
50138245
AH
49302018-11-23 Alan Hayward <alan.hayward@arm.com>
4931
4932 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4933 (aarch64_cannot_fetch_register): Likewise.
4934 (struct linux_target_ops): Update references.
4935
64f57f3d
PFC
49362018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4937
4938 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4939
8d619c01
EBM
49402018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4941
4942 * configure.srv (ipa_ppc_linux_regobj): Add
4943 powerpc-isa207-htm-vsx32l-ipa.o and
4944 powerpc-isa207-htm-vsx64l-ipa.o.
4945 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4946 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4947 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4948 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4949 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4950 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4951 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4952 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4953 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4954 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4955 (init_registers_powerpc_isa207_htm_vsx32l)
4956 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4957 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4958 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4959 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4960 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4961 (ppc_store_tm_ctarregset): New functions.
4962 (ppc_regsets): Add entries for HTM regsets.
4963 (ppc_arch_setup): Set htm in features struct when needed. Set
4964 sizes for the HTM regsets.
4965 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4966 (initialize_low_arch): Call
4967 init_registers_powerpc_isa207_htm_vsx32l and
4968 init_registers_powerpc_isa207_htm_vsx64l.
4969 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4970 PPC_TDESC_ISA207_HTM_VSX.
4971 (initialize_low_tracepoint): Call
4972 init_registers_powerpc_isa207_htm_vsx32l and
4973 init_registers_powerpc_isa207_htm_vsx64l.
4974
232bfb86
EBM
49752018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4976
4977 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4978 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4979 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4980 (ppc_store_pmuregset): New functions.
4981 (ppc_regsets): Add entries for ebb and pmu regsets.
4982 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4983 pmu regsets are available. Set sizes for these regsets.
4984
f2cf6173
EBM
49852018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4986
4987 * configure.srv (ipa_ppc_linux_regobj): Add
4988 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4989 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4990 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4991 rs6000/powerpc-isa207-vsx32l.xml, and
4992 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4993 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4994 <PPC_TDESC_ISA207_VSX>: New enum value.
4995 (init_registers_powerpc_isa207_vsx32l): Declare.
4996 (init_registers_powerpc_isa207_vsx64l): Declare.
4997 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4998 (ppc_store_tarregset): New function.
4999 (ppc_regsets): Add entry for the TAR regset.
5000 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5001 size for the TAR regsets.
5002 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5003 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5004 and init_registers_powerpc_isa207_vsx64l.
5005 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5006 (initialize_low_tracepoint): Call
5007 init_registers_powerpc_isa207_vsx32l and
5008 init_registers_powerpc_isa207_vsx64l.
5009
7ca18ed6
EBM
50102018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5011 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5012
5013 * configure.srv (ipa_ppc_linux_regobj): Add
5014 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5015 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5016 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5017 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5018 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5019 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5020 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5021 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5022 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5023 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5024 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5025 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5026 (ppc_hwcap): Add comment.
5027 (ppc_hwcap2): New global.
5028 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5029 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5030 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5031 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5032 when needed. Set sizes for the the DSCR and PPR regsets.
5033 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5034 (initialize_low_arch): Call
5035 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5036 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5037 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5038 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5039 (initialize_low_tracepoint): Call
5040 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5041 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5042
5c849b22
PFC
50432018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5044
5045 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5046
8ecfd7bd
SDJ
50472018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5048 Simon Marchi <simark@simark.ca>
5049
5050 * acinclude.m4: Include "../selftest.m4".
5051 * configure: Regenerate.
5052 * configure.ac: Use "GDB_AC_SELFTEST".
5053 * configure.srv: Use "$enable_unittests" instead of
5054 "$development" when checking whether unit tests have been
5055 enabled.
5056 * server.c (captured_main): Update message informing that
5057 selftests have been disabled.
5058
96643e35
TT
50592018-10-04 Tom Tromey <tom@tromey.com>
5060
5061 * configure: Rebuild.
5062
da4ae14a
TT
50632018-10-04 Tom Tromey <tom@tromey.com>
5064
5065 * server.c (handle_status): Rename inner "thread".
5066 (process_serial_event): Declare "res" in 'm' case.
5067 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5068 (iterate_over_lwps): Rename inner "thread".
5069 (linux_qxfer_libraries_svr4): Rename inner "len".
5070 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5071
7c619dbd
GB
50722018-10-01 Gary Benson <gbenson@redhat.com>
5073
5074 * gdb_proc_service.h: Moved common code to
5075 common/gdb_proc_service.h.
5076
3795e814
GB
50772018-10-01 Gary Benson <gbenson@redhat.com>
5078
5079 * gdb_proc_service.h: Synchronize comments and whitespace with
5080 GDB's version of this file.
5081
49b036f1
TT
50822018-09-25 Tom Tromey <tom@tromey.com>
5083
5084 * configure: Rebuild.
5085 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5086
8ff03f0b
SM
50872018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5090 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5091 ($(IPA_LIB)): Sort IPA_OBJS.
5092
a1cd91dc
SM
50932018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5094
5095 * Makefile.in: Remove references to $(ADD_DEPS).
5096
752312ba
TT
50972018-09-16 Tom Tromey <tom@tromey.com>
5098
5099 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5100 variables.
5101 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5102 variables.
5103
f1628857
TT
51042018-09-05 Tom Tromey <tom@tromey.com>
5105
5106 * configure: Rebuild.
5107
ad202fcc
SM
51082018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 PR build/23399
5111 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5112
d3d8724a
TT
51132018-08-27 Tom Tromey <tom@tromey.com>
5114
5115 PR build/23087:
5116 * configure: Rebuild.
5117
b4f183d2
TT
51182018-08-27 Tom Tromey <tom@tromey.com>
5119
5120 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5121 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5122 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5123 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5124 (s390x_emit_stack_adjust): Add casts to unsigned char.
5125
4e2aa472
SM
51262018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5127
5128 PR gdb/23374
5129 PR gdb/23375
5130 * server.h (struct client_state) <disable_randomization>:
5131 Initialize to 1.
5132
cf4088a9
SM
51332018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5136 variable.
5137 (mips_supply_ptrace_register): Likewise.
5138
a0de763e
TT
51392018-07-22 Tom Tromey <tom@tromey.com>
5140
5141 * configure: Rebuild.
5142
b0a7723d
TT
51432018-07-22 Tom Tromey <tom@tromey.com>
5144
5145 * win32-low.c (win32_create_inferior): Remove unused variables.
5146 * gdbreplay.c (remote_open): Remove unused variable.
5147 * remote-utils.c (remote_prepare): Remove unused variable.
5148 * x86-tdesc.h (X86_TDESC_H): Define.
5149 (amd64_expedite_regs): Define conditionally.
5150 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5151 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5152 * remote-utils.c (readchar): Remove unused variable.
5153
a780ef4f
PA
51542018-07-13 Pedro Alves <palves@redhat.com>
5155
5156 * linux-low.c (linux_kill): Change parameter to process_info
5157 pointer instead of pid. Adjust.
5158 * lynx-low.c (lynx_kill): Likewise.
5159 * nto-low.c (nto_kill): Likewise.
5160 * spu-low.c (spu_kill): Likewise.
5161 * win32-low.c (win32_kill): Likewise.
5162 * server.c (handle_v_kill, kill_inferior_callback)
5163 (detach_or_kill_for_exit): Adjust.
5164 * target.c (kill_inferior): Change parameter to process_info
5165 pointer instead of pid. Adjust.
5166 * target.h (struct target_ops) <kill>: Change parameter to
5167 process_info pointer instead of pid. Adjust all implementations
5168 and callers.
5169 (kill_inferior): Likewise.
5170
ef2ddb33
PA
51712018-07-13 Pedro Alves <palves@redhat.com>
5172
5173 * linux-low.c (linux_detach, linux_join): Change parameter to
5174 process_info pointer instead of pid. Adjust.
5175 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5176 * nto-low.c (nto_detach): Likewise.
5177 * spu-low.c (spu_detach, spu_join): Likewise.
5178 * win32-low.c (win32_detach, win32_join): Likewise.
5179 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5180 * target.h (struct target_ops) <detach, join>: Change parameter to
5181 process_info pointer instead of pid. Adjust all implementations
5182 and callers.
5183 (detach_inferior, join_inferior): Rename 'pid' parameter to
5184 'proc'.
5185
c7ab0aef
SDJ
51862018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5187 Jan Kratochvil <jan.kratochvil@redhat.com>
5188 Paul Fertser <fercerpav@gmail.com>
5189 Tsutomu Seki <sekiriki@gmail.com>
5190
5191 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5192 (OBS): Add 'common/netstuff.o'.
5193 (GDBREPLAY_OBS): Likewise.
5194 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5195 (remote_open): Implement support for IPv6
5196 connections.
5197 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5198 and 'wspiapi.h'.
5199 (handle_accept_event): Accept connections from IPv6 sources.
5200 (remote_prepare): Handle IPv6-style hostnames; implement
5201 support for IPv6 connections.
5202 (remote_open): Implement support for printing connections from
5203 IPv6 sources.
5204
31445d10
PA
52052018-07-11 Pedro Alves <palves@redhat.com>
5206
5207 PR gdb/23377
5208 * mem-break.c (any_persistent_commands): Add process_info
5209 parameter and use it instead of relying on the current process.
5210 Change return type to bool.
5211 * mem-break.h (any_persistent_commands): Add process_info
5212 parameter and change return type to bool.
5213 * server.c (handle_detach): Remove require_running_or_return call.
5214 Look up the process_info for the process we're about to detach.
5215 If not found, return back error to GDB. Adjust
5216 any_persistent_commands call to pass down a process pointer.
5217
cb197132
PA
52182018-07-11 Pedro Alves <palves@redhat.com>
5219
5220 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5221 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5222 instead of collect_register_by_name.
5223 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5224 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5225
1b919490
VB
52262018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5227 Pedro Alves <palves@redhat.com>
5228
5229 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5230
d7e15655
TT
52312018-07-03 Tom Tromey <tom@tromey.com>
5232
5233 * linux-low.c: Update.
5234 * lynx-low.c: Update.
5235 * mem-break.c: Update.
5236 * nto-low.c: Update.
5237 * remote-utils.c: Update.
5238 * server.c: Update.
5239 * spu-low.c: Update.
5240 * target.c: Update.
5241 * win32-low.c: Update.
5242
26a57c92
TT
52432018-07-03 Tom Tromey <tom@tromey.com>
5244
5245 * server.c: Update.
5246
0e998d96
TT
52472018-07-03 Tom Tromey <tom@tromey.com>
5248
5249 * linux-low.c: Update.
5250
cc6bcb54
TT
52512018-07-03 Tom Tromey <tom@tromey.com>
5252
5253 * target.c: Update.
5254
e38504b3
TT
52552018-07-03 Tom Tromey <tom@tromey.com>
5256
5257 * linux-low.c: Update.
5258 * linux-mips-low.c: Update.
5259 * lynx-low.c: Update.
5260 * nto-low.c: Update.
5261 * remote-utils.c: Update.
5262 * server.c: Update.
5263 * spu-low.c: Update.
5264 * target.c: Update.
5265 * thread-db.c: Update.
5266
e99b03dc
TT
52672018-07-03 Tom Tromey <tom@tromey.com>
5268
5269 * linux-low.c: Update.
5270 * linux-mips-low.c: Update.
5271 * lynx-low.c: Update.
5272 * mem-break.c: Update.
5273 * nto-low.c: Update.
5274 * remote-utils.c: Update.
5275 * server.c: Update.
5276 * spu-low.c: Update.
5277 * target.c: Update.
5278 * tracepoint.c: Update.
5279
f2907e49
TT
52802018-07-03 Tom Tromey <tom@tromey.com>
5281
5282 * linux-low.c: Update.
5283 * linux-ppc-low.c: Update.
5284 * linux-x86-low.c: Update.
5285 * proc-service.c: Update.
5286 * server.c: Update.
5287 * spu-low.c: Update.
5288 * thread-db.c: Update.
5289 * win32-low.c: Update.
5290
fd79271b
TT
52912018-07-03 Tom Tromey <tom@tromey.com>
5292
5293 * linux-low.c: Update.
5294 * lynx-low.c: Update.
5295 * nto-low.c: Update.
5296 * remote-utils.c: Update.
5297 * spu-low.c: Update.
5298 * thread-db.c: Update.
5299 * win32-low.c: Update.
5300
c0867626
SDJ
53012018-06-29 Joel Brobecker <brobecker@adacore.com>
5302
5303 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5304 parameter in call to 'amd64_create_target_description'.
5305
2512d7ef
JK
53062018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5307
5308 * x86-tdesc.h: Remove executable permission flag.
5309
d0ac1c44
SM
53102018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5311
5312 * configure.ac: Remove AC_PREREQ, add missing quoting.
5313 * configure: Re-generate.
5314 * config.in: Re-generate.
5315 * aclocal.m4: Re-generate.
5316
c4eb05ff
SM
53172018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5318
5319 * tracepoint.h (current_traceframe): Remove declaration.
5320
02895270
AH
53212018-06-18 Alan Hayward <alan.hayward@arm.com>
5322
5323 * linux-aarch64-low.c (is_sve_tdesc): New function.
5324 (aarch64_sve_regs_copy_to_regcache): Likewise.
5325 (aarch64_sve_regs_copy_from_regcache): Likewise.
5326 (aarch64_regs_info): Add SVE checks.
5327 (initialize_low_arch): Initialize SVE.
5328
e9902bfc
AH
53292018-06-18 Alan Hayward <alan.hayward@arm.com>
5330
5331 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5332
fefa175e
AH
53332018-06-11 Alan Hayward <alan.hayward@arm.com>
5334
5335 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5336 (initialize_low_tracepoint): Likewise
5337 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5338 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5339 param.
5340 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5341 checks.
5342 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5343
b91ad3ff
AH
53442018-06-11 Alan Hayward <alan.hayward@arm.com>
5345
5346 * server.h (PBUFSIZ): Increase size
5347
f868386e
AH
53482018-06-11 Alan Hayward <alan.hayward@arm.com>
5349
5350 * regcache.c (regcache::raw_compare): New function.
5351 * regcache.h (regcache::raw_compare): New declaration.
5352
9c861883
AH
53532018-06-11 Alan Hayward <alan.hayward@arm.com>
5354
5355 * regcache.c (new_register_cache): Use new.
5356 (free_register_cache): Use delete.
5357 (register_data): Use const.
5358 (supply_register): Move body inside regcache.
5359 (regcache::raw_supply): New override function.
5360 (collect_register): Move body inside regcache.
5361 (regcache::raw_collect): New override function.
5362 (regcache::get_register_status): New override function.
5363 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5364
40591844
TT
53652018-06-09 Tom Tromey <tom@tromey.com>
5366
5367 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5368 declare queue.
5369 (event_queue): Use std::queue.
5370 (gdb_event_xfree): Remove.
5371 (initialize_event_loop, process_event, wait_for_event): Update.
5372
6341380d
SC
53732018-06-08 Stan Cox <scox@redhat.com>
5374
5375 * win32-low.c (win32_create_inferior): last_ptid and last_status
5376 moved to client_state.
5377
03349c93
PA
53782018-06-08 Pedro Alves <palves@redhat.com>
5379
5380 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5381 common/common-exceptions.o, common/common-utils.o,
5382 common/errors.o, common/print-utils.o and utils.o.
5383 * gdbreplay.c: Include "common-defs.h" instead of the two
5384 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5385 string.h or alloca.h.
5386 (perror_with_name): Delete.
5387 (remote_open): Use xstrdup instead of strdup.
5388 (main): Rename to ...
5389 (captured_main): ... this.
5390 (main): New.
5391
8dcc53b3
TT
53922018-06-08 Tom Tromey <tom@tromey.com>
5393
5394 * linux-low.c (linux_low_read_btrace): Update.
5395
c12a5089
SC
53962018-06-04 Stan Cox <scox@redhat.com>
5397
5398 * server.h (struct client_state): New.
5399 * server.c (cont_thread, general_thread, multi_process)
5400 (report_fork_events, report_vfork_events, report_exec_events)
5401 (report_thread_events, swbreak_feature, hwbreak_feature)
5402 (vCont_supported, disable_randomization, pass_signals)
5403 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5404 Moved to client_state.
5405 * remote-utils.c (remote_debug, noack_mode)
5406 (transport_is_reliable): Moved to client_state.
5407 * tracepoint.c (current_traceframe): Moved to client_state.
5408
5409 Update all callers.
5410 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5411 linux-low.c, remote-utils.h, target.c: Use client_state.
5412
122394f1
AH
54132018-05-31 Alan Hayward <alan.hayward@arm.com>
5414
5415 * configure.srv: Add new c/h file.
5416
95228a0d
AH
54172018-05-31 Alan Hayward <alan.hayward@arm.com>
5418
5419 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5420 null VQ.
5421
d8dab6c3
MR
54222018-05-25 Maciej W. Rozycki <macro@mips.com>
5423
5424 * gdb.arch/mips-fpregset-core.exp: New test.
5425 * gdb.arch/mips-fpregset-core.c: New test source.
5426
81e25b7c
EK
54272018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5428
5429 PR server/23198
5430 * hostio.c (require_int): Do not report overflow for integers
5431 between 0xfffffff and 0x7fffffff.
5432
7e947ad3
MR
54332018-05-22 Maciej W. Rozycki <macro@mips.com>
5434
5435 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5436 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5437 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5438 functions.
5439 (the_low_target): Wire them.
5440
1d75a658
PFC
54412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5442
5443 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5444 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5445 mode. Call collect_register_by_name with vscr using
5446 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5447 (ppc_store_vrregset): Add and set vscr_offset variable as in
5448 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5449 vscr_offset.
5450
d078308a
PFC
54512018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5452
5453 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5454 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5455 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5456
7273b5fc
PFC
54572018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5458
5459 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5460 (ppc_store_vsxregset): Likewise.
5461 (ppc_fill_vrregset): Likewise.
5462 (ppc_store_vrregset): Likewise.
5463 (ppc_fill_evrregset): Likewise.
5464 (ppc_store_evrregset): Likewise.
5465 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5466 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5467 needed.
5468
2e077f5e
PFC
54692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5470
5471 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5472 wordsize of the inferior. Call ppc_linux_target_wordsize.
5473
bd64614e
PFC
54742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5475
5476 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5477 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5478 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5479 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5480 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5481 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5482 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5483 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5484 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5485 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5486 (tdesc_powerpc_e500l): Remove.
5487 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5488 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5489 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5490 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5491 linux-ppc-tdesc.h.
5492 (ppc_arch_setup): Remove target description matching code. Fill a
5493 ppc_linux_features struct and call ppc_linux_match_description
5494 with it.
5495
75d74cca
MR
54962018-05-22 Maciej W. Rozycki <macro@mips.com>
5497
5498 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5499 width of the requested register exceeds the width of the
5500 `ptrace' data type.
5501 (mips_cannot_store_register): Likewise.
5502
e4439e43
MR
55032018-05-21 Maciej W. Rozycki <macro@mips.com>
5504
5505 * linux-mips-low.c (mips_fetch_register): New function. Update
5506 preceding comment.
5507 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5508 (the_low_target): Wire `mips_fetch_register'.
5509
55271bf9
JB
55102018-05-10 Joel Brobecker <brobecker@adacore.com>
5511
5512 * lynx-i386-low.c (LYNXOS_178): New macro.
5513 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5514 the layout on LynxOS-178.
5515 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5516 handle floating point registers that are not supported by
5517 LynxOS-178.
5518
1a34f210
TT
55192018-05-10 Tom Tromey <tom@tromey.com>
5520
5521 * configure: Rebuild.
5522
190852c8
JB
55232018-05-10 Joel Brobecker <brobecker@adacore.com>
5524
5525 PR server/23158:
5526 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5527 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5528 Use it to set the expedite_regs field in the given tdesc.
5529 * x86-tdesc.h: New file.
5530 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5531 Adjust following the addition of the new expedite_regs parameter
5532 to init_target_desc.
5533 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5534 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5535 (i386_linux_read_description, amd64_linux_read_description):
5536 Adjust following the addition of the new expedite_regs parameter
5537 to init_target_desc.
5538 * lynx-i386-low.c: #include "x86-tdesc.h".
5539 (lynx_i386_arch_setup): Adjust following the addition of the new
5540 expedite_regs parameter to init_target_desc.
5541 * nto-x86-low.c: #include "x86-tdesc.h".
5542 (nto_x86_arch_setup): Adjust following the addition of the new
5543 expedite_regs parameter to init_target_desc.
5544 * win32-i386-low.c: #include "x86-tdesc.h".
5545 (i386_arch_setup): Adjust following the addition of the new
5546 expedite_regs parameter to init_target_desc.
5547
7dbac825
JB
55482018-05-10 Joel Brobecker <brobecker@adacore.com>
5549
5550 PR server/23158:
5551 * win32-low.c (win32_create_inferior): Add call to my_wait
5552 setting last_status global.
5553
906994d9
JB
55542018-05-10 Joel Brobecker <brobecker@adacore.com>
5555
5556 PR server/23158:
5557 * win32-low.c (create_process): Only call gdb_tilde_expand if
5558 inferior_cwd is not NULL.
5559
8ee22052
AB
55602018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5561
5562 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5563 registers to the cache if their values have changed.
5564 (i387_xsave_to_cache): Provide default values for x87 control
5565 registers when these features are available, but disabled.
5566 * regcache.c (supply_register_by_name_zeroed): New function.
5567 * regcache.h (supply_register_by_name_zeroed): Declare new
5568 function.
5569
aff689d3
TT
55702018-05-07 Tom Tromey <tom@tromey.com>
5571
5572 * configure: Rebuild.
5573
85e26832
TT
55742018-05-04 Tom Tromey <tom@tromey.com>
5575
5576 * configure: Rebuild.
5577
a3b60e45
JK
55782018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 Pedro Alves <palves@redhat.com>
5580
5581 * linux-aarch64-low.c (aarch64_stopped_data_address):
5582 Likewise.
5583
632e107b
TT
55842018-04-27 Tom Tromey <tom@tromey.com>
5585
5586 * configure: Rebuild.
5587
458412c3
TT
55882018-04-23 Tom Tromey <tom@tromey.com>
5589
5590 * configure: Rebuild.
5591
f31c089e
SM
55922018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5593
5594 * Makefile.in (depcomp): Add "..".
5595 (all_deps_files): New and use it.
5596
b319b098
AH
55972018-04-18 Alan Hayward <alan.hayward@arm.com>
5598
5599 * configure.srv (aarch64*-*-linux*): Don't include xml.
5600 (i[34567]86-*-cygwin*): Likewise.
5601 (i[34567]86-*-linux*): Likewise.
5602 (i[34567]86-*-lynxos*): Likewise.
5603 (i[34567]86-*-mingw32ce*): Likewise.
5604 (i[34567]86-*-mingw*): Likewise.
5605 (i[34567]86-*-nto*): Likewise.
5606 (tic6x-*-uclinux): Likewise.
5607 (x86_64-*-linux*): Likewise.
5608 (x86_64-*-mingw*): Likewise.
5609 (x86_64-*-cygwin*): Likewise.
5610
3b74854b
AH
56112018-04-18 Alan Hayward <alan.hayward@arm.com>
5612
5613 * tdesc.c: Remove xml parameter.
5614
e98577a9
AH
56152018-04-18 Alan Hayward <alan.hayward@arm.com>
5616
5617 * server.c (get_features_xml): Remove cast.
5618 * tdesc.c (void target_desc::accept): Fill in function.
5619 (tdesc_get_features_xml): Remove old xml creation.
5620 (print_xml_feature::visit_pre): Add xml vistor.
5621 * tdesc.h (struct target_desc): Make xmltarget mutable.
5622 (tdesc_get_features_xml): Remove declaration.
5623
d278f585
AH
56242018-04-18 Alan Hayward <alan.hayward@arm.com>
5625
5626 * tdesc.c (tdesc_architecture_name): Add new function.
5627 (tdesc_osabi_name): Likewise.
5628 (tdesc_get_features_xml): Use new functions.
5629
eee8a18d
AH
56302018-04-18 Alan Hayward <alan.hayward@arm.com>
5631
5632 * tdesc.c (tdesc_create_flags): Remove.
5633 (tdesc_add_flag): Likewise.
5634 (tdesc_named_type): Likewise.
5635 (tdesc_create_union): Likewise.
5636 (tdesc_create_struct): Likewise.
5637 (tdesc_create_vector): Likewise.
5638 (tdesc_add_bitfield): Likewise.
5639 (tdesc_add_field): Likewise.
5640 (tdesc_set_struct_size): Likewise.
5641
82ec9bc7
AH
56422018-04-18 Alan Hayward <alan.hayward@arm.com>
5643
5644 * tdesc.c (~target_desc): Remove implictly deleted items.
5645 (init_target_desc): Iterate all features.
5646 (tdesc_get_features_xml): Use vector.
5647 (tdesc_create_feature): Create feature.
5648 * tdesc.h (tdesc_feature) Remove
5649 (target_desc): Add features.
5650
ea3e7d71
AH
56512018-04-18 Alan Hayward <alan.hayward@arm.com>
5652
5653 * Makefile.in: Add common/tdesc.c
5654 * tdesc.c (init_target_desc): init all reg_defs from register
5655 vector.
5656 (tdesc_create_reg): Create tdesc_reg.
5657 * tdesc.h (tdesc_feature): Add register vector.
5658
17d08cd4
SM
56592018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5660
5661 * tdesc.h (struct target_desc) <features>: Change type to
5662 std::vector<std::string>.
5663 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5664 changes.
5665 (tdesc_get_features_xml): Likewise.
5666 (tdesc_create_feature): Likewise.
5667
5cd3e386
AH
56682018-03-26 Alan Hayward <alan.hayward@arm.com>
5669
5670 * regcache.c (find_register_by_number): Return a ref.
5671 (find_regno): Use references.
5672 (register_size): Likewise.
5673 (register_data): Likewise.
5674 * tdesc.c (target_desc::~target_desc): Remove free calls.
5675 (target_desc::operator==): Use std::vector compare.
5676 (init_target_desc): Use reference.
5677 (tdesc_create_reg): Use reg constructors.
5678 * tdesc.h (struct target_desc): Replace pointer with object.
5679
dff7492c
AH
56802018-03-23 Alan Hayward <alan.hayward@arm.com>
5681
5682 * regcache.c (find_register_by_number): Make static.
5683 (find_regno): Use find_register_by_number
5684 * regcache.h (struct reg): Remove declaration.
5685
d80e5242
AH
56862018-03-23 Alan Hayward <alan.hayward@arm.com>
5687
5688 * tdesc.c (target_desc::~target_desc): Move to here.
5689 (target_desc::operator==): Likewise.
5690 * tdesc.h (target_desc::~target_desc): Move from here.
5691 (target_desc::operator==): Likewise.
5692
f69c5afb
AA
56932018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5694
5695 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5696
ce29f843
AA
56972018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5698
5699 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5700 S390_TDESC_GS.
5701 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5702 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5703 and init_registers_s390_gs_linux64.
5704
c49bd90b
AA
57052018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5706
5707 * linux-s390-low.c (s390_fill_gs): Remove function.
5708 (s390_fill_gsbc): Remove function.
5709 (s390_regsets): Set fill functions for the guarded storage regsets
5710 to NULL.
5711
7edb9bd3
AA
57122018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5713
5714 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5715 the word size. Add comment.
5716 (s390_get_wordsize): New function.
5717 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5718 pswm with it. Instead, use s390_get_wordsize to determine the
5719 word size first and derive the correct tdesc from that directly.
5720
39be3c7e
SM
57212018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * Makefile.in: Include silent-rules.mk.
5724 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5725 (COMPILE): Add ECHO_CXX.
5726 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5727 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5728 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5729 (version-generated.c): Add ECHO_GEN.
5730 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5731 (IPAGENT_COMPILE): Add ECHO_CXX.
5732 (%-generated.c): Add ECHO_REGDAT.
5733
3ae9ce5d
TT
57342018-03-14 Tom Tromey <tom@tromey.com>
5735
5736 PR cli/14977:
5737 * ax.c (ax_printf): Special case for NULL.
5738
e6a58aa8
SM
57392018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5740
5741 * linux-low.c (linux_qxfer_libraries_svr4): Use
5742 xml_escape_text_append.
5743
f6e8a41e
SM
57442018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5745
5746 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5747
b9671caf
SM
57482018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * server.c (handle_general_set): Remove unnecessary xstrdup.
5751
e80aaf61
SM
57522018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * server.c (parse_debug_format_options): Adjust to
5755 delim_string_to_char_ptr_vec changes.
5756 * thread-db.c (thread_db_load_search): Adjust to
5757 dirnames_to_char_ptr_vec changes.
5758
b1223e78
MM
57592018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5760
5761 * target.h (target_enable_btrace, target_disable_btrace)
5762 (target_read_btrace, target_read_btrace_conf): Turn macro into
5763 inline function. Throw error if target method is not defined.
5764 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5765 check for btrace target method. Be prepared to handle exceptions
5766 from btrace target methods.
5767
81561546
SDJ
57682018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5769
5770 * server.c (captured_main): Change order of error message printed
5771 when the current working directory cannot be found.
5772
25e3c82c
SDJ
57732018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5774
5775 * server.c: Include "filenames.h" and "pathstuff.h".
5776 (program_name): Delete variable.
5777 (program_path): New anonymous class.
5778 (get_exec_wrapper): Use "program_path" instead of
5779 "program_name".
5780 (handle_v_run): Likewise.
5781 (captured_main): Likewise.
5782 (process_serial_event): Likewise.
5783
b4987c95
SDJ
57842018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5785
5786 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5787 (OBJS): Add "pathstuff.o".
5788 * server.c (current_directory): New global variable.
5789 (captured_main): Initialize "current_directory".
5790
f46cd62a
AH
57912018-02-26 Alan Hayward <alan.hayward@arm.com>
5792
5793 * tdesc.c: Use common/tdesc.h.
5794 * tdesc.h: Likewise.
5795
a543c5ca
AH
57962018-02-20 Alan Hayward <alan.hayward@arm.com>
5797 Simon Marchi <simon.marchi@ericsson.com>
5798
5799 * Makefile.in: Switch order of make rules.
5800
b5884fa7
AH
58012018-02-19 Alan Hayward <alan.hayward@arm.com>
5802
5803 * Makefile.in: Add common directory in build.
5804 * configure.ac: Add common reference.
5805 * configure: Regenerate.
5806
de6242d3
MM
58072018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5808
5809 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5810 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5811 * spu-low.c (spu_target_ops): Likewise.
5812 * win32-low.c (win32_target_ops): Likewise.
5813 * server.c (supported_btrace_packets): Report packets unconditionally.
5814 * target.h (target_ops) <supports_btrace>: Remove.
5815 (target_supports_btrace): Remove.
5816
9ee23a85
MM
58172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5818
5819 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5820 (handle_btrace_disable): Change return type to void. Use exceptions
5821 to report errors.
5822 (handle_btrace_general_set): Catch exception and copy message to
5823 return message.
5824
8ce47547
TT
58252018-02-08 Tom Tromey <tom@tromey.com>
5826
5827 * linux-low.c (install_software_single_step_breakpoints): Use
5828 make_scoped_restore.
5829 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5830 (do_restore_current_thread_cleanup): Remove.
5831 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5832 declare.
5833
45dd3607
TT
58342018-02-08 Tom Tromey <tom@tromey.com>
5835
5836 * mem-break.c (set_raw_breakpoint_at): Use
5837 gdb::unique_xmalloc_ptr.
5838
e671cd59
PA
58392018-01-30 Pedro Alves <palves@redhat.com>
5840
5841 PR gdb/13211
5842 * target.c (target_terminal::terminal_state): Rename to ...
5843 (target_terminal::m_terminal_state): ... this.
5844
a0aad537
JC
58452018-01-19 James Clarke <jrtc27@jrtc27.com>
5846
5847 * linux-low.c (handle_extended_wait): Surround call to
5848 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5849
4d9b86e1
SM
58502018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5851
5852 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5853 linux_ptrace_attach_fail_reason_string now returning an
5854 std::string.
5855 (linux_attach): Likewise.
5856 * thread-db.c (attach_thread): Likewise.
5857
f517c180
EA
58582018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5859
5860 PR gdb/21559
5861 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5862 checking for fs_base/gs_base fields in struct user_regs_struct.
5863 * configure: Regenerate.
5864
9a70f35c
YQ
58652018-01-16 Yao Qi <yao.qi@linaro.org>
5866
5867 PR gdb/18749
5868 * linux-low.c (fetch_register): Call supply_register instead of
5869 error.
5870
605fd3c6
YQ
58712018-01-08 Yao Qi <yao.qi@linaro.org>
5872 Simon Marchi <simon.marchi@ericsson.com>
5873
5874 * Makefile.in (OBS): Remove selftest.o.
5875 * configure.ac: Set srv_selftest_objs if $development is true.
5876 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5877 * configure: Re-generated.
5878 * server.c (captured_main): Wrap variable selftest_filter with
5879 GDB_SELF_TEST.
5880
2cc05030
SM
58812018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * server.c (parse_debug_format_options): Return std::string.
5884 (handle_monitor_command, captured_main): Adjust.
5885
e379cee6
PA
58862018-01-05 Pedro Alves <palves@redhat.com>
5887
5888 PR gdb/18653
5889 * server.c (captured_main): Pass quiet=false to
5890 save_original_signals_state.
5891
82e1e79a
JB
58922018-01-01 Joel Brobecker <brobecker@adacore.com>
5893
5894 * gdbreplay.c (gdbreplay_version): Update copyright year in
5895 version message.
5896 * server.c (gdbserver_version): Likewise.
5897
8e481c3b
TT
58982017-12-08 Tom Tromey <tom@tromey.com>
5899
5900 * ax.c (ax_printf): Update.
5901
a8806230
YQ
59022017-12-07 Yao Qi <yao.qi@linaro.org>
5903
5904 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5905 aarch64_linux_read_description.
5906 * linux-amd64-ipa.c (idx2mask): New array.
5907 (get_ipa_tdesc): Move idx2mask out.
5908 (initialize_low_tracepoint): Initialize target descriptions.
5909 * linux-i386-ipa.c (idx2mask): New array.
5910 (get_ipa_tdesc): Move idx2mask out.
5911 (initialize_low_tracepoint): Initialize target descriptions.
5912
d4a0e8b5
SM
59132017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5914
5915 * tdesc.c (struct tdesc_type): Change return type.
5916 (tdesc_add_flag): Change parameter type.
5917 (tdesc_add_bitfield): Likewise.
5918 (tdesc_add_field): Likewise.
5919 (tdesc_set_struct_size): Likewise.
5920
798a7429
SM
59212017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5922
5923 * regcache.c (registers_to_string): Remove unused variable.
5924
c0e15c9b
SM
59252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * inferiors.c (for_each_inferior_with_data): Remove.
5928 * inferiors.h (for_each_inferior_with_data): Remove.
5929 * server.c (handle_qxfer_threads_worker): Change parameter type.
5930 (handle_qxfer_threads_proper): Use for_each_thread.
5931
f0045347
SM
59322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * inferiors.c (for_each_inferior): Remove.
5935 (clear_inferiors): Use for_each_thread.
5936 * inferiors.h (for_each_inferior): Remove.
5937 * linux-low.c (linux_wait_for_event_filtered): Use
5938 for_each_thread.
5939 (linux_stabilize_threads): Likewise.
5940 * regcache.c (regcache_release): Likewise.
5941 * server.c (gdb_wants_all_threads_stopped): Likewise.
5942 (clear_pending_status_callback): Remove.
5943 (handle_status): Use for_each_thread.
5944 (captured_main): Likewise.
5945 * win32-low.c (child_init_thread_list): Likewise.
5946 (win32_clear_inferiors): Likewise.
5947 (fake_breakpoint_event): Likewise.
5948
9521758b
SM
59492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5950
5951 * inferiors.h (find_inferior): Remove.
5952 * inferiors.c (find_inferior): Remove.
5953
8f86d7aa
SM
59542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5955
5956 * linux-low.c (resume_status_pending_p): Update comment.
5957 (need_step_over_p): Update comment.
5958
e2b44075
SM
59592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5960
5961 * linux-low.c (proceed_one_lwp): Return void, change parameter
5962 type.
5963 (unsuspend_and_proceed_one_lwp): Likewise.
5964 (proceed_all_lwps): Use for_each_thread.
5965 (unstop_all_lwps): Likewise.
5966
c80825ff
SM
59672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * linux-low.c (linux_resume_one_thread): Return void, take
5970 parameter directly.
5971 (linux_resume): Use for_each_thread.
5972
df3e4dbe
SM
59732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * linux-low.c (send_sigstop_callback): Return void, change
5976 parameter type. Rename to...
5977 (send_sigstop): ... this.
5978 (suspend_and_send_sigstop_callback): Return void, change parameter
5979 type. Rename to...
5980 (suspend_and_send_sigstop): ... this.
5981 (stop_all_lwps): Use for_each_thread.
5982
5a6b0a41
SM
59832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5984
5985 * linux-low.c (lwp_running): Return bool, remove unused
5986 argument.
5987 (linux_stabilize_threads): Use find_thread.
5988
39a64da5
SM
59892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * linux-low.c (select_singlestep_lwp_callback): Remove.
5992 (count_events_callback): Remove.
5993 (select_event_lwp_callback): Remove.
5994 (select_event_lwp): Use find_thread/for_each_thread.
5995
a1385b7b
SM
59962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5997
5998 * linux-low.c (not_stopped_callback): Return bool, take filter
5999 argument directly.
6000 (linux_wait_for_event_filtered): Use find_thread.
6001 (linux_wait_1): Likewise.
6002
454296a2
SM
60032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * linux-low.c (same_lwp): Remove.
6006 (find_lwp_pid): Use find_thread.
6007
6b2a85da
SM
60082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * linux-low.c (delete_lwp_callback): Remove.
6011 (linux_mourn): Use for_each_thread.
6012
798a38e8
SM
60132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6014
6015 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6016 args parameter, don't check for pid.
6017 (linux_detach): Use for_each_thread.
6018
e4eb0dec
SM
60192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * linux-low.c (struct counter): Remove.
6022 (second_thread_of_pid_p): Remove.
6023 (last_thread_of_process_p): Use find_thread.
6024
83e1b6c1
SM
60252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6026
6027 * inferiors.c (find_inferior_in_random): Remove.
6028 * inferiors.h (find_inferior_in_random): Remove.
6029 * linux-low.c (status_pending_p_callback): Return bool, accept
6030 parameter ptid directly.
6031 (linux_wait_for_event_filtered): Use find_thread_in_random.
6032 (linux_wait_1): Likewise.
6033
8dc7b443
SM
60342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * inferiors.c (find_inferior_id): Remove.
6037 (find_thread_ptid): Move implemention from find_inferior_id to
6038 here.
6039 * inferiors.h (find_inferior_id): Remove.
6040 * server.c (handle_status): Use find_thread_ptid.
6041 (process_serial_event): Likewise.
6042 * thread-db.c (find_one_thread): Likewise.
6043 (thread_db_thread_handle): Likewise.
6044 * win32-low.c (thread_rec): Likewise.
6045 (child_delete_thread): Likewise.
6046 (win32_thread_alive): Likewise.
6047 (get_child_debug_event): Likewise.
6048
da25033c
SM
60492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6050
6051 * linux-mips-low.c (update_watch_registers_callback): Return
6052 void, remove pid_p parameter, don't check for pid.
6053 (mips_insert_point, mips_remove_point): Use for_each_thread.
6054
c91bb56b
SM
60552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * lynx.low (lynx_delete_thread_callback): Remove.
6058 (lynx_mourn): Use for_each_thread.
6059
634a3254
SM
60602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * regcache.c (regcache_invalidate_one): Remove.
6063 (regcache_invalidate_pid): use for_each_thread.
6064
41272101
TT
60652017-11-26 Tom Tromey <tom@tromey.com>
6066
6067 * linux-low.c (linux_create_inferior): Update.
6068
f5291a6f
UW
60692017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6070
6071 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6072
6654d750
AH
60732017-11-24 Alan Hayward <alan.hayward@arm.com>
6074
6075 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6076 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6077 * linux-aarch64-tdesc-selftest.c: New file.
6078 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6079
60802017-11-24 Alan Hayward <alan.hayward@arm.com>
6081
6082 * configure.srv: Add new file.
6083 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6084 * linux-aarch64-tdesc-selftest.c: New file.
6085 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6086
49bdb7ee
AH
60872017-11-24 Alan Hayward <alan.hayward@arm.com>
6088
6089 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6090 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6091 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6092
d6d7ce56
AH
60932017-11-24 Alan Hayward <alan.hayward@arm.com>
6094
6095 * configure.srv: Add new files.
6096 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6097 aarch64_linux_read_description.
6098 * linux-aarch64-low.c (aarch64_linux_read_description):
6099 Merge with aarch64_arch_setup.
6100 (aarch64_arch_setup): Call aarch64_linux_read_description.
6101 * linux-aarch64-tdesc.c: New file.
6102 * linux-aarch64-tdesc.h: New file.
6103
506fe5f4
YQ
61042017-11-24 Yao Qi <yao.qi@linaro.org>
6105
6106 * configure.srv: Set $srv_regobj for tic6x-linux.
6107 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6108 (tic6x_read_description): Move some code to tic6x_arch_setup.
6109 (tic6x_tdesc_test): New function.
6110 (initialize_low_arch): Call selftests::register_test.
6111
29f9a567
YQ
61122017-11-22 Yao Qi <yao.qi@linaro.org>
6113
6114 * remote-utils.c (prepare_resume_reply): Use memcpy.
6115
578290ec
SM
61162017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6117
6118 * linux-low.c (kill_one_lwp_callback): Return void, take
6119 argument directly, don't filter on pid.
6120 (linux_kill): Use for_each_thread.
6121
eca55aec
SM
61222017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6123
6124 * linux-low.c (need_step_over_p): Return bool, remove dummy
6125 argument.
6126 (linux_resume, proceed_all_lwps): Use find_thread.
6127
25c28b4d
SM
61282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * linux-low.c (resume_status_pending_p): Return bool, remove
6131 flag_p argument.
6132 (linux_resume): Use find_thread.
6133
5fdda392
SM
61342017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * linux-low.c (struct thread_resume_array): Remove.
6137 (linux_set_resume_request): Return void, take arguments
6138 directly.
6139 (linux_resume): Use for_each_thread.
6140
fcb056a5
SM
61412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6142
6143 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6144 return bool, remove data argument.
6145 (linux_stabilize_threads): Use find_thread.
6146
139720c5
SM
61472017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6148
6149 * linux-low.c (unsuspend_one_lwp): Remove.
6150 (unsuspend_all_lwps): Use for_each_thread, inline code from
6151 unsuspend_one_lwp.
6152
6d1e5673
SM
61532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6154
6155 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6156 * linux-low.c (struct iterate_over_lwps_args): Remove.
6157 (iterate_over_lwps_filter): Remove.
6158 (iterate_over_lwps): Use find_thread.
6159
bbf550d5
SM
61602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6161
6162 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6163 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6164 code from reset_lwp_ptrace_options_callback.
6165
00192f77
SM
61662017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * linux-arm-low.c (struct update_registers_data): Remove.
6169 (update_registers_callback): Return void, take arguments
6170 directly, don't check thread's pid.
6171 (arm_insert_point, arm_remove_point): Use for_each_thread.
6172
2bee2b6c
SM
61732017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6174
6175 * win32-low.c (continue_one_thread): Return void, take argument
6176 directly.
6177 (child_continue): Use for_each_thread.
6178
0b360f19
SM
61792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6180
6181 * win32-i386-low.c (update_debug_registers_callback): Rename
6182 to ...
6183 (update_debug_registers): ... this, return void, remove pid_p arg.
6184 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6185
f27866ba
SM
61862017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * inferiors.h (struct process_info): Add constructor, initialize
6189 fields..
6190 <syscalls_to_catch>: Change type to std::vector<int>.
6191 * inferiors.c (add_process): Allocate process_info with new.
6192 (remove_process): Free process_info with delete.
6193 * linux-low.c (handle_extended_wait): Adjust.
6194 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6195 * server.c (handle_general_set): Adjust.
6196
e849ea89
PA
61972017-11-16 Pedro Alves <palves@redhat.com>
6198
6199 * remote-utils.c (remote_close): Block SIGIO signals instead of
6200 uninstalling the SIGIO handler.
6201
1d0aa65c
AH
62022017-11-16 Alan Hayward <alan.hayward@arm.com>
6203
6204 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6205
3491a34c
YQ
62062017-11-16 Yao Qi <yao.qi@linaro.org>
6207
6208 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6209 (tic6x_store_gregset): Likewise.
6210 (tic6x_usrregs_info): Move it up.
6211
a602f924
AH
62122017-11-15 Alan Hayward <alan.hayward@arm.com>
6213
6214 * Makefile.in: Update arch rules.
6215 * configure.srv: Explicitly mark arch/ files.
6216
5616b6c3
AS
62172017-11-13 Andreas Schwab <schwab@suse.de>
6218
6219 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6220 function.
6221 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6222
d1928160
PA
62232017-11-06 Pedro Alves <palves@redhat.com>
6224
6225 * config.in, configure: Regenerate.
6226
bac608e7
SM
62272017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * target.c (struct thread_search): Remove.
6230 (thread_search_callback): Remove.
6231 (prepare_to_access_memory): Use for_each_thread instead of
6232 find_inferior. Inline code from thread_search_callback.
6233
eaddb425
SM
62342017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6235
6236 * server.c (struct visit_actioned_threads_data): Remove.
6237 (visit_actioned_threads): Change prototype to take arguments
6238 directly.
6239 (resume): Use find_thread instead of find_inferior.
6240
99078d34
SM
62412017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6242
6243 * server.c (queue_stop_reply_callback): Change prototype, return
6244 void.
6245 (find_status_pending_thread_callback): Remove.
6246 (handle_status): Replace find_inferior with find_thread and
6247 for_each_thread.
6248
cc628f3d
AH
62492017-10-25 Alan Hayward <alan.hayward@arm.com>
6250
6251 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6252 with REGNO.
6253 (aarch64_store_gregset): Likewise.
6254 (aarch64_fill_fpregset): Likewise.
6255 (aarch64_store_fpregset): Likewise.
6256
4d3bb80e
SM
62572017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6258
6259 * gdbthread.h (find_thread, for_each_thread): New functions.
6260 * inferiors.c (thread_of_pid): Remove.
6261 (find_any_thread_of_pid): Use find_thread.
6262 * linux-low.c (num_lwps): Use for_each_thread.
6263
7a7cdfa0
YQ
62642017-10-17 Yao Qi <yao.qi@linaro.org>
6265
6266 * Makefile.in: Remove one rule.
6267 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6268
e675d170
YQ
62692017-10-17 Yao Qi <yao.qi@linaro.org>
6270
6271 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6272 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6273
7eb4e0f9
YQ
62742017-10-17 Yao Qi <yao.qi@linaro.org>
6275
6276 * configure.srv: Rename arm.o with arch/arm.o.
6277
60d6cfc9
YQ
62782017-10-17 Yao Qi <yao.qi@linaro.org>
6279
6280 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6281 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6282 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6283 (arch-i386.o, arch-amd64.o): Remove rules.
6284 (arch/%.o): New rule.
6285 Update POSTCOMPILE and COMPILE.pre.
6286 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6287 * configure: Re-generated.
6288 * configure.srv: Replace arch-i386.o with arch/i386.o.
6289 Replace arch-amd64.o with arch/amd64.o.
6290
5bfda255
YQ
62912017-10-16 Yao Qi <yao.qi@linaro.org>
6292
6293 * configure: Regenerated.
6294
9c80ecd6
SM
62952017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * inferiors.h: (struct inferior_list): Remove.
6298 (struct inferior_list_entry); Remove.
6299 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6300 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6301 get_first_inferior): Remove.
6302 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6303 find_inferior_id, find_inferior_in_random): Change signature.
6304 * inferiors.c (all_threads): Change type to
6305 std::list<thread_info *>.
6306 (get_thread): Remove macro.
6307 (find_inferior, find_inferior_id): Change signature, implement
6308 using find_thread.
6309 (find_inferior_in_random): Change signature, implement using
6310 find_thread_in_random.
6311 (for_each_inferior, for_each_inferior_with_data): Change
6312 signature, implement using for_each_thread.
6313 (add_inferior_to_list, remove_inferior): Remove.
6314 (add_thread, get_first_thread, thread_of_pid,
6315 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6316 (get_first_inferior, one_inferior_p, clear_inferior_list):
6317 Remove.
6318 (clear_inferiors, get_thread_process): Update.
6319 * gdbthread.h: Include <list>.
6320 (struct thread_info) <entry>: Remove field.
6321 <id>: New field.
6322 (all_threads): Change type to std::list<thread_info *>.
6323 (get_first_inferior): Add doc.
6324 (find_thread, for_each_thread, find_thread_in_random): New
6325 functions.
6326 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6327 * linux-arm-low.c (update_registers_callback): Update.
6328 * linux-low.c (second_thread_of_pid_p): Update.
6329 (kill_one_lwp_callback, linux_detach_lwp_callback,
6330 delete_lwp_callback, status_pending_p_callback, same_lwp,
6331 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6332 iterate_over_lwps, not_stopped_callback,
6333 resume_stopped_resumed_lwps, count_events_callback,
6334 select_singlestep_lwp_callback, select_event_lwp_callback,
6335 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6336 suspend_and_send_sigstop_callback, wait_for_sigstop,
6337 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6338 lwp_running, linux_set_resume_request, resume_status_pending_p,
6339 need_step_over_p, start_step_over, linux_resume_one_thread,
6340 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6341 reset_lwp_ptrace_options_callback): Update.
6342 * linux-mips-low.c (update_watch_registers_callback): Update.
6343 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6344 Update.
6345 (free_register_cache_thread_one): Remove.
6346 (regcache_release): Update.
6347 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6348 handle_qxfer_threads_worker): Update.
6349 (handle_query): Update, use list iterator.
6350 (visit_actioned_threads, handle_pending_status,
6351 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6352 clear_pending_status_callback, set_pending_status_callback,
6353 find_status_pending_thread_callback, handle_status,
6354 process_serial_event): Update.
6355 * target.c (thread_search_callback): Update.
6356 * thread-db.c (thread_db_get_tls_address): Update.
6357 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6358 Update.
6359 * win32-i386-low.c (update_debug_registers_callback): Update.
6360 * win32-low.c (delete_thread_info, child_delete_thread,
6361 continue_one_thread, suspend_one_thread,
6362 get_child_debug_event): Adjust.
6363
9179355e
SM
63642017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6365
6366 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6367 * inferiors.h: Include <list>.
6368 (struct process_info) <entry>: Remove field.
6369 <pid>: New field.
6370 (pid_of): Change macro to function.
6371 (ptid_of, lwpid_of): Remove macro.
6372 (all_processes): Change type to std::list<process_info *>.
6373 (ALL_PROCESSES): Remove macro.
6374 (for_each_process, find_process): New function.
6375 * inferiors.c (all_processes): Change type to
6376 std::list<process_info *>.
6377 (find_thread_process): Adjust.
6378 (add_process): Likewise.
6379 (remove_process): Likewise.
6380 (find_process_pid): Likewise.
6381 (get_first_process): Likewise.
6382 (started_inferior_callback): Remove.
6383 (have_started_inferiors_p): Adjust.
6384 (attached_inferior_callback): Remove.
6385 (have_attached_inferiors_p): Adjust.
6386 * linux-low.c (check_zombie_leaders): Likewise.
6387 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6388 (x86_linux_update_xmltarget): Adjust.
6389 * server.c (handle_query): Likewise.
6390 (gdb_reattached_process): Remove.
6391 (handle_status): Adjust.
6392 (kill_inferior_callback): Likewise.
6393 (detach_or_kill_inferior): Remove.
6394 (print_started_pid): Likewise.
6395 (print_attached_pid): Likewise.
6396 (detach_or_kill_for_exit): Update.
6397 (process_serial_event): Likewise.
6398 * linux-arm-low.c (arm_new_fork): Likewise.
6399
c9cb8905
SM
64002017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * dll.h: Include <list>.
6403 (struct dll_info): Add constructor.
6404 <entry>: Remove field.
6405 (all_dlls): Change type to std::list<dll_info>.
6406 * dll.c: Include <algorithm>.
6407 (get_dll): Remove macro.
6408 (all_dlls): Change type to std::list<dll_info *>.
6409 (free_one_dll): Remove.
6410 (match_dll): Likewise.
6411 (loaded_dll): Adjust.
6412 (unloaded_dll): Adjust to all_dlls type change, use
6413 std::find_if. Inline code from match_dll.
6414 (clear_dlls): Adjust to all_dlls type change.
6415 * server.c (emit_dll_description): Remove.
6416 (handle_qxfer_libraries): Adjust to all_dlls type change,
6417 integrate emit_dll_description's functionality.
6418
04ec7890
SM
64192017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * linux-low.h (struct linux_target_ops) <delete_process>: New
6422 field.
6423 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6424 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6425 (struct linux_target_ops): Add delete_process callback.
6426 * linux-arm-low.c (arm_delete_process): New.
6427 (struct linux_target_ops): Add delete_process callback.
6428 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6429 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6430 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6431 * linux-mips-low.c (mips_linux_delete_process): New.
6432 (struct linux_target_ops): Add delete_process callback.
6433 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6434 * linux-s390-low.c (struct linux_target_ops): Likewise.
6435 * linux-sh-low.c (struct linux_target_ops): Likewise.
6436 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6437 * linux-tile-low.c (struct linux_target_ops): Likewise.
6438 * linux-x86-low.c (x86_linux_delete_process): New.
6439 (struct linux_target_ops): Add delete_process callback.
6440 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6441
466eecee
SM
64422017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6443
6444 * linux-aarch64-low.c (the_low_target): Add thread delete
6445 callback.
6446 * linux-arm-low.c (arm_delete_thread): New function.
6447 (the_low_target): Add thread delete callback.
6448 * linux-bfin-low.c (the_low_target): Likewise.
6449 * linux-crisv32-low.c (the_low_target): Likewise.
6450 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6451 set.
6452 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6453 field.
6454 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6455 * linux-mips-low.c (mips_linux_delete_thread): New function.
6456 (the_low_target): Add thread delete callback.
6457 * linux-ppc-low.c (the_low_target): Likewise.
6458 * linux-s390-low.c (the_low_target): Likewise.
6459 * linux-sh-low.c (the_low_target): Likewise.
6460 * linux-tic6x-low.c (the_low_target): Likewise.
6461 * linux-tile-low.c (the_low_target): Likewise.
6462 * linux-x86-low.c (the_low_target): Likewise.
6463 * linux-xtensa-low.c (the_low_target): Likewise.
6464
b79f7801
YZ
64652017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6466
6467 * win32-low.c: Include "common-inferior.h".
6468
bc3b087d
SDJ
64692017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6470
6471 * inferiors.c (set_inferior_cwd): New function.
6472 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6473 (handle_query): Inform that QSetWorkingDir is supported.
6474 * win32-low.c (create_process): Pass the inferior's cwd to
6475 CreateProcess.
6476
d092c5a2
SDJ
64772017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6478
6479 * inferiors.c (current_inferior_cwd): New global variable.
6480 (get_inferior_cwd): New function.
6481 * inferiors.h (struct process_info) <cwd>: New field.
6482
7da0a886
SDJ
64832017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6484
6485 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6486 (OBS): Add gdb_tilde_expand.o.
6487
289a6840
SM
64882017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6489
6490 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6491 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6492
256642e8
PA
64932017-09-29 Pedro Alves <palves@redhat.com>
6494
6495 * ax.c (gdb_parse_agent_expr): Constify.
6496 * ax.h (gdb_parse_agent_expr): Constify.
6497 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6498 Constify.
6499 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6500 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6501 * remote-utils.h (read_ptid): Constify.
6502 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6503 (process_point_options, process_serial_event): Constify.
6504 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6505 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6506 (cmd_qtbuffer): Constify.
6507
5b9ca4d4
PA
65082017-09-29 Pedro Alves <palves@redhat.com>
6509
6510 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6511 fails.
6512
94c207e0
PA
65132017-09-29 Pedro Alves <palves@redhat.com>
6514
6515 * linux-low.c (handle_extended_wait): Pass parent thread instead
6516 of process to thread_db_notice_clone.
6517 * linux-low.h (thread_db_notice_clone): Replace parent process
6518 parameter with parent thread parameter.
6519 * thread-db.c (find_one_thread): Add comment.
6520 (thread_db_notice_clone): Replace parent process parameter with
6521 parent thread parameter. Temporarily switch to the parent thread.
6522
75352e28
SDJ
65232017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6524
6525 * gdbthread.h: Include "common-gdbthread.h".
6526 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6527 "if" when validating the ptid.
6528 * remote-utils.c: Include "gdbthread.h".
6529 (prepare_resume_reply): Use "switch_to_thread".
6530 * target.c (done_accessing_memory): Likewise.
6531
ad339634
AA
65322017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6533
6534 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6535 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6536 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6537 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6538 s390x-gs-linux64-ipa.o to ipa_obj.
6539 * linux-s390-low.c (HWCAP_S390_GS): New define.
6540 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6541 New functions.
6542 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6543 (s390_arch_setup): Check for guarded-storage support and choose
6544 appropriate tdesc.
6545 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6546 init_registers_s390x_gs_linux64.
6547 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6548 enum value.
6549 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6550 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6551
cc4d742f
SM
65522017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6553
6554 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6555
f6327dcb
KB
65562017-09-21 Kevin Buettner <kevinb@redhat.com>
6557
6558 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6559 (thread_db_thread_handle): Declare.
6560 * linux-low.c (linux_target_ops): Initialize thread_handle.
6561 * server.c (handle_qxfer_threads_worker): Add support for
6562 "handle" attribute.
6563 * target.h (struct target_ops): Add new function pointer,
6564 thread_handle.
6565 (target_thread_handle): Define.
6566 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6567 field in lwp.
6568 (thread_db_thread_handle): New function.
6569
86299109
KB
65702017-09-21 Kevin Buettner <kevinb@redhat.com>
6571
6572 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6573 * linux-low.h (thread_db_notice_clone): Declare.
6574 * thread-db.c (thread_db_notice_clone): New function.
6575
f557a88a
PA
65762017-09-21 Pedro Alves <palves@redhat.com>
6577
6578 * server.c (gdb_read_memory, handle_status, process_serial_event)
6579 (handle_serial_event, handle_target_event): Adjust to
6580 set_desired_thread prototype change.
6581 * target.c (set_desired_thread): Remove 'use_general' parameter
6582 and adjust.
6583 * target.h (set_desired_thread): Remove 'use_general' parameter.
6584
223ffa71
TT
65852017-09-20 Tom Tromey <tom@tromey.com>
6586
6587 * target.c (target_terminal::terminal_state): Define.
6588 (target_terminal::init): Rename from target_terminal_init.
6589 (target_terminal::inferior): Rename from
6590 target_terminal_inferior.
6591 (target_terminal::ours): Rename from target_terminal_ours.
6592 (target_terminal::ours_for_output, target_terminal::info): New.
6593
04fd3ba9
SM
65942017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6595
6596 * server.c (accumulate_file_name_length): Remove.
6597 (emit_dll_description): Adjust to std::string change.
6598 (handle_qxfer_libraries): Use std::string to hold document.
6599
5e187554
SM
66002017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6601
6602 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6603 return type of xml_escape_text.
6604 * server.c (emit_dll_description): Likewise.
6605
1526853e
SM
66062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6607
6608 * server.c (captured_main): Accept argument for --selftest.
6609 Update run_tests call.
6610 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6611 when registering selftests.
6612
c4dfafab
SDJ
66132017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6614
6615 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6616 instead of "VEC" for "target_desc.reg_defs".
6617 (regcache_cpy): Likewise.
6618 (registers_to_string): Likewise.
6619 (registers_from_string): Likewise.
6620 (find_regno): Likewise.
6621 (supply_regblock): Likewise.
6622 (regcache_raw_read_unsigned): Likewise.
6623 * tdesc.c (init_target_desc): Likewise.
6624 (tdesc_create_reg): Likewise.
6625 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6626 (struct target_desc) <reg_defs>: Convert to "std::vector".
6627 (target_desc): Do not initialize "reg_defs".
6628 (~target_desc): Update code to use "std::vector" instead of "VEC"
6629 for "target_desc.reg_defs".
6630 (operator==): Likewise.
6631
124aceb4
SM
66322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6633
6634 * inferiors.h (thread_to_gdb_id): Remove.
6635 * inferiors.c (thread_to_gdb_id): Remove.
6636 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6637 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6638 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6639 Likewise.
6640 * nto-low.c (nto_fetch_registers, nto_store_registers,
6641 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6642
96cde54f
SM
66432017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6644
6645 * inferiors.h (gdb_id_to_thread_id): Remove.
6646 * inferiors.c (gdb_id_to_thread_id): Remove.
6647 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6648 removal. Move pid declaration closer to where it's used.
6649
e8ca139e
SM
66502017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6651
6652 * server.c (handle_detach): New function.
6653 (process_serial_event): Move code out, call handle_detach.
6654
f8a4e119
SM
66552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6656
6657 * server.c (require_running): Rename to ...
6658 (require_running_or_return): ... this ...
6659 (require_running_or_break): ... and this.
6660 (handle_query, process_serial_event): Adjust.
6661
0eb0a407
SM
66622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * linux-low.c (linux_set_resume_request): Remove unused
6665 variables.
6666
785922a5
SM
66672017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * server.c (first_thread_of): Remove.
6670 (process_serial_event): Replace usage of first_thread_of with
6671 find_any_thread_of_pid.
6672 * tracepoint.c (same_process_p): Remove.
6673 (gdb_agent_about_to_close): Replace usage of same_process_p with
6674 find_any_thread_of_pid.
6675 * linux-x86-low.c (same_process_callback): Remove.
6676 (x86_arch_setup_process_callback): Replace usage of
6677 same_process_callback with find_any_thread_of_pid.
6678 * thread-db.c (any_thread_of): Remove.
6679 (switch_to_process): Replace usage of any_thread_of with
6680 find_any_thread_of_pid.
6681 * inferiors.c (thread_pid_matches_callback): Remove.
6682 (find_thread_process): Adjust to use find_any_thread_of_pid.
6683
a059f00c
SDJ
66842017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6685
6686 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6687 with "!VEC_empty".
a059f00c 6688
cc397f3a
SDJ
66892017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6690
6691 * linux-low.c (handle_extended_wait): Use
6692 "allocate_target_description" instead of "XNEW".
6693 * linux-x86-low.c (initialize_low_arch): Likewise.
6694
22916b07
YQ
66952017-09-05 Yao Qi <yao.qi@linaro.org>
6696
6697 * configure.srv (srv_i386_regobj): Remove.
6698 (srv_amd64_regobj): Remove.
6699 (srv_regobj): Set it to "" for x86 non-linux targets.
6700 * linux-x86-tdesc.c (i386_linux_read_description):
6701 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6702 (init_registers_i386): Remove the declaration.
6703 (tdesc_i386): Remove the declaration.
6704 (lynx_i386_arch_setup): Call i386_create_target_description.
6705 * nto-x86-low.c: Likewise.
6706 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6707 [!__x86_64__]: include arch/i386.h.
6708 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6709
38602d55
YQ
67102017-09-05 Yao Qi <yao.qi@linaro.org>
6711
6712 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6713 i386/amd64-XXX-linux from it.
6714
44b886ff
YQ
67152017-09-05 Yao Qi <yao.qi@linaro.org>
6716
6717 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6718 false.
6719 (ipa_amd64_linux_regobj): Remove.
6720 (ipa_x32_linux_regobj): Remove.
6721
b4570e4b
YQ
67222017-09-05 Yao Qi <yao.qi@linaro.org>
6723
6724 * Makefile.in (arch-amd64.o): New rule.
6725 * configure.srv: Append arch-amd64.o.
6726 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6727 (get_ipa_tdesc): Call amd64_linux_read_description.
6728 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6729 and init_registers_amd64_XXX.
6730 * linux-x86-low.c (x86_linux_read_description): Call
6731 amd64_linux_read_description.
6732 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6733 (initialize_low_arch): Don't call init_registers_x32_XXX and
6734 init_registers_amd64_XXX.
6735 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6736 and tdesc_amd64_XXX.
6737 [__x86_64__] (amd64_tdesc_test): New function.
6738 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6739 and init_registers_amd64_XXX.
6740 * linux-x86-tdesc.c: Include arch/amd64.h.
6741 (xcr0_to_tdesc_idx): New function.
6742 (i386_linux_read_description): New function.
6743 (amd64_get_ipa_tdesc_idx): New function.
6744 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6745 (amd64_get_ipa_tdesc): Declare.
6746
d1f28ea2
YQ
67472017-09-05 Yao Qi <yao.qi@linaro.org>
6748
6749 * configure.srv (srv_i386_linux_xmlfiles): Remove
6750 i386/i386-XXX-linux.xml from it.
6751
25a93583
YQ
67522017-09-05 Yao Qi <yao.qi@linaro.org>
6753
6754 * configure.srv: Set srv_i386_linux_regobj empty if $development
6755 is false.
6756 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6757 initialize_low_tdesc.
6758 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6759 with #if initialize_low_tdesc.
6760 * linux-x86-tdesc-selftest.c: New file.
6761 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6762
5f035c07
YQ
67632017-09-05 Yao Qi <yao.qi@linaro.org>
6764
6765 * Makefile.in (arch-i386.o): New rule.
6766 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6767 (x86_64-*-linux*): Likewise.
6768 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6769 include arch/i386.h.
6770 (i386_linux_read_description): Remove code and call
6771 i386_create_target_description.
6772 * tdesc.c (allocate_target_description): New function.
6773 * tdesc.h (set_tdesc_architecture): Remove declaration.
6774 (set_tdesc_osabi): Likewise.
6775
0abe8a89
YQ
67762017-09-05 Yao Qi <yao.qi@linaro.org>
6777
6778 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6779 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6780 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6781 .xmltarget.
6782 * server.c (get_features_xml): Call tdesc_get_features_xml.
6783 * tdesc.c (set_tdesc_architecture): New function.
6784 (set_tdesc_osabi): New function.
6785 (tdesc_get_features_xml): New function.
6786 (tdesc_create_feature): Add an argument.
6787 * tdesc.h (struct target_desc) <features>: New field.
6788 <arch, osabi>: New field.
6789 (~target_desc): xfree features, arch, and osabi.
6790 (target_desc::oerator==): Don't compare .xmltarget.
6791 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6792 (set_tdesc_osabi): Likewise.
6793 (tdesc_get_features_xml): Likewise.
6794
0a188386
YQ
67952017-09-05 Yao Qi <yao.qi@linaro.org>
6796
6797 * linux-x86-tdesc.c: Include selftest.h.
6798 (i386_tdesc_test): New function.
6799 (initialize_low_tdesc): Call selftests::register_test.
6800 * tdesc.h: Include regdef.h.
6801 (target_desc): Override operator == and !=.
6802
f49ff000
YQ
68032017-09-05 Yao Qi <yao.qi@linaro.org>
6804
6805 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6806 (ipa_obj): Likewise.
6807 * linux-i386-ipa.c: Include common/x86-xstate.h
6808 (get_ipa_tdesc): Call i386_linux_read_description.
6809 (initialize_low_tracepoint): Don't call init_registers_XXX
6810 functions, call initialize_low_tdesc instead.
6811 * linux-x86-low.c (x86_linux_read_description): Call
6812 i386_linux_read_description.
6813 (initialize_low_arch): Don't call init_registers_i386_XXX
6814 functions, call initialize_low_tdesc.
6815 * linux-x86-tdesc.c: New file.
6816 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6817 (i386_get_ipa_tdesc_idx): Declare.
6818 (i386_get_ipa_tdesc): Declare.
6819 (initialize_low_tdesc): Declare.
6820
2b68ef2f
YQ
68212017-09-05 Yao Qi <yao.qi@linaro.org>
6822
6823 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6824 instead of 0.
6825
f7000548
YQ
68262017-09-05 Yao Qi <yao.qi@linaro.org>
6827
6828 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6829 * regcache.c (get_thread_regcache): Use VEC_length.
6830 (init_register_cache): Likewise.
6831 (regcache_cpy): Likewise.
6832 (registers_to_string): Iterate reg_defs via VEC_iterate.
6833 (find_regno): Likewise.
6834 (find_register_by_number): Use VEC_index.
6835 (register_size): Call find_register_by_number.
6836 (register_data): Call find_register_by_number.
6837 (supply_regblock): Use VEC_length.
6838 (regcache_raw_read_unsigned): Likewise.
6839 * tdesc.c (init_target_desc): Iterate reg_defs via
6840 VEC_iterate.
6841 (default_description): Update initializer.
6842 (copy_target_description): Don't update field num_registers.
6843 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6844 <num_registers>: Remove.
6845
50a421ac
SM
68462017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * Makefile.in (.SECONDARY): Define target.
6849
23fdd69e
SM
68502017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6851
6852 * linux-low.c (linux_wait_1): Adjust.
6853 * server.c (queue_stop_reply_callback): Adjust.
6854
0a2dde4a
SDJ
68552017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6856
6857 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6858 QEnvironmentUnset and QEnvironmentReset packets.
6859 (handle_query): Inform remote that QEnvironmentHexEncoded,
6860 QEnvironmentUnset and QEnvironmentReset are supported.
6861
6afd337d
SM
68622017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 * inferiors.h (inferior_target_data): Rename to ...
6865 (thread_target_data): ... this.
6866 (inferior_regcache_data): Rename to ...
6867 (thread_regcache_data): ... this.
6868 (set_inferior_regcache_data): Rename to ...
6869 (set_thread_regcache_data): ... this.
6870 * inferiors.c (inferior_target_data): Rename to ...
6871 (thread_target_data): ... this.
6872 (inferior_regcache_data): Rename to ...
6873 (thread_regcache_data): ... this.
6874 (set_inferior_regcache_data): Rename to ...
6875 (set_thread_regcache_data): ... this.
6876 (free_one_thread): Update.
6877 * linux-low.h (get_thread_lwp): Update.
6878 * regcache.c (get_thread_regcache): Update.
6879 (regcache_invalidate_thread): Update.
6880 (free_register_cache_thread): Update.
6881 * win32-i386-low.c (update_debug_registers_callback): Update.
6882 (win32_get_current_dr): Update.
6883 * win32-low.c (thread_rec): Update.
6884 (delete_thread_info): Update.
6885 (continue_one_thread): Update.
6886 (suspend_one_thread): Update.
6887
a160cc46
SM
68882017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6889
6890 * inferiors.c (set_inferior_target_data): Remove.
6891 * inferiors.h (set_inferior_target_data): Remove.
6892
6d580b63
YQ
68932017-08-18 Yao Qi <yao.qi@linaro.org>
6894
6895 * Makefile.in (OBS): Add selftest.o.
6896 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6897 * configure, config.in: Re-generated.
6898 * server.c: Include common/sefltest.h.
6899 (captured_main): Handle option --selftest.
6900
f5a29eb0
YQ
69012017-08-09 Yao Qi <yao.qi@linaro.org>
6902
6903 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6904 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6905 i386-avx-mpx.o and i386-mmx.o.
6906 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6907 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6908 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6909 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6910 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6911 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6912 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6913 i386/amd64-avx-mpx.xml.
6914
57757c2f
YQ
69152017-08-09 Yao Qi <yao.qi@linaro.org>
6916
6917 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6918 and x32-avx-avx512.o.
6919 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6920 i386/x32-avx-avx512.xml.
6921
229d26fc
SM
69222017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 * tracepoint.h (enum class fast_tpoint_collect_result): New
6925 enumeration.
6926 (fast_tracepoint_collecting): Change return type to
6927 fast_tpoint_collect_result.
6928 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6929 * linux-low.h: Include tracepoint.h.
6930 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6931 fast_tpoint_collect_result.
6932 * linux-low.c (handle_tracepoints): Adjust.
6933 (linux_fast_tracepoint_collecting): Change return type to
6934 fast_tpoint_collect_result.
6935 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6936 linux_wait_1, stuck_in_jump_pad_callback,
6937 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6938 proceed_one_lwp): Adjust to type change.
6939
2e1e43e1
YQ
69402017-07-10 Yao Qi <yao.qi@linaro.org>
6941
6942 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6943
adc764e7
YQ
69442017-06-29 Yao Qi <yao.qi@linaro.org>
6945
6946 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6947 Remove.
6948 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6949
a206891a
SM
69502017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6951
6952 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6953
9a6c7d9c
SDJ
69542017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6955
6956 * linux-low.c (linux_create_inferior): Adjust code to access the
6957 environment information via 'gdb_environ' class.
6958 * lynx-low.c (lynx_create_inferior): Likewise.
6959 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6960 (get_environ): Return a pointer to 'our_environ'.
6961 (captured_main): Initialize 'our_environ'.
6962 * server.h (get_environ): Adjust prototype.
6963 * spu-low.c (spu_create_inferior): Adjust code to access the
6964 environment information via 'gdb_environ' class.
6965
ae3e2ccf
SM
69662017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6967
6968 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6969 usage of "register" keyword.
6970
3e019bdc
SM
69712017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * configure: Re-generate.
6974
8465943a
SM
69752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6976
6977 * configure: Re-generate.
6978
cf0dd6f0
SM
69792017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6980
6981 * Makefile.in (COMPILE.pre): Add "-x c++".
6982
9845682b
SDJ
69832017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6984
6985 * fork-child.c: Conditionally include <signal.h>.
6986
aefd8b33
SDJ
69872017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6988
6989 * server.c (handle_general_set): Handle new packet
6990 "QStartupWithShell".
6991 (handle_query): Add "QStartupWithShell" to the list of supported
6992 packets.
6993 (gdbserver_usage): Add help text explaining the
6994 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6995 options.
6996 (captured_main): Recognize and act upon the presence of the new
6997 CLI options.
6998
2090129c
SDJ
69992017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7000 Pedro Alves <palves@redhat.com>
7001
7002 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7003 * configure: Regenerate.
7004 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7005 "fork-inferior.o".
7006 (i[34567]86-*-lynxos*): Likewise.
7007 (spu*-*-*): Likewise.
7008 * fork-child.c: New file.
7009 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7010 and "environ.h".
7011 (linux_ptrace_fun): New function.
7012 (linux_create_inferior): Adjust function prototype to reflect
7013 change on "target.h". Adjust function code to use
7014 "fork_inferior".
7015 (linux_request_interrupt): Delete "signal_pid".
7016 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7017 (lynx_ptrace_fun): New function.
7018 (lynx_create_inferior): Adjust function prototype to reflect
7019 change on "target.h". Adjust function code to use
7020 "fork_inferior".
7021 * nto-low.c (nto_create_inferior): Adjust function prototype and
7022 code to reflect change on "target.h". Update comments.
7023 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7024 "common-terminal.h" and "environ.h".
7025 (terminal_fd): Moved to fork-child.c.
7026 (old_foreground_pgrp): Likewise.
7027 (restore_old_foreground_pgrp): Likewise.
7028 (last_status): Make it global.
7029 (last_ptid): Likewise.
7030 (our_environ): New variable.
7031 (startup_with_shell): Likewise.
7032 (program_name): Likewise.
7033 (program_argv): Rename to...
7034 (program_args): ...this.
7035 (wrapper_argv): New variable.
7036 (start_inferior): Delete function.
7037 (get_exec_wrapper): New function.
7038 (get_exec_file): Likewise.
7039 (get_environ): Likewise.
7040 (prefork_hook): Likewise.
7041 (post_fork_inferior): Likewise.
7042 (postfork_hook): Likewise.
7043 (postfork_child_hook): Likewise.
7044 (handle_v_run): Update code to deal with arguments coming from the
7045 remote host. Update calls from "start_inferior" to
7046 "create_inferior".
7047 (captured_main): Likewise. Initialize environment variable. Call
7048 "have_job_control".
7049 * server.h (post_fork_inferior): New prototype.
7050 (get_environ): Likewise.
7051 (last_status): Declare.
7052 (last_ptid): Likewise.
7053 (signal_pid): Likewise.
7054 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7055 (spu_ptrace_fun): New function.
7056 (spu_create_inferior): Adjust function prototype to reflect change
7057 on "target.h". Adjust function code to use "fork_inferior".
7058 * target.c (target_terminal_init): New function.
7059 (target_terminal_inferior): Likewise.
7060 (target_terminal_ours): Likewise.
7061 * target.h: Include <vector>.
7062 (struct target_ops) <create_inferior>: Update prototype.
7063 (create_inferior): Update macro.
7064 * utils.c (gdb_flush_out_err): New function.
7065 * win32-low.c (win32_create_inferior): Adjust function prototype
7066 and code to reflect change on "target.h".
7067
043a4934
SDJ
70682017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7069
7070 * inferiors.c (switch_to_thread): New function.
7071
15652511
SDJ
70722017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7073
7074 * Makefile.in (SFILE): Add "common/job-control.c".
7075 (OBS): Add "job-control.o".
7076
21ea5acd
SDJ
70772017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7078
7079 * Makefile: Remove "@host_makefile_frag@".
7080
e13cb306
PA
70812017-05-05 Pedro Alves <palves@redhat.com>
7082
7083 * configure: Regenerate.
7084
c94fee56
SDJ
70852017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7086
7087 * configure: Regenerate.
7088
a0ff9e1a
SM
70892017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7090
7091 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7092 software_single_step change of return type to
7093 std::vector<CORE_ADDR>.
7094 * linux-low.c (install_software_single_step_breakpoints):
7095 Likewise.
7096 * linux-low.h (install_software_single_step_breakpoints):
7097 Likewise.
7098
be628ab8
SDJ
70992017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7100
7101 * remote-utils.c: Include "gdb_termios.h" instead of
7102 "terminal.h".
7103 * terminal.h: Delete file.
7104
7c5ded6a
SDJ
71052017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7106
7107 * server.c: Include <vector>.
7108 <program_argv, wrapper_argv>: Convert to std::vector.
7109 (start_inferior): Rewrite function to use C++.
7110 (handle_v_run): Likewise. Update code that calculates the argv
7111 based on the vRun packet; use C++.
7112 (captured_main): Likewise.
7113
436252de
SM
71142017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7115
7116 * server.c (handle_v_cont): Initialize thread_resume::thread
7117 with null_ptid.
7118
9bf2a700
PA
71192017-04-05 Pedro Alves <palves@redhat.com>
7120
7121 * configure: Regenerate.
7122
a121b7c1
PA
71232017-04-05 Pedro Alves <palves@redhat.com>
7124
7125 * gdbreplay.c (sync_error): Constify.
7126 * linux-x86-low.c (push_opcode): Constify.
7127
21c8a587
PA
71282017-04-05 Pedro Alves <palves@redhat.com>
7129
7130 * win32-low.c (get_child_debug_event)
7131 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7132 Report TARGET_WAITKIND_SPURIOUS instead.
7133
fb32b4f7
PA
71342017-04-05 Pedro Alves <palves@redhat.com>
7135
e79be6e5
SM
7136 * remote-utils.c (remote_prepare, remote_open): Constify.
7137 * remote-utils.h (remote_prepare, remote_open): Constify.
7138 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7139
65dd1e59
SM
71402017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7141
7142 * Makefile.in (clean): Clear .deps.
7143
8fa5b777
SM
71442017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7145
7146 * .gitignore: Remove generated files, replace with wildcard.
7147 * (clean): Replace removal of generated files with wildcard.
7148 (version.c): Replace with...
7149 (version-generated.c): ...this.
7150 (xml-builtin.c): Replace with...
7151 (xml-builtin-generated.c): ...this.
7152 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7153 (%.c: *regformats*): Replace with...
7154 (%-generated.c: *regformats*): ...this.
7155
a12e714b
MF
71562017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7157
7158 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7159 (xtensa_fill_gregset): Call collect_register_by_name for
7160 threadptr register.
7161 (xtensa_store_gregset): Call supply_register_by_name for
7162 threadptr register.
7163
1a09b50a
MF
71642017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7165
7166 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7167 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7168 (xtensa_store_gregset): Call supply_register for all registers in
7169 a0_regnum..a0_regnum + C0_NREGS range.
7170
1a01e7c6
SM
71712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7172
7173 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7174 (ax-ipa.o: ax.c): Remove.
7175 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7176 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7177 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7178 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7179 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7180
36bc18a8
SM
71812017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7182
7183 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7184 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7185 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7186 (errors-ipa.o: ../common/errors.c): Remove.
7187 (format-ipa.o: ../common/format.c): Remove.
7188 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7189
a8ebe3d5
SM
71902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7191
7192 * Makefile.in (%-ipa.o: %.c): New rule.
7193 (tracepoint-ipa.o: tracepoint.c): Remove.
7194 (utils-ipa.o: utils.c): Remove.
7195 (remote-utils-ipa.o: remote-utils.c): Remove.
7196 (regcache-ipa.o: regcache.c): Remove.
7197 (i386-linux-ipa.o: i386-linux.c): Remove.
7198 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7199 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7200 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7201 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7202 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7203 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7204 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7205 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7206 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7207 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7208 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7209 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7210 (aarch64-ipa.o: aarch64.c): Remove.
7211 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7212 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7213 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7214 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7215 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7216 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7217 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7218 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7219 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7220 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7221 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7222 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7223 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7224 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7225 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7226 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7227 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7228 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7229 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7230 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7231 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7232 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7233 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7234 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7235 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7236 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7237 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7238 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7239 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7240 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7241 (tdesc-ipa.o: tdesc.c): Remove.
7242 (x32-linux-ipa.o: x32-linux.c): Remove.
7243 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7244 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7245
50cfacb7
SM
72462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7247
7248 * Makefile.in (%.o: ../arch/%.c): New rule.
7249 (arm.o: ../arch/arm.c): Remove.
7250 (arm-linux.o: ../arch/arm-linux.c): Remove.
7251 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7252 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7253
c5a22423
SM
72542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7255
7256 * Makefile.in (%.o: ../nat/%.c): New rule.
7257 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7258 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7259 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7260 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7261 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7262 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7263 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7264 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7265 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7266 (linux-personality.o: ../nat/linux-personality.c): Remove.
7267 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7268 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7269 (x86-linux.o: ../nat/x86-linux.c): Remove.
7270 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7271 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7272
6bda016b
SM
72732017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7274
7275 * Makefile.in (%.o: ../common/%.c): New rule.
7276 (signals.o: ../common/signals.c): Remove.
7277 (print-utils.o: ../common/print-utils.c): Remove.
7278 (rsp-low.o: ../common/rsp-low.c): Remove.
7279 (common-utils.o: ../common/common-utils.c): Remove.
7280 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7281 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7282 (vec.o: ../common/vec.c): Remove.
7283 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7284 (xml-utils.o: ../common/xml-utils.c): Remove.
7285 (ptid.o: ../common/ptid.c): Remove.
7286 (buffer.o: ../common/buffer.c): Remove.
7287 (format.o: ../common/format.c): Remove.
7288 (filestuff.o: ../common/filestuff.c): Remove.
7289 (agent.o: ../common/agent.c): Remove.
7290 (errors.o: ../common/errors.c): Remove.
7291 (environ.o: ../common/environ.c): Remove.
7292 (common-debug.o: ../common/common-debug.c): Remove.
7293 (cleanups.o: ../common/cleanups.c): Remove.
7294 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7295 (fileio.o: ../common/fileio.c): Remove.
7296 (common-regcache.o: ../common/common-regcache.c): Remove.
7297 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7298 (new-op.o: ../common/new-op.c): Remove.
7299 (btrace-common.o: ../common/btrace-common.c): Remove.
7300
21122961
SM
73012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7302
7303 * Makefile.in (%.o: ../target/%.c): New rule.
7304 (waitstatus.o: ../target/waitstatus.c): Remove.
7305
c362e621
SM
73062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7307
7308 * Makefile.in
7309 (%.c: ../regformats/%.dat,
7310 (%.c: ../regformats/arm/%.dat,
7311 (%.c: ../regformats/i386/%.dat,
7312 (%.c: ../regformats/rs6000/%.dat): New rules.
7313 (aarch64.c): Remove.
7314 (reg-arm.c): Remove.
7315 (arm-with-iwmmxt.c): Remove.
7316 (arm-with-vfpv2.c): Remove.
7317 (arm-with-vfpv3.c): Remove.
7318 (arm-with-neon.c): Remove.
7319 (reg-bfin.c): Remove.
7320 (reg-cris.c): Remove.
7321 (reg-crisv32.c): Remove.
7322 (i386.c): Remove.
7323 (i386-linux.c): Remove.
7324 (i386-avx.c): Remove.
7325 (i386-avx-linux.c): Remove.
7326 (i386-avx-avx512.c): Remove.
7327 (i386-avx-avx512-linux.c): Remove.
7328 (i386-mpx.c): Remove.
7329 (i386-mpx-linux.c): Remove.
7330 (i386-avx-mpx-avx512-pku.c): Remove.
7331 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7332 (i386-avx-mpx.c): Remove.
7333 (i386-avx-mpx-linux.c): Remove.
7334 (i386-mmx.c): Remove.
7335 (i386-mmx-linux.c): Remove.
7336 (reg-ia64.c): Remove.
7337 (reg-m32r.c): Remove.
7338 (reg-m68k.c): Remove.
7339 (reg-cf.c): Remove.
7340 (mips-linux.c): Remove.
7341 (mips-dsp-linux.c): Remove.
7342 (mips64-linux.c): Remove.
7343 (mips64-dsp-linux.c): Remove.
7344 (nios2-linux.c): Remove.
7345 (powerpc-32.c): Remove.
7346 (powerpc-32l.c): Remove.
7347 (powerpc-altivec32l.c): Remove.
7348 (powerpc-cell32l.c): Remove.
7349 (powerpc-vsx32l.c): Remove.
7350 (powerpc-isa205-32l.c): Remove.
7351 (powerpc-isa205-altivec32l.c): Remove.
7352 (powerpc-isa205-vsx32l.c): Remove.
7353 (powerpc-e500l.c): Remove.
7354 (powerpc-64l.c): Remove.
7355 (powerpc-altivec64l.c): Remove.
7356 (powerpc-cell64l.c): Remove.
7357 (powerpc-vsx64l.c): Remove.
7358 (powerpc-isa205-64l.c): Remove.
7359 (powerpc-isa205-altivec64l.c): Remove.
7360 (powerpc-isa205-vsx64l.c): Remove.
7361 (s390-linux32.c): Remove.
7362 (s390-linux32v1.c): Remove.
7363 (s390-linux32v2.c): Remove.
7364 (s390-linux64.c): Remove.
7365 (s390-linux64v1.c): Remove.
7366 (s390-linux64v2.c): Remove.
7367 (s390-te-linux64.c): Remove.
7368 (s390-vx-linux64.c): Remove.
7369 (s390-tevx-linux64.c): Remove.
7370 (s390x-linux64.c): Remove.
7371 (s390x-linux64v1.c): Remove.
7372 (s390x-linux64v2.c): Remove.
7373 (s390x-te-linux64.c): Remove.
7374 (s390x-vx-linux64.c): Remove.
7375 (s390x-tevx-linux64.c): Remove.
7376 (tic6x-c64xp-linux.c): Remove.
7377 (tic6x-c64x-linux.c): Remove.
7378 (tic6x-c62x-linux.c): Remove.
7379 (reg-sh.c): Remove.
7380 (reg-sparc64.c): Remove.
7381 (reg-spu.c): Remove.
7382 (amd64.c): Remove.
7383 (amd64-linux.c): Remove.
7384 (amd64-avx.c): Remove.
7385 (amd64-avx-linux.c): Remove.
7386 (amd64-avx-avx512.c): Remove.
7387 (amd64-avx-avx512-linux.c): Remove.
7388 (amd64-mpx.c): Remove.
7389 (amd64-mpx-linux.c): Remove.
7390 (amd64-avx-mpx-avx512-pku.c): Remove.
7391 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7392 (amd64-avx-mpx.c): Remove.
7393 (amd64-avx-mpx-linux.c): Remove.
7394 (x32.c): Remove.
7395 (x32-linux.c): Remove.
7396 (x32-avx.c): Remove.
7397 (x32-avx-linux.c): Remove.
7398 (x32-avx-avx512.c): Remove.
7399 (x32-avx-avx512-linux.c): Remove.
7400 (reg-xtensa.c): Remove.
7401 (reg-tilegx.c): Remove.
7402 (reg-tilegx32.c): Remove.
7403
1672e0d9
SDJ
74042017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7405
7406 * Makefile.in (SFILES): Add "common/environ.c".
7407 (OBJS): Add "common/environ.h".
7408
239b6d10
WT
74092017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7410
7411 * configure.ac: Check if the fs_base and gs_base members of
7412 `struct user_regs_struct' exist.
7413 * config.in: Regenerated.
7414 * configure: Likewise.
7415
694b382c
AT
74162017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7417
7418 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7419 target_read_memory.
7420 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7421 (get_next_pcs_syscall_next_pc): Likewise.
7422
7dc53023
LM
74232016-12-23 Luis Machado <lgustavo@codesourcery.com>
7424
7425 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7426 * nto-x86-low.c: Likewise.
7427
ad02e4fe
SM
74282016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7429
7430 * Makefile.in: Include disable-implicit-rules.mk.
7431
dcb07cfa
PA
74322016-11-23 Pedro Alves <palves@redhat.com>
7433
7434 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7435 (debug_vprintf): Use std::chrono::steady_clock instead of
7436 gettimeofday. Use '.' instead of ':'.
7437 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7438 (get_timestamp): Use std::chrono::steady_clock instead of
7439 gettimeofday.
7440
8629c02c
SM
74412016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7442
7443 * Makefile.in: Fix whitespace formatting.
7444
b593ecca
SM
74452016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7446
7447 * Makefile.in (SFILES, OBS): Flatten list and order
7448 alphabetically.
7449
9986ba08
PA
74502016-11-23 Pedro Alves <palves@redhat.com>
7451
7452 * event-loop.c (handle_file_event): Use warning.
7453 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7454 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7455 Use warning.
7456
4eefa7bc
PA
74572016-11-23 Pedro Alves <palves@redhat.com>
7458
7459 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7460 output.
7461 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7462 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7463 debug_printf and debug_flush for debug output.
7464 * server.c (handle_general_set): Likewise.
7465 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7466 output.
7467
5443506e
SM
74682016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7469
7470 * Makefile.in (.c.o): Replace rule with ...
7471 (%.o: %.c): ... this one.
7472
3b165252
SM
74732016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7474
7475 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7476 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7477 make.
7478 * configure.ac: Remove checks for the make program.
7479 * configure: Re-generate.
7480
0bcda685
PA
74812016-10-28 Pedro Alves <palves@redhat.com>
7482
7483 * Makefile.in (CXX_DIALECT): Get from configure.
7484 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7485 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7486 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7487 * config.in: Regenerate.
7488 * configure: Regenerate.
7489
c3805894
YQ
74902016-10-27 Yao Qi <yao.qi@linaro.org>
7491
7492 * linux-low.c (linux_supports_range_stepping): Return true if
7493 can_software_single_step return true.
7494
89342618
YQ
74952016-10-27 Yao Qi <yao.qi@linaro.org>
7496
7497 * inferiors.c (find_inferior_in_random): New function.
7498 * inferiors.h (find_inferior_in_random): Declare.
7499 * linux-low.c (linux_wait_for_event_filtered): Call
7500 find_inferior_in_random instead of find_inferior.
7501
e3652c84
YQ
75022016-10-27 Yao Qi <yao.qi@linaro.org>
7503
7504 * linux-low.c (linux_wait_1): If single-step breakpoints are
7505 inserted, remove them.
7506
5a04c4cf
PA
75072016-10-26 Pedro Alves <palves@redhat.com>
7508
7509 * linux-low.c (handle_extended_wait): Link parent/child fork
7510 threads.
7511 (linux_wait_1): Unlink them.
7512 (linux_set_resume_request): Ignore resume requests for
7513 already-resumed and unhandled fork child threads.
7514 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7515 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7516 New functions.
7517 (handle_v_requests) <vCont>: Don't call require_running.
7518 * server.h (in_queued_stop_replies): New declaration.
7519
cb93dc7f
YQ
75202016-10-24 Yao Qi <yao.qi@linaro.org>
7521
7522 PR server/20733
7523 * linux-aarch64-low.c (append_insns): Cast the return value to
7524 'uint32_t *'.
7525
a1078bea
YQ
75262016-10-10 Yao Qi <yao.qi@linaro.org>
7527
7528 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7529
1fb77080
SDJ
75302016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7531
7532 * target.c (target_supports_multi_process): New function, moved
7533 from...
7534 * target.h (target_supports_multi_process): ... here. Remove
7535 macro.
7536
39b5a3b9
TT
75372016-10-05 Tom Tromey <tom@tromey.com>
7538
7539 PR remote/20655:
7540 * tracepoint.c (handle_tracepoint_bkpts): Check
7541 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7542
c1d0b70a
YQ
75432016-10-05 Yao Qi <yao.qi@linaro.org>
7544
7545 * configure.srv: Update the path of arm-*.xml files.
7546
0a69eedb
YQ
75472016-10-05 Terry Guo <terry.guo@arm.com>
7548 Yao Qi <yao.qi@linaro.org>
7549
7550 * Makefile.in: Adjust the path of rules.
7551 * configure.srv: Update the path of xml files.
7552 * regformats/arm-with-iwmmxt.dat: Regenerated.
7553 * regformats/arm-with-neon.dat: Likewise.
7554 * regformats/arm-with-vfpv2.dat: Likewise.
7555 * regformats/arm-with-vfpv3.dat Likewise.
7556
17e16485
YQ
75572016-09-30 Yao Qi <yao.qi@linaro.org>
7558
7559 PR gdbserver/20627
7560 * target.c (target_stop_and_wait): Don't call
7561 target_continue_no_signal, use resume_stop instead.
7562
edeeb602
YQ
75632016-09-26 Yao Qi <yao.qi@linaro.org>
7564
7565 * linux-low.c (linux_wait_1): Call debug_exit.
7566
503b1c39
PA
75672016-09-23 Pedro Alves <palves@redhat.com>
7568
7569 * Makefile.in (SFILES): Add common/new-op.c.
7570 (OBS): Add common/new-op.o.
7571 (new-op.o): New rule.
7572
74172ecf
SM
75732016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7574
7575 * .gitinore: Ignore more files.
7576
fc6cda2e
YQ
75772016-09-21 Yao Qi <yao.qi@linaro.org>
7578
7579 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7580 23.
7581
bc1e6c81
SDJ
75822016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7583
7584 * server.c (start_inferior): Call target_mourn_inferior instead of
7585 mourn_inferior; pass ptid_t argument to it.
7586 (resume): Likewise.
7587 (handle_target_event): Likewise.
7588 * target.c (target_mourn_inferior): New function.
7589 * target.h (mourn_inferior): Delete macro.
7590
0e00e962
AA
75912016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7592
7593 * linux-low.c (lwp_is_stepping): New function.
7594
1d8cb77d
CL
75952016-09-06 Carl Love <cel@us.ibm.com>
7596
7597 * server.c (start_inferior): Fixed comment, requested comment change
7598 didn't get updated correctly. Removed reference to ptrace () call as
7599 it is only true on Linux systems.
7600
7313bced
CL
76012016-09-06 Carl Love <cel@us.ibm.com>
7602
7603 * server.c (start_inferior): Do not call
7604 function target_post_create_inferior () if the
7605 inferior process has already exited.
7606
cf6de44d
PA
76072016-09-05 Pedro Alves <palves@redhat.com>
7608
7609 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7610 (COMPILE.pre, CC_LD): Use CXX directly.
7611 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7612 * acinclude.m4: Don't include build-with-cxx.m4.
7613 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7614 * configure: Regenerate.
7615
c1da6748
AT
76162016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7617
7618 PR gdb/19495
7619 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7620 call writing data to own_buf.
7621
f2b9e3df
SDJ
76222016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7623
7624 * target.c (mywait): Call target_wait instead of
7625 the_target->wait.
7626 (target_wait): New function.
7627
049a8570
SDJ
76282016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7629
7630 * server.c (start_inferior): New variable 'ptid'. Replace calls
7631 to the_target->resume by target_continue{,_no_signal}, depending
7632 on the case.
7633 * target.c (target_stop_and_wait): Call target_continue_no_signal
7634 instead of the_target->resume.
7635 (target_continue): New function.
7636
3aa5cfa0
AT
76372016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7638
7639 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7640
754653a7
AZ
76412016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7642
7643 PR server/20491
7644 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7645 ps_prochandle.
7646 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7647 * linux-arm-low.c (ps_get_thread_area): Likewise.
7648 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7649 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7650 * linux-mips-low.c (ps_get_thread_area): Likewise.
7651 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7652 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7653 * linux-x86-low.c (ps_get_thread_area): Likewise.
7654 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7655
ed036b40
PA
76562016-08-19 Pedro Alves <palves@redhat.com>
7657
7658 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7659
c8ef42ee
PA
76602016-08-19 Pedro Alves <palves@redhat.com>
7661
7662 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7663 comment. Use memcpy instead of casting through unsigned long.
7664
9c235a72
PA
76652016-08-19 Pedro Alves <palves@redhat.com>
7666
7667 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7668 allocating around 0x80000000.
7669
201506da
PA
76702016-08-19 Pedro Alves <palves@redhat.com>
7671
7672 PR gdb/20415
7673 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7674 (x32-avx512-linux-ipa.o): New rules.
7675 * configure.ac (x86_64-*-linux*): New x32 check.
7676 * configure.srv (ipa_x32_linux_regobj): New.
7677 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7678 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7679 descriptions.
7680 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7681 descriptions.
7682 * configure: Regenerate.
7683
f348d89a
PA
76842016-08-09 Pedro Alves <palves@redhat.com>
7685
7686 PR gdb/18653
7687 * Makefile.in (OBS): Add signals-state-save-restore.o.
7688 (signals-state-save-restore.o): New rule.
7689 * config.in: Regenerate.
7690 * configure: Regenerate.
7691 * linux-low.c: Include "signals-state-save-restore.h".
7692 (linux_create_inferior): Call
7693 restore_original_signals_state.
7694 * server.c: Include "dispositions-save-restore.h".
7695 (captured_main): Call save_original_signals_state.
7696
1baf5149
PA
76972016-08-05 Pedro Alves <palves@redhat.com>
7698
7699 * configure: Regenerate.
7700
fcd4a73d
YQ
77012016-08-04 Yao Qi <yao.qi@linaro.org>
7702
7703 * linux-low.c (regsets_fetch_inferior_registers): Check
7704 errno is ESRCH or not.
7705
979659d0
YQ
77062016-08-02 Yao Qi <yao.qi@linaro.org>
7707
7708 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7709 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7710 (thread_db_load_search): Update.
7711 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7712 td_ta_set_event and td_ta_event_getmsg.
7713
6598661d
PA
77142016-07-26 Pedro Alves <palves@redhat.com>
7715
7716 PR server/20414
7717 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7718 of unsigned long for 64-bit registers and use uint32_t instead of
7719 unsigned int for 32-bit registers.
7720
9cf12d57
PA
77212016-07-26 Pedro Alves <palves@redhat.com>
7722
7723 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7724 to 'ptrace'.
7725
305450ed
TT
77262016-07-21 Tom Tromey <tom@tromey.com>
7727
7728 * configure: Rebuild.
7729
2583da7c
YQ
77302016-07-21 Yao Qi <yao.qi@linaro.org>
7731
7732 * mem-break.c (find_gdb_breakpoint): Cast bp to
7733 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7734
21536b36
YQ
77352016-07-21 Yao Qi <yao.qi@linaro.org>
7736
7737 * server.c (handle_v_requests): Support s and S actions
7738 if target_supports_software_single_step return true.
7739
8901d193
YQ
77402016-07-21 Yao Qi <yao.qi@linaro.org>
7741
7742 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7743 is resume_step, call maybe_hw_step.
7744 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7745 and unstop them.
7746 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7747 breakpoints or not.
7748 (proceed_one_lwp): If resume request is resume_step, install
7749 reinsert breakpoints and call maybe_hw_step.
7750
0e9a339e
YQ
77512016-07-21 Yao Qi <yao.qi@linaro.org>
7752
7753 * linux-low.c (proceed_one_lwp): Declare.
7754 (linux_resume_one_thread): Remove local variable 'step'.
7755 Lift code enqueue signal. Call proceed_one_lwp instead of
7756 linux_resume_one_lwp.
7757
4281b351
YQ
77582016-07-21 Yao Qi <yao.qi@linaro.org>
7759
7760 * linux-low.c (linux_resume_one_thread): Call
7761 enqueue_pending_signal.
7762
984a2c04
YQ
77632016-07-21 Yao Qi <yao.qi@linaro.org>
7764
7765 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7766 * inferiors.c (do_restore_current_thread_cleanup): New function.
7767 (make_cleanup_restore_current_thread): Likewise.
7768 * linux-low.c (install_software_single_step_breakpoints): Call
7769 make_cleanup_restore_current_thread. Switch current_thread to
7770 thread.
7771
bec903c9
YQ
77722016-07-21 Yao Qi <yao.qi@linaro.org>
7773
7774 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7775 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7776 (clone_one_breakpoint): Likewise.
7777 (delete_reinsert_breakpoints): Change parameter to thread.
7778 Callers updated.
7779 (has_reinsert_breakpoints): Likewise.
7780 (uninsert_reinsert_breakpoints): Likewise.
7781 (reinsert_reinsert_breakpoints): Likewise.
7782 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7783 (delete_reinsert_breakpoints): Likewise.
7784 (reinsert_reinsert_breakpoints): Likewise.
7785 (uninsert_reinsert_breakpoints): Likewise.
7786 (has_reinsert_breakpoints): Likewise.
7787
63c40ec7
YQ
77882016-07-21 Yao Qi <yao.qi@linaro.org>
7789
7790 * inferiors.c (get_thread_process): Make parameter const.
7791 * inferiors.h (get_thread_process): Update declaration.
7792 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7793 Add new parameters child_thread and parent_thread. Callers
7794 updated.
7795 * mem-break.h (clone_all_breakpoints): Update declaration.
7796
9aa76cd0
YQ
77972016-07-21 Yao Qi <yao.qi@linaro.org>
7798
7799 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7800 <command_list, handler>: Remove.
7801 (struct gdb_breakpoint): New.
7802 (struct other_breakpoint): New.
7803 (struct reinsert_breakpoint): New.
7804 (is_gdb_breakpoint): New function.
7805 (any_persistent_commands): Update command_list if
7806 is_gdb_breakpoint returns true.
7807 (set_breakpoint): Create breakpoints according to their types.
7808 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7809 (set_gdb_breakpoint_1): Likewise.
7810 (set_gdb_breakpoint): Likewise.
7811 (clear_breakpoint_conditions): Change parameter type to
7812 'struct gdb_breakpoint *'.
7813 (clear_breakpoint_commands): Likewise.
7814 (clear_breakpoint_conditions_and_commands): Likewise.
7815 (add_condition_to_breakpoint): Likewise.
7816 (add_breakpoint_condition): Likewise.
7817 (add_commands_to_breakpoint): Likewise.
7818 (check_breakpoints): Check other_breakpoint.
7819 (clone_one_breakpoint): Clone breakpopint according to its type.
7820 * mem-break.h (struct gdb_breakpoint): Declare.
7821 (set_gdb_breakpoint): Update declaration.
7822 (clear_breakpoint_conditions_and_commands): Likewise.
7823 (add_breakpoint_condition): Likewise.
7824 (add_breakpoint_commands): Likewise.
7825 * server.c (process_point_options): Change parameter type to
7826 'struct gdb_breakpoint *'.
7827
811f8301
YQ
78282016-07-21 Yao Qi <yao.qi@linaro.org>
7829
7830 * mem-break.c (set_breakpoint_at): Rename it to ...
7831 (set_breakpoint_type_at): ... it.
7832 (set_breakpoint_at): Call set_breakpoint_type_at.
7833 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7834 * mem-break.h (set_breakpoint_at): Update comments.
7835
b1c51e36
CLT
78362016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7837
7838 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7839 to buf parameter.
7840 (nios2_store_gregset): Likewise.
7841
ced2dffb
PA
78422016-07-01 Pedro Alves <palves@redhat.com>
7843 Antoine Tremblay <antoine.tremblay@ericsson.com>
7844
7845 * linux-low.c: Change interface to take the target lwp_info
7846 pointer directly and return void. Handle detaching from a zombie
7847 thread.
7848 (linux_detach_lwp_callback): New function.
7849 (linux_detach): Detach from the leader thread after detaching from
7850 the clone threads.
7851
2ac09a5b
YQ
78522016-06-28 Yao Qi <yao.qi@linaro.org>
7853
7854 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7855 for variable new_offset.
7856 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7857 (aarch64_ftrace_insn_reloc_cb): Likewise.
7858 (aarch64_ftrace_insn_reloc_tb): Likewise.
7859 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7860 PRIx64 instead of PRIx32.
7861
79e7fd4f
YQ
78622016-06-28 Yao Qi <yao.qi@linaro.org>
7863
7864 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7865 (the_low_target): Install arm_get_syscall_trapinfo.
7866
061fc021
YQ
78672016-06-28 Yao Qi <yao.qi@linaro.org>
7868
7869 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7870 function.
7871 (the_low_target): Install aarch64_get_syscall_trapinfo.
7872
4cc32bec
YQ
78732016-06-28 Yao Qi <yao.qi@linaro.org>
7874
7875 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7876 Callers updated.
7877 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7878 Remove parameter sysno.
7879 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7880 sysret.
7881
782c1122
AA
78822016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7883
7884 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7885 (s390_emit_ne_goto): Likewise.
7886 (s390_emit_lt_goto): Likewise.
7887 (s390_emit_le_goto): Likewise.
7888 (s390_emit_gt_goto): Likewise.
7889 (s390_emit_ge_goto): Likewise.
7890 (s390x_emit_eq_goto): Likewise.
7891 (s390x_emit_ne_goto): Likewise.
7892 (s390x_emit_lt_goto): Likewise.
7893 (s390x_emit_le_goto): Likewise.
7894 (s390x_emit_gt_goto): Likewise.
7895 (s390x_emit_ge_goto): Likewise.
7896 (s390_emit_ops_impl): Mark variable static.
7897 (s390x_emit_ops): Likewise.
7898
2e7b624b
YQ
78992016-06-17 Yao Qi <yao.qi@linaro.org>
7900
7901 * linux-low.c (handle_extended_wait): Call
7902 uninsert_reinsert_breakpoints for the parent process. Remove
7903 reinsert breakpoints from the child process. Reinsert them to
7904 the parent process when vfork is done.
7905 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7906 (reinsert_reinsert_breakpoints): New function.
7907 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7908 (reinsert_reinsert_breakpoints): Declare.
7909
8a81c5d7
YQ
79102016-06-17 Yao Qi <yao.qi@linaro.org>
7911
7912 * linux-low.c (handle_extended_wait): If the parent is doing
7913 step-over, remove the reinsert breakpoints from the forked child.
7914
f50bf8e5
YQ
79152016-06-17 Yao Qi <yao.qi@linaro.org>
7916
7917 * linux-low.c (unsuspend_all_lwps): Declare.
7918 (linux_low_filter_event): If thread exited, call finish_step_over.
7919 If step-over is finished, unsuspend other threads.
7920
8376a3cb
YQ
79212016-06-17 Yao Qi <yao.qi@linaro.org>
7922
7923 * linux-low.c (linux_resume_one_lwp_throw): Assert
7924 has_reinsert_breakpoints returns false.
7925 * mem-break.c (delete_disabled_breakpoints): Assert
7926 bp type isn't reinsert_breakpoint.
7927
f79b145d
YQ
79282016-06-17 Yao Qi <yao.qi@linaro.org>
7929
7930 * linux-low.c (maybe_hw_step): New function.
7931 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7932 (finish_step_over): Switch current_thread to lwp temporarily,
7933 and assert has_reinsert_breakpoints returns true.
7934 (proceed_one_lwp): Call maybe_hw_step.
7935 * mem-break.c (has_reinsert_breakpoints): New function.
7936 * mem-break.h (has_reinsert_breakpoints): Declare.
7937
0ae534d2
JT
79382016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7939
7940 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7941
fcdad592
YQ
79422016-05-17 Yao Qi <yao.qi@linaro.org>
7943
7944 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7945 instead of find_inferior.
7946
9e784964
YQ
79472016-05-05 Yao Qi <yao.qi@linaro.org>
7948
7949 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7950 Initialize res to zero.
7951
cf2ebb6e
YQ
79522016-05-05 Yao Qi <yao.qi@linaro.org>
7953
7954 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7955 to uint32_t.
7956
c1aebf87
UW
79572016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7958
7959 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7960 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7961 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7962
35fd2deb 79632016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7964 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7965
7966 * tracepoint.c (write_inferior_int8): New function.
7967 (cmd_qtenable_disable): Write enable flag using
7968 write_inferior_int8.
7969
484b3c32
YQ
79702016-04-25 Yao Qi <yao.qi@linaro.org>
7971
7972 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7973 (need_step_over_p): Return zero if the LWP has pending signals
7974 can be delivered on software single step target.
7975
85ba7d86
YQ
79762016-04-25 Yao Qi <yao.qi@linaro.org>
7977
7978 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7979 return instead of error.
7980
3539aa13
YQ
79812016-04-22 Yao Qi <yao.qi@linaro.org>
7982
7983 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7984 to 23.
7985
5b061e98
YQ
79862016-04-22 Yao Qi <yao.qi@linaro.org>
7987
7988 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7989 signal when stepping over breakpoint with software single
7990 step.
7991
3451269c
PA
79922016-04-21 Pedro Alves <palves@redhat.com>
7993
7994 * linux-s390-low.c (s390_collect_ptrace_register)
7995 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7996 add casts.
7997 (s390_check_regset): Use void * instead of gdb_byte *.
7998
a2358508
PA
79992016-04-20 Pedro Alves <palves@redhat.com>
8000
8001 * configure: Renegerate.
8002
6885166d
YQ
80032016-04-20 Yao Qi <yao.qi@linaro.org>
8004
8005 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8006 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8007 number 16.
8008 (arm_store_gregset): Likewise.
8009
2b863f51
WT
80102016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8011
8012 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8013 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8014 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8015 (amd64-avx-mpx-linux.c): New rules.
8016 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8017 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8018 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8019 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8020 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8021 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8022 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8023 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8024 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8025 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8026 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8027 * linux-x86-low.c (x86_linux_read_description): Add case for
8028 X86_XSTATE_AVX_MPX_MASK.
8029 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8030 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8031 init_registers_i386_avx_mpx_linux.
8032 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8033 (initialize_low_tracepoint): Call
8034 init_registers_i386_avx_mpx_linux.
8035 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8036 (initialize_low_tracepoint): Call
8037 init_registers_amd64_avx_mpx_linux.
8038 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8039 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8040 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8041 declarations.
8042
9b30624b
PA
80432016-04-18 Pedro Alves <palves@redhat.com>
8044
8045 * configure: Regenerate.
8046
45e3745e
AT
80472016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8048
8049 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8050 (aarch64_emit_sub): Likewise.
8051
2afc13ff
PA
80522016-04-12 Pedro Alves <palves@redhat.com>
8053
8054 * utils.c (prepare_to_throw_exception): Delete.
8055
6e774b13
SM
80562016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8057
8058 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8059
4dca19f8
MK
80602016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8061
8062 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8063
d0a9981f
MK
80642016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8065
8066 * linux-aarch64-ipa.c: Add <elf.h> include.
8067 * linux-ppc-ipa.c: Add <elf.h> include.
8068 * linux-s390-ipa.c: Add <elf.h> include.
8069
252db07e
MK
80702016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8071
8072 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8073 (get_raw_reg_ptr): Likewise.
8074 (get_trace_state_variable_value_ptr): Likewise.
8075 (set_trace_state_variable_value_ptr): Likewise.
8076 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8077 char *.
8078
14e2b6d9
MK
80792016-03-31 Wei-cheng Wang <cole945@gmail.com>
8080 Marcin Kościelnicki <koriakin@0x04.net>
8081
8082 PR/17221
8083 * linux-ppc-low.c (emit_insns): New function.
8084 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8085 (ppc_emit_prologue): New function.
8086 (ppc_emit_epilogue): New function.
8087 (ppc_emit_add): New function.
8088 (ppc_emit_sub): New function.
8089 (ppc_emit_mul): New function.
8090 (ppc_emit_lsh): New function.
8091 (ppc_emit_rsh_signed): New function.
8092 (ppc_emit_rsh_unsigned): New function.
8093 (ppc_emit_ext): New function.
8094 (ppc_emit_zero_ext): New function.
8095 (ppc_emit_log_not): New function.
8096 (ppc_emit_bit_and): New function.
8097 (ppc_emit_bit_or): New function.
8098 (ppc_emit_bit_xor): New function.
8099 (ppc_emit_bit_not): New function.
8100 (ppc_emit_equal): New function.
8101 (ppc_emit_less_signed): New function.
8102 (ppc_emit_less_unsigned): New function.
8103 (ppc_emit_ref): New function.
8104 (ppc_emit_const): New function.
8105 (ppc_emit_reg): New function.
8106 (ppc_emit_pop): New function.
8107 (ppc_emit_stack_flush): New function.
8108 (ppc_emit_swap): New function.
8109 (ppc_emit_stack_adjust): New function.
8110 (ppc_emit_call): New function.
8111 (ppc_emit_int_call_1): New function.
8112 (ppc_emit_void_call_2): New function.
8113 (ppc_emit_if_goto): New function.
8114 (ppc_emit_goto): New function.
8115 (ppc_emit_eq_goto): New function.
8116 (ppc_emit_ne_goto): New function.
8117 (ppc_emit_lt_goto): New function.
8118 (ppc_emit_le_goto): New function.
8119 (ppc_emit_gt_goto): New function.
8120 (ppc_emit_ge_goto): New function.
8121 (ppc_write_goto_address): New function.
8122 (ppc_emit_ops_impl): New static variable.
8123 (ppc64v1_emit_prologue): New function.
8124 (ppc64v2_emit_prologue): New function.
8125 (ppc64_emit_epilogue): New function.
8126 (ppc64_emit_add): New function.
8127 (ppc64_emit_sub): New function.
8128 (ppc64_emit_mul): New function.
8129 (ppc64_emit_lsh): New function.
8130 (ppc64_emit_rsh_signed): New function.
8131 (ppc64_emit_rsh_unsigned): New function.
8132 (ppc64_emit_ext): New function.
8133 (ppc64_emit_zero_ext): New function.
8134 (ppc64_emit_log_not): New function.
8135 (ppc64_emit_bit_and): New function.
8136 (ppc64_emit_bit_or): New function.
8137 (ppc64_emit_bit_xor): New function.
8138 (ppc64_emit_bit_not): New function.
8139 (ppc64_emit_equal): New function.
8140 (ppc64_emit_less_signed): New function.
8141 (ppc64_emit_less_unsigned): New function.
8142 (ppc64_emit_ref): New function.
8143 (ppc64_emit_const): New function.
8144 (ppc64v1_emit_reg): New function.
8145 (ppc64v2_emit_reg): New function.
8146 (ppc64_emit_pop): New function.
8147 (ppc64_emit_stack_flush): New function.
8148 (ppc64_emit_swap): New function.
8149 (ppc64v1_emit_call): New function.
8150 (ppc64v2_emit_call): New function.
8151 (ppc64v1_emit_int_call_1): New function.
8152 (ppc64v2_emit_int_call_1): New function.
8153 (ppc64v1_emit_void_call_2): New function.
8154 (ppc64v2_emit_void_call_2): New function.
8155 (ppc64_emit_if_goto): New function.
8156 (ppc64_emit_eq_goto): New function.
8157 (ppc64_emit_ne_goto): New function.
8158 (ppc64_emit_lt_goto): New function.
8159 (ppc64_emit_le_goto): New function.
8160 (ppc64_emit_gt_goto): New function.
8161 (ppc64_emit_ge_goto): New function.
8162 (ppc64v1_emit_ops_impl): New static variable.
8163 (ppc64v2_emit_ops_impl): New static variable.
8164 (ppc_emit_ops): New function.
8165 (linux_low_target): Wire in ppc_emit_ops.
8166
a2174ba4
MK
81672016-03-31 Wei-cheng Wang <cole945@gmail.com>
8168 Marcin Kościelnicki <koriakin@0x04.net>
8169
8170 PR/17221
8171 * Makefile.in: Add powerpc-*-ipa.o
8172 * configure.srv: Add ipa_obj for powerpc*-linux.
8173 * linux-ppc-ipa.c: New file.
8174 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8175 includes.
8176 (PPC_FIELD): New macro.
8177 (PPC_SEXT): New macro.
8178 (PPC_OP6): New macro.
8179 (PPC_BO): New macro.
8180 (PPC_LI): New macro.
8181 (PPC_BD): New macro.
8182 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8183 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8184 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8185 (ppc_get_thread_area): New function.
8186 (is_elfv2_inferior): New function.
8187 (gen_ds_form): New function.
8188 (GEN_STD): New macro.
8189 (GEN_STDU): New macro.
8190 (GEN_LD): New macro.
8191 (GEN_LDU): New macro.
8192 (gen_d_form): New function.
8193 (GEN_ADDI): New macro.
8194 (GEN_ADDIS): New macro.
8195 (GEN_LI): New macro.
8196 (GEN_LIS): New macro.
8197 (GEN_ORI): New macro.
8198 (GEN_ORIS): New macro.
8199 (GEN_LWZ): New macro.
8200 (GEN_STW): New macro.
8201 (GEN_STWU): New macro.
8202 (gen_xfx_form): New function.
8203 (GEN_MFSPR): New macro.
8204 (GEN_MTSPR): New macro.
8205 (GEN_MFCR): New macro.
8206 (GEN_MTCR): New macro.
8207 (GEN_SYNC): New macro.
8208 (GEN_LWSYNC): New macro.
8209 (gen_x_form): New function.
8210 (GEN_OR): New macro.
8211 (GEN_MR): New macro.
8212 (GEN_LWARX): New macro.
8213 (GEN_STWCX): New macro.
8214 (GEN_CMPW): New macro.
8215 (gen_md_form): New function.
8216 (GEN_RLDICL): New macro.
8217 (GEN_RLDICR): New macro.
8218 (gen_i_form): New function.
8219 (GEN_B): New macro.
8220 (GEN_BL): New macro.
8221 (gen_b_form): New function.
8222 (GEN_BNE): New macro.
8223 (GEN_LOAD): New macro.
8224 (GEN_STORE): New macro.
8225 (gen_limm): New function.
8226 (gen_atomic_xchg): New function.
8227 (gen_call): New function.
8228 (ppc_relocate_instruction): New function.
8229 (ppc_install_fast_tracepoint_jump_pad): New function.
8230 (ppc_get_min_fast_tracepoint_insn_len): New function.
8231 (ppc_get_ipa_tdesc_idx): New function.
8232 (the_low_target): Wire in the new functions.
8233 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8234 tdescs.
8235 * linux-ppc-tdesc.h: New file.
8236
a13c4696
MK
82372016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8238
8239 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8240 (alloc_jump_pad_buffer): New function.
8241 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8242 (alloc_jump_pad_buffer): New function.
8243 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8244 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8245 (alloc_jump_pad_buffer): New function.
8246 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8247 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8248 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8249 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8250
1cda1512
MK
82512016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8252
8253 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8254 * linux-amd64-ipa.c: Likewise.
8255 * linux-i386-ipa.c: Likewise.
8256 * linux-s390-ipa.c: Likewise.
8257 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8258 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8259 set_trace_state_variable_value_ptr.
8260 (struct ipa_sym_addresses): Likewise.
8261 (symbol_list): Likewise.
8262 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8263 accessing gdb_collect directly.
8264 (gdb_collect_ptr_type): New typedef.
8265 (get_raw_reg_ptr_type): New typedef.
8266 (get_trace_state_variable_value_ptr_type): New typedef.
8267 (set_trace_state_variable_value_ptr_type): New typedef.
8268 (gdb_collect_ptr): New global.
8269 (get_raw_reg_ptr): New global.
8270 (get_trace_state_variable_value_ptr): New global.
8271 (set_trace_state_variable_value_ptr): New global.
8272 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8273 accessing get_raw_reg directly.
8274 (get_get_tsv_func_addr): Likewise for
8275 get_trace_state_variable_value_ptr.
8276 (get_set_tsv_func_addr): Likewise for
8277 set_trace_state_variable_value_ptr.
8278 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8279
72fb5488
SM
82802016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8281
8282 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8283
28170b88
MK
82842016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8285
8286 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8287 packets.
8288 (relocate_instruction): Remove own_buf.
8289 * server.c (own_buf): Make global.
8290 (handle_v_requests): Make global.
8291 * server.h (own_buf): New declaration.
8292 (handle_v_requests): New prototype.
8293
f39e8743
MK
82942016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8295
8296 PR 18377
8297 * linux-s390-low.c (add_insns): New function.
8298 (s390_emit_prologue): New function.
8299 (s390_emit_epilogue): New function.
8300 (s390_emit_add): New function.
8301 (s390_emit_sub): New function.
8302 (s390_emit_mul): New function.
8303 (s390_emit_lsh): New function.
8304 (s390_emit_rsh_signed): New function.
8305 (s390_emit_rsh_unsigned): New function.
8306 (s390_emit_ext): New function.
8307 (s390_emit_log_not): New function.
8308 (s390_emit_bit_and): New function.
8309 (s390_emit_bit_or): New function.
8310 (s390_emit_bit_xor): New function.
8311 (s390_emit_bit_not): New function.
8312 (s390_emit_equal): New function.
8313 (s390_emit_less_signed): New function.
8314 (s390_emit_less_unsigned): New function.
8315 (s390_emit_ref): New function.
8316 (s390_emit_if_goto): New function.
8317 (s390_emit_goto): New function.
8318 (s390_write_goto_address): New function.
8319 (s390_emit_litpool): New function.
8320 (s390_emit_const): New function.
8321 (s390_emit_call): New function.
8322 (s390_emit_reg): New function.
8323 (s390_emit_pop): New function.
8324 (s390_emit_stack_flush): New function.
8325 (s390_emit_zero_ext): New function.
8326 (s390_emit_swap): New function.
8327 (s390_emit_stack_adjust): New function.
8328 (s390_emit_set_r2): New function.
8329 (s390_emit_int_call_1): New function.
8330 (s390_emit_void_call_2): New function.
8331 (s390_emit_eq_goto): New function.
8332 (s390_emit_ne_goto): New function.
8333 (s390_emit_lt_goto): New function.
8334 (s390_emit_le_goto): New function.
8335 (s390_emit_gt_goto): New function.
8336 (s390_emit_ge_goto): New function.
8337 (s390x_emit_prologue): New function.
8338 (s390x_emit_epilogue): New function.
8339 (s390x_emit_add): New function.
8340 (s390x_emit_sub): New function.
8341 (s390x_emit_mul): New function.
8342 (s390x_emit_lsh): New function.
8343 (s390x_emit_rsh_signed): New function.
8344 (s390x_emit_rsh_unsigned): New function.
8345 (s390x_emit_ext): New function.
8346 (s390x_emit_log_not): New function.
8347 (s390x_emit_bit_and): New function.
8348 (s390x_emit_bit_or): New function.
8349 (s390x_emit_bit_xor): New function.
8350 (s390x_emit_bit_not): New function.
8351 (s390x_emit_equal): New function.
8352 (s390x_emit_less_signed): New function.
8353 (s390x_emit_less_unsigned): New function.
8354 (s390x_emit_ref): New function.
8355 (s390x_emit_if_goto): New function.
8356 (s390x_emit_const): New function.
8357 (s390x_emit_call): New function.
8358 (s390x_emit_reg): New function.
8359 (s390x_emit_pop): New function.
8360 (s390x_emit_stack_flush): New function.
8361 (s390x_emit_zero_ext): New function.
8362 (s390x_emit_swap): New function.
8363 (s390x_emit_stack_adjust): New function.
8364 (s390x_emit_int_call_1): New function.
8365 (s390x_emit_void_call_2): New function.
8366 (s390x_emit_eq_goto): New function.
8367 (s390x_emit_ne_goto): New function.
8368 (s390x_emit_lt_goto): New function.
8369 (s390x_emit_le_goto): New function.
8370 (s390x_emit_gt_goto): New function.
8371 (s390x_emit_ge_goto): New function.
8372 (s390_emit_ops): New function.
8373 (struct linux_target_ops): Fill in emit_ops hook.
8374
abd9baf9
MK
83752016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8376
8377 PR 18377
8378 * Makefile.in: Add s390 IPA files.
8379 * configure.srv: Build IPA for s390.
8380 * linux-s390-ipa.c: New file.
8381 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8382 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8383 (tdesc_s390_linux32): Likewise.
8384 (init_registers_s390_linux32v1): Likewise.
8385 (tdesc_s390_linux32v1): Likewise.
8386 (init_registers_s390_linux32v2): Likewise.
8387 (tdesc_s390_linux32v2): Likewise.
8388 (init_registers_s390_linux64): Likewise.
8389 (tdesc_s390_linux64): Likewise.
8390 (init_registers_s390_linux64v1): Likewise.
8391 (tdesc_s390_linux64v1): Likewise.
8392 (init_registers_s390_linux64v2): Likewise.
8393 (tdesc_s390_linux64v2): Likewise.
8394 (init_registers_s390_te_linux64): Likewise.
8395 (tdesc_s390_te_linux64): Likewise.
8396 (init_registers_s390_vx_linux64): Likewise.
8397 (tdesc_s390_vx_linux64): Likewise.
8398 (init_registers_s390_tevx_linux64): Likewise.
8399 (tdesc_s390_tevx_linux64): Likewise.
8400 (init_registers_s390x_linux64): Likewise.
8401 (tdesc_s390x_linux64): Likewise.
8402 (init_registers_s390x_linux64v1): Likewise.
8403 (tdesc_s390x_linux64v1): Likewise.
8404 (init_registers_s390x_linux64v2): Likewise.
8405 (tdesc_s390x_linux64v2): Likewise.
8406 (init_registers_s390x_te_linux64): Likewise.
8407 (tdesc_s390x_te_linux64): Likewise.
8408 (init_registers_s390x_vx_linux64): Likewise.
8409 (tdesc_s390x_vx_linux64): Likewise.
8410 (init_registers_s390x_tevx_linux64): Likewise.
8411 (tdesc_s390x_tevx_linux64): Likewise.
8412 (have_hwcap_s390_vx): New static variable.
8413 (s390_arch_setup): Fill have_hwcap_s390_vx.
8414 (s390_get_thread_area): New function.
8415 (s390_ft_entry_gpr_esa): New const.
8416 (s390_ft_entry_gpr_zarch): New const.
8417 (s390_ft_entry_misc): New const.
8418 (s390_ft_entry_fr): New const.
8419 (s390_ft_entry_vr): New const.
8420 (s390_ft_main_31): New const.
8421 (s390_ft_main_64): New const.
8422 (s390_ft_exit_fr): New const.
8423 (s390_ft_exit_vr): New const.
8424 (s390_ft_exit_misc): New const.
8425 (s390_ft_exit_gpr_esa): New const.
8426 (s390_ft_exit_gpr_zarch): New const.
8427 (append_insns): New function.
8428 (s390_relocate_instruction): New function.
8429 (s390_install_fast_tracepoint_jump_pad): New function.
8430 (s390_get_min_fast_tracepoint_insn_len): New function.
8431 (s390_get_ipa_tdesc_idx): New function.
8432 (struct linux_target_ops): Wire in the above functions.
8433 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8434 * linux-s390-tdesc.h: New file.
8435
a4105d04
MK
84362016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8437
8438 * linux-s390-low.c (s390_supports_tracepoints): New function.
8439 (struct linux_target_ops): Fill supports_tracepoints hook.
8440
35ac8b3e
YQ
84412016-03-18 Yao Qi <yao.qi@linaro.org>
8442
8443 * linux-low.c (lwp_signal_can_be_delivered): New function.
8444 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8445
94610ec4
YQ
84462016-03-18 Yao Qi <yao.qi@linaro.org>
8447
8448 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8449 0 if signal is enqueued. Remove 'signal' from one debugging
8450 message. Move one debugging message to some lines below.
8451 Remove code setting 'signal' to 0.
8452
80aea927
YQ
84532016-03-18 Yao Qi <yao.qi@linaro.org>
8454
8455 * linux-low.c (linux_low_filter_event): Remove redundant
8456 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8457
b04fd3be
MK
84582016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8459
8460 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8461 (struct linux_target_ops): Wire in the above.
8462
c40c8d4b
YQ
84632016-03-03 Yao Qi <yao.qi@linaro.org>
8464
8465 * linux-low.c: Update comments to start_step_over.
8466
0f8288ae
YQ
84672016-03-03 Yao Qi <yao.qi@linaro.org>
8468
8469 PR server/19736
8470 * linux-low.c (handle_extended_wait): Set child suspended
8471 if event_lwp->bp_reinsert isn't zero.
8472
fdbd04a8
YQ
84732016-03-02 Yao Qi <yao.qi@linaro.org>
8474
8475 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8476 enqueue_pending_signal.
8477
6896a8fa
MK
84782016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8479
8480 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8481 is actually loaded.
8482
ab503087
MK
84832016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8484
8485 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8486 (s390_regmap_3264) [!__s390x__]: New global.
8487 (s390_collect_ptrace_register): Skip map entries containing -1.
8488 (s390_supply_ptrace_register): Ditto.
8489 (s390_fill_gprs_high): New function.
8490 (s390_store_gprs_high): New function.
8491 (s390_regsets): Add NT_S390_HIGH_GPRS.
8492 (s390_get_hwcap): Enable on 31-bit.
8493 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8494 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8495 Detect NT_S390_HIGH_GPRS.
8496 (s390_usrregs_info_3264): Enable on 31-bit.
8497 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8498 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8499
ae91f625
MK
85002016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8501
8502 PR gdb/13808
8503 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8504 * configure.srv: Ditto.
8505 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8506 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8507 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8508 (init_registers_amd64_linux): Remove prototype.
8509 (tdesc_amd64_linux): Remove declaration.
8510 (get_ipa_tdesc): New function.
8511 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8512 initialize remaining tdescs.
8513 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8514 (init_registers_i386_linux): Remove prototype.
8515 (tdesc_i386_linux): Remove declaration.
8516 (get_ipa_tdesc): New function.
8517 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8518 initialize remaining tdescs.
8519 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8520 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8521 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8522 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8523 (x86_get_ipa_tdesc_idx): New function.
8524 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8525 * linux-x86-tdesc.h: New file.
8526 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8527 (target_get_ipa_tdesc_idx): New macro.
8528 * tracepoint.c (ipa_tdesc_idx): New macro.
8529 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8530 (symbol_list): Add ipa_tdesc_idx.
8531 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8532 (ipa_tdesc): Remove.
8533 (ipa_tdesc_idx): New variable.
8534 (get_context_regcache): Use get_ipa_tdesc.
8535 (gdb_collect): Ditto.
8536 (gdb_probe): Ditto.
8537 * tracepoint.h (get_ipa_tdesc): New prototype.
8538 (ipa_tdesc): Remove.
8539
e7ad2f14
PA
85402016-02-24 Pedro Alves <palves@redhat.com>
8541
8542 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8543 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8544 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8545 Factor out common code between the USE_SIGTRAP_SIGINFO and
8546 !USE_SIGTRAP_SIGINFO blocks.
8547 (linux_low_filter_event): Call save_stop_reason instead of
8548 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8549 Update comments.
8550 (linux_wait_1): Update comments.
8551
657f9cde
WW
85522016-02-24 Wei-cheng Wang <cole945@gmail.com>
8553
8554 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8555 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8556 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8557 ppc_insert_point, ppc_remove_point.
8558
b00b61e1
MK
85592016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8560
8561 * linux-s390-low.c (s390_supports_z_point_type): New function.
8562 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8563
553cb527
YQ
85642016-02-16 Yao Qi <yao.qi@linaro.org>
8565
8566 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8567 PC. Get pc from regcache_read_pc.
8568
a5652c21
YQ
85692016-02-12 Yao Qi <yao.qi@linaro.org>
8570
8571 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8572 or linux_get_pc_32bit.
8573 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8574
ed443b61
YQ
85752016-02-12 Yao Qi <yao.qi@linaro.org>
8576
8577 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8578 arm_linux_get_next_pcs_fixup.
8579
020ecd38
MK
85802016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8581
8582 * tracepoint.c (x_tracepoint_action_download): Change
8583 write_inferior_data_ptr to write_inferior_data_pointer.
8584 (cmd_qtstart): Likewise.
8585 (write_inferior_data_ptr): Remove.
8586 (download_agent_expr): Change write_inferior_data_ptr to
8587 write_inferior_data_pointer.
8588 (download_tracepoint_1): Likewise.
8589 (download_tracepoint): Likewise.
8590 (download_trace_state_variables): Likewise.
8591
7cae9051
WW
85922016-02-11 Wei-cheng Wang <cole945@gmail.com>
8593 Marcin Kościelnicki <koriakin@0x04.net>
8594
8595 * tracepoint.c (struct tracepoint_action_ops): Remove.
8596 (struct tracepoint_action): Remove ops.
8597 (m_tracepoint_action_download, r_tracepoint_action_download)
8598 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8599 size and offset accordingly.
8600 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8601 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8602 (tracepoint_action_send, tracepoint_action_download): New functions.
8603 Helpers for trace action handlers.
8604 (add_tracepoint_action): Remove setup actions ops.
8605 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8606
9f6a71b4
YQ
86072016-02-10 Yao Qi <yao.qi@linaro.org>
8608
8609 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8610
1e94266c
SM
86112016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8612
8613 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8614 to AC_OUTPUT.
8615 * configure: Regenerate.
8616
8adce034
SM
86172016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8618
8619 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8620 void * to gdb_byte *.
8621 * linux-low.c (siginfo_fixup): Likewise.
8622 (linux_xfer_siginfo): Likewise.
8623 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8624 Likewise.
8625 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8626
93813b37
WT
86272016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8628
8629 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8630 to srv_tgtobj.
8631 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8632 to srv_tgtobj.
8633 * linux-x86-low.c [__x86_64__]: Include
8634 "nat/amd64-linux-siginfo.h".
8635 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8636 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8637 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8638 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8639 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8640 (cpt_si_fd, si_timerid, si_overrun): Move from
8641 nat/amd64-linux-siginfo.c.
8642 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8643
8424cc97
SM
86442016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8645
8646 * server.c (skip_to_semicolon): Remove.
8647 (process_point_options): Use strchrnul instead of
8648 skip_to_semicolon.
8649
4d18591b
YQ
86502016-01-26 Yao Qi <yao.qi@linaro.org>
8651
8652 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8653 * linux-low.c (install_software_single_step_breakpoints): Don't
8654 call regcache_read_pc.
8655 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8656 argument pc.
8657
d8020970
YQ
86582016-01-26 Yao Qi <yao.qi@linaro.org>
8659
8660 * linux-low.c (install_software_single_step_breakpoints): Call
8661 regcache_read_pc instead of get_pc.
8662
8b207339
YQ
86632016-01-26 Yao Qi <yao.qi@linaro.org>
8664
8665 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8666 (unblock_async_io): Rename to ...
8667 (block_unblock_async_io): ... it. New function.
8668 (enable_async_io): Don't install SIGIO handler. Unblock it
8669 instead.
8670 (disable_async_io): Don't ignore SIGIO. Block it instead.
8671 (initialize_async_io): Install SIGIO handler. Don't call
8672 unblock_async_io.
8673
18879fef
YQ
86742016-01-26 Yao Qi <yao.qi@linaro.org>
8675
8676 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8677 first character is '\003', call *the_target->request_interrupt.
8678
a0f8e08a
YQ
86792016-01-25 Yao Qi <yao.qi@linaro.org>
8680
8681 * remote-utils.c (new_thread_notify): Remove.
8682 (dead_thread_notify): Likewise.
8683 * remote-utils.h (new_thread_notify): Remove declaration.
8684 (dead_thread_notify): Likewise.
8685
cc5fd9ab
MK
86862016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8687
8688 * gdb.trace/pending.exp: Fix expected message on continue.
8689
99e8eb11
MK
86902016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8691
8692 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8693 it works properly on big-endian machines where sizeof (CORE_ADDR)
8694 != sizeof (void *).
8695
a994041d
PA
86962016-01-21 Pedro Alves <palves@redhat.com>
8697
8698 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8699 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8700 * configure: Regenerate.
8701
f7a6a40d
YQ
87022016-01-21 Yao Qi <yao.qi@linaro.org>
8703
8704 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8705 is_thumb and set it according to CPSR saved on the stack.
8706 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8707 arm_sigreturn_next_pc.
8708
6f69e520
YQ
87092016-01-18 Yao Qi <yao.qi@linaro.org>
8710
8711 * linux-low.c (linux_set_pc_64bit): New function.
8712 (linux_get_pc_64bit): New function.
8713 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8714 Declare.
8715 * linux-sparc-low.c (debug_threads): Remove declaration.
8716 (sparc_get_pc): Remove.
8717 (the_low_target): Use linux_get_pc_64bit instead of
8718 sparc_get_pc.
8719 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8720 (the_low_target): Use linux_get_pc_64bit and
8721 linux_set_pc_64bit.
8722
276d4552
YQ
87232016-01-18 Yao Qi <yao.qi@linaro.org>
8724
8725 * linux-arm-low.c (debug_threads): Remove declaration.
8726 (arm_get_pc, arm_set_pc): Remove.
8727 (the_low_target): Use linux_get_pc_32bit and
8728 linux_set_pc_32bit.
8729 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8730 (the_low_target): Use linux_get_pc_32bit and
8731 linux_set_pc_32bit.
8732 * linux-cris-low.c (debug_threads): Remove declaration.
8733 (cris_get_pc, cris_set_pc,): Remove.
8734 (the_low_target): Use linux_get_pc_32bit and
8735 linux_set_pc_32bit.
8736 * linux-crisv32-low.c (debug_threads): Remove declaration.
8737 (cris_get_pc, cris_set_pc): Remove.
8738 (the_low_target): Use linux_get_pc_32bit and
8739 linux_set_pc_32bit.
8740 * linux-low.c: Include inttypes.h.
8741 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8742 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8743 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8744 (the_low_target): Use linux_get_pc_32bit and
8745 linux_set_pc_32bit.
8746 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8747 (the_low_target): Use linux_get_pc_32bit and
8748 linux_set_pc_32bit.
8749 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8750 (the_low_target): Use linux_get_pc_32bit and
8751 linux_set_pc_32bit.
8752 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8753 (the_low_target): Use linux_get_pc_32bit and
8754 linux_set_pc_32bit.
8755 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8756 (the_low_target): Use linux_get_pc_32bit and
8757 linux_set_pc_32bit.
8758
eb0edac8
GB
87592016-01-18 Gary Benson <gbenson@redhat.com>
8760
8761 * configure.ac (AC_FUNC_FORK): New check.
8762 * config.in: Regenerate.
8763 * configure: Likewise.
8764
1b451dda
YQ
87652016-01-14 Yao Qi <yao.qi@linaro.org>
8766
8767 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8768 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8769 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8770 arm_get_next_pcs_ctor.
8771
82075af2
JS
87722016-01-12 Josh Stone <jistone@redhat.com>
8773 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8774
8775 * inferiors.h: Include "gdb_vecs.h".
8776 (struct process_info): Add syscalls_to_catch.
8777 * inferiors.c (remove_process): Free syscalls_to_catch.
8778 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8779 syscall_return stops.
8780 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8781 * server.c (handle_general_set): Handle QCatchSyscalls.
8782 (handle_query): Report support for QCatchSyscalls.
8783 * target.h (struct target_ops): Add supports_catch_syscall.
8784 (target_supports_catch_syscall): New macro.
8785 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8786 (struct lwp_info): Add syscall_state.
8787 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8788 Maintain syscall_state and syscalls_to_catch across exec.
8789 (get_syscall_trapinfo): New function, proxy to the_low_target.
8790 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8791 (linux_low_filter_event): Toggle syscall_state entry/return for
8792 syscall traps, and set it ignored for all others.
8793 (gdb_catching_syscalls_p): New function.
8794 (gdb_catch_this_syscall_p): New function.
8795 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8796 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8797 (linux_supports_catch_syscall): New function.
8798 (linux_target_ops): Install it.
8799 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8800 (the_low_target): Install it.
8801
8f13a3ce
MF
88022016-01-12 Mike Frysinger <vapier@gentoo.org>
8803
8804 * acinclude.m4: Include new ../warning.m4 file.
8805 * configure: Regenerated.
8806 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8807
5b3da067
MF
88082016-01-12 Mike Frysinger <vapier@gentoo.org>
8809
8810 * ax.c (is_goto_target): Mark static.
8811 * linux-low.c (register_addr): Likewise.
8812 (linux_fetch_registers, linux_store_registers): Likewise.
8813 * mem-break.c (any_persistent_commands): Fix old prototype.
8814 (add_commands_to_breakpoint): Mark static.
8815 * regcache.c (find_register_by_name): Delete unused func.
8816 * remote-utils.c (hex_or_minus_one): Mark static.
8817 * server.c (monitor_show_help): Mark static.
8818 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8819 handle_v_requests): Likewise.
8820
bc504a31
PA
88212016-01-12 Pedro Alves <palves@redhat.com>
8822
8823 Remove use of the registered trademark symbol throughout.
8824
5a0dd67a
YQ
88252016-01-08 Yao Qi <yao.qi@linaro.org>
8826
8827 * remote-utils.c (getpkt): If c is '\003', call target hook
8828 request_interrupt.
8829
b2ca446f
YQ
88302016-01-06 Yao Qi <yao.qi@linaro.org>
8831
8832 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8833 linux-aarch32-low.c.
8834 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8835 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8836 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8837 (thumb2_breakpoint): Declare.
8838 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8839 linux-aarch32-low.h.
8840 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8841 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8842 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8843
edd88788
JB
88442016-01-01 Joel Brobecker <brobecker@adacore.com>
8845
8846 * gdbreplay.c (gdbreplay_version): Change copyright year in
8847 version message.
8848 * server.c (gdbserver_version): Likewise.
8849
65da7f14
PP
88502015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8851
8852 * server.c (crc32_table): Delete.
8853 (crc32): Use libiberty's xcrc32 function.
8854
4abd5ed2
JB
88552015-12-22 Joel Brobecker <brobecker@adacore.com>
8856
8857 * lynx-low.c (lynx_delete_thread_callback): New function.
8858 (lynx_mourn): Properly delete our process and all of its
8859 threads. Remove call to clear_inferiors.
8860
0e50fe5c
JB
88612015-12-22 Joel Brobecker <brobecker@adacore.com>
8862
8863 * target.c (thread_search_callback): Add check that
8864 the thread_stopped target callback is not NULL before
8865 calling it.
8866
35adc03f
YQ
88672015-12-21 Yao Qi <yao.qi@linaro.org>
8868
8869 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8870 arm breakpoint.
8871
bd2b2909
AT
88722015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8873
8874 * server.c (handle_query): Call target_supports_software_single_step.
8875
7fe5e27e
AT
88762015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8877
8878 * linux-low.c (single_step): New function.
8879 (linux_resume_one_lwp_throw): Call single_step.
8880 (start_step_over): Likewise.
8881
d9311bfa
AT
88822015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8883
8884 * Makefile.in (SFILES): Append arch/arm-linux.c,
8885 arch/arm-get-next-pcs.c.
8886 (arm-linux.o): New rule.
8887 (arm-get-next-pcs.o): New rule.
8888 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8889 arm-linux.o.
8890 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8891 to linux-aarch32-low.c.
8892 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8893 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8894 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8895 (thumb2_breakpoint_len): Likewise.
8896 (arm_is_thumb_mode): Make non-static.
8897 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8898 from linux-aarch32-low.c.
8899 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8900 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8901 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8902 (thumb2_breakpoint_len): Likewise.
8903 (arm_is_thumb_mode): New declaration.
8904 * linux-arm-low.c: Include arch/arm-linux.h
8905 aarch/arm-get-next-pcs.h, sys/syscall.h.
8906 (get_next_pcs_ops): New struct.
8907 (get_next_pcs_addr_bits_remove): New function.
8908 (get_next_pcs_is_thumb): New function.
8909 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8910 (arm_sigreturn_next_pc): Likewise.
8911 (get_next_pcs_syscall_next_pc): Likewise.
8912 (arm_gdbserver_get_next_pcs): Likewise.
8913 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8914 Initialize.
8915 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8916 * server.h: Include gdb_vecs.h.
8917
68ce2059
AT
89182015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8919
8920 * Makefile.in (SFILES): Append common/common-regcache.c.
8921 (OBS): Append common-regcache.o.
8922 (common-regcache.o): New rule.
8923 * regcache.c (init_register_cache): Initialize cache to
8924 REG_UNAVAILABLE.
8925 (regcache_raw_read_unsigned): New function.
8926 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8927 register_status enum.
8928
fa5308bd
AT
89292015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8930
8931 * linux-aarch64-low.c (the_low_targets): Rename
8932 breakpoint_reinsert_addr to get_next_pcs.
8933 * linux-arm-low.c (the_low_targets): Likewise.
8934 * linux-bfin-low.c (the_low_targets): Likewise.
8935 * linux-cris-low.c (the_low_targets): Likewise.
8936 * linux-crisv32-low.c (the_low_targets): Likewise.
8937 * linux-low.c (can_software_single_step): Likewise.
8938 (install_software_single_step_breakpoints): New function.
8939 (start_step_over): Use install_software_single_step_breakpoints.
8940 * linux-low.h: New CORE_ADDR vector.
8941 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8942 get_next_pcs.
8943 * linux-mips-low.c (the_low_targets): Likewise.
8944 * linux-nios2-low.c (the_low_targets): Likewise.
8945 * linux-sparc-low.c (the_low_targets): Likewise.
8946
4a6ed09b
PA
89472015-12-17 Pedro Alves <palves@redhat.com>
8948
8949 * linux-low.c (linux_kill_one_lwp): Remove references to
8950 LinuxThreads.
8951 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8952 to 'kill'.
8953 (linux_init_signals): Delete.
8954 (initialize_low): Adjust.
8955 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8956
7544db95
PA
89572015-12-16 Pedro Alves <palves@redhat.com>
8958
8959 * configure.ac (compiler warning flags): When testing a
8960 -Wno-foo option, check whether -Wfoo works instead.
8961 * configure: Regenerate.
8962
8020350c
DB
89632015-12-11 Don Breazeal <donb@codesourcery.com>
8964
8965 * server.c (process_serial_event): Don't exit from gdbserver
8966 in remote mode if there are still active inferiors.
8967
db91f502
YQ
89682015-12-11 Yao Qi <yao.qi@linaro.org>
8969
8970 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8971 arm_breakpoint_at if the process is 32-bit.
8972
b37a6290
YQ
89732015-12-11 Yao Qi <yao.qi@linaro.org>
8974
8975 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8976 arm breakpoint.
8977
17b1509a
YQ
89782015-12-07 Yao Qi <yao.qi@linaro.org>
8979
8980 * configure.srv: Append arm.o to srv_tgtobj for
8981 aarch64*-*-linux* target.
8982 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8983 from linux-arm-low.c.
8984 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8985 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8986 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8987 (thumb2_breakpoint_len): Likewise.
8988 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8989 (arm_breakpoint_kinds): Likewise.
8990 (arm_breakpoint_kind_from_pc): Likewise.
8991 (arm_sw_breakpoint_from_kind): Likewise.
8992 (arm_breakpoint_kind_from_current_state): Likewise.
8993 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8994 (arm_sw_breakpoint_from_kind): Declare.
8995 (arm_breakpoint_kind_from_current_state): Declare.
8996 (arm_breakpoint_at): Declare.
8997 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8998 arm_sw_breakpoint_from_kind if process is 32-bit.
8999 (aarch64_breakpoint_kind_from_pc): New function.
9000 (aarch64_breakpoint_kind_from_current_state): New function.
9001 (the_low_target): Initialize fields breakpoint_kind_from_pc
9002 and breakpoint_kind_from_current_state.
9003 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9004 linux-aarch32-low.c.
9005 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9006 (arm_breakpoint, arm_breakpoint_len): Likewise.
9007 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9008 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9009 (arm_is_thumb_mode): Likewise.
9010 (arm_breakpoint_at): Likewise.
9011 (arm_breakpoint_kind_from_pc): Likewise.
9012 (arm_sw_breakpoint_from_kind): Likewise.
9013 (arm_breakpoint_kind_from_current_state): Likewise.
9014
9015 Revert:
9016 2015-08-04 Yao Qi <yao.qi@linaro.org>
9017
9018 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9019 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9020 * server.c (extended_protocol): Remove "static".
9021 * server.h (extended_protocol): Declare it.
9022
ece66d65
JS
90232015-12-04 Josh Stone <jistone@redhat.com>
9024
9025 * target.h (struct target_ops) <arch_setup>: Rename to ...
9026 (struct target_ops) <post_create_inferior>: ... this.
9027 (target_arch_setup): Rename to ...
9028 (target_post_create_inferior): ... this, calling post_create_inferior.
9029 * server.c (start_inferior): Update target_arch_setup calls to
9030 target_post_create_inferior.
9031 * linux-low.c (linux_low_ptrace_options): Forward declare.
9032 (linux_arch_setup): Update its comment for general use.
9033 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9034 (struct linux_target_ops): Use linux_post_create_inferior.
9035 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9036 to post_create_inferior.
9037 * nto-low.c (struct nto_target_ops): Likewise.
9038 * spu-low.c (struct spu_target_ops): Likewise.
9039 * win32-low.c (struct win32_target_ops): Likewise.
9040
e58c48b4
AT
90412015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9042
9043 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9044
fbec8956
AT
90452015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9046
9047 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9048 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9049 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9050 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9051 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9052 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9053 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9054 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9055 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9056 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9057 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9058 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9059
9b4c5f87
AT
90602015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9061
9062 * linux-low.c (linux_look_up_symbols): Don't call
9063 linux_supports_traceclone.
9064 * linux-low.h (thread_db_init): Remove use_events argument.
9065 * thread-db.c (thread_db_use_event): Remove global variable.
9066 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9067 (struct thread_db) <td_create_bp>: Remove field.
9068 (thread_db_create_event): Remove function.
9069 (thread_db_enable_reporting): Likewise.
9070 (find_one_thread): Don't check for thread_db_use_events.
9071 (attach_thread): Likewise.
9072 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9073 (try_thread_db_load_1): Don't check for thread_db_use_events.
9074 (thread_db_init): Remove use_events argument and thread events
9075 handling.
9076 (remove_thread_event_breakpoints): Remove function.
9077 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9078
7d00775e
AT
90792015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9080
9081 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9082 New function.
9083 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9084 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9085 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9086 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9087 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9088 Initialize.
9089 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9090 New function.
9091 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9092 * linux-low.c (can_hardware_single_step): Use
9093 supports_hardware_single_step.
9094 (can_software_single_step): New function.
9095 (start_step_over): Call can_software_single_step.
9096 (linux_supports_hardware_single_step): New function.
9097 (struct target_ops) <supports_software_single_step>: Initialize.
9098 * linux-low.h (struct linux_target_ops)
9099 <supports_hardware_single_step>: Initialize.
9100 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9101 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9102 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9103 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9104 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9105 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9106 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9107 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9108 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9109 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9110 Initialize.
9111 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9112 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9113 Initialize.
9114 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9115 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9116 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9117 New function.
9118 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9119 * target.h (struct target_ops): <supports_software_single_step>:
9120 New field.
9121 (target_supports_software_single_step): New macro.
9122
2d97cd35
AT
91232015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9124
9125 * linux-low.c (linux_wait_1): Fix pc advance condition.
9126 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9127 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9128
769ef81f
AT
91292015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9130
9131 * linux-arm-low.c (arm_is_thumb_mode): New function.
9132 (arm_breakpoint_at): Use arm_is_thumb_mode.
9133 (arm_breakpoint_kind_from_current_state): New function.
9134 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9135 Initialize.
9136 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9137 (linux_breakpoint_kind_from_current_state): New function.
9138 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9139 * linux-low.h (struct linux_target_ops)
9140 <breakpoint_kind_from_current_state>: New field.
9141 * target.h (struct target_ops): Likewise.
9142 (target_breakpoint_kind_from_current_state): New macro.
9143
1bebeeca
PA
91442015-11-30 Pedro Alves <palves@redhat.com>
9145
9146 * linux-low.c (linux_resume): Wake up the event loop before
9147 returning.
9148
a67a9fae
PA
91492015-11-30 Pedro Alves <palves@redhat.com>
9150
9151 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9152 check.
9153 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9154 to -1.
9155 * target.c (struct thread_search): New structure.
9156 (thread_search_callback): New function.
9157 (prev_general_thread): New global.
9158 (prepare_to_access_memory, done_accessing_memory): New functions.
9159 * target.h (prepare_to_access_memory, done_accessing_memory):
9160 Replace macros with function declarations.
9161
f2faf941
PA
91622015-11-30 Pedro Alves <palves@redhat.com>
9163
9164 PR 14618
9165 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9166 report TARGET_WAITKIND_NO_RESUMED.
9167 * remote-utils.c (prepare_resume_reply): Handle
9168 TARGET_WAITKIND_NO_RESUMED.
9169 * server.c (report_no_resumed): New global.
9170 (handle_query) <qSupported>: Handle "no-resumed+". Report
9171 "no-resumed+" support.
9172 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9173 return error if the client doesn't support no-resumed events.
9174 (push_stop_notification): New function.
9175 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9176 events if the client supports them.
9177
a681f9c9
PA
91782015-11-30 Pedro Alves <palves@redhat.com>
9179
9180 * linux-low.c (thread_still_has_status_pending_p): Don't check
9181 vCont;t here.
9182 (lwp_resumed): New function.
9183 (status_pending_p_callback): Return early if the LWP is not
9184 supposed to be resumed.
9185
65706a29
PA
91862015-11-30 Pedro Alves <palves@redhat.com>
9187
9188 * linux-low.c (handle_extended_wait): Assert that the LWP's
9189 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9190 thread create events, leave the new child's status pending.
9191 (linux_low_filter_event): If GDB wants to hear about thread exit
9192 events, leave the LWP marked dead and don't delete it.
9193 (linux_wait_for_event_filtered): Don't check for thread exit.
9194 (filter_exit_event): New function.
9195 (linux_wait_1): Use it, when returning an exit event.
9196 (linux_resume_one_lwp_throw): Assert that the LWP's
9197 waitstatus is TARGET_WAITKIND_IGNORE.
9198 * remote-utils.c (prepare_resume_reply): Handle
9199 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9200 * server.c (report_thread_events): New global.
9201 (handle_general_set): Handle QThreadEvents.
9202 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9203 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9204 TARGET_WAITKIND_THREAD_EXITED.
9205 * server.h (report_thread_events): Declare.
9206
56cf4bed
PA
92072015-11-30 Pedro Alves <palves@redhat.com>
9208
9209 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9210 the thread's last_resume_kind was resume_stop.
9211
500c1d85
PA
92122015-11-30 Pedro Alves <palves@redhat.com>
9213
9214 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9215 before returning.
9216
de979965
PA
92172015-11-30 Pedro Alves <palves@redhat.com>
9218
9219 * server.c (handle_v_requests): Handle vCtrlC.
9220
34c65914
PA
92212015-11-30 Pedro Alves <palves@redhat.com>
9222
9223 * gdbthread.h (find_any_thread_of_pid): Declare.
9224 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9225 functions.
9226 * server.c (handle_query): If current_thread is NULL, look for
9227 another thread of the selected process.
9228
79efa585 92292015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9230 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9231
9232 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9233 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9234 name in reply.
9235 * target.h (struct target_ops) <thread_name>: New field.
9236 (target_thread_name): New macro.
9237
80d82c19
JB
92382015-11-23 Joel Brobecker <brobecker@adacore.com>
9239
9240 * regcache.h (regcache_invalidate_pid): Add declaration.
9241 * regcache.c (regcache_invalidate_pid): New function, extracted
9242 from regcache_invalidate.
9243 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9244 Add trivial documentation comment.
9245 * lynx-low.c: Use regcache_invalidate_pid instead of
9246 regcache_invalidate.
9247
64da5dd5
JB
92482015-11-23 Joel Brobecker <brobecker@adacore.com>
9249
9250 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9251 and Elf64_auxv_t if the target is Android.
9252
37ce4055
DE
92532015-11-22 Doug Evans <xdje42@gmail.com>
9254
9255 * target.h: #include <sys/types.h>.
9256
06e03fff
PA
92572015-11-19 Pedro Alves <palves@redhat.com>
9258
9259 * linux-low.c (linux_process_qsupported): Change prototype.
9260 Adjust.
9261 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9262 Change prototype.
9263 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9264 and adjust to loop over all features.
9265 * server.c (handle_query) <qSupported>: Adjust to call
9266 target_process_qsupported once, passing it a vector of unprocessed
9267 features.
9268 * target.h (struct target_ops) <process_qsupported>: Change
9269 prototype.
9270 (target_process_qsupported): Adjust.
9271
9a084706
PA
92722015-11-19 Pedro Alves <palves@redhat.com>
9273
9274 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9275 mode.
9276 * configure: Regenerate.
9277
dad44a1f
PA
92782015-11-19 Pedro Alves <palves@redhat.com>
9279
9280 * configure: Regenerate.
9281
231c0592
YQ
92822015-11-19 Yao Qi <yao.qi@linaro.org>
9283
9284 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9285 type to uint32_t.
9286
6c1c9a8b
YQ
92872015-11-19 Yao Qi <yao.qi@linaro.org>
9288
9289 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9290 (struct aarch64_operand): Move enum out.
9291
9caa3311
YQ
92922015-11-19 Yao Qi <yao.qi@linaro.org>
9293
9294 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9295 struct user_fpsimd_state *.
9296 (aarch64_store_fpregset): Likewise.
9297
6a69a054
YQ
92982015-11-19 Yao Qi <yao.qi@linaro.org>
9299
9300 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9301 struct user_pt_regs *.
9302 (aarch64_store_gregset): Likewise.
9303
1798301e
PA
93042015-11-18 Pedro Alves <palves@redhat.com>
9305
9306 * Makefile.in (all_object_files): Add $IPA_OBJS.
9307
ce7715e2
PA
93082015-11-17 Pedro Alves <palves@redhat.com>
9309
9310 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9311 GDB_SIGNAL_0 and gdb_signal_to_string.
9312
c0879059
PA
93132015-11-17 Pedro Alves <palves@redhat.com>
9314
9315 * win32-low.c (handle_output_debug_string): Remove parameter.
9316 (win32_kill): Remove our_status local and adjust call to
9317 handle_output_debug_string.
9318 (get_child_debug_event): Adjust call to
9319 handle_output_debug_string.
9320
1996e237
SM
93212015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9322
9323 * linux-mips-low.c (mips_fill_gregset): Add cast.
9324 (mips_store_gregset): Likewise.
9325 (mips_fill_fpregset): Likewise.
9326 (mips_store_fpregset): Likewise.
9327
cbec665b
SM
93282015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9331 priv.
9332
eb3e3c67
SM
93332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9334
9335 * linux-mips-low.c (mips_linux_new_thread): Change type of
9336 watch_type to enum target_hw_bp_type.
9337
171de4b8
SM
93382015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9339
9340 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9341 Change return type to arm_hwbp_type.
9342
04248ead
SM
93432015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9344
9345 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9346 (arm_store_gregset): Likewise.
9347 * linux-arm-low.c (arm_get_hwcap): Likewise.
9348 (arm_read_description): Likewise.
9349
04b3479c
SM
93502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9351
9352 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9353
2bc84e8a
SM
93542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9355
9356 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9357 (ppc_fill_vsxregset): Likewise.
9358 (ppc_store_vsxregset): Likewise.
9359 (ppc_fill_vrregset): Likewise.
9360 (ppc_store_vrregset): Likewise.
9361 (ppc_fill_evrregset): Likewise.
9362 (ppc_store_evrregset): Likewise.
9363
e6c5bb05
SM
93642015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9365
9366 * linux-ppc-low.c (ppc_usrregs_info): Remove
9367 forward-declaration.
9368 (ppc_arch_setup): Move lower in file.
9369
7ea45d72
SM
93702015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9371
9372 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9373 (ps_pdwrite): Likewise.
9374
69291610
HW
93752015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9376
9377 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9378 to after assert checks.
9379
b42945fd
SM
93802015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9381
9382 * proc-service.c (ps_pdread): Add/adjust casts.
9383 (ps_pdwrite): Add/adjust casts.
9384
d6f85c84
SM
93852015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9386
9387 * server.c (handle_search_memory_1): Cast return value of
9388 memmem.
9389
f98cd059
SM
93902015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9391
9392 * server.c (write_qxfer_response): Change type of data to
9393 gdb_byte *.
9394
d2412fa5
PA
93952015-10-29 Pedro Alves <palves@redhat.com>
9396
9397 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9398
c17414a2
PA
93992015-10-29 Pedro Alves <palves@redhat.com>
9400
9401 * tracepoint.c (clear_installed_tracepoints): Add casts.
9402
e053fbc4
PA
94032015-10-29 Pedro Alves <palves@redhat.com>
9404
9405 * server.c (handle_v_cont, process_serial_event): Add enum
9406 gdb_signal casts to signal parsing code.
9407
add67df8
PA
94082015-10-29 Pedro Alves <palves@redhat.com>
9409
9410 * linux-low.h (NULL_REGSET): Define.
9411 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9412 * linux-arm-low.c (arm_regsets): Likewise.
9413 * linux-crisv32-low.c (cris_regsets): Likewise.
9414 * linux-m68k-low.c (m68k_regsets): Likewise.
9415 * linux-mips-low.c (mips_regsets): Likewise.
9416 * linux-nios2-low.c (nios2_regsets): Likewise.
9417 * linux-ppc-low.c (ppc_regsets): Likewise.
9418 * linux-s390-low.c (s390_regsets): Likewise.
9419 * linux-sh-low.c (sh_regsets): Likewise.
9420 * linux-sparc-low.c (sparc_regsets): Likewise.
9421 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9422 * linux-tile-low.c (tile_regsets): Likewise.
9423 * linux-x86-low.c (x86_regsets): Likewise.
9424 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9425
50bc912a
PA
94262015-10-29 Pedro Alves <palves@redhat.com>
9427
9428 * linux-low.h (NULL_REGSET): Define.
9429 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9430 * linux-arm-low.c (arm_regsets): Likewise.
9431 * linux-crisv32-low.c (cris_regsets): Likewise.
9432 * linux-m68k-low.c (m68k_regsets): Likewise.
9433 * linux-mips-low.c (mips_regsets): Likewise.
9434 * linux-nios2-low.c (nios2_regsets): Likewise.
9435 * linux-ppc-low.c (ppc_regsets): Likewise.
9436 * linux-s390-low.c (s390_regsets): Likewise.
9437 * linux-sh-low.c (sh_regsets): Likewise.
9438 * linux-sparc-low.c (sparc_regsets): Likewise.
9439 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9440 * linux-tile-low.c (tile_regsets): Likewise.
9441 * linux-x86-low.c (x86_regsets): Likewise.
9442 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9443
682b2546
DE
94442015-10-26 Doug Evans <dje@google.com>
9445
9446 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9447
963843d4
DE
94482015-10-26 Doug Evans <dje@google.com>
9449
9450 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9451
d41401ac
DE
94522015-10-26 Doug Evans <dje@google.com>
9453
9454 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9455 for debug_printf.
9456 (attach_thread, find_new_threads_callback): Ditto.
9457
3db28855
AT
94582015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9459
9460 * mem-break.h (set_breakpoint_data): Remove.
9461
fb78e89c
AT
94622015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9463
9464 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9465 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9466 (initialize_low): Remove set_breakpoint_data call.
9467 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9468 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9469 (initialize_low): Remove set_breakpoint_data call.
9470 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9471 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9472 (initialize_low): Remove set_breakpoint_data call.
9473
2e6ee069
AT
94742015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9475
9476 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9477 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9478 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9479 * target.h (target_breakpoint_kind_from_pc): New macro.
9480
1652a986
AT
94812015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9482
9483 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9484 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9485 the default breakpoint kind.
9486
abeead09
AT
94872015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9488
9489 * linux-arm-low.c (arm_supports_z_point_type): Add software
9490 breakpoint support.
9491
b0b4b501
AT
94922015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9493
9494 * linux-arm-low.c: Refactor breakpoint definitions.
9495 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9496 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9497
8689682c
AT
94982015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9499
9500 * Makefile.in: Add arm.c/o.
9501 * configure.srv: Likewise.
9502 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9503 (arm_breakpoint_kind_from_pc): New function.
9504 (arm_sw_breakpoint_from_kind): Return proper kind.
9505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9506
27165294
AT
95072015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9508
9509 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9510 removal.
9511 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9512 (struct raw_breakpoint) <size>: Remove.
9513 (struct raw_breakpoint) <kind>: Add.
9514 (bp_size): New function.
9515 (bp_opcode): Likewise.
9516 (find_raw_breakpoint_at): Adjust for kind.
9517 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9518 (remove_memory_breakpoint): Adjust for kind call bp_size.
9519 (set_raw_breakpoint_at): Adjust for kind.
9520 (set_breakpoint): Likewise.
9521 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9522 (delete_raw_breakpoint): Adjust for kind.
9523 (delete_breakpoint): Likewise.
9524 (find_gdb_breakpoint): Likewise.
9525 (set_gdb_breakpoint_1): Likewise.
9526 (set_gdb_breakpoint): Likewise.
9527 (delete_gdb_breakpoint_1): Likewise.
9528 (delete_gdb_breakpoint): Likewise.
9529 (uninsert_raw_breakpoint): Likewise.
9530 (reinsert_raw_breakpoint): Likewise.
9531 (set_breakpoint_data): Remove.
9532 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9533 (check_mem_read): Adjust for kind call bp_size.
9534 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9535 (clone_one_breakpoint): Adjust for kind.
9536 * mem-break.h (set_gdb_breakpoint): Likewise.
9537 (delete_gdb_breakpoint): Likewise.
9538 * server.c (process_serial_event): Likewise.
9539
dd373349
AT
95402015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9541
9542 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9543 (struct linux_target_ops) <breakpoint>: Remove.
9544 (struct linux_target_ops) <breakpoint_len>: Remove.
9545 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9546 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9547 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9548 (arm_sw_breakpoint_from_kind): New function.
9549 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9550 (struct linux_target_ops) <breakpoint>: Remove.
9551 (struct linux_target_ops) <breakpoint_len>: Remove.
9552 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9553 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9554 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9555 (struct linux_target_ops) <breakpoint>: Remove.
9556 (struct linux_target_ops) <breakpoint_len>: Remove.
9557 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9558 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9559 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9560 (struct linux_target_ops) <breakpoint>: Remove.
9561 (struct linux_target_ops) <breakpoint_len>: Remove.
9562 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9563 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9564 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9565 and sw_breakpoint_from_kind to increment the pc.
9566 (linux_breakpoint_kind_from_pc): New function.
9567 (linux_sw_breakpoint_from_kind): New function.
9568 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9569 (initialize_low): Call breakpoint_kind_from_pc and
9570 sw_breakpoint_from_kind to replace breakpoint_data/len.
9571 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9572 New field.
9573 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9574 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9575 (struct linux_target_ops) <breakpoint>: Remove.
9576 (struct linux_target_ops) <breakpoint_len>: Remove.
9577 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9578 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9579 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9580 (struct linux_target_ops) <breakpoint>: Remove.
9581 (struct linux_target_ops) <breakpoint_len>: Remove.
9582 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9583 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9584 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9585 (struct linux_target_ops) <breakpoint>: Remove.
9586 (struct linux_target_ops) <breakpoint_len>: Remove.
9587 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9588 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9589 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9590 (struct linux_target_ops) <breakpoint>: Remove.
9591 (struct linux_target_ops) <breakpoint_len>: Remove.
9592 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9593 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9594 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9595 (struct linux_target_ops) <breakpoint>: Remove.
9596 (struct linux_target_ops) <breakpoint_len>: Remove.
9597 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9598 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9599 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9600 (struct linux_target_ops) <breakpoint>: Remove.
9601 (struct linux_target_ops) <breakpoint_len>: Remove.
9602 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9603 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9604 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9605 (struct linux_target_ops) <breakpoint>: Remove.
9606 (struct linux_target_ops) <breakpoint_len>: Remove.
9607 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9608 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9609 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9610 (struct linux_target_ops) <breakpoint>: Remove.
9611 (struct linux_target_ops) <breakpoint_len>: Remove.
9612 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9613 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9614 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9615 (struct linux_target_ops) <breakpoint>: Remove.
9616 (struct linux_target_ops) <breakpoint_len>: Remove.
9617 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9618 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9619 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9620 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9621 (struct linux_target_ops) <breakpoint>: Remove.
9622 (struct linux_target_ops) <breakpoint_len>: Remove.
9623 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9624 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9625 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9626 (struct linux_target_ops) <breakpoint>: Remove.
9627 (struct linux_target_ops) <breakpoint_len>: Remove.
9628 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9629 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9630
4cd98a19
AT
96312015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9632
9633 * linux-cris-low.c (cris_get_pc): Remove void arg.
9634
774ee6d2
AR
96352015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9636
9637 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9638 variable name.
9639
833dcd29
AR
96402015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9641
9642 * inferiors.c (thread_pid_matches_callback): New function.
9643 (find_thread_process): New function.
9644 (remove_thread): Reset current_thread.
9645 (remove_process): Assert threads have been removed first.
9646
8d689ee5
YQ
96472015-10-15 Yao Qi <yao.qi@linaro.org>
9648
9649 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9650 if it is 3.
9651 (aarch64_remove_point): Likewise.
9652 * regcache.c (regcache_register_size): New function.
9653
1c2e1515
YQ
96542015-10-12 Yao Qi <yao.qi@linaro.org>
9655
9656 * linux-aarch64-low.c: Update all callers as emit_load_store
9657 is renamed to aarch64_emit_load_store.
9658
e1c587c3
YQ
96592015-10-12 Yao Qi <yao.qi@linaro.org>
9660
9661 * linux-aarch64-low.c: Update all callers of function renaming
9662 from emit_insn to aarch64_emit_insn.
9663
b6542f81
YQ
96642015-10-12 Yao Qi <yao.qi@linaro.org>
9665
9666 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9667 arch/aarch64-insn.h.
9668 (struct aarch64_memory_operand): Likewise.
9669 (ENCODE): Likewise.
9670 (emit_insn): Move to arch/aarch64-insn.c.
9671 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9672 (emit_load_store): Move to arch/aarch64-insn.c.
9673 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9674 (can_encode_int32): Remove.
9675
246994ce
YQ
96762015-10-12 Yao Qi <yao.qi@linaro.org>
9677
9678 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9679 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9680 (aarch64_relocate_instruction): Likewise.
9681 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9682 (struct aarch64_insn_visitor): Likewise.
9683
0badd99f
YQ
96842015-10-12 Yao Qi <yao.qi@linaro.org>
9685
9686 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9687 (struct aarch64_insn_visitor): New.
9688 (struct aarch64_insn_relocation_data): New.
9689 (aarch64_ftrace_insn_reloc_b): New function.
9690 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9691 (aarch64_ftrace_insn_reloc_cb): Likewise.
9692 (aarch64_ftrace_insn_reloc_tb): Likewise.
9693 (aarch64_ftrace_insn_reloc_adr): Likewise.
9694 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9695 (aarch64_ftrace_insn_reloc_others): Likewise.
9696 (visitor): New.
9697 (aarch64_relocate_instruction): Use visitor.
9698
dfaffe9d
YQ
96992015-10-12 Yao Qi <yao.qi@linaro.org>
9700
9701 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9702 int. Add argument buf.
9703 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9704 aarch64_relocate_instruction.
9705
70b439f0
YQ
97062015-10-12 Yao Qi <yao.qi@linaro.org>
9707
9708 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9709 argument insn. Remove local variable insn. Don't call
9710 target_read_uint32.
9711 (aarch64_install_fast_tracepoint_jump_pad): Call
9712 target_read_uint32.
9713
7781c06f
YQ
97142015-09-30 Yao Qi <yao.qi@linaro.org>
9715
9716 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9717 (emit_load_store_pair): Likewise.
9718
9a3c8263
SM
97192015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9720
9721 * dll.c (match_dll): Add cast(s).
9722 (unloaded_dll): Likewise.
9723 * linux-low.c (second_thread_of_pid_p): Likewise.
9724 (delete_lwp_callback): Likewise.
9725 (count_events_callback): Likewise.
9726 (select_event_lwp_callback): Likewise.
9727 (linux_set_resume_request): Likewise.
9728 * server.c (accumulate_file_name_length): Likewise.
9729 (emit_dll_description): Likewise.
9730 (handle_qxfer_threads_worker): Likewise.
9731 (visit_actioned_threads): Likewise.
9732 * thread-db.c (any_thread_of): Likewise.
9733 * tracepoint.c (same_process_p): Likewise.
9734 (match_blocktype): Likewise.
9735 (build_traceframe_info_xml): Likewise.
9736
224c3ddb
SM
97372015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9738
9739 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9740 assignment.
9741 (gdb_unparse_agent_expr): Likewise.
9742 * hostio.c (require_data): Likewise.
9743 (handle_pread): Likewise.
9744 * linux-low.c (disable_regset): Likewise.
9745 (fetch_register): Likewise.
9746 (store_register): Likewise.
9747 (get_dynamic): Likewise.
9748 (linux_qxfer_libraries_svr4): Likewise.
9749 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9750 (set_fast_tracepoint_jump): Likewise.
9751 (uninsert_fast_tracepoint_jumps_at): Likewise.
9752 (reinsert_fast_tracepoint_jumps_at): Likewise.
9753 (validate_inserted_breakpoint): Likewise.
9754 (clone_agent_expr): Likewise.
9755 * regcache.c (init_register_cache): Likewise.
9756 * remote-utils.c (putpkt_binary_1): Likewise.
9757 (decode_M_packet): Likewise.
9758 (decode_X_packet): Likewise.
9759 (look_up_one_symbol): Likewise.
9760 (relocate_instruction): Likewise.
9761 (monitor_output): Likewise.
9762 * server.c (handle_search_memory): Likewise.
9763 (handle_qxfer_exec_file): Likewise.
9764 (handle_qxfer_libraries): Likewise.
9765 (handle_qxfer): Likewise.
9766 (handle_query): Likewise.
9767 (handle_v_cont): Likewise.
9768 (handle_v_run): Likewise.
9769 (captured_main): Likewise.
9770 * target.c (write_inferior_memory): Likewise.
9771 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9772 * tracepoint.c (init_trace_buffer): Likewise.
9773 (add_tracepoint_action): Likewise.
9774 (add_traceframe): Likewise.
9775 (add_traceframe_block): Likewise.
9776 (cmd_qtdpsrc): Likewise.
9777 (cmd_qtdv): Likewise.
9778 (cmd_qtstatus): Likewise.
9779 (response_source): Likewise.
9780 (response_tsv): Likewise.
9781 (cmd_qtnotes): Likewise.
9782 (gdb_collect): Likewise.
9783 (initialize_tracepoint): Likewise.
9784
afbe19f8
PL
97852015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9786
9787 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9788 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9789 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9790 <NOP>: New.
9791 (enum aarch64_condition_codes): New enum.
9792 (w0): New static global.
9793 (fp): Likewise.
9794 (lr): Likewise.
9795 (struct aarch64_memory_operand) <type>: New
9796 MEMORY_OPERAND_POSTINDEX type.
9797 (postindex_memory_operand): New helper function.
9798 (emit_ret): New function.
9799 (emit_load_store_pair): New function, factored out of emit_stp
9800 with support for MEMORY_OPERAND_POSTINDEX.
9801 (emit_stp): Rewrite using emit_load_store_pair.
9802 (emit_ldp): New function.
9803 (emit_load_store): Likewise.
9804 (emit_ldr): Mention post-index instruction in comment.
9805 (emit_ldrh): New function.
9806 (emit_ldrb): New function.
9807 (emit_ldrsw): Mention post-index instruction in comment.
9808 (emit_str): Likewise.
9809 (emit_subs): New function.
9810 (emit_cmp): Likewise.
9811 (emit_and): Likewise.
9812 (emit_orr): Likewise.
9813 (emit_orn): Likewise.
9814 (emit_eor): Likewise.
9815 (emit_mvn): Likewise.
9816 (emit_lslv): Likewise.
9817 (emit_lsrv): Likewise.
9818 (emit_asrv): Likewise.
9819 (emit_mul): Likewise.
9820 (emit_sbfm): Likewise.
9821 (emit_sbfx): Likewise.
9822 (emit_ubfm): Likewise.
9823 (emit_ubfx): Likewise.
9824 (emit_csinc): Likewise.
9825 (emit_cset): Likewise.
9826 (emit_nop): Likewise.
9827 (emit_ops_insns): New helper function.
9828 (emit_pop): Likewise.
9829 (emit_push): Likewise.
9830 (aarch64_emit_prologue): New function.
9831 (aarch64_emit_epilogue): Likewise.
9832 (aarch64_emit_add): Likewise.
9833 (aarch64_emit_sub): Likewise.
9834 (aarch64_emit_mul): Likewise.
9835 (aarch64_emit_lsh): Likewise.
9836 (aarch64_emit_rsh_signed): Likewise.
9837 (aarch64_emit_rsh_unsigned): Likewise.
9838 (aarch64_emit_ext): Likewise.
9839 (aarch64_emit_log_not): Likewise.
9840 (aarch64_emit_bit_and): Likewise.
9841 (aarch64_emit_bit_or): Likewise.
9842 (aarch64_emit_bit_xor): Likewise.
9843 (aarch64_emit_bit_not): Likewise.
9844 (aarch64_emit_equal): Likewise.
9845 (aarch64_emit_less_signed): Likewise.
9846 (aarch64_emit_less_unsigned): Likewise.
9847 (aarch64_emit_ref): Likewise.
9848 (aarch64_emit_if_goto): Likewise.
9849 (aarch64_emit_goto): Likewise.
9850 (aarch64_write_goto_address): Likewise.
9851 (aarch64_emit_const): Likewise.
9852 (aarch64_emit_call): Likewise.
9853 (aarch64_emit_reg): Likewise.
9854 (aarch64_emit_pop): Likewise.
9855 (aarch64_emit_stack_flush): Likewise.
9856 (aarch64_emit_zero_ext): Likewise.
9857 (aarch64_emit_swap): Likewise.
9858 (aarch64_emit_stack_adjust): Likewise.
9859 (aarch64_emit_int_call_1): Likewise.
9860 (aarch64_emit_void_call_2): Likewise.
9861 (aarch64_emit_eq_goto): Likewise.
9862 (aarch64_emit_ne_goto): Likewise.
9863 (aarch64_emit_lt_goto): Likewise.
9864 (aarch64_emit_le_goto): Likewise.
9865 (aarch64_emit_gt_goto): Likewise.
9866 (aarch64_emit_ge_got): Likewise.
9867 (aarch64_emit_ops_impl): New static global variable.
9868 (aarch64_emit_ops): New target function, return
9869 &aarch64_emit_ops_impl.
9870 (struct linux_target_ops): Install it.
9871
bb903df0
PL
98722015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9873
9874 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9875 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9876 aarch64-ipa.o.
9877 * linux-aarch64-ipa.c: New file.
9878 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9879 and endian.h.
9880 (aarch64_get_thread_area): New target method.
9881 (extract_signed_bitfield): New helper function.
9882 (aarch64_decode_ldr_literal): New function.
9883 (enum aarch64_opcodes): New enum.
9884 (struct aarch64_register): New struct.
9885 (struct aarch64_operand): New struct.
9886 (x0): New static global.
9887 (x1): Likewise.
9888 (x2): Likewise.
9889 (x3): Likewise.
9890 (x4): Likewise.
9891 (w2): Likewise.
9892 (ip0): Likewise.
9893 (sp): Likewise.
9894 (xzr): Likewise.
9895 (aarch64_register): New helper function.
9896 (register_operand): Likewise.
9897 (immediate_operand): Likewise.
9898 (struct aarch64_memory_operand): New struct.
9899 (offset_memory_operand): New helper function.
9900 (preindex_memory_operand): Likewise.
9901 (enum aarch64_system_control_registers): New enum.
9902 (ENCODE): New macro.
9903 (emit_insn): New helper function.
9904 (emit_b): New function.
9905 (emit_bcond): Likewise.
9906 (emit_cb): Likewise.
9907 (emit_tb): Likewise.
9908 (emit_blr): Likewise.
9909 (emit_stp): Likewise.
9910 (emit_ldp_q_offset): Likewise.
9911 (emit_stp_q_offset): Likewise.
9912 (emit_load_store): Likewise.
9913 (emit_ldr): Likewise.
9914 (emit_ldrsw): Likewise.
9915 (emit_str): Likewise.
9916 (emit_ldaxr): Likewise.
9917 (emit_stxr): Likewise.
9918 (emit_stlr): Likewise.
9919 (emit_data_processing_reg): Likewise.
9920 (emit_data_processing): Likewise.
9921 (emit_add): Likewise.
9922 (emit_sub): Likewise.
9923 (emit_mov): Likewise.
9924 (emit_movk): Likewise.
9925 (emit_mov_addr): Likewise.
9926 (emit_mrs): Likewise.
9927 (emit_msr): Likewise.
9928 (emit_sevl): Likewise.
9929 (emit_wfe): Likewise.
9930 (append_insns): Likewise.
9931 (can_encode_int32_in): New helper function.
9932 (aarch64_relocate_instruction): New function.
9933 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9934 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9935 (struct linux_target_ops): Install aarch64_get_thread_area,
9936 aarch64_install_fast_tracepoint_jump_pad and
9937 aarch64_get_min_fast_tracepoint_insn_len.
9938
787749ea
PL
99392015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9940
9941 * Makefile.in (aarch64-insn.o): New rule.
9942 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9943
9812b2e6
YQ
99442015-09-21 Yao Qi <yao.qi@linaro.org>
9945
9946 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9947
18fe412b
YQ
99482015-09-21 Yao Qi <yao.qi@linaro.org>
9949
9950 * tracepoint.c (max_jump_pad_size): Remove.
9951
a0cc84cd
YQ
99522015-09-18 Yao Qi <yao.qi@linaro.org>
9953
9954 * linux-aarch64-low.c: Don't include sys/uio.h.
9955 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9956
d78908cf
WW
99572015-09-16 Wei-cheng Wang <cole945@gmail.com>
9958
9959 * tracepoint.c (eval_result_type): Change prototype.
9960 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9961
d57e0d50
PA
99622015-09-15 Pedro Alves <palves@redhat.com>
9963
9964 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9965 Check whether to report exec events instead of checking whether
9966 multiprocess is enabled.
9967
5a676acc
PA
99682015-09-15 Pedro Alves <palves@redhat.com>
9969
9970 PR remote/18965
9971 * remote-utils.c (prepare_resume_reply): Merge
9972 TARGET_WAITKIND_VFORK_DONE switch case with the
9973 TARGET_WAITKIND_FORKED case.
9974
7c5d0fad
YQ
99752015-09-15 Yao Qi <yao.qi@linaro.org>
9976
9977 * server.c (handle_query): Check string comparison using
9978 "else if" instead of "if".
9979
750ce8d1
YQ
99802015-09-15 Yao Qi <yao.qi@linaro.org>
9981
9982 * server.c (vCont_supported): New global variable.
9983 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9984 matches. Append ";vContSupported+" to own_buf.
9985 (handle_v_requests): Append ";s;S" to own_buf if target supports
9986 hardware single step or vCont_supported is false.
9987 (capture_main): Set vCont_supported to zero.
9988
70b90b91
YQ
99892015-09-15 Yao Qi <yao.qi@linaro.org>
9990
9991 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9992 it to ...
9993 (linux_supports_hardware_single_step): ... New function.
9994 (linux_target_ops): Update.
9995 * lynx-low.c (lynx_target_ops): Set field
9996 supports_hardware_single_step to target_can_do_hardware_single_step.
9997 * nto-low.c (nto_target_ops): Likewise.
9998 * spu-low.c (spu_target_ops): Likewise.
9999 * win32-low.c (win32_target_ops): Likewise.
10000 * target.c (target_can_do_hardware_single_step): New function.
10001 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10002 Remove. <supports_hardware_single_step>: New field.
10003 (target_supports_conditional_breakpoints): Remove.
10004 (target_supports_hardware_single_step): New macro.
10005 (target_can_do_hardware_single_step): Declare.
10006 * server.c (handle_query): Use target_supports_hardware_single_step
10007 instead of target_supports_conditional_breakpoints.
10008
ade90bde
YQ
100092015-09-15 Yao Qi <yao.qi@linaro.org>
10010
10011 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10012 function.
10013 (struct linux_target_ops the_low_target): Install
10014 aarch64_linux_siginfo_fixup.
10015
94585166
DB
100162015-09-11 Don Breazeal <donb@codesourcery.com>
10017 Luis Machado <lgustavo@codesourcery.com>
10018
10019 * linux-low.c (linux_mourn): Static declaration.
10020 (linux_arch_setup): Move in front of
10021 handle_extended_wait.
10022 (linux_arch_setup_thread): New function.
10023 (handle_extended_wait): Handle exec events. Call
10024 linux_arch_setup_thread. Make event_lwp argument a
10025 pointer-to-a-pointer.
10026 (check_zombie_leaders): Do not check stopped threads.
10027 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10028 (linux_low_filter_event): Add lwp and thread for exec'ing
10029 non-leader thread if leader thread has been deleted.
10030 Refactor code into linux_arch_setup_thread and call it.
10031 Pass child lwp pointer by reference to handle_extended_wait.
10032 (linux_wait_for_event_filtered): Update comment.
10033 (linux_wait_1): Prevent clobbering exec event status.
10034 (linux_supports_exec_events): New function.
10035 (linux_target_ops) <supports_exec_events>: Initialize new member.
10036 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10037 new member.
10038 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10039 * server.c (report_exec_events): New global variable.
10040 (handle_query): Handle qSupported query for exec-events feature.
10041 (captured_main): Initialize report_exec_events.
10042 * server.h (report_exec_events): Declare new global variable.
10043 * target.h (struct target_ops) <supports_exec_events>: New
10044 member.
10045 (target_supports_exec_events): New macro.
10046 * win32-low.c (win32_target_ops) <supports_exec_events>:
10047 Initialize new member.
10048
0568462b
MM
100492015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10050
10051 * linux-low.c (linux_low_enable_btrace): Remove.
10052 (linux_target_ops): Replace linux_low_enable_btrace with
10053 linux_enable_btrace.
10054
39edd165
YQ
100552015-09-03 Yao Qi <yao.qi@linaro.org>
10056
10057 * linux-aarch64-low.c (aarch64_insert_point): Call
10058 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10059 returns true.
10060
1db33b5a
UW
100612015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10062
10063 * linux-low.c (check_stopped_by_breakpoint): Use
10064 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10065
ab290430
PA
100662015-08-27 Pedro Alves <palves@redhat.com>
10067
10068 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10069
8d749320
SM
100702015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10071
6711b7f8
SM
10072 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10073 the XNEW-family equivalent.
8d749320
SM
10074 (compile_bytecodes): Likewise.
10075 * dll.c (loaded_dll): Likewise.
10076 * event-loop.c (append_callback_event): Likewise.
10077 (create_file_handler): Likewise.
10078 (create_file_event): Likewise.
10079 * hostio.c (handle_open): Likewise.
10080 * inferiors.c (add_thread): Likewise.
10081 (add_process): Likewise.
10082 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10083 * linux-arm-low.c (arm_new_process): Likewise.
10084 (arm_new_thread): Likewise.
10085 * linux-low.c (add_to_pid_list): Likewise.
10086 (linux_add_process): Likewise.
10087 (handle_extended_wait): Likewise.
10088 (add_lwp): Likewise.
10089 (enqueue_one_deferred_signal): Likewise.
10090 (enqueue_pending_signal): Likewise.
10091 (linux_resume_one_lwp_throw): Likewise.
10092 (linux_resume_one_thread): Likewise.
10093 (linux_read_memory): Likewise.
10094 (linux_write_memory): Likewise.
10095 * linux-mips-low.c (mips_linux_new_process): Likewise.
10096 (mips_linux_new_thread): Likewise.
10097 (mips_add_watchpoint): Likewise.
10098 * linux-x86-low.c (initialize_low_arch): Likewise.
10099 * lynx-low.c (lynx_add_process): Likewise.
10100 * mem-break.c (set_raw_breakpoint_at): Likewise.
10101 (set_breakpoint): Likewise.
10102 (add_condition_to_breakpoint): Likewise.
10103 (add_commands_to_breakpoint): Likewise.
10104 (clone_agent_expr): Likewise.
10105 (clone_one_breakpoint): Likewise.
10106 * regcache.c (new_register_cache): Likewise.
10107 * remote-utils.c (look_up_one_symbol): Likewise.
10108 * server.c (queue_stop_reply): Likewise.
10109 (start_inferior): Likewise.
10110 (queue_stop_reply_callback): Likewise.
10111 (handle_target_event): Likewise.
10112 * spu-low.c (fetch_ppc_memory): Likewise.
10113 (store_ppc_memory): Likewise.
10114 * target.c (set_target_ops): Likewise.
10115 * thread-db.c (thread_db_load_search): Likewise.
10116 (try_thread_db_load_1): Likewise.
10117 * tracepoint.c (add_tracepoint): Likewise.
10118 (add_tracepoint_action): Likewise.
10119 (create_trace_state_variable): Likewise.
10120 (cmd_qtdpsrc): Likewise.
10121 (cmd_qtro): Likewise.
10122 (add_while_stepping_state): Likewise.
10123 * win32-low.c (child_add_thread): Likewise.
10124 (get_image_name): Likewise.
10125
ed8b7b42
YQ
101262015-08-25 Yao Qi <yao.qi@linaro.org>
10127
10128 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10129
db3cb7cb
YQ
101302015-08-25 Yao Qi <yao.qi@linaro.org>
10131
10132 * Makefile.in (aarch64-linux.o): New rule.
10133 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10134 srv_tgtobj.
10135 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10136 (aarch64_init_debug_reg_state): Make it extern.
10137 (aarch64_linux_prepare_to_resume): Remove.
10138
f6011a1c
YQ
101392015-08-25 Yao Qi <yao.qi@linaro.org>
10140
10141 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10142 lwp_arch_private_info and ptid_of_lwp.
10143
88e2cf7e
YQ
101442015-08-25 Yao Qi <yao.qi@linaro.org>
10145
10146 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10147 Find proc_info by find_process_pid. All callers updated.
10148
5e35436e
YQ
101492015-08-25 Yao Qi <yao.qi@linaro.org>
10150
10151 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10152 Remove.
10153 (debug_reg_change_callback): Remove.
10154 (aarch64_notify_debug_reg_change): Remove.
10155
4a8a7965
YQ
101562015-08-25 Yao Qi <yao.qi@linaro.org>
10157
10158 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10159 Call current_lwp_ptid.
10160
32a271ee
YQ
101612015-08-25 Yao Qi <yao.qi@linaro.org>
10162
10163 * linux-aarch64-low.c (debug_reg_change_callback): Use
10164 debug_printf.
10165
0d51c8d7
YQ
101662015-08-25 Yao Qi <yao.qi@linaro.org>
10167
10168 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10169
31a43dd5
YQ
101702015-08-25 Yao Qi <yao.qi@linaro.org>
10171
10172 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10173
8ee52567
YQ
101742015-08-25 Yao Qi <yao.qi@linaro.org>
10175
10176 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10177 the code.
10178
ff3f0f45
YQ
101792015-08-25 Yao Qi <yao.qi@linaro.org>
10180
10181 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10182 Remove.
10183 (debug_reg_change_callback): Remove argument entry and add argument
10184 lwp. Remove local variable thread. Don't print thread id in the
10185 debugging output. Don't check whether pid of thread equals to pid.
10186 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10187 iterate_over_lwps instead find_inferior.
10188
3d40fbb5
PA
101892015-08-24 Pedro Alves <palves@redhat.com>
10190
10191 * inferiors.c (get_first_process): New function.
10192 * inferiors.h (get_first_process): New declaration.
10193 * remote-utils.c (read_ptid): Default to the first process in the
10194 list, instead of to the current thread's process.
10195
438e1e42
PA
101962015-08-24 Pedro Alves <palves@redhat.com>
10197
10198 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10199 * event-loop.c: Likewise.
10200 * remote-utils.c: Likewise.
10201 * tracepoint.c: Likewise.
10202
a8c6d4fc
PA
102032015-08-24 Pedro Alves <palves@redhat.com>
10204
10205 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10206 ptid_get_lwp.
10207
99b0bb12
PA
102082015-08-21 Pedro Alves <palves@redhat.com>
10209
10210 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10211 instead of literal 1.
10212
f8904751
PA
102132015-08-21 Pedro Alves <palves@redhat.com>
10214
10215 * tdesc.c (default_description): Explicitly zero-initialize.
10216
465a859e
PA
102172015-08-21 Pedro Alves <palves@redhat.com>
10218
10219 PR gdb/18749
10220 * inferiors.c (remove_thread): Discard any pending stop reply for
10221 this thread.
10222 * server.c (remove_all_on_match_pid): Rename to ...
10223 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10224 instead of a pid.
10225 (discard_queued_stop_replies): Change parameter to a ptid. Now
10226 extern.
10227 (handle_v_kill, kill_inferior_callback, captured_main)
10228 (process_serial_event): Adjust.
10229 * server.h (discard_queued_stop_replies): Declare.
10230
f0db101d
PA
102312015-08-21 Pedro Alves <palves@redhat.com>
10232
10233 * linux-low.c (wait_for_sigstop): Always switch to no thread
10234 selected if the previously current thread dies.
10235 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10236 process instead of the current thread's.
10237 * remote-utils.c (input_interrupt): Don't check if there's no
10238 current thread.
10239 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10240 current thread to the general thread fails, error out.
10241 (handle_qxfer_auxv, handle_qxfer_libraries)
10242 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10243 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10244 (handle_query): Check if there's a thread selected instead of
10245 checking whether there's any thread in the thread list.
10246 (handle_qxfer_threads, handle_qxfer_btrace)
10247 (handle_qxfer_btrace_conf): Don't error out early if there's no
10248 thread in the thread list.
10249 (handle_v_cont, myresume): Don't set the current thread to the
10250 continue thread.
10251 (process_serial_event) <Hg handling>: Also set thread_id if the
10252 previous general thread is still alive.
10253 (process_serial_event) <g/G handling>: If setting the current
10254 thread to the general thread fails, error out.
10255 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10256 thread's lwp instead of the current thread's.
10257 * target.c (set_desired_thread): If the desired thread was not
10258 found, leave the current thread pointing to NULL. Return an int
10259 (boolean) indicating success.
10260 * target.h (set_desired_thread): Change return type to int.
10261
40045d91
MF
102622015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10263
10264 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10265 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10266 #includes.
10267 (ps_get_thread_area): New function.
10268
45face3b
GB
102692015-08-19 Gary Benson <gbenson@redhat.com>
10270
10271 * hostio.c (handle_pread): Do not attempt to read more data
10272 than hostio_reply_with_data can fit in a packet.
10273
16d5f642
JB
102742015-08-18 Joel Brobecker <brobecker@adacore.com>
10275
10276 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10277
a738da3a
MF
102782015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10279
10280 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10281
33ebda9d
PA
102822015-08-06 Pedro Alves <palves@redhat.com>
10283
10284 * tracepoint.c (expr_eval_result): Now an int.
10285
a44892be
PA
102862015-08-06 Pedro Alves <palves@redhat.com>
10287
10288 * gdbthread.h (struct regcache): Forward declare.
10289 (struct thread_info) <regcache_data>: Now a struct regcache
10290 pointer.
10291 * inferiors.c (inferior_regcache_data)
10292 (set_inferior_regcache_data): Now work with struct regcache
10293 pointers.
10294 * inferiors.h (struct regcache): Forward declare.
10295 (inferior_regcache_data, set_inferior_regcache_data): Now work
10296 with struct regcache pointers.
10297 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10298 (free_register_cache_thread): Remove struct regcache pointer
10299 casts.
10300
608a1e46
PA
103012015-08-06 Pedro Alves <palves@redhat.com>
10302
10303 * server.c (captured_main): On error, print the exception message
10304 to stderr, and if run_once is set, throw a quit.
10305
f0ce0d3a
PA
103062015-08-06 Pedro Alves <palves@redhat.com>
10307
10308 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10309 the current thread.
10310
bf47e248
PA
103112015-08-06 Pedro Alves <palves@redhat.com>
10312
10313 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10314 reading beyond the passed in buffer length.
10315
b6b9ffcc
PL
103162015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10317
10318 * tracepoint.c (symbol_list) <required>: Remove.
10319
863d01bd
PA
103202015-08-06 Pedro Alves <palves@redhat.com>
10321
10322 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10323 count if stopping and suspending threads.
10324 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10325 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10326 (linux_detach): Complete an ongoing step-over.
10327 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10328 throughout.
10329 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10330 (linux_wait_1): If passing a signal to the inferior after
10331 finishing a step-over, unsuspend and re-resume all lwps. If we
10332 see a single-step event but the thread should be continuing, don't
10333 pass the trap to gdb.
10334 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10335 internal_error instead of gdb_assert.
10336 (enqueue_pending_signal): New function.
10337 (check_ptrace_stopped_lwp_gone): Add debug output.
10338 (start_step_over): Use internal_error instead of gdb_assert.
10339 (complete_ongoing_step_over): New function.
10340 (linux_resume_one_thread): Don't resume a suspended thread.
10341 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10342 it stepping.
10343
00db26fa
PA
103442015-08-06 Pedro Alves <palves@redhat.com>
10345
10346 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10347 (linux_thread_alive): Use lwp_is_marked_dead.
10348 (extended_event_reported): Delete.
10349 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10350 instead of extended_event_reported.
10351 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10352 as well.
10353 (lwp_is_marked_dead): New function.
10354 (lwp_running): Use lwp_is_marked_dead.
10355 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10356 comment.
10357
ad071a30
PA
103582015-08-06 Pedro Alves <palves@redhat.com>
10359
10360 * linux-low.c (linux_wait_1): Move fork event output out of the
10361 !report_to_gdb check. Pass event_child->waitstatus to
10362 target_waitstatus_to_string instead of ourstatus.
10363
524b57e6
YQ
103642015-08-04 Yao Qi <yao.qi@linaro.org>
10365
10366 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10367 if current_thread is 32 bit.
10368
6085d6f6
YQ
103692015-08-04 Yao Qi <yao.qi@linaro.org>
10370
10371 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10372 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10373 * server.c (extended_protocol): Remove "static".
10374 * server.h (extended_protocol): Declare it.
10375
8a7e4587
YQ
103762015-08-04 Yao Qi <yao.qi@linaro.org>
10377
10378 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10379 both aarch64 and aarch32.
10380 (aarch64_set_pc): Likewise.
10381
3b53ae99
YQ
103822015-08-04 Yao Qi <yao.qi@linaro.org>
10383
10384 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10385 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10386 arm-with-neon.xml to srv_xmlfiles.
10387 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10388 (is_64bit_tdesc): New function.
10389 (aarch64_linux_read_description): New function.
10390 (aarch64_arch_setup): Call aarch64_linux_read_description.
10391 (regs_info): Rename to regs_info_aarch64.
10392 (aarch64_regs_info): Return right regs_info.
10393 (initialize_low_arch): Call initialize_low_arch_aarch32.
10394
bd9e6534
YQ
103952015-08-04 Yao Qi <yao.qi@linaro.org>
10396
10397 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10398 * linux-aarch32-low.c: New file.
10399 * linux-aarch32-low.h: New file.
10400 * linux-arm-low.c (arm_fill_gregset): Move it to
10401 linux-aarch32-low.c.
10402 (arm_store_gregset): Likewise.
10403 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10404 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10405 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10406 (regs_info): Rename to regs_info_arm.
10407 (arm_regs_info): Return regs_info_aarch32 if
10408 have_ptrace_getregset is 1 and target description is
10409 arm_with_neon or arm_with_vfpv3.
10410 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10411 Call initialize_low_arch_aarch32 instead.
10412
ded48a5e
YQ
104132015-08-04 Yao Qi <yao.qi@linaro.org>
10414
10415 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10416 * linux-low.c: ... here.
10417 * linux-low.h (have_ptrace_getregset): Declare it.
10418
96e9210f
PA
104192015-08-04 Pedro Alves <palves@redhat.com>
10420
10421 * thread-db.c (struct thread_db): Use new typedefs.
10422 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10423 CHK calls.
10424 (disable_thread_event_reporting): Cast result of dlsym to
10425 destination function pointer type.
10426 (thread_db_mourn): Use td_ta_delete_ftype.
10427
af60a1ef
SL
104282015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10429
10430 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10431 arch variant.
10432 (CDX_BREAKPOINT): Define for R2.
10433 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10434 (the_low_target): Add comments.
10435
e8b41681
YQ
104362015-07-30 Yao Qi <yao.qi@linaro.org>
10437
10438 * linux-arm-low.c (arm_hwcap): Remove it.
10439 (arm_read_description): New local variable arm_hwcap. Don't
10440 set arm_hwcap to zero.
10441
89abb039
YQ
104422015-07-30 Yao Qi <yao.qi@linaro.org>
10443
10444 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10445 Use regcache->tdesc instead.
10446 (arm_store_wmmxregset): Likewise.
10447 (arm_fill_vfpregset): Likewise.
10448 (arm_store_vfpregset): Likewise.
10449
deca266c
YQ
104502015-07-30 Yao Qi <yao.qi@linaro.org>
10451
10452 * linux-arm-low.c: Include arch/arm.h.
10453 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10454 (arm_store_gregset): Likewise.
10455
aa58a496
SM
104562015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10457
10458 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10459 ptrace's 4th parameter.
10460
50904b25
YQ
104612015-07-27 Yao Qi <yao.qi@linaro.org>
10462
10463 * configure.srv (case aarch64*-*-linux*): Don't set
10464 srv_linux_usrregs.
10465
5826e159
PA
104662015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10467
10468 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10469 sys/ptrace.h.
10470 * linux-arm-low.c: Likewise.
10471 * linux-cris-low.c: Likewise.
10472 * linux-crisv32-low.c: Likewise.
10473 * linux-low.c: Likewise.
10474 * linux-m68k-low.c: Likewise.
10475 * linux-mips-low.c: Likewise.
10476 * linux-nios2-low.c: Likewise.
10477 * linux-s390-low.c: Likewise.
10478 * linux-sparc-low.c: Likewise.
10479 * linux-tic6x-low.c: Likewise.
10480 * linux-tile-low.c: Likewise.
10481 * linux-x86-low.c: Likewise.
10482
54019719
PA
104832015-07-24 Pedro Alves <palves@redhat.com>
10484
10485 * config.in: Regenerate.
10486 * configure: Regenerate.
10487
eb7aa561
PA
104882015-07-24 Pedro Alves <palves@redhat.com>
10489
10490 * acinclude.m4: Include ../ptrace.m4.
10491 * configure.ac: Call GDB_AC_PTRACE.
10492 * config.in, configure: Regenerate.
10493
55d7b841
YQ
104942015-07-24 Yao Qi <yao.qi@linaro.org>
10495
10496 * linux-low.c (linux_create_inferior): Remove setting to
10497 proc->priv->new_inferior.
10498 (linux_attach): Likewise.
10499 (linux_low_filter_event): Likewise.
10500 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10501
c06cbd92
YQ
105022015-07-24 Yao Qi <yao.qi@linaro.org>
10503
10504 * linux-low.c (linux_arch_setup): New function.
10505 (linux_low_filter_event): If proc->tdesc is NULL and
10506 proc->attached is true, call the_low_target.arch_setup.
10507 Otherwise, keep status pending, and return.
10508 (linux_resume_one_lwp_throw): Don't call get_pc if
10509 thread->while_stepping isn't NULL. Don't call
10510 get_thread_regcache if proc->tdesc is NULL.
10511 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10512 (linux_target_ops): Install arch_setup.
10513 * server.c (start_inferior): Call the_target->arch_setup.
10514 * target.h (struct target_ops) <arch_setup>: New field.
10515 (target_arch_setup): New marco.
10516 * lynx-low.c (lynx_target_ops): Update.
10517 * nto-low.c (nto_target_ops): Update.
10518 * spu-low.c (spu_target_ops): Update.
10519 * win32-low.c (win32_target_ops): Update.
10520
5ae3ebba
YQ
105212015-07-24 Yao Qi <yao.qi@linaro.org>
10522
10523 * linux-low.c (linux_add_process): Don't set
10524 proc->priv->new_inferior.
10525 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10526 (linux_attach): Likewise.
10527
eb97750b
YQ
105282015-07-24 Yao Qi <yao.qi@linaro.org>
10529
10530 * server.c (start_inferior): Code refactor.
10531
51aee833
YQ
105322015-07-24 Yao Qi <yao.qi@linaro.org>
10533
10534 * server.c (process_serial_event): Set general_thread.
10535
af1b22f3
YQ
105362015-07-21 Yao Qi <yao.qi@linaro.org>
10537
10538 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10539 aarch64_linux_get_debug_reg_capacity.
10540
554717a3
YQ
105412015-07-17 Yao Qi <yao.qi@linaro.org>
10542
10543 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10544 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10545 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10546 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10547 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10548 (AARCH64_HWP_ALIGNMENT): Likewise.
10549 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10550 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10551 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10552 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10553 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10554 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10555 (struct aarch64_debug_reg_state): Likewise.
10556 (struct arch_lwp_info): Likewise.
10557 (aarch64_align_watchpoint): Likewise.
10558 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10559 (aarch64_watchpoint_length): Likewise.
10560 (aarch64_point_encode_ctrl_reg): Likewise
10561 (aarch64_point_is_aligned): Likewise.
10562 (aarch64_align_watchpoint): Likewise.
10563 (aarch64_linux_set_debug_regs):
10564 (aarch64_dr_state_insert_one_point): Likewise.
10565 (aarch64_dr_state_remove_one_point): Likewise.
10566 (aarch64_handle_breakpoint): Likewise.
10567 (aarch64_handle_aligned_watchpoint): Likewise.
10568 (aarch64_handle_unaligned_watchpoint): Likewise.
10569 (aarch64_handle_watchpoint): Likewise.
10570
c67ca4de
YQ
105712015-07-17 Yao Qi <yao.qi@linaro.org>
10572
10573 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10574 and don't aarch64_get_debug_reg_state. All callers update.
10575 (aarch64_handle_aligned_watchpoint): Likewise.
10576 (aarch64_handle_unaligned_watchpoint): Likewise.
10577 (aarch64_handle_watchpoint): Likewise.
10578 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10579 (aarch64_remove_point): Likewise.
10580
25abf979
YQ
105812015-07-17 Yao Qi <yao.qi@linaro.org>
10582
10583 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10584 debug_printf.
10585 (aarch64_handle_unaligned_watchpoint): Likewise.
10586
db1ff28b
JK
105872015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10588
10589 Revert the previous 3 commits:
10590 Move gdb_regex* to common/
10591 Move linux_find_memory_regions_full & co.
10592 gdbserver build-id attribute generator
10593
700ca40f
JK
105942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10595 Jan Kratochvil <jan.kratochvil@redhat.com>
10596
10597 gdbserver build-id attribute generator.
10598 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10599 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10600 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10601 (find_phdr): New.
10602 (get_dynamic): Use find_pdhr to traverse program headers.
10603 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10604 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10605 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10606 (get_hex_build_id): New.
10607 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10608 to reply XML document.
10609
9904185c
JK
106102015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10611 Jan Kratochvil <jan.kratochvil@redhat.com>
10612
10613 * target.c: Include target/target-utils.h and fcntl.h.
10614 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10615 (target_fileio_read_stralloc): New functions.
10616
6e5b4429
JK
106172015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * Makefile.in (OBS): Add gdb_regex.o.
10620 (gdb_regex.o): New.
10621 * config.in: Rebuilt.
10622 * configure: Rebuilt.
10623
ddc98fbf
JK
106242015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10625 Jan Kratochvil <jan.kratochvil@redhat.com>
10626
10627 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10628 * Makefile.in (OBS): Add target-utils.o.
10629 (linux-maps.o, target-utils.o): New.
10630 * configure.srv (srv_linux_obj): Add linux-maps.o.
10631
e57bb7a0
PL
106322015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10633
10634 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10635 function, return 1.
10636 (the_low_target): Install it.
10637
586b02a9
PA
106382015-07-14 Pedro Alves <palves@redhat.com>
10639
10640 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10641 Instead, ignore ECHILD, and throw an error for other errnos.
10642
58c1b36c
PA
106432015-07-10 Pedro Alves <palves@redhat.com>
10644
10645 * event-loop.c (struct callback_event) <data>: Change type to
10646 gdb_client_data instance instead of gdb_client_data pointer.
10647 (append_callback_event): Adjust.
10648
421530db
PL
106492015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10650
10651 * linux-aarch64-low.c: Add comments for each linux_target_ops
10652 method. Remove comments already covered in target_ops and
10653 linux_target_ops definitions.
10654 (the_low_target): Add comments for each unimplemented method.
10655
c2d65f38
YQ
106562015-07-09 Yao Qi <yao.qi@linaro.org>
10657
10658 * linux-aarch64-low.c (aarch64_regmap): Remove.
10659 (aarch64_usrregs_info): Remove.
10660 (regs_info): Set field usrregs to NULL.
10661
b20a6524
MM
106622015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10663
10664 * linux-low.c: Include "rsp-low.h"
10665 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10666 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10667 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10668 (handle_btrace_enable_pt): New.
10669 (handle_btrace_general_set): Support "pt".
10670 (handle_btrace_conf_general_set): Support "pt:size".
10671
96c97461
PL
106722015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10673
10674 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10675 Z_PACKET_SW_BP.
10676
37d66942
PL
106772015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10678
10679 * linux-aarch64-low.c: Remove comment about endianness.
10680 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10681 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10682 memcmp.
10683
dc06243f
GB
106842015-06-24 Gary Benson <gbenson@redhat.com>
10685
10686 * linux-i386-ipa.c (stdint.h): Do not include.
10687 * lynx-i386-low.c (stdint.h): Likewise.
10688 * lynx-ppc-low.c (stdint.h): Likewise.
10689 * mem-break.c (stdint.h): Likewise.
10690 * thread-db.c (stdint.h): Likewise.
10691 * tracepoint.c (stdint.h): Likewise.
10692 * win32-low.c (stdint.h): Likewise.
10693
124e13d9
SM
106942015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10695
10696 * server.c (write_qxfer_response): Update call to
10697 remote_escape_output.
10698
909c2cda
JK
106992015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10700 Jan Kratochvil <jan.kratochvil@redhat.com>
10701
10702 Merge multiple hex conversions.
10703 * gdbreplay.c (tohex): Rename to 'fromhex'.
10704 (logchar): Use fromhex.
10705
24c05f46
JK
107062015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10707
10708 * server.c (handle_qxfer_libraries): Set `version' attribute for
10709 <library-list>.
10710
14d2069a
GB
107112015-06-10 Gary Benson <gbenson@redhat.com>
10712
10713 * target.h (struct target_ops) <multifs_open>: New field.
10714 <multifs_unlink>: Likewise.
10715 <multifs_readlink>: Likewise.
10716 * linux-low.c (nat/linux-namespaces.h): New include.
10717 (linux_target_ops): Initialize the_target->multifs_open,
10718 the_target->multifs_unlink and the_target->multifs_readlink.
10719 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10720 * hostio.c (hostio_fs_pid): New static variable.
10721 (hostio_handle_new_gdb_connection): New function.
10722 (handle_setfs): Likewise.
10723 (handle_open): Use the_target->multifs_open as appropriate.
10724 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10725 (handle_readlink): Use the_target->multifs_readlink as
10726 appropriate.
10727 (handle_vFile): Handle vFile:setfs packets.
10728 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10729 after target_handle_new_gdb_connection.
10730
4b8b5e72
GB
107312015-06-10 Gary Benson <gbenson@redhat.com>
10732
10733 * configure.ac (AC_CHECK_FUNCS): Add setns.
10734 * config.in: Regenerate.
10735 * configure: Likewise.
10736 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10737 (linux-namespaces.o): New rule.
10738 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10739
3ac2e371
GB
107402015-06-09 Gary Benson <gbenson@redhat.com>
10741
10742 * hostio.c (handle_open): Process mode argument with
10743 fileio_to_host_mode.
10744
ca9b78ce
YQ
107452015-06-01 Yao Qi <yao.qi@linaro.org>
10746
10747 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10748 * linux-x86-low.c: Likewise.
10749
bfacd19d
DB
107502015-05-28 Don Breazeal <donb@codesourcery.com>
10751
10752 * linux-low.c (handle_extended_wait): Initialize
10753 thread_info.last_resume_kind for new fork children.
10754
452003ef
PA
107552015-05-15 Pedro Alves <palves@redhat.com>
10756
10757 * target.h (target_handle_new_gdb_connection): Rewrite using if
10758 wrapped in do/while.
10759
1041a03c
JB
107602015-05-14 Joel Brobecker <brobecker@adacore.com>
10761
10762 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10763 * configure, config.in: Regenerate.
10764 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10765 Declare typedef.
10766
c269dbdb
DB
107672015-05-12 Don Breazeal <donb@codesourcery.com>
10768
10769 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10770 PTRACE_EVENT_VFORK_DONE.
10771 (linux_low_ptrace_options, extended_event_reported): Add vfork
10772 events.
10773 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10774 and "vforkdone" for RSP 'T' Stop Reply Packet.
10775 * server.h (report_vfork_events): Declare
10776 global variable.
10777
3a8a0396
DB
107782015-05-12 Don Breazeal <donb@codesourcery.com>
10779
10780 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10781 (the_low_target) <new_fork>: Initialize new member.
10782 * linux-arm-low.c (arm_new_fork): New function.
10783 (the_low_target) <new_fork>: Initialize new member.
10784 * linux-low.c (handle_extended_wait): Call new target function
10785 new_fork.
10786 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10787 * linux-mips-low.c (mips_add_watchpoint): New function
10788 extracted from mips_insert_point.
10789 (the_low_target) <new_fork>: Initialize new member.
10790 (mips_linux_new_fork): New function.
10791 (mips_insert_point): Call mips_add_watchpoint.
10792 * linux-x86-low.c (x86_linux_new_fork): New function.
10793 (the_low_target) <new_fork>: Initialize new member.
10794
de0d863e
DB
107952015-05-12 Don Breazeal <donb@codesourcery.com>
10796
10797 * linux-low.c (handle_extended_wait): Implement return value,
10798 rename argument 'event_child' to 'event_lwp', handle
10799 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10800 (linux_low_ptrace_options): New function.
10801 (linux_low_filter_event): Call linux_low_ptrace_options,
10802 use different argument fo linux_enable_event_reporting,
10803 use return value from handle_extended_wait.
10804 (extended_event_reported): New function.
10805 (linux_wait_1): Call extended_event_reported and set
10806 status to report fork events.
10807 (linux_write_memory): Add pid to debug message.
10808 (reset_lwp_ptrace_options_callback): New function.
10809 (linux_handle_new_gdb_connection): New function.
10810 (linux_target_ops): Initialize new structure member.
10811 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10812 * lynx-low.c: Initialize new structure member.
10813 * remote-utils.c (prepare_resume_reply): Implement stop reason
10814 "fork" for "T" stop message.
10815 * server.c (handle_query): Call handle_new_gdb_connection.
10816 * server.h (report_fork_events): Declare global flag.
10817 * target.h (struct target_ops) <handle_new_gdb_connection>:
10818 New member.
10819 (target_handle_new_gdb_connection): New macro.
10820 * win32-low.c: Initialize new structure member.
10821
ddcbc397
DB
108222015-05-12 Don Breazeal <donb@codesourcery.com>
10823
10824 * mem-break.c (APPEND_TO_LIST): Define macro.
10825 (clone_agent_expr): New function.
10826 (clone_one_breakpoint): New function.
10827 (clone_all_breakpoints): New function.
10828 * mem-break.h: Declare new functions.
10829
89245bc0
DB
108302015-05-12 Don Breazeal <donb@codesourcery.com>
10831
10832 * linux-low.c (linux_supports_fork_events): New function.
10833 (linux_supports_vfork_events): New function.
10834 (linux_target_ops): Initialize new structure members.
10835 (initialize_low): Call linux_check_ptrace_features.
10836 * lynx-low.c (lynx_target_ops): Initialize new structure
10837 members.
10838 * server.c (report_fork_events, report_vfork_events):
10839 New global flags.
10840 (handle_query): Add new features to qSupported packet and
10841 response.
10842 (captured_main): Initialize new global variables.
10843 * target.h (struct target_ops) <supports_fork_events>:
10844 New member.
10845 <supports_vfork_events>: New member.
10846 (target_supports_fork_events): New macro.
10847 (target_supports_vfork_events): New macro.
10848 * win32-low.c (win32_target_ops): Initialize new structure
10849 members.
10850
835205d0
GB
108512015-05-12 Gary Benson <gbenson@redhat.com>
10852
10853 * server.c (handle_qxfer_exec_file): Use current process
10854 if annex is empty.
10855
21e94bd9
SL
108562015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10857
10858 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10859 Remove HAVE_PTRACE_GETREGS conditionals.
10860 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10861 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10862
45614f15
YQ
108632015-05-08 Yao Qi <yao.qi@linaro.org>
10864
10865 * linux-low.c (linux_supports_conditional_breakpoints): New
10866 function.
10867 (linux_target_ops): Install new target method.
10868 * lynx-low.c (lynx_target_ops): Install NULL hook for
10869 supports_conditional_breakpoints.
10870 * nto-low.c (nto_target_ops): Likewise.
10871 * spu-low.c (spu_target_ops): Likewise.
10872 * win32-low.c (win32_target_ops): Likewise.
10873 * server.c (handle_query): Check
10874 target_supports_conditional_breakpoints.
10875 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10876 New field.
10877 (target_supports_conditional_breakpoints): New macro.
10878
80ad801e
PA
108792015-05-06 Pedro Alves <palves@redhat.com>
10880
10881 PR server/18081
10882 * server.c (start_inferior): If the process exits, mourn it.
10883
819843c7
GB
108842015-04-21 Gary Benson <gbenson@redhat.com>
10885
10886 * hostio.c (fileio_open_flags_to_host): Factored out to
10887 fileio_to_host_openflags in common/fileio.c. Single use
10888 updated.
10889
a2d5a9d7
MF
108902015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10891
10892 * linux-xtensa-low.c (xtensa_fill_gregset)
10893 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10894 XCHAL_HAVE_LOOP.
10895
deb44829
MF
108962015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10897
10898 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10899 (regs_info): Replace usrregs pointer with NULL.
10900
e57f1de3
GB
109012015-04-17 Gary Benson <gbenson@redhat.com>
10902
10903 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10904 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10905 * server.c (handle_qxfer_exec_file): New function.
10906 (qxfer_packets): Add exec-file entry.
10907 (handle_query): Report qXfer:exec-file:read as supported packet.
10908
62828379
RN
109092015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10910
10911 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10912
b88bb450
GB
109132015-04-09 Gary Benson <gbenson@redhat.com>
10914
10915 * hostio-errno.c (errno_to_fileio_error): Remove function.
10916 Update caller to use remote_fileio_to_fio_error.
10917
c8f4bfdd
YQ
109182015-04-09 Yao Qi <yao.qi@linaro.org>
10919
10920 * linux-low.c (linux_insert_point): Call
10921 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10922 (linux_remove_point): Call remove_memory_breakpoint if type is
10923 raw_bkpt_type_sw.
10924 * linux-x86-low.c (x86_insert_point): Don't call
10925 insert_memory_breakpoint.
10926 (x86_remove_point): Don't call remove_memory_breakpoint.
10927
41f98f02
PA
109282015-04-01 Pedro Alves <palves@redhat.com>
10929 Cleber Rosa <crosa@redhat.com>
10930
10931 * server.c (gdbserver_usage): Reorganize and extend the usage
10932 message.
10933
2bf6fb9d
PA
109342015-03-24 Pedro Alves <palves@redhat.com>
10935
10936 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10937 output. Also dump TRAP_TRACE.
10938 (linux_low_filter_event): In debug output, distinguish a
10939 resume_stop SIGSTOP from a delayed SIGSTOP.
10940
369f6daa
GB
109412015-03-24 Gary Benson <gbenson@redhat.com>
10942
10943 * linux-x86-low.c (x86_linux_new_thread): Moved to
10944 nat/x86-linux.c.
10945 (x86_linux_prepare_to_resume): Likewise.
10946
8e5d4070
GB
109472015-03-24 Gary Benson <gbenson@redhat.com>
10948
10949 * Makefile.in (x86-linux-dregs.o): New rule.
10950 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10951 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10952 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10953 (x86_linux_dr_get): Likewise.
10954 (x86_linux_dr_set): Likewise.
10955 (update_debug_registers_callback): Likewise.
10956 (x86_linux_dr_set_addr): Likewise.
10957 (x86_linux_dr_get_addr): Likewise.
10958 (x86_linux_dr_set_control): Likewise.
10959 (x86_linux_dr_get_control): Likewise.
10960 (x86_linux_dr_get_status): Likewise.
10961 (x86_linux_update_debug_registers): Likewise.
10962
2b95d440
GB
109632015-03-24 Gary Benson <gbenson@redhat.com>
10964
10965 * linux-x86-low.c (x86_linux_update_debug_registers):
10966 New function, factored out from...
10967 (x86_linux_prepare_to_resume): ...this.
10968
14b0bc68
GB
109692015-03-24 Gary Benson <gbenson@redhat.com>
10970
10971 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10972 (x86_linux_dr_set): Likewise.
10973 (update_debug_registers_callback): Likewise.
10974 (x86_linux_dr_set_addr): Likewise.
10975 (x86_linux_dr_get_addr): Likewise.
10976 (x86_linux_dr_set_control): Likewise.
10977 (x86_linux_dr_get_control): Likewise.
10978 (x86_linux_dr_get_status): Likewise.
10979 (x86_linux_prepare_to_resume): Likewise.
10980
5dfe6ca8
GB
109812015-03-24 Gary Benson <gbenson@redhat.com>
10982
10983 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10984 Use perror_with_name. Pass string through gettext.
10985 (x86_linux_dr_set): Likewise.
10986
d33472ad
GB
109872015-03-24 Gary Benson <gbenson@redhat.com>
10988
10989 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10990 (x86_linux_dr_set_addr): ...this.
10991 (x86_dr_low_get_addr): Rename to...
10992 (x86_linux_dr_get_addr): ...this.
10993 (x86_dr_low_set_control): Rename to...
10994 (x86_linux_dr_set_control): ...this.
10995 (x86_dr_low_get_control): Rename to...
10996 (x86_linux_dr_get_control): ...this.
10997 (x86_dr_low_get_status): Rename to...
10998 (x86_linux_dr_get_status): ...this.
10999 (x86_dr_low): Update with new function names.
11000
4b134ca1
GB
110012015-03-24 Gary Benson <gbenson@redhat.com>
11002
11003 * Makefile.in (x86-linux.o): New rule.
11004 * configure.srv: Add x86-linux.o to relevant targets.
11005 * linux-low.c (lwp_set_arch_private_info): New function.
11006 (lwp_arch_private_info): Likewise.
11007 * linux-x86-low.c: Include nat/x86-linux.h.
11008 (arch_lwp_info): Removed structure.
11009 (update_debug_registers_callback):
11010 Use lwp_set_debug_registers_changed.
11011 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11012 and lwp_set_debug_registers_changed.
11013 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11014
34c703da
GB
110152015-03-24 Gary Benson <gbenson@redhat.com>
11016
11017 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11018 * linux-arm-low.c (arm_new_thread): Likewise.
11019 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11020 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11021 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11022 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11023
cff068da
GB
110242015-03-24 Gary Benson <gbenson@redhat.com>
11025
11026 * linux-low.c (ptid_of_lwp): New function.
11027 (lwp_is_stopped): Likewise.
11028 (lwp_stop_reason): Likewise.
11029 * linux-x86-low.c (update_debug_registers_callback):
11030 Use lwp_is_stopped.
11031 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11032 lwp_stop_reason.
11033
b2f7c7e8
GB
110342015-03-24 Gary Benson <gbenson@redhat.com>
11035
11036 * linux-low.h (linux_stop_lwp): Remove declaration.
11037
6d4ee8c6
GB
110382015-03-24 Gary Benson <gbenson@redhat.com>
11039
11040 * linux-low.h: Include nat/linux-nat.h.
11041 * linux-low.c (iterate_over_lwps_args): New structure.
11042 (iterate_over_lwps_filter): New function.
11043 (iterate_over_lwps): Likewise.
11044 * linux-x86-low.c (update_debug_registers_callback):
11045 Update signature to what iterate_over_lwps expects.
11046 Remove PID check that iterate_over_lwps now performs.
11047 (x86_dr_low_set_addr): Use iterate_over_lwps.
11048 (x86_dr_low_set_control): Likewise.
11049
70a0bb6b
GB
110502015-03-24 Gary Benson <gbenson@redhat.com>
11051
11052 * linux-x86-low.c (x86_debug_reg_state): New function.
11053 (x86_linux_prepare_to_resume): Use the above.
11054
7b669087
GB
110552015-03-24 Gary Benson <gbenson@redhat.com>
11056
11057 * linux-low.c (current_lwp_ptid): New function.
11058 * linux-x86-low.c: Include nat/linux-nat.h.
11059 (x86_dr_low_get_addr): Use current_lwp_ptid.
11060 (x86_dr_low_get_control): Likewise.
11061 (x86_dr_low_get_status): Likewise.
11062
eef49a3d
PA
110632015-03-20 Pedro Alves <palves@redhat.com>
11064
11065 * tracepoint.c (cmd_qtstatus): Make "str" const.
11066
b2333d22
PA
110672015-03-20 Pedro Alves <palves@redhat.com>
11068
11069 * server.c (handle_general_set): Make "req_str" const.
11070
23f238d3
PA
110712015-03-19 Pedro Alves <palves@redhat.com>
11072
11073 * linux-low.c (linux_resume_one_lwp): Rename to ...
11074 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11075 instead call perror_with_name.
11076 (check_ptrace_stopped_lwp_gone): New function.
11077 (linux_resume_one_lwp): Reimplement as wrapper around
11078 linux_resume_one_lwp_throw that swallows errors if the LWP is
11079 gone.
11080
91baf43f
PA
110812015-03-19 Pedro Alves <palves@redhat.com>
11082
11083 * linux-low.c (count_events_callback, select_event_lwp_callback):
11084 No longer check whether the thread has resume_stop as last resume
11085 kind.
11086
8bf3b159
PA
110872015-03-19 Pedro Alves <palves@redhat.com>
11088
11089 * linux-low.c (count_events_callback, select_event_lwp_callback):
11090 Use the lwp's status_pending_p field, not the thread's.
11091
b90fc188
PA
110922015-03-19 Pedro Alves <palves@redhat.com>
11093
11094 * linux-low.c (select_event_lwp_callback): Update comments to
11095 no longer mention SIGTRAP.
11096
464b0089
GB
110972015-03-18 Gary Benson <gbenson@redhat.com>
11098
11099 * server.c (handle_query): Do not report vFile:fstat as supported.
11100
aa9e327f
GB
111012015-03-11 Gary Benson <gbenson@redhat.com>
11102
11103 * hostio.c (sys/types.h): New include.
11104 (sys/stat.h): Likewise.
11105 (common-remote-fileio.h): Likewise.
11106 (handle_fstat): New function.
11107 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11108
791c0056
GB
111092015-03-11 Gary Benson <gbenson@redhat.com>
11110
11111 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11112 struct stat.st_blocks and struct stat.st_blksize.
11113 * configure: Regenerate.
11114 * config.in: Likewise.
11115 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11116 (OBS): Add common-remote-fileio.o.
11117 (common-remote-fileio.o): New rule.
11118
9a9df970
PA
111192015-03-09 Pedro Alves <palves@redhat.com>
11120
11121 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11122 'struct sockaddr' pointer in 'accept' call.
11123
9eb1356e
PA
111242015-03-09 Pedro Alves <palves@redhat.com>
11125
11126 Revert:
11127 2015-03-07 Pedro Alves <palves@redhat.com>
11128 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11129 or <winsock2.h> here. Instead include "gdb_socket.h".
11130 (remote_open): Use union gdb_sockaddr_u.
11131 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11132 or <winsock2.h> here. Instead include "gdb_socket.h".
11133 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11134 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11135 or <sys/un.h>.
11136 (init_named_socket, gdb_agent_helper_thread): Use union
11137 gdb_sockaddr_u.
11138
aac331e4
PA
111392015-03-07 Pedro Alves <palves@redhat.com>
11140
11141 * configure.ac (build_warnings): Move
11142 -Wdeclaration-after-statement to the C-specific set.
11143 * configure: Regenerate.
11144
366c75fc
PA
111452015-03-07 Pedro Alves <palves@redhat.com>
11146
11147 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11148 or <winsock2.h> here. Instead include "gdb_socket.h".
11149 (remote_open): Use union gdb_sockaddr_u.
11150 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11151 or <winsock2.h> here. Instead include "gdb_socket.h".
11152 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11153 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11154 or <sys/un.h>.
11155 (init_named_socket, gdb_agent_helper_thread): Use union
11156 gdb_sockaddr_u.
11157
492d29ea
PA
111582015-03-07 Pedro Alves <palves@redhat.com>
11159
11160 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11161 instead.
11162
60a191ed
YQ
111632015-03-06 Yao Qi <yao.qi@linaro.org>
11164
11165 * linux-aarch64-low.c (aarch64_insert_point): Use
11166 show_debug_regs as a boolean.
11167 (aarch64_remove_point): Likewise.
11168
f5771b1d
PA
111692015-03-05 Pedro Alves <palves@redhat.com>
11170
11171 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11172 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11173 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11174 * nto-low.c (nto_target_ops): Likewise.
11175 * spu-low.c (spu_target_ops): Likewise.
11176 * win32-low.c (win32_target_ops): Likewise.
11177
3e572f71
PA
111782015-03-04 Pedro Alves <palves@redhat.com>
11179
72f4393d 11180 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11181 Decide whether a breakpoint triggered based on the SIGTRAP's
11182 siginfo.si_code.
72f4393d
L
11183 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11184 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11185 (linux_low_filter_event): Check for breakpoints before checking
11186 watchpoints.
11187 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11188 siginfo.si_code.
72f4393d
L
11189 (linux_stopped_by_sw_breakpoint)
11190 (linux_supports_stopped_by_sw_breakpoint)
11191 (linux_stopped_by_hw_breakpoint)
11192 (linux_supports_stopped_by_hw_breakpoint): New functions.
11193 (linux_target_ops): Install new target methods.
3e572f71 11194
1ec68e26
PA
111952015-03-04 Pedro Alves <palves@redhat.com>
11196
11197 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11198 * server.c (swbreak_feature, hwbreak_feature): New globals.
11199 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11200 (captured_main): Clear swbreak_feature and hwbreak_feature.
11201 * server.h (swbreak_feature, hwbreak_feature): Declare.
11202 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11203 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11204 supports_stopped_by_hw_breakpoint>: New fields.
11205 (target_supports_stopped_by_sw_breakpoint)
11206 (target_stopped_by_sw_breakpoint)
11207 (target_supports_stopped_by_hw_breakpoint)
11208 (target_stopped_by_hw_breakpoint): Declare.
11209
15c66dd6
PA
112102015-03-04 Pedro Alves <palves@redhat.com>
11211
11212 enum lwp_stop_reason -> enum target_stop_reason
11213 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11214 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11215 (linux_wait_1, stuck_in_jump_pad_callback)
11216 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11217 (linux_stopped_by_watchpoint):
11218 * linux-low.h (enum lwp_stop_reason): Delete.
11219 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11220 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11221
98fc70d6
YQ
112222015-03-04 Yao Qi <yao.qi@linaro.org>
11223
11224 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11225
dd2ac174
GB
112262015-03-03 Gary Benson <gbenson@redhat.com>
11227
11228 * hostio.c (handle_vFile): Fix prefix lengths.
11229
d68e53f4
MM
112302015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11231
11232 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11233 ptr_bits.
11234
bf2d68ab
AA
112352015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11236
11237 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11238 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11239 (clean): Add "rm -f" for above C files.
11240 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11241 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11242 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11243 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11244 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11245 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11246 (init_registers_s390x_vx_linux64)
11247 (init_registers_s390x_tevx_linux64)
11248 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11249 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11250 declarations.
11251 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11252 (s390_store_vxrs_high): New functions.
11253 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11254 NT_S390_VXRS_HIGH.
11255 (s390_arch_setup): Add logic for selecting one of the new target
11256 descriptions. Activate the new vector regsets if applicable.
11257 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11258 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11259 and init_registers_s390x_tevx_linux64.
11260
c966a859
PA
112612015-03-01 Pedro Alves <palves@redhat.com>
11262
11263 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11264 parameter.
11265
4180215b
PA
112662015-02-27 Pedro Alves <palves@redhat.com>
11267
11268 * linux-x86-low.c (u_debugreg_offset): New function.
11269 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11270
749bab01
PA
112712015-02-27 Pedro Alves <palves@redhat.com>
11272
11273 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11274 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11275 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11276 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11277 (ps_lsetfpregs, ps_getpid)
11278 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11279 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11280 (ps_lsetxregs, ps_plog): Declare.
11281
3c14e5a3
PA
112822015-02-27 Pedro Alves <palves@redhat.com>
11283
11284 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11285 IP_AGENT_EXPORT_FUNC.
11286 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11287 IP_AGENT_EXPORT_FUNC.
11288 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11289 (IP_AGENT_EXPORT): Delete.
11290 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11291 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11292 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11293 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11294 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11295 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11296 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11297 (traceframe_read_count, traceframe_write_count)
11298 (traceframes_created, trace_state_variables, get_raw_reg)
11299 (get_trace_state_variable_value, set_trace_state_variable_value)
11300 (ust_loaded, helper_thread_id, cmd_buf): Use
11301 IPA_SYM_EXPORTED_NAME.
11302 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11303 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11304 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11305 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11306 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11307 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11308 EXTERN_C_PUSH/EXTERN_C_POP.
11309 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11310 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11311 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11312 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11313 (traceframe_write_count, traceframe_read_count)
11314 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11315 (about_to_request_buffer_space, get_trace_state_variable_value)
11316 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11317 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11318 EXTERN_C_PUSH/EXTERN_C_POP.
11319 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11320 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11321 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11322 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11323 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11324 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11325 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11326 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11327 Define.
11328 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11329 (IP_AGENT_EXPORT_VAR_DECL): Define.
11330 (tracing): Declare.
11331 (gdb_agent_get_raw_reg): Declare.
11332
fe978cb0
PA
113332015-02-27 Tom Tromey <tromey@redhat.com>
11334 Pedro Alves <palves@redhat.com>
11335
11336 Rename symbols whose names are reserved C++ keywords throughout.
11337
3bc3d82a
PA
113382015-02-27 Pedro Alves <palves@redhat.com>
11339
11340 * Makefile.in (COMPILER): New, get it from autoconf.
11341 (CXX): Get from autoconf instead.
11342 (COMPILE.pre): Use COMPILER.
11343 (CC-LD): Rename to ...
11344 (CC_LD): ... this. Use COMPILER.
11345 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11346 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11347 * acinclude.m4: Include build-with-cxx.m4.
11348 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11349 Disable -Werror by default if building in C++ mode.
11350 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11351 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11352 the C++ compiler. Save/restore CXXFLAGS too.
11353 * configure: Regenerate.
11354
07697489
PA
113552015-02-27 Pedro Alves <palves@redhat.com>
11356
11357 * acinclude.m4: Include libiberty.m4.
11358 * configure.ac: Call libiberty_INIT.
11359 * config.in, configure: Regenerate.
11360
9beb7c4e
PA
113612015-02-26 Pedro Alves <palves@redhat.com>
11362
11363 * linux-low.c (linux_wait_1): When incrementing the PC past a
11364 program breakpoint always use the_low_target.breakpoint_len as
11365 increment, rather than the maximum between that and
11366 the_low_target.decr_pc_after_break.
11367
8090aef2
PA
113682015-02-23 Pedro Alves <palves@redhat.com>
11369
11370 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11371 thread was doing a step-over; always adjust the PC if
11372 we stepped over a permanent breakpoint.
11373 (linux_wait_1): If we stepped over breakpoint that was on top of a
11374 permanent breakpoint, manually advance the PC past it.
11375
bc9540e8
PA
113762015-02-23 Pedro Alves <palves@redhat.com>
11377
11378 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11379 modes.
11380 (x86_fill_gregset, x86_store_gregset): Use it when handling
11381 $orig_eax.
11382
2db9a427
PA
113832015-02-20 Pedro Alves <palves@redhat.com>
11384
11385 * thread-db.c: Include "nat/linux-procfs.h".
11386 (thread_db_init): Skip listing new threads if the kernel supports
11387 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11388
afa8d396
PA
113892015-02-20 Pedro Alves <palves@redhat.com>
11390
11391 * linux-low.c (status_pending_p_callback): Use ptid_match.
11392
c9587f88
AT
113932015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11394
11395 PR breakpoints/16812
11396 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11397 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11398 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11399
b05ec7a5
AT
114002015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11401
11402 PR breakpoints/15956
11403 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11404
d33501a5
MM
114052015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11406
11407 * linux-low.c (linux_low_btrace_conf): Print size.
11408 * server.c (handle_btrace_conf_general_set): New.
11409 (hanle_general_set): Call handle_btrace_conf_general_set.
11410 (handle_query): Report Qbtrace-conf:bts:size as supported.
11411
f4abbc16
MM
114122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11413
11414 * linux-low.c (linux_low_enable_btrace): Update parameters.
11415 (linux_low_btrace_conf): New.
11416 (linux_target_ops)<to_btrace_conf>: Initialize.
11417 * server.c (current_btrace_conf): New.
11418 (handle_btrace_enable): Rename to ...
11419 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11420 to target_enable_btrace. Update comment. Update users.
11421 (handle_qxfer_btrace_conf): New.
11422 (qxfer_packets): Add btrace-conf entry.
11423 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11424 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11425 (target_ops)<read_btrace_conf>: New.
11426 (target_enable_btrace): Update parameters.
11427 (target_read_btrace_conf): New.
11428
043c3577
MM
114292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11430
11431 * server.c (handle_btrace_general_set): Remove call to
11432 target_supports_btrace.
11433 (supported_btrace_packets): New.
11434 (handle_query): Call supported_btrace_packets.
11435 * target.h: include btrace-common.h.
11436 (btrace_target_info): Removed.
11437 (supports_btrace, target_supports_btrace): Update parameters.
11438
734b0e4b
MM
114392015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11440
11441 * Makefile.in (SFILES): Add common/btrace-common.c.
11442 (OBS): Add common/btrace-common.o.
11443 (btrace-common.o): Add build rules.
11444 * linux-low: Include btrace-common.h.
11445 (linux_low_read_btrace): Use struct btrace_data. Call
11446 btrace_data_init and btrace_data_fini.
11447
d6c146e9
PA
114482015-02-06 Pedro Alves <palves@redhat.com>
11449
11450 * thread-db.c (find_new_threads_callback): Add debug output.
11451
20ba1ce6
PA
114522015-02-04 Pedro Alves <palves@redhat.com>
11453
11454 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11455 (resume_stopped_resumed_lwps): New function.
11456 (linux_wait_for_event_filtered): Use it.
11457
8cc73a39
SDJ
114582015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11459
11460 * Makefile.in (SFILES): Add linux-personality.c.
11461 (linux-personality.o): New rule.
11462 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11463 list of objects to be built.
11464 * linux-low.c: Include nat/linux-personality.h.
11465 (linux_create_inferior): Remove code to disable address space
11466 randomization (moved to ../nat/linux-personality.c). Create
11467 cleanup to disable address space randomization.
11468
fb23d554
SDJ
114692015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11470
11471 * Makefile.in (posix-strerror.o): New rule.
11472 (mingw-strerror.o): Likewise.
11473 * configure: Regenerated.
11474 * configure.ac: Source file ../common/common.host. Initialize new
11475 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11476
cdf43629
YQ
114772015-01-14 Yao Qi <yao@codesourcery.com>
11478
11479 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11480 (ppc-linux.o): New rule.
11481 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11482 * configure.ac: AC_CHECK_FUNCS(getauxval).
11483 * config.in: Re-generated.
11484 * configure: Re-generated.
11485 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11486 ppc64_64bit_inferior_p
11487
514c5338
YQ
114882015-01-14 Yao Qi <yao@codesourcery.com>
11489
11490 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11491 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11492 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11493 (PT_ORIG_R3, PT_TRAP): Likewise.
11494 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11495 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11496 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11497
3368c1e5
JB
114982015-01-10 Joel Brobecker <brobecker@adacore.com>
11499
11500 * i387-fp.c (i387_cache_to_xsave): In look over
11501 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11502 zmmh_low_space field by use of zmmh_high_space.
11503
582511be
PA
115042015-01-09 Pedro Alves <palves@redhat.com>
11505
11506 * linux-low.c (step_over_bkpt): Move higher up in the file.
11507 (handle_extended_wait): Don't store the stop_pc here.
11508 (get_stop_pc): Adjust comments and rename to ...
11509 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11510 stopped for a software breakpoint or hardware breakpoint.
11511 (thread_still_has_status_pending_p): New function.
11512 (status_pending_p_callback): Use
11513 thread_still_has_status_pending_p. If the event is no longer
11514 interesting, resume the LWP.
11515 (handle_tracepoints): Add assert.
11516 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11517 (wstatus_maybe_breakpoint): New function.
11518 (cancel_breakpoint): Delete function.
11519 (check_stopped_by_watchpoint): New function, factored out from
11520 linux_low_filter_event.
11521 (lp_status_maybe_breakpoint): Delete function.
11522 (linux_low_filter_event): Remove filter_ptid argument.
11523 Leave thread group exits pending here. Store the LWP's stop PC.
11524 Always leave events pending.
11525 (linux_wait_for_event_filtered): Pull all events out of the
11526 kernel, and leave them all pending.
11527 (count_events_callback, select_event_lwp_callback): Consider all
11528 events.
11529 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11530 (select_event_lwp): Only give preference to the stepping LWP in
11531 all-stop mode. Adjust comments.
11532 (ignore_event): New function.
11533 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11534 references to cancel_breakpoints. Adjust to renames. Also give
11535 equal priority to all LWPs that have had events in non-stop mode.
11536 If reporting a software breakpoint event, unadjust the LWP's PC.
11537 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11538 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11539 Adjust.
11540 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11541 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11542 (linux_stopped_by_watchpoint): Adjust.
11543 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11544 * linux-low.h (enum lwp_stop_reason): New.
11545 (struct lwp_info) <stop_pc>: Adjust comment.
11546 <stopped_by_watchpoint>: Delete field.
11547 <stop_reason>: New field.
11548 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11549 * mem-break.c (software_breakpoint_inserted_here)
11550 (hardware_breakpoint_inserted_here): New function.
11551 * mem-break.h (software_breakpoint_inserted_here)
11552 (hardware_breakpoint_inserted_here): Declare.
11553 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11554 (cancel_breakpoints): Delete.
11555 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11556 (upload_fast_traceframes): Remove references to
11557 cancel_breakpoints.
11558
a33e3959
PA
115592015-01-09 Pedro Alves <palves@redhat.com>
11560
11561 * thread-db.c (find_new_threads_callback): Ignore thread if the
11562 kernel thread ID is -1.
11563
8784d563
PA
115642015-01-09 Pedro Alves <palves@redhat.com>
11565
11566 * linux-low.c (linux_attach_fail_reason_string): Move to
11567 nat/linux-ptrace.c, and rename.
11568 (linux_attach_lwp): Update comment.
11569 (attach_proc_task_lwp_callback): New function.
11570 (linux_attach): Adjust to rename and use
11571 linux_proc_attach_tgid_threads.
11572 (linux_attach_fail_reason_string): Delete declaration.
11573
76f2b779
JB
115742015-01-01 Joel Brobecker <brobecker@adacore.com>
11575
11576 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11577 * server.c (gdbserver_version): Likewise.
11578
fafcc06a
SDJ
115792014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11580
11581 * remote-utils.c: Include ctype.h.
11582 (input_interrupt): Explicitly handle the case when the char
11583 received is the NUL byte. Improve the printing of non-ASCII
11584 characters.
11585
beed38b8
JB
115862014-12-16 Joel Brobecker <brobecker@adacore.com>
11587
11588 * linux-low.c (linux_low_filter_event): Update call to
11589 linux_enable_event_reporting following the addition of
11590 a new parameter to that function.
11591
bf330350
CU
115922014-12-16 Catalin Udma <catalin.udma@freescale.com>
11593
11594 PR server/17457
11595 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11596 (AARCH64_FPCR_REGNO): Likewise.
11597 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11598 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11599 (aarch64_store_fpregset): Likewise.
11600
5227d625
JB
116012014-12-15 Joel Brobecker <brobecker@adacore.com>
11602
11603 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11604 Remove FIXME comment about assumption about N.
11605
f93b65a0
JB
116062014-12-13 Joel Brobecker <brobecker@adacore.com>
11607
11608 * configure.ac: If large-file support is disabled in GDBserver,
11609 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11610 * configure: Regenerate.
11611
e5a9158d
AA
116122014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11613
11614 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11615 warning upon ENODATA from ptrace.
11616 * linux-s390-low.c (s390_store_tdb): New.
11617 (s390_regsets): Add regset for NT_S390_TDB.
11618
feea5f36
AA
116192014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11620
11621 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11622 without a fill_function.
11623 * linux-s390-low.c (s390_fill_last_break): Remove.
11624 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11625 (s390_arch_setup): Use regset's size instead of fill_function for
11626 loop end condition.
11627
098dbe61
AA
116282014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11629
11630 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11631 the regset's store function when ptrace returned an error.
11632 * regcache.c (get_thread_regcache): Invalidate register cache
11633 before fetching inferior's registers.
11634
28eef672
AA
116352014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11636
11637 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11638 while-loop as for-loop.
11639 (regsets_store_inferior_registers): Likewise.
11640
bdca27a2
YQ
116412014-11-28 Yao Qi <yao@codesourcery.com>
11642
11643 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11644 * config.in, configure: Re-generate.
11645 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11646 is defined.
11647
9c232dda
YQ
116482014-11-21 Yao Qi <yao@codesourcery.com>
11649
11650 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11651 (AC_CHECK_HEADERS): Remove malloc.h.
11652 * configure: Re-generated.
11653 * config.in: Re-generated.
11654 * server.h: Don't include alloca.h and malloc.h.
11655 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11656 Don't include malloc.h.
11657
43968415
JB
116582014-11-17 Joel Brobecker <brobecker@adacore.com>
11659
11660 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11661 corresponding ERRNO check in same block.
11662
40e91bc7
PA
116632014-11-12 Pedro Alves <palves@redhat.com>
11664
11665 * server.c (cont_thread): Update comment.
11666 (start_inferior, attach_inferior): No longer clear cont_thread.
11667 (handle_v_cont): No longer set cont_thread.
11668 (captured_main): Clear cont_thread each time a GDB connects.
11669
c2c118cf
PA
116702014-11-12 Pedro Alves <palves@redhat.com>
11671
11672 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11673 thread, and don't resume all threads if the Hc thread has exited.
11674
78708b7c
PA
116752014-11-12 Pedro Alves <palves@redhat.com>
11676
11677 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11678 the process group instead of to a specific LWP.
11679
a2abc7de
PA
116802014-10-15 Pedro Alves <palves@redhat.com>
11681
11682 PR server/17487
11683 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11684 parameter.
11685 (arm_set_thread_context): Delete.
11686 (the_low_target): Adjust.
11687 * win32-i386-low.c (debug_registers_changed)
11688 (debug_registers_used): Delete.
11689 (update_debug_registers_callback): New function.
11690 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11691 needing to update their debug registers.
11692 (win32_get_current_dr): New function.
11693 (x86_dr_low_get_addr, x86_dr_low_get_control)
11694 (x86_dr_low_get_status): Fetch the debug register from the thread
11695 record's context.
11696 (i386_initial_stuff): Adjust.
11697 (i386_get_thread_context): Remove current_event parameter. Don't
11698 clear debug_registers_changed nor copy DR values to
11699 debug_reg_state.
11700 (i386_set_thread_context): Delete.
11701 (i386_prepare_to_resume): New function.
11702 (i386_thread_added): Mark the thread as needing to update irs
11703 debug registers.
11704 (the_low_target): Remove i386_set_thread_context and install
11705 i386_prepare_to_resume.
11706 * win32-low.c (win32_get_thread_context): Adjust.
11707 (win32_set_thread_context): Use SetThreadContext
11708 directly.
11709 (win32_prepare_to_resume): New function.
11710 (win32_require_context): New function, factored out from ...
11711 (thread_rec): ... this.
11712 (continue_one_thread): Call win32_prepare_to_resume on each thread
11713 we're about to continue.
11714 (win32_resume): Call win32_prepare_to_resume on the event thread.
11715 * win32-low.h (struct win32_thread_info)
11716 <debug_registers_changed>: New field.
11717 (struct win32_target_ops): Change prototype of set_thread_context,
11718 delete set_thread_context and add prepare_to_resume.
11719 (win32_require_context): New declaration.
11720
a442d071
GB
117212014-10-08 Gary Benson <gbenson@redhat.com>
11722
11723 * server.h: Do not include common-exceptions.h.
11724
6f1947e8
GB
117252014-10-08 Gary Benson <gbenson@redhat.com>
11726
11727 * server.h: Do not include cleanups.h.
11728
63b434a4
JH
117292014-09-30 James Hogan <james.hogan@imgtec.com>
11730
11731 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11732 mips64-dsp-linux.c.
11733
c4d9ceb6
YQ
117342014-09-23 Yao Qi <yao@codesourcery.com>
11735
11736 * linux-low.c (lp_status_maybe_breakpoint): New function.
11737 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11738 (count_events_callback): Likewise.
11739 (select_event_lwp_callback): Likewise.
11740 (cancel_breakpoints_callback): Likewise.
11741
89a5711c
DB
117422014-09-19 Don Breazeal <donb@codesourcery.com>
11743
11744 * linux-low.c (handle_extended_wait): Call
11745 linux_ptrace_get_extended_event.
11746 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11747 linux_is_extended_waitstatus.
11748
bffc0964
JB
117492014-09-16 Joel Brobecker <brobecker@adacore.com>
11750
11751 * Makefile.in (CPPFLAGS): Define.
11752 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11753 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11754
0bfdf32f
GB
117552014-09-16 Gary Benson <gbenson@redhat.com>
11756
11757 * inferiors.h (current_inferior): Renamed as...
11758 (current_thread): New variable. All uses updated.
11759 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11760 (maybe_move_out_of_jump_pad): Likewise.
11761 (cancel_breakpoint): Likewise.
11762 (linux_low_filter_event): Likewise.
11763 (wait_for_sigstop): Likewise.
11764 (linux_resume_one_lwp): Likewise.
11765 (need_step_over_p): Likewise.
11766 (start_step_over): Likewise.
11767 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11768 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11769 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11770 and save_inferior as saved_thread.
11771 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11772 saved_thread.
11773 (regcache_invalidate_thread): Likewise.
11774 * remote-utils.c (prepare_resume_reply): Likewise.
11775 * thread-db.c (thread_db_get_tls_address): Likewise.
11776 (disable_thread_event_reporting): Likewise.
11777 (remove_thread_event_breakpoints): Likewise.
11778 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11779 as saved_thread.
11780 * target.h (set_desired_inferior): Renamed as...
11781 (set_desired_thread): New declaration. All uses updated.
11782 * server.c (myresume): Updated comment to reference thread instead
11783 of inferior.
11784 (handle_serial_event): Likewise.
11785 (handle_target_event): Likewise.
11786
361c8ade
GB
117872014-09-12 Tom Tromey <tromey@redhat.com>
11788 Gary Benson <gbenson@redhat.com>
11789
11790 * regcache.h: Include common-regcache.h.
11791 (regcache_read_pc): Don't declare.
11792 * regcache.c (get_thread_regcache_for_ptid): New function.
11793
bd9269f7
GB
117942014-09-11 Tom Tromey <tromey@redhat.com>
11795 Gary Benson <gbenson@redhat.com>
11796
11797 * symbol.c: New file.
11798 * Makefile.in (SFILES): Add symbol.c.
11799 (OBS): Add symbol.o.
11800
f8c1d06b
GB
118012014-09-11 Gary Benson <gbenson@redhat.com>
11802
11803 * target.c (target_stop_ptid, target_continue_ptid): New
11804 functions.
11805
721ec300
GB
118062014-09-11 Tom Tromey <tromey@redhat.com>
11807 Gary Benson <gbenson@redhat.com>
11808
11809 * target.h: Include target/target.h.
11810 * target.c (target_read_memory, target_read_uint32)
11811 (target_write_memory): New functions.
11812
c5e92cca
GB
118132014-09-11 Gary Benson <gbenson@redhat.com>
11814
11815 * server.h (debug_hw_points): Don't declare.
11816 * server.c (debug_hw_points): Don't define. Replace all uses
11817 with show_debug_regs.
11818 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11819 all uses with show_debug_regs.
11820
2e4bb98a
EBM
118212014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11822
11823 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11824 endianness into account.
11825 (ppc_supply_ptrace_register): Likewise.
11826
ac740bc7
JH
118272014-09-03 James Hogan <james.hogan@imgtec.com>
11828
11829 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11830 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11831
97ea6506
GB
118322014-09-03 Gary Benson <gbenson@redhat.com>
11833
11834 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11835 ALL_DEBUG_ADDRESS_REGISTERS.
11836
df7e5265
GB
118372014-09-02 Gary Benson <gbenson@redhat.com>
11838
11839 * i386-low.h: Renamed as...
11840 * x86-low.h: New file. All type, function and variable name
11841 prefixes changed from "i386_" to "x86_". All references updated.
11842 * i386-low.c: Renamed as...
11843 * x86-low.c: New file. All type, function and variable name
11844 prefixes changed from "i386_" to "x86_". All references updated.
11845
ed859da7
GB
118462014-09-02 Gary Benson <gbenson@redhat.com>
11847
11848 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11849 (x86_linux_new_thread): Likewise.
11850
860789c7
GB
118512014-08-29 Gary Benson <gbenson@redhat.com>
11852
11853 * server.h (setjmp.h): Do not include.
11854 (toplevel): Do not declare.
11855 (common-exceptions.h): Include.
11856 (cleanups.h): Likewise.
11857 * server.c (toplevel): Do not define.
11858 (exit_code): New static global.
11859 (detach_or_kill_for_exit_cleanup): New function.
11860 (main): New function. Original main renamed to...
11861 (captured_main): New function.
11862 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11863
ff55e1b5
GB
118642014-08-29 Gary Benson <gbenson@redhat.com>
11865
11866 * Makefile.in (SFILES): Add common/common-exceptions.c.
11867 (OBS): Add common-exceptions.o.
11868 (common-exceptions.o): New rule.
11869 * utils.c (prepare_to_throw_exception): New function.
11870
e9bcb658
GB
118712014-08-29 Gary Benson <gbenson@redhat.com>
11872
11873 * config.in: Regenerate.
11874 * configure: Likewise.
11875
e3180625
GB
118762014-08-29 Gary Benson <gbenson@redhat.com>
11877
11878 * Makefile.in (SFILES): Add common/cleanups.c.
11879 (OBS): cleanups.o.
11880 (cleanups.o): New rule.
11881
e3d6ba5d
GB
118822014-08-29 Gary Benson <gbenson@redhat.com>
11883
11884 * utils.c (internal_vwarning): New function.
11885
7096e886
GB
118862014-08-28 Gary Benson <gbenson@redhat.com>
11887
11888 * utils.h (fatal): Remove declaration.
11889 * utils.c (fatal): Remove function.
11890
14ce3192
GB
118912014-08-28 Gary Benson <gbenson@redhat.com>
11892
11893 * tracepoint.c (gdb_agent_init): Replace fatal with
11894 perror_with_name.
11895 (initialize_tracepoint): Likewise.
11896
50278d59
GB
118972014-08-28 Gary Benson <gbenson@redhat.com>
11898
11899 * remote-utils.c (remote_prepare): Replace fatal with error.
11900
aa96c426
GB
119012014-08-28 Gary Benson <gbenson@redhat.com>
11902
11903 * linux-low.c (linux_async): Replace fatal with warning.
11904 Tidy up and return.
11905 (linux_start_non_stop): Return -1 if linux_async failed.
11906
f7160e97
GB
119072014-08-28 Gary Benson <gbenson@redhat.com>
11908
11909 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11910 gdb_assert.
11911 (i386_dr_low_get_addr): Remove vague comment.
11912 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11913 gdb_assert.
11914
38e08fca
GB
119152014-08-28 Gary Benson <gbenson@redhat.com>
11916
11917 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11918 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11919 internal_error.
11920 (linux_resume_one_lwp): Likewise.
11921 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11922 gdb_assert.
11923 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11924 with internal_error.
11925 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11926 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11927 (find_register_by_name): Replace fatal with internal_error.
11928 (find_regno): Likewise.
11929 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11930 * thread-db.c (thread_db_create_event): Likewise.
11931 (thread_db_load_search): Likewise.
11932 (try_thread_db_load_1): Likewise.
11933 * tracepoint.c (get_jump_space_head): Replace fatal with
11934 internal_error.
11935 (claim_trampoline_space): Likewise.
11936 (have_fast_tracepoint_trampoline_buffer): Likewise.
11937 (cmd_qtstart): Likewise.
11938 (stop_tracing): Likewise.
11939 (fast_tracepoint_collecting): Likewise.
11940 (target_malloc): Likewise.
11941 (download_tracepoint): Likewise.
11942 (download_trace_state_variables): Replace check with gdb_assert.
11943 (upload_fast_traceframes): Replace fatal with internal_error.
11944
34abf635
GB
119452014-08-19 Tom Tromey <tromey@redhat.com>
11946 Gary Benson <gbenson@redhat.com>
11947
11948 * Makefile.in (SFILES): Add common/common-debug.c.
11949 (OBS): Add common-debug.o.
11950 (common-debug.o): New rule.
11951 * debug.h (debug_printf): Don't declare.
11952 * debug.c (debug_printf): Renamed and rewritten as...
11953 (debug_vprintf): New function.
11954
f6e94d78
GB
119552014-08-19 Gary Benson <gbenson@redhat.com>
11956
11957 * utils.h: Do not include print-utils.h.
11958
9239eeab
GB
119592014-08-19 Tom Tromey <tromey@redhat.com>
11960 Gary Benson <gbenson@redhat.com>
11961
11962 * server.h: Add static assertion.
11963 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11964
ef87c8bb
GB
119652014-08-19 Tom Tromey <tromey@redhat.com>
11966 Gary Benson <gbenson@redhat.com>
11967
11968 * Makefile.in (SFILES): Add common/errors.c.
11969 (OBS): Add errors.o.
11970 (IPA_OBS): Add errors-ipa.o.
11971 (errors.o): New rule.
11972 (errors-ipa.o): Likewise.
11973 * utils.h (perror_with_name, error, warning): Don't declare.
11974 * utils.c (warning): Renamed and rewritten as...
11975 (vwarning): New function.
11976 (error): Renamed and rewritten as...
11977 (verror): New function.
11978 (internal_error): Renamed and rewritten as...
11979 (internal_verror): New function.
11980
bb974a24
GB
119812014-08-07 Gary Benson <gbenson@redhat.com>
11982
11983 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11984 * configure: Regenerate.
11985 * config.in: Likewise.
11986 * server.h: Do not include errno.h.
11987 * event-loop.c: Likewise.
11988 * hostio-errno.c: Likewise.
11989 * linux-low.c: Likewise.
11990 * remote-utils.c: Likewise.
11991 * spu-low.c: Likewise.
11992 * utils.c: Likewise.
11993 * gdbreplay.c: Unconditionally include errno.h.
11994
6d3d12eb
GB
119952014-08-07 Gary Benson <gbenson@redhat.com>
11996
11997 * server.h: Do not include string.h.
11998 * event-loop.c: Likewise.
11999 * linux-low.c: Likewise.
12000 * regcache.c: Likewise.
12001 * remote-utils.c: Likewise.
12002 * spu-low.c: Likewise.
12003 * utils.c: Likewise.
12004
dccbb609
GB
120052014-08-07 Gary Benson <gbenson@redhat.com>
12006
12007 * server.h: Do not include gdb_assert.h.
12008
e76df0d0
GB
120092014-08-07 Gary Benson <gbenson@redhat.com>
12010
12011 * server.h: Do not include common-utils.h.
12012
4cb9c816
GB
120132014-08-07 Gary Benson <gbenson@redhat.com>
12014
12015 * server.h: Do not include ptid.h.
12016 * notif.h: Likewise.
12017
3995eeee
GB
120182014-08-07 Gary Benson <gbenson@redhat.com>
12019
12020 * server.h: Do not include gdb_locale.h.
12021
cb9f1a9b
GB
120222014-08-07 Gary Benson <gbenson@redhat.com>
12023
12024 * server.h: Do not include gdb/signals.h.
12025 * win32-low.c: Likewise.
12026
a5fceff8
GB
120272014-08-07 Gary Benson <gbenson@redhat.com>
12028
12029 * server.h: Do not include pathmax.h.
12030
b9391142
GB
120312014-08-07 Gary Benson <gbenson@redhat.com>
12032
12033 * server.h: Do not include libiberty.h.
12034 * linux-bfin-low.c: Likewise.
12035
0e443c87
GB
120362014-08-07 Gary Benson <gbenson@redhat.com>
12037
12038 * server.h: Do not include ansidecl.h.
12039
8ebb3f56
GB
120402014-08-07 Gary Benson <gbenson@redhat.com>
12041
12042 * linux-x86-low.c: Do not include stddef.h.
12043 * lynx-ppc-low.c: Likewise.
12044 * tracepoint.c: Likewise.
12045
8980bdf6
GB
120462014-08-07 Gary Benson <gbenson@redhat.com>
12047
12048 * server.h: Do not include stdarg.h.
12049 * nto-low.c: Likewise.
12050
d7096f71
GB
120512014-08-07 Gary Benson <gbenson@redhat.com>
12052
12053 * server.h: Do not include stdlib.h.
12054 * inferiors.c: Likewise.
12055 * linux-low.c: Likewise.
12056 * regcache.c: Likewise.
12057 * spu-low.c: Likewise.
12058 * tracepoint.c: Likewise.
12059 * utils.c: Likewise.
12060
d02f550d
GB
120612014-08-07 Gary Benson <gbenson@redhat.com>
12062
12063 * server.h: Do not include stdio.h.
12064 * linux-low.c: Likewise.
12065 * remote-utils.c: Likewise.
12066 * spu-low.c: Likewise.
12067 * utils.c: Likewise.
12068 * wincecompat.c: Likewise.
12069
87f6c4e3
GB
120702014-08-06 Gary Benson <gbenson@redhat.com>
12071
12072 * regcache.c (init_register_cache): Move conditionals inside if.
12073
7089dca4
GB
120742014-08-06 Gary Benson <gbenson@redhat.com>
12075
12076 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12077
462f517e
GB
120782014-07-31 Gary Benson <gbenson@redhat.com>
12079
12080 * ax.h: Do not include server.h.
12081 * gdbthread.h: Likewise.
12082 * lynx-low.h: Likewise.
12083 * notif.h: Likewise.
12084
976411d6
GB
120852014-07-30 Gary Benson <gbenson@redhat.com>
12086
12087 * server.h: Include common-defs.h.
12088 Do not include config.h or build-gnulib-gdbserver/config.h.
12089
d41f6d8e
GB
120902014-07-30 Gary Benson <gbenson@redhat.com>
12091
12092 * hostio-errno.c: Move server.h to top of includes list.
12093 * inferiors.c: Likewise.
12094 * linux-x86-low.c: Likewise.
12095 * notif.c: Include server.h.
12096
314c6a35
TT
120972014-07-24 Tom Tromey <tromey@redhat.com>
12098 Gary Benson <gbenson@redhat.com>
12099
12100 * server.h (CORE_ADDR): Now unsigned.
12101
69ff6be5
PA
121022014-07-16 Pedro Alves <palves@redhat.com>
12103
12104 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12105
ce9e3fe7
PA
121062014-07-15 Pedro Alves <palves@redhat.com>
12107
12108 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12109 copy.
12110
e76126e8
PA
121112014-07-11 Pedro Alves <palves@redhat.com>
12112
12113 * linux-low.c (kill_wait_lwp): New function, based on
12114 kill_one_lwp_callback, but use my_waitpid directly.
12115 (kill_one_lwp_callback, linux_kill): Use it.
12116
8e9db26e
PA
121172014-06-23 Pedro Alves <palves@redhat.com>
12118
12119 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12120 before setting DR0..DR3.
12121
698b3e08
GB
121222014-06-20 Gary Benson <gbenson@redhat.com>
12123
12124 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12125 * configure: Regenerated.
12126 * config.in: Likewise.
12127
125f8a3d
GB
121282014-06-20 Gary Benson <gbenson@redhat.com>
12129
12130 * Makefile.in (SFILES): Update locations for files moved
12131 from common to nat.
12132 (object file files): Reordered.
12133
42995dbd
GB
121342014-06-20 Gary Benson <gbenson@redhat.com>
12135
12136 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12137 (i386_dr_low_set_addr): Likewise.
12138 (i386_dr_low_get_addr): Likewise.
12139 (i386_dr_low_can_set_control): Likewise.
12140 (i386_dr_low_set_control): Likewise.
12141 (i386_dr_low_get_control): Likewise.
12142 (i386_dr_low_get_status): Likewise.
12143 (i386_get_debug_register_length): Likewise.
12144 * linux-x86-low.c (i386_dr_low_set_addr):
12145 Changed signature. Made static.
12146 (i386_dr_low_get_addr): Likewise.
12147 (i386_dr_low_set_control): Likewise.
12148 (i386_dr_low_get_control): Likewise.
12149 (i386_dr_low_get_status): Likewise.
12150 (i386_dr_low): New global variable.
12151 * win32-i386-low.c (i386_dr_low_set_addr):
12152 Changed signature. Made static.
12153 (i386_dr_low_get_addr): Likewise.
12154 (i386_dr_low_set_control): Likewise.
12155 (i386_dr_low_get_control): Likewise.
12156 (i386_dr_low_get_status): Likewise.
12157 (i386_dr_low): New global variable.
12158
e1d2394b
MS
121592014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12160
12161 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12162 * Makefile.in (AR, AR_FLAGS): Define.
12163 * configure: Regenerate.
12164
3a8ee006
GB
121652014-06-19 Gary Benson <gbenson@redhat.com>
12166
12167 * Makefile.in (i386-dregs.o): New rule.
12168 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12169 * i386-low.c (target.h): Remove include.
12170 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12171 (DR_CONTROL_SHIFT): Likewise.
12172 (DR_CONTROL_SIZE): Likewise.
12173 (DR_RW_EXECUTE): Likewise.
12174 (DR_RW_WRITE): Likewise.
12175 (DR_RW_READ): Likewise.
12176 (DR_RW_IORW): Likewise.
12177 (DR_LEN_1): Likewise.
12178 (DR_LEN_2): Likewise.
12179 (DR_LEN_4): Likewise.
12180 (DR_LEN_8): Likewise.
12181 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12182 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12183 (DR_ENABLE_SIZE): Likewise.
12184 (DR_LOCAL_SLOWDOWN): Likewise.
12185 (DR_GLOBAL_SLOWDOWN): Likewise.
12186 (DR_CONTROL_RESERVED): Likewise.
12187 (I386_DR_CONTROL_MASK): Likewise.
12188 (I386_DR_VACANT): Likewise.
12189 (I386_DR_LOCAL_ENABLE): Likewise.
12190 (I386_DR_GLOBAL_ENABLE): Likewise.
12191 (I386_DR_DISABLE): Likewise.
12192 (I386_DR_SET_RW_LEN): Likewise.
12193 (I386_DR_GET_RW_LEN): Likewise.
12194 (I386_DR_WATCH_HIT): Likewise.
12195 (i386_wp_op_t): Likewise.
12196 (i386_show_dr): Likewise.
12197 (i386_length_and_rw_bits): Likewise.
12198 (i386_insert_aligned_watchpoint): Likewise.
12199 (i386_remove_aligned_watchpoint): Likewise.
12200 (i386_handle_nonaligned_watchpoint): Likewise.
12201 i386_update_inferior_debug_regs(): Likewise.
12202 (i386_dr_insert_watchpoint): Likewise.
12203 (i386_dr_remove_watchpoint): Likewise.
12204 (i386_dr_region_ok_for_watchpoint): Likewise.
12205 (i386_dr_stopped_data_address): Likewise.
12206 (i386_dr_stopped_by_watchpoint): Likewise.
12207
8f26655c
GB
122082014-06-19 Gary Benson <gbenson@redhat.com>
12209
12210 * i386-low.c (i386_dr_show): Renamed to
12211 i386_show_dr and made static. All uses updated.
12212 (i386_dr_length_and_rw_bits): Renamed to
12213 i386_length_and_rw_bits and made static.
12214 All uses updated.
12215 (i386_dr_insert_aligned_watchpoint): Renamed to
12216 i386_insert_aligned_watchpoint and made static.
12217 All uses updated.
12218 (i386_dr_remove_aligned_watchpoint): Renamed to
12219 i386_remove_aligned_watchpoint and made static.
12220 All uses updated.
12221 (i386_dr_update_inferior_debug_regs): Renamed to
12222 i386_update_inferior_debug_regs and made static.
12223 All uses updated.
12224
b9228891
GB
122252014-06-18 Gary Benson <gbenson@redhat.com>
12226
5171def3
GB
12227 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12228 (i386_dr_low_can_set_control): Likewise.
12229 (i386_get_debug_register_length): Likewise.
12230 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12231 (i386_dr_low_can_set_control): Likewise.
12232 (i386_get_debug_register_length): Likewise.
12233
122342014-06-17 Gary Benson <gbenson@redhat.com>
12235
b9228891
GB
12236 * i386-low.h (i386-dregs.h): New include.
12237 (DR_FIRSTADDR): Now in i386-dregs.h.
12238 (DR_LASTADDR): Likewise.
12239 (DR_NADDR): Likewise.
12240 (DR_STATUS): Likewise.
12241 (DR_CONTROL): Likewise.
12242 (i386_debug_reg_state): Likewise.
12243 (i386_dr_insert_watchpoint): Likewise.
12244 (i386_dr_remove_watchpoint): Likewise.
12245 (i386_dr_region_ok_for_watchpoint): Likewise.
12246 (i386_dr_stopped_data_address): Likewise.
12247 (i386_dr_stopped_by_watchpoint): Likewise.
12248 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12249
4be83cc2
GB
122502014-06-18 Gary Benson <gbenson@redhat.com>
12251
12252 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12253 i386_dr_insert_watchpoint.
12254 (i386_low_remove_watchpoint): Renamed to
12255 i386_dr_remove_watchpoint.
12256 (i386_low_region_ok_for_watchpoint): Renamed to
12257 i386_dr_region_ok_for_watchpoint.
12258 (i386_low_stopped_data_address): Renamed to
12259 i386_dr_stopped_data_address.
12260 (i386_low_stopped_by_watchpoint): Renamed to
12261 i386_dr_stopped_by_watchpoint.
12262 * i386-low.c (i386_show_dr): Renamed to
12263 i386_dr_show and made nonstatic. All uses updated.
12264 (i386_length_and_rw_bits): Renamed to
12265 i386_dr_length_and_rw_bits and made nonstatic.
12266 All uses updated.
12267 (i386_insert_aligned_watchpoint): Renamed to
12268 i386_dr_insert_aligned_watchpoint and made nonstatic.
12269 All uses updated.
12270 (i386_remove_aligned_watchpoint): Renamed to
12271 i386_dr_remove_aligned_watchpoint and made nonstatic.
12272 All uses updated.
12273 (i386_update_inferior_debug_regs): Renamed to
12274 i386_dr_update_inferior_debug_regs and made nonstatic.
12275 All uses updated.
12276 (i386_low_insert_watchpoint): Renamed to
12277 i386_dr_insert_watchpoint. All uses updated.
12278 (i386_low_remove_watchpoint): Renamed to
12279 i386_dr_remove_watchpoint. All uses updated.
12280 (i386_low_region_ok_for_watchpoint): Renamed to
12281 i386_dr_region_ok_for_watchpoint. All uses updated.
12282 (i386_low_stopped_data_address): Renamed to
12283 i386_dr_stopped_data_address. All uses updated.
12284 (i386_low_stopped_by_watchpoint): Renamed to
12285 i386_dr_stopped_by_watchpoint. All uses updated.
12286
131aa0d4
GB
122872014-06-18 Gary Benson <gbenson@redhat.com>
12288
12289 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12290 (i386_dr_low_can_set_control): Likewise.
12291 (i386_insert_aligned_watchpoint): New check.
12292
d9305f7f
GB
122932014-06-18 Gary Benson <gbenson@redhat.com>
12294
12295 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12296 Renamed to state.
12297
e927c9fc
GB
122982014-06-18 Gary Benson <gbenson@redhat.com>
12299
12300 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12301 instead of fatal and error.
12302 (i386_handle_nonaligned_watchpoint): Likewise.
12303
1b6d4134
GB
123042014-06-18 Gary Benson <gbenson@redhat.com>
12305
12306 * i386-low.c (i386_get_debug_register_length): New macro.
12307 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12308 (i386_show_dr): Use debug_printf instead of fprintf. Use
12309 phex to format values.
12310
6e62758f
GB
123112014-06-18 Gary Benson <gbenson@redhat.com>
12312
12313 * i386-low.h: Comment changes.
12314 * i386-low.c: Likewise.
12315
fc6e2f03
GB
123162014-06-18 Gary Benson <gbenson@redhat.com>
12317
12318 * i386-low.c: Whitespace changes.
12319
f9d1eeed
TT
123202014-06-12 Tom Tromey <tromey@redhat.com>
12321
12322 * utils.c (freeargv): Remove.
12323
0b04e523
TT
123242014-06-12 Tom Tromey <tromey@redhat.com>
12325
12326 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12327 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12328 (parse_debug_format_options): Likewise.
12329 (gdbserver_usage): Likewise.
12330 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12331 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12332 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12333 against libiberty.
12334 ($(LIBGNU)): Depend on libiberty.
12335 (all-lib): Recurse into all subdirs.
12336 (install-only): Invoke "install" target in subdirs.
12337 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12338 targets.
12339 * configure: Rebuild.
12340 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12341 for vasprintf, vsnprintf, or gettimeofday.
12342 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12343 srv_tgtobj.
12344
270c9937
JB
123452014-06-05 Joel Brobecker <brobecker@adacore.com>
12346
12347 * development.sh: Delete.
12348 * Makefile.in (config.status): Adjust dependency on development.sh.
12349 * configure.ac: Adjust development.sh source call.
12350 * configure: Regenerate.
12351
0a261ed8
PA
123522014-06-02 Pedro Alves <palves@redhat.com>
12353
12354 * ax.c (gdb_free_agent_expr): New function.
12355 * ax.h (gdb_free_agent_expr): New declaration.
12356 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12357 list.
12358 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12359 static.
12360 (clear_breakpoint_conditions_and_commands): New function.
12361 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12362 (clear_breakpoint_conditions_and_commands): New declaration.
12363
e9dae05e
RR
123642014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12365
12366 * linux-aarch64-low.c (asm/ptrace.h): Include.
12367
5876f503
JK
123682014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12369
12370 Fix TLS access for -static -pthread.
12371 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12372 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12373 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12374
802e8e6d
PA
123752014-05-20 Pedro Alves <palves@redhat.com>
12376
12377 * linux-aarch64-low.c (aarch64_insert_point)
12378 (aarch64_remove_point): No longer check whether the type is
12379 supported here. Adjust to new interface.
12380 (the_low_target): Install aarch64_supports_z_point_type as
12381 supports_z_point_type method.
12382 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12383 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12384 instead of a Z packet char. Adjust.
12385 (arm_supports_z_point_type): New function.
12386 (arm_insert_point, arm_remove_point): Adjust to new interface.
12387 (the_low_target): Install arm_supports_z_point_type.
12388 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12389 (cris_insert_point, cris_remove_point): Adjust to new interface.
12390 Don't check whether the type is supported here.
12391 (the_low_target): Install cris_supports_z_point_type.
12392 * linux-low.c (linux_supports_z_point_type): New function.
12393 (linux_insert_point, linux_remove_point): Adjust to new interface.
12394 * linux-low.h (struct linux_target_ops) <insert_point,
12395 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12396 raw_breakpoint pointer parameter.
12397 <supports_z_point_type>: New method.
12398 * linux-mips-low.c (mips_supports_z_point_type): New function.
12399 (mips_insert_point, mips_remove_point): Adjust to new interface.
12400 Use mips_supports_z_point_type.
12401 (the_low_target): Install mips_supports_z_point_type.
12402 * linux-ppc-low.c (the_low_target): Install NULL as
12403 supports_z_point_type method.
12404 * linux-s390-low.c (the_low_target): Install NULL as
12405 supports_z_point_type method.
12406 * linux-sparc-low.c (the_low_target): Install NULL as
12407 supports_z_point_type method.
12408 * linux-x86-low.c (x86_supports_z_point_type): New function.
12409 (x86_insert_point): Adjust to new insert_point interface. Use
12410 insert_memory_breakpoint. Adjust to new
12411 i386_low_insert_watchpoint interface.
12412 (x86_remove_point): Adjust to remove_point interface. Use
12413 remove_memory_breakpoint. Adjust to new
12414 i386_low_remove_watchpoint interface.
12415 (the_low_target): Install x86_supports_z_point_type.
12416 * lynx-low.c (lynx_target_ops): Install NULL as
12417 supports_z_point_type callback.
12418 * nto-low.c (nto_supports_z_point_type): New.
12419 (nto_insert_point, nto_remove_point): Adjust to new interface.
12420 (nto_target_ops): Install nto_supports_z_point_type.
12421 * mem-break.c: Adjust intro comment.
12422 (struct raw_breakpoint) <raw_type, size>: New fields.
12423 <inserted>: Update comment.
12424 <shlib_disabled>: Delete field.
12425 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12426 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12427 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12428 (raw_bkpt_type_to_target_hw_bp_type): New function.
12429 (find_enabled_raw_code_breakpoint_at): New function.
12430 (find_raw_breakpoint_at): New type and size parameters. Use them.
12431 (insert_memory_breakpoint): New function, based off
12432 set_raw_breakpoint_at.
12433 (remove_memory_breakpoint): New function.
12434 (set_raw_breakpoint_at): Reimplement.
12435 (set_breakpoint): New, based on set_breakpoint_at.
12436 (set_breakpoint_at): Reimplement.
12437 (delete_raw_breakpoint): Go through the_target->remove_point
12438 instead of assuming memory breakpoints.
12439 (find_gdb_breakpoint_at): Delete.
12440 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12441 (find_gdb_breakpoint): New function.
12442 (set_gdb_breakpoint_at): Delete.
12443 (z_type_supported): New function.
12444 (set_gdb_breakpoint_1): New function, loosely based off
12445 set_gdb_breakpoint_at.
12446 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12447 (delete_gdb_breakpoint_at): Delete.
12448 (delete_gdb_breakpoint_1): New function, loosely based off
12449 delete_gdb_breakpoint_at.
12450 (delete_gdb_breakpoint): New function.
12451 (clear_gdb_breakpoint_conditions): Rename to ...
12452 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12453 breakpoint.
12454 (add_condition_to_breakpoint): Make static.
12455 (add_breakpoint_condition): Take a struct breakpoint pointer
12456 instead of an address. Adjust.
12457 (gdb_condition_true_at_breakpoint): Rename to ...
12458 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12459 z_type parameter.
12460 (gdb_condition_true_at_breakpoint): Reimplement.
12461 (add_breakpoint_commands): Take a struct breakpoint pointer
12462 instead of an address. Adjust.
12463 (gdb_no_commands_at_breakpoint): Rename to ...
12464 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12465 parameter. Return true if no breakpoint was found. Change debug
12466 output.
12467 (gdb_no_commands_at_breakpoint): Reimplement.
12468 (run_breakpoint_commands): Rename to ...
12469 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12470 and change return type to boolean.
12471 (run_breakpoint_commands): New function.
12472 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12473 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12474 breakpoint. Go through the_target->remove_point instead of
12475 assuming memory breakpoint.
12476 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12477 software and hardware breakpoints.
12478 (reinsert_raw_breakpoint): Go through the_target->insert_point
12479 instead of assuming memory breakpoint.
12480 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12481 software and hardware breakpoints.
12482 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12483 Check both software and hardware breakpoints.
12484 (validate_inserted_breakpoint): Assert the breakpoint is a
12485 software breakpoint. Set the inserted flag to -1 instead of
12486 setting shlib_disabled.
12487 (delete_disabled_breakpoints): Adjust.
12488 (validate_breakpoints): Only validate software breakpoints.
12489 Adjust to inserted flag change.
12490 (check_mem_read, check_mem_write): Skip breakpoint types other
12491 than software breakpoints. Adjust to inserted flag change.
12492 * mem-break.h (enum raw_bkpt_type): New enum.
12493 (raw_breakpoint, struct process_info): Forward declare.
12494 (Z_packet_to_target_hw_bp_type): Delete declaration.
12495 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12496 (set_gdb_breakpoint, delete_gdb_breakpoint)
12497 (clear_breakpoint_conditions): New declarations.
12498 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12499 (breakpoint_inserted_here): Update comment.
12500 (add_breakpoint_condition, add_breakpoint_commands): Replace
12501 address parameter with a breakpoint pointer parameter.
12502 (gdb_breakpoint_here): Update comment.
12503 (delete_gdb_breakpoint_at): Delete.
12504 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12505 * server.c (process_point_options): Take a struct breakpoint
12506 pointer instead of an address. Adjust.
12507 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12508 delete_gdb_breakpoint.
12509 * spu-low.c (spu_target_ops): Install NULL as
12510 supports_z_point_type method.
12511 * target.h: Include mem-break.h.
12512 (struct target_ops) <prepare_to_access_memory>: Update comment.
12513 <supports_z_point_type>: New field.
12514 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12515 instead of a char. Also take a raw breakpoint pointer.
12516 * win32-arm-low.c (the_low_target): Install NULL as
12517 supports_z_point_type.
12518 * win32-i386-low.c (i386_supports_z_point_type): New function.
12519 (i386_insert_point, i386_remove_point): Adjust to new interface.
12520 (the_low_target): Install i386_supports_z_point_type.
12521 * win32-low.c (win32_supports_z_point_type): New function.
12522 (win32_insert_point, win32_remove_point): Adjust to new interface.
12523 (win32_target_ops): Install win32_supports_z_point_type.
12524 * win32-low.h (struct win32_target_ops):
12525 <supports_z_point_type>: New method.
12526 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12527 instead of a char. Also take a raw breakpoint pointer.
12528
932539e3
PA
125292014-05-20 Pedro Alves <palves@redhat.com>
12530
12531 * mem-break.h: Include break-common.h.
12532 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12533 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12534 (Z_packet_to_target_hw_bp_type): New declaration.
12535 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12536 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12537 (Z_PACKET_ACCESS_WP): Delete macros.
12538 (Z_packet_to_hw_type): Delete function.
12539 * i386-low.h: Don't include break-common.h here.
12540 (Z_packet_to_hw_type): Delete declaration.
12541 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12542 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12543 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12544 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12545 * linux-aarch64-low.c: Don't include break-common.h here.
12546 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12547 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12548 (Z_packet_to_target_hw_bp_type): Delete function.
12549 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12550 function.
12551 (mips_insert_point, mips_remove_point): Use
12552 Z_packet_to_target_hw_bp_type.
12553
4ff0d3d8
PA
125542014-05-20 Pedro Alves <palves@redhat.com>
12555
12556 * linux-aarch64-low.c: Include break-common.h.
12557 (enum target_point_type): Delete.
12558 (Z_packet_to_point_type): Rename to ...
12559 (Z_packet_to_target_hw_bp_type): ... this, and return a
12560 target_hw_bp_type instead.
12561 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12562 instead of an enum target_point_type.
12563 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12564 breakpoint type.
12565 (aarch64_dr_state_insert_one_point)
12566 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12567 (aarch64_handle_aligned_watchpoint)
12568 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12569 Take an enum target_hw_bp_type instead of an enum
12570 target_point_type.
12571 (aarch64_supports_z_point_type): New function.
12572 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12573 use Z_packet_to_target_hw_bp_type.
12574
786dc519
JB
125752014-05-20 Joel Brobecker <brobecker@adacore.com>
12576
12577 * configure.ac: Only use -Werror by default when DEVELOPMENT
12578 is true.
12579 * configure: Regenerate.
12580
9e0aa64f
JK
125812014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12584 * linux-x86-low.c (X86_64_USER_REGS): New.
12585 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12586
2b577b92
YQ
125872014-04-28 Yao Qi <yao@codesourcery.com>
12588
12589 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12590 name.
12591
94611da2
PA
125922014-04-25 Pedro Alves <palves@redhat.com>
12593
12594 PR server/16255
12595 * linux-low.c (linux_attach_fail_reason_string): New function.
12596 (linux_attach_lwp): Delete.
12597 (linux_attach_lwp_1): Rename to ...
12598 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12599 argument. Remove "initial" parameter. Return int instead of
12600 void. Don't error or warn here.
12601 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12602 failure to attach to the tgid. Call warning when failing to
12603 attach to an lwp.
12604 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12605 argument. Remove "initial" parameter. Return int instead of
12606 void. Don't error or warn here.
12607 (linux_attach_fail_reason_string): New declaration.
12608 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12609 interface change. Use linux_attach_fail_reason_string.
12610
01f9f808
MS
126112014-04-24 Michael Sturm <michael.sturm@mintel.com>
12612 Walfred Tedeschi <walfred.tedeschi@intel.com>
12613
12614 * Makefile.in: Added rules to handle new files
12615 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12616 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12617 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12618 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12619 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12620 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12621 x32-avx512-linux.o.
12622 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12623 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12624 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12625 i386/x32-avx512.xml.
12626 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12627 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12628 i386/x32-avx512-linux.xml.
12629 * i387-fp.c (num_avx512_k_registers): New constant for number
12630 of K registers.
12631 (num_avx512_zmmh_low_registers): New constant for number of
12632 lower ZMM registers (0-15).
12633 (num_avx512_zmmh_high_registers): New constant for number of
12634 higher ZMM registers (16-31).
12635 (num_avx512_ymmh_registers): New contant for number of higher
12636 YMM registers (ymm16-31 added by avx521 on x86_64).
12637 (num_avx512_xmm_registers): New constant for number of higher
12638 XMM registers (xmm16-31 added by AVX512 on x86_64).
12639 (struct i387_xsave): Add space for AVX512 registers.
12640 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12641 Add code to handle AVX512 registers.
12642 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12643 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12644 prototypei from generated file.
12645 (tdesc_amd64_avx512_linux): Likewise.
12646 (init_registers_x32_avx512_linux): Likewise.
12647 (tdesc_x32_avx512_linux): Likewise.
12648 (init_registers_i386_avx512_linux): Likewise.
12649 (tdesc_i386_avx512_linux): Likewise.
12650 (x86_64_regmap): Add AVX512 registers.
12651 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12652 mask.
12653 (initialize_low_arch): Add code to initialize AVX512 registers.
12654
51aa91f9
PA
126552014-04-23 Pedro Alves <palves@redhat.com>
12656
12657 * mem-break.c (find_gdb_breakpoint_at): Make static.
12658 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12659
a4165e94
PA
126602014-04-23 Pedro Alves <palves@redhat.com>
12661
12662 * i386-low.c: Don't include break-common.h here.
12663 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12664 prototype to take target_hw_bp_type as argument instead of a Z
12665 packet char.
12666 * i386-low.h: Include break-common.h here.
12667 (Z_packet_to_hw_type): Declare.
12668 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12669 prototypes.
12670 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12671 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12672 (x86_remove_point): Convert the packet number to a
12673 target_hw_bp_type before calling i386_low_remove_watchpoint.
12674 * win32-i386-low.c (i386_insert_point): Convert the packet number
12675 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12676 (i386_remove_point): Convert the packet number to a
12677 target_hw_bp_type before calling i386_low_remove_watchpoint.
12678
b8acf843
PA
126792014-04-23 Pedro Alves <palves@redhat.com>
12680
12681 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12682
d708bcd1
PA
126832014-04-10 Pedro Alves <palves@redhat.com>
12684
12685 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12686 Check if the condition or command is NULL before checking if the
12687 breakpoint is known. On success, return true.
12688 * mem-break.h (add_breakpoint_condition): Document return.
12689 (add_breakpoint_commands): Add describing comment.
12690 * server.c (skip_to_semicolon): New function.
12691 (process_point_options): Use it.
12692
2eec7d5b
PA
126932014-04-09 Pedro Alves <palves@redhat.com>
12694
12695 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12696 to lwpid_of.
12697
fa96cb38
PA
126982014-02-27 Pedro Alves <palves@redhat.com>
12699
12700 PR 12702
12701 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12702 macros.
12703 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12704 output.
12705 (last_thread_of_process_p): Take a PID argument instead of a
12706 thread pointer.
12707 (linux_wait_for_lwp): Delete.
12708 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12709 functions.
12710 (linux_low_filter_event): New function, party factored out from
12711 linux_wait_for_event.
12712 (linux_wait_for_event): Rename to ...
12713 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12714 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12715 sigsuspend. Check for zombie leaders.
12716 (linux_wait_for_event): Reimplement as wrapper around
12717 linux_wait_for_event_filtered.
12718 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12719 a normal or signal exit is seen, it's the whole process exiting.
12720 (wait_for_sigstop): No longer a for_each_inferior callback.
12721 Rewrite on top of linux_wait_for_event_filtered.
12722 (stop_all_lwps): Call wait_for_sigstop directly.
12723 * server.c (resume, handle_target_event): Handle
12724 TARGET_WAITKIND_NO_RESUMED.
12725
d763de10
JB
127262014-02-26 Joel Brobecker <brobecker@adacore.com>
12727
12728 * win32-low.c (psapi_get_dll_name,
12729 * win32_CreateToolhelp32Snapshot): Delete.
12730 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12731 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12732 Delete.
12733 (handle_load_dll): Add function description.
12734 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12735
850a0f76
JB
127362014-02-26 Joel Brobecker <brobecker@adacore.com>
12737
12738 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12739 Add comment.
12740 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12741 base address when calling win32_add_one_solib.
12742 (handle_load_dll): Delete local variable load_addr.
12743 Remove 0x1000 offset applied to DLL base address when calling
12744 win32_add_one_solib.
12745 (handle_unload_dll): Add comment.
12746
f25b3fc3
JB
127472014-02-26 Joel Brobecker <brobecker@adacore.com>
12748
12749 * win32-low.c (win32_add_all_dlls): Renames
12750 win32_ensure_ntdll_loaded. Rewrite function documentation.
12751 Adjust implementation to always load all DLLs.
12752 Add 0x1000 offset to DLL base address when calling
12753 win32_add_one_solib.
12754 (child_initialization_done): New static global.
12755 (do_initial_child_stuff): Set child_initialization_done to
12756 zero during child initialization, and 1 after. Replace call
12757 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12758 Add comment.
12759 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12760 (handle_unload_dll): Add function documentation.
12761 (get_child_debug_event): Ignore load and unload DLL events
12762 during child initialization.
12763
d86d4aaf
DE
127642014-02-20 Doug Evans <dje@google.com>
12765
3bc32da3 12766 Remove global all_lwps.
d86d4aaf
DE
12767 * inferiors.h (ptid_of): Move here from linux-low.h.
12768 (pid_of, lwpid_of): Ditto.
12769 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12770 parameter is a struct thread_info * now.
12771 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12772 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12773 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12774 directly.
12775 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12776 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12777 * linux-arm-low.c (update_registers_callback): Update, "entry"
12778 parameter is a struct thread_info * now.
12779 Fetch lwpid from current_inferior directly.
12780 (arm_insert_point): Pass &all_threads to find_inferior instead of
12781 &all_lwps.
12782 (arm_remove_point): Ditto.
12783 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12784 (arm_prepare_to_resume): Fetch pid from thread.
12785 (arm_read_description): Fetch lwpid from current_inferior directly.
12786 * linux-low.c (all_lwps): Delete.
12787 (delete_lwp): Delete call to remove_inferior.
12788 (handle_extended_wait): Fetch lwpid from thread.
12789 (add_lwp): Don't set lwp->entry.id. Remove call to
12790 add_inferior_to_list.
12791 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12792 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12793 (kill_one_lwp_callback): Ditto.
12794 (linux_kill): Don't dereference NULL pointer.
12795 Fetch ptid,lwpid from thread.
12796 (get_detach_signal): Fetch ptid from thread.
12797 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12798 Simplify call to regcache_invalidate_thread.
12799 (delete_lwp_callback): Update, "entry" parameter is a
12800 struct thread_info * now. Fetch pid from thread.
12801 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12802 (status_pending_p_callback): Update, "entry" parameter is a
12803 struct thread_info * now. Fetch ptid from thread.
12804 (find_lwp_pid): Update, "entry" parameter is a
12805 struct thread_info * now.
12806 (linux_wait_for_lwp): Fetch pid from thread.
12807 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12808 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12809 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12810 (dequeue_one_deferred_signal): Ditto.
12811 (cancel_breakpoint): Fetch ptid from current_inferior.
12812 (linux_wait_for_event): Pass &all_threads to find_inferior,
12813 not &all_lwps. Fetch ptid, lwpid from thread.
12814 (count_events_callback): Update, "entry" parameter is a
12815 struct thread_info * now.
12816 (select_singlestep_lwp_callback): Ditto.
12817 (select_event_lwp_callback): Ditto.
12818 (cancel_breakpoints_callback): Ditto.
12819 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12820 not &all_lwps.
12821 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12822 (unsuspend_one_lwp): Update, "entry" parameter is a
12823 struct thread_info * now.
12824 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12825 not &all_lwps.
12826 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12827 Fetch lwpid from thread, not lwp.
12828 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12829 Pass &all_threads to find_inferior, not &all_lwps.
12830 (send_sigstop): Fetch lwpid from thread, not lwp.
12831 (send_sigstop_callback): Update, "entry" parameter is a
12832 struct thread_info * now.
12833 (suspend_and_send_sigstop_callback): Ditto.
12834 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12835 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12836 struct thread_info * now.
12837 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12838 from thread, lwp.
12839 (lwp_running): Update, "entry" parameter is a
12840 struct thread_info * now.
12841 (stop_all_lwps): Fetch ptid from thread.
12842 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12843 (linux_resume_one_lwp): Fetch lwpid from thread.
12844 (linux_set_resume_request): Update, "entry" parameter is a
12845 struct thread_info * now. Fetch pid, lwpid from thread.
12846 (resume_status_pending_p): Update, "entry" parameter is a
12847 struct thread_info * now.
12848 (need_step_over_p): Ditto. Fetch lwpid from thread.
12849 (start_step_over): Fetch lwpid from thread.
12850 (linux_resume_one_thread): Update, "entry" parameter is a
12851 struct thread_info * now. Fetch lwpid from thread.
12852 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12853 (proceed_one_lwp): Update, "entry" parameter is a
12854 struct thread_info * now. Fetch lwpid from thread.
12855 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12856 struct thread_info * now.
12857 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12858 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12859 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12860 directly.
12861 (regsets_store_inferior_registers): Ditto.
12862 (fetch_register, store_register): Ditto.
12863 (linux_read_memory, linux_write_memory): Ditto.
12864 (linux_request_interrupt): Ditto.
12865 (linux_read_auxv): Ditto.
12866 (linux_xfer_siginfo): Ditto.
12867 (linux_qxfer_spu): Ditto.
12868 (linux_qxfer_libraries_svr4): Ditto.
12869 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12870 moved to inferiors.h.
12871 (get_lwp): Delete.
12872 (get_thread_lwp): Update.
12873 (struct lwp_info): Delete member "entry". Simplify comment for
12874 member "thread".
12875 (all_lwps): Delete.
12876 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12877 current_inferior directly.
12878 (update_watch_registers_callback): Update, "entry" parameter is a
12879 struct thread_info * now. Fetch pid from thread.
12880 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12881 (mips_insert_point): Fetch lwpid from current_inferior.
12882 Pass &all_threads to find_inferior, not &all_lwps.
12883 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12884 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12885 directly.
12886 (mips_stopped_data_address): Ditto.
12887 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12888 directly.
12889 * linux-tile-low.c (tile_arch_setup): Ditto.
12890 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12891 (update_debug_registers_callback): Update, "entry" parameter is a
12892 struct thread_info * now. Fetch pid from thread.
12893 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12894 Pass &all_threads to find_inferior, not &all_lwps.
12895 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12896 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12897 Pass &all_threads to find_inferior, not &all_lwps.
12898 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12899 (i386_dr_low_get_status): Ditto.
12900 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12901 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12902 (x86_linux_read_description): Ditto.
12903 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12904
3b8361aa
DE
129052014-02-20 Doug Evans <dje@google.com>
12906
12907 * inferiors.c (get_first_inferior): Fix buglet.
12908
f7667f0d
DE
129092014-02-19 Doug Evans <dje@google.com>
12910
12911 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12912 * inferiors.c (add_thread): Change result type to struct thread_info *.
12913 All callers updated.
12914 (add_lwp): Call add_thread here instead of in callers.
12915 All callers updated.
12916 * linux-low.h (get_lwp_thread): Rewrite.
12917 (struct lwp_info): New member "thread".
12918
b3312d80
DE
129192014-02-19 Doug Evans <dje@google.com>
12920
12921 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12922 All callers updated.
12923
ecc6f45c
DE
129242014-02-19 Doug Evans <dje@google.com>
12925
12926 * inferiors.c (add_thread): Fix whitespace.
12927
649ebbca
DE
129282014-02-19 Doug Evans <dje@google.com>
12929
12930 * dll.c (clear_dlls): Replace accessing list implemention details
12931 with API function.
12932 * gdbthread.h (get_first_thread): Declare.
12933 * inferiors.c (for_each_inferior_with_data): New function.
12934 (get_first_thread): New function.
12935 (find_thread_ptid): Simplify.
12936 (get_first_inferior): New function.
12937 (clear_list): Delete.
12938 (one_inferior_p): New function.
12939 (clear_inferior_list): New function.
12940 (clear_inferiors): Update.
12941 * inferiors.h (for_each_inferior_with_data): Declare.
12942 (clear_inferior_list): Declare.
12943 (one_inferior_p): Declare.
12944 (get_first_inferior): Declare.
12945 * linux-low.c (linux_wait_for_event): Replace accessing list
12946 implemention details with API function.
12947 * server.c (target_running): Ditto.
12948 (accumulate_file_name_length): New function.
12949 (emit_dll_description): New function.
12950 (handle_qxfer_libraries): Replace accessing list implemention
12951 details with API function.
12952 (handle_qxfer_threads_worker): New function.
12953 (handle_qxfer_threads_proper): Replace accessing list implemention
12954 details with API function.
12955 (handle_query): Ditto.
12956 (visit_actioned_threads_callback_ftype): New typedef.
12957 (visit_actioned_threads_data): New struct.
12958 (visit_actioned_threads): Rewrite to be find_inferior callback.
12959 (resume): Call find_inferior.
12960 (handle_status): Replace accessing list implemention
12961 details with API function.
12962 (process_serial_event): Replace accessing list implemention details
12963 with API function.
12964 * target.c (set_desired_inferior): Replace accessing list implemention
12965 details with API function.
12966 * tracepoint.c (same_process_p): New function.
12967 (gdb_agent_about_to_close): Replace accessing list implemention
12968 details with API function.
12969 * win32-low.c (child_delete_thread): Replace accessing list
12970 implemention details with API function.
12971 (match_dll_by_basename): New function.
12972 (dll_is_loaded_by_basename): New function.
12973 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12974 details call to dll_is_loaded_by_basename.
12975
80894984
DE
129762014-02-19 Doug Evans <dje@google.com>
12977
12978 * dll.h (struct dll_info): Add comment.
12979 * gdbthread.h (struct thread_info): Add comment.
12980 (current_ptid): Simplify.
12981 * inferiors.c (add_process): Update.
12982 (remove_process): Update.
12983 * inferiors.h (struct process_info): Rename member "head" to "entry".
12984 * linux-low.c (delete_lwp): Update.
12985 (add_lwp): Update.
12986 (last_thread_of_process_p): Update.
12987 (kill_one_lwp_callback, linux_kill): Update.
12988 (status_pending_p_callback): Update.
12989 (wait_for_sigstop): Update. Simplify read of ptid.
12990 (start_step_over): Update.
12991 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12992 (get_lwp_thread): Update.
12993 (struct lwp_info): Rename member "head" to "entry".
12994 * regcache.h (inferior_list_entry): Delete.
12995 * server.c (kill_inferior_callback): Update.
12996 (detach_or_kill_inferior_callback): Update.
12997 (print_started_pid): Update.
12998 (print_attached_pid): Update.
12999 (process_serial_event): Simplify read of ptid.
13000 * thread-db.c (thread_db_create_event): Update.
13001 (thread_db_get_tls_address): Update.
13002 * win32-low.c (current_inferior_ptid): Simplify.
13003
46917d26
TT
130042014-02-19 Tom Tromey <tromey@redhat.com>
13005
13006 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13007 argument.
13008 (target_supports_btrace): Update.
13009
0759a81e
YQ
130102014-02-14 Yao Qi <yao@codesourcery.com>
13011
13012 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13013 (rsp-low-ipa.o): New target.
13014
a7191e8b
TT
130152014-02-12 Tom Tromey <tromey@redhat.com>
13016
13017 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13018 convert_ascii_to_int.
13019 * regcache.c (registers_to_string): Likewise.
13020 * remote-utils.c (decode_M_packet): Likewise.
13021 * server.c (process_serial_event): Likewise.
13022
ff0e980e
TT
130232014-02-12 Tom Tromey <tromey@redhat.com>
13024
13025 * server.c (handle_query, handle_v_run): Use hex2bin, not
13026 unhexify.
13027 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13028
e9371aff
TT
130292014-02-12 Tom Tromey <tromey@redhat.com>
13030
13031 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13032 convert_int_to_ascii.
13033 * regcache.c (registers_to_string, collect_register_as_string):
13034 Likewise.
13035 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13036 Likewise.
13037 * server.c (process_serial_event): Likewise.
13038 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13039 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13040
971dc0b8
TT
130412014-02-12 Tom Tromey <tromey@redhat.com>
13042
13043 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13044 bin2hex, not hexify.
13045 * tracepoint.c (cmd_qtstatus): Likewise.
13046
0a822afb
TT
130472014-02-12 Tom Tromey <tromey@redhat.com>
13048
13049 * remote-utils.c (monitor_output): Pass explicit length to
13050 hexify.
13051
9c3d6531
TT
130522014-02-12 Tom Tromey <tromey@redhat.com>
13053
13054 * tracepoint.c: Include rsp-low.h.
13055 * server.c: Include rsp-low.h.
13056 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13057 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13058 declare.
13059 * remote-utils.c: Include rsp-low.h.
13060 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13061 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13062 (convert_int_to_ascii, convert_ascii_to_int): Move to
13063 common/rsp-low.c.
13064 * regcache.c: Include rsp-low.h.
13065 * ax.c: Include rsp-low.h.
13066 * Makefile.in (SFILES): Add common/rsp-low.c.
13067 (OBS): Add rsp-low.o.
13068 (rsp-low.o): New target.
13069
01fd3ea5
TT
130702014-02-12 Tom Tromey <tromey@redhat.com>
13071
13072 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13073 Include print-utils.h.
13074 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13075 (plongest, thirty_two, phex_nz): Remove.
13076 * Makefile.in (SFILES): Add common/print-utils.c.
13077 (OBS): Add print-utils.o.
13078 (print-utils-ipa.o): New target.
13079 (print-utils.o): New target.
13080 (IPA_OBJS): Add print-utils-ipa.o.
13081
e99dc820
TT
130822014-02-06 Tom Tromey <tromey@redhat.com>
13083
13084 * Makefile.in (SFILES): Fix indentation.
13085
ee1e2d4f
DE
130862014-02-05 Doug Evans <dje@google.com>
13087
13088 * linux-low.c (linux_wait_for_event): Improve comment.
13089 (linux_wait_1): Keep current_inferior in sync with event_child.
13090
f5a02773
DE
130912014-01-22 Doug Evans <dje@google.com>
13092
13093 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13094
87ce2a04
DE
130952014-01-22 Doug Evans <dje@google.com>
13096
13097 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13098 * configure: Regenerate.
13099 * config.in: Regenerate.
13100 * Makefile.in (SFILES): Add debug.c.
13101 (OBS): Add debug.o.
13102 * debug.c: New file.
13103 * debug.h: New file.
13104 * linux-aarch64-low.c (*): Update all debugging printfs to use
13105 debug_printf instead of fprintf.
13106 * linux-arm-low.c (*): Ditto.
13107 * linux-cris-low.c (*): Ditto.
13108 * linux-crisv32-low.c (*): Ditto.
13109 * linux-m32r-low.c (*): Ditto.
13110 * linux-sparc-low.c (*): Ditto.
13111 * linux-x86.c (*): Ditto.
13112 * linux-low.c (*): Ditto.
13113 (linux_wait_1): Add calls to debug_enter, debug_exit.
13114 (linux_wait): Remove redundant debugging printf.
13115 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13116 (linux_resume, unstop_all_lwps): Ditto.
13117 * mem-break.c (*): Update all debugging printfs to use
13118 debug_printf instead of fprintf.
13119 * remote-utils.c (*): Ditto.
13120 * thread-db.c (*): Ditto.
13121 * server.c #include <ctype.h>, "gdb_vecs.h".
13122 (debug_threads): Moved to debug.c.
13123 (*): Update all debugging printfs to use debug_printf instead of
13124 fprintf.
13125 (start_inferior): Replace call to fflush with call to debug_flush.
13126 (monitor_show_help): Mention set debug-format.
13127 (parse_debug_format_options): New function.
13128 (handle_monitor_command): Handle "monitor set debug-format".
13129 (gdbserver_usage): Mention --debug-format.
13130 (main): Parse --debug-format.
13131 * server.h (debug_threads): Declaration moved to debug.h.
13132 #include "debug.h".
13133 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13134 trace_debug_1 that uses debug_printf.
13135 (tracepoint_look_up_symbols): Update all debugging printfs to use
13136 debug_printf instead of fprintf.
13137
e671835b
BS
131382014-01-20 Baruch Siach <baruch@tkos.co.il>
13139
13140 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13141 sys/ptrace.h.
13142
b5737fa9
PA
131432014-01-17 Pedro Alves <palves@redhat.com>
13144
ea38d2a9 13145 PR build/16445
c7faa97a
PA
13146 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13147 defined after including gdb_proc_service.h.
b5737fa9 13148
40ed484e
DE
131492014-01-16 Doug Evans <dje@google.com>
13150
13151 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13152 (match_dll): Use it.
13153
969c39fb
MM
131542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13155
13156 * target.h (target_ops) <read_btrace>: Change parameters and
13157 return type to allow error reporting.
13158 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13159 trace reading errors on.
13160 * linux-low.c (linux_low_read_btrace): Pass trace reading
13161 errors on.
13162 (linux_low_disable_btrace): New.
13163
ab7f45ba
DE
131642014-01-15 Doug Evans <dje@google.com>
13165
13166 * inferiors.c (thread_id_to_gdb_id): Delete.
13167 * inferiors.h (thread_id_to_gdb_id): Delete.
13168
66af0f44
EZ
131692014-01-13 Eli Zaretskii <eliz@gnu.org>
13170
13171 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13172 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13173 versions.
13174
9939e131
PA
131752014-01-08 Pedro Alves <palves@redhat.com>
13176
13177 * server.c (handle_status): Don't discard previous queued stop
13178 replies or thread's pending status here.
13179 (main) <disconnection>: Do it here instead.
13180
b7ea362b
PA
131812014-01-08 Pedro Alves <palves@redhat.com>
13182
13183 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13184 * server.c (visit_actioned_threads, handle_pending_status): New
13185 function.
13186 (handle_v_cont): Factor out parts to ...
13187 (resume): ... this new function. If in all-stop, and a thread
13188 being resumed has a pending status, report it without actually
13189 resuming.
13190 (myresume): Adjust to use the new 'resume' function.
13191 (clear_pending_status_callback, set_pending_status_callback)
13192 (find_status_pending_thread_callback): New functions.
13193 (handle_status): Handle the case of multiple threads having
13194 interesting statuses to report. Report threads' real last signal
13195 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13196 with an interesting thread to report the status for, instead of
13197 always reporting the status of the first thread.
13198
28498c42
JB
131992014-01-01 Joel Brobecker <brobecker@adacore.com>
13200
13201 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13202 * gdbreplay.c (gdbreplay_version): Likewise.
13203
f45c82da
YZ
132042013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13205
13206 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13207 iov.iov_len with the real length in use.
13208
379a5e2d
JB
132092013-12-13 Joel Brobecker <brobecker@adacore.com>
13210
13211 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13212 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13213 for all targets that use win32-low.c.
13214 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13215 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13216
4210d83e
PA
132172013-12-13 Pedro Alves <palves@redhat.com>
13218
13219 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13220 if equal to TARGET_WAITKIND_LOADED.
13221 * win32-low.c (cached_status): New static global.
13222 (win32_wait): Add declaration.
13223 (do_initial_child_stuff): Flush all initial pending debug events
13224 up to the initial breakpoint.
13225 (win32_wait): If CACHED_STATUS was set, return that instead
13226 of doing a real wait. Remove the code resuming the execution
13227 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13228 during the initial phase. Also remove the code changing
13229 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13230 TARGET_WAITKIND_STOPPED.
13231
e7f0d979
YQ
132322013-12-11 Yao Qi <yao@codesourcery.com>
13233
13234 * notif.c (handle_notif_ack): Return 0 if no notification
13235 matches.
13236
ebcf782c
DE
132372013-11-20 Doug Evans <dje@google.com>
13238
13239 * linux-low.c (linux_set_resume_request): Fix comment.
13240
20ad9378
DE
132412013-11-20 Doug Evans <dje@google.com>
13242
13243 * linux-low.c (resume_status_pending_p): Tweak comment.
13244
a196ebeb
WT
132452013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13246
13247 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13248 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13249 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13250 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13251 (srv_amd64_regobj): Add amd64-mpx.o.
13252 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13253 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13254 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13255 * i387-fp.c (num_pl_bnd_register) Added constant.
13256 (num_pl_bnd_cfg_registers) Added constant.
13257 (struct i387_xsave) Added reserved area and MPX fields.
13258 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13259 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13260 function.
13261 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13262 (init_registers_amd64_mpx_linux): Declare new function.
13263 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13264 (x86_64_regmap): Add MPX registers.
13265 (x86_linux_read_description): Add MPX case.
13266 (initialize_low_arch): Initialize MPX targets.
13267
0080a2f6
TT
132682013-11-18 Tom Tromey <tromey@redhat.com>
13269
13270 * configure: Rebuild.
13271 * configure.ac: Don't check for stdlib.h.
13272 * gdbreplay.c: Unconditionally include stdlib.h.
13273
2978b111
TT
132742013-11-18 Tom Tromey <tromey@redhat.com>
13275
13276 * config.in: Rebuild.
13277 * configure: Rebuild.
13278 * configure.ac: Don't use AC_HEADER_DIRENT.
13279
a3d08894
TT
132802013-11-18 Tom Tromey <tromey@redhat.com>
13281
13282 * server.h: Don't check HAVE_STRING_H.
13283 * gdbreplay.c: Don't check HAVE_STRING_H.
13284 * configure: Rebuild.
13285
0a5dd17d
TT
132862013-11-18 Tom Tromey <tromey@redhat.com>
13287
13288 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13289 LIBGNU.
13290
1bd2f0ba
TT
132912013-11-08 Tom Tromey <tromey@redhat.com>
13292
13293 * configure, config.in: Rebuild.
13294 * configure.ac: Remove unused configury.
13295
3266f10b
TT
132962013-11-08 Tom Tromey <tromey@redhat.com>
13297
13298 * acinclude.m4: Include common.m4, codeset.m4.
13299 * configure, config.in: Rebuild.
13300 * configure.ac: Use GDB_AC_COMMON.
13301
6682d959
AA
133022013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13303
13304 * linux-s390-low.c (HWCAP_S390_TE): New define.
13305 (s390_arch_setup): Consider the TE field in the HWCAP for
13306 determining 'have_regset_tdb'.
13307
fd0a4d76
SDJ
133082013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13309
13310 PR gdb/16014
13311 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13312 call to sizeof.
13313
1a3d890b
PA
133142013-10-02 Pedro Alves <palves@redhat.com>
13315
13316 * server.c (process_serial_event): Don't output "GDBserver
13317 exiting" if GDB is connected through stdio.
13318 * target.c (mywait): Likewise, be silent if GDB is connected
13319 through stdio.
13320
97ad4581
JB
133212013-10-01 Joel Brobecker <brobecker@adacore.com>
13322
13323 * lynx-low.c (lynx_add_threads_after_attach): New function.
13324 (lynx_attach): Remove call to add_thread. Add call to
13325 lynx_add_threads_after_attach instead.
13326
5b4e221c
MF
133272013-09-28 Mike Frysinger <vapier@gentoo.org>
13328
13329 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13330 * config.in, configure: Regenerated.
13331
ee47b2f8
YQ
133322013-09-18 Yao Qi <yao@codesourcery.com>
13333
13334 PR server/15959
13335 * server.c (start_inferior): Clear 'resume_info'.
13336
d6707650 133372013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13338
d6707650
JW
13339 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13340 for each register.
13341
9243dd0e 133422013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13343
9243dd0e
JW
13344 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13345 linux-tile-low.o to srv_tgtobj.
13346
c623a6ef
WN
133472013-09-16 Will Newton <will.newton@linaro.org>
13348
13349 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13350 out regs.
13351
fb71d39e
PA
133522013-09-06 Pedro Alves <palves@redhat.com>
13353
13354 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13355 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13356 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13357 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13358 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13359 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13360
8e7e9910
PA
133612013-09-06 Pedro Alves <palves@redhat.com>
13362
13363 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13364 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13365
7c3a12ca
PA
133662013-09-06 Pedro Alves <palves@redhat.com>
13367
13368 * linux-amd64-ipa.c: Include tracepoint.h.
13369 * linux-i386-ipa.c: Include tracepoint.h.
13370
8eb3d7b6
RW
133712013-09-06 Ricard Wanderlof <ricardw@axis.com>
13372
13373 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13374 (ps_get_thread_area): New function.
13375
eddddb9d
RW
133762013-09-06 Ricard Wanderlof <ricardw@axis.com>
13377
13378 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13379 (initialize_low_arch): Call init_registers_crisv32 rather than
13380 init_register_crisv32.
13381
533b0600
PA
133822013-09-05 Pedro Alves <palves@redhat.com>
13383
13384 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13385 to ...
13386 * hostio.h: ... this new file.
13387 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13388 win32-low.c: Include hostio.h.
13389
0ce3d3b5
PA
133902013-09-05 Pedro Alves <palves@redhat.com>
13391
13392 * server.h (gdb_client_data, handler_func, callback_handler_func)
13393 (delete_file_handler, add_file_handler, append_callback_event)
13394 (delete_callback_event, start_event_loop, initialize_event_loop):
13395 Move to event-loop.h and include it.
13396 * event-loop.h: New file.
13397
799cdc37
PA
133982013-09-05 Pedro Alves <palves@redhat.com>
13399
13400 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13401 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13402 (loaded_dll, unloaded_dll): Move to ...
13403 * dll.h: ... this new file.
13404 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13405
6a6bbd9d
PA
134062013-09-05 Pedro Alves <palves@redhat.com>
13407
13408 * server.h (current_process, get_thread_process, all_processes)
13409 (add_inferior_to_list, for_each_inferior, current_inferior)
13410 (remove_inferior, add_process, remove_process, find_process_pid)
13411 (have_started_inferiors_p, have_attached_inferiors_p)
13412 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13413 (clear_inferiors, find_inferior, find_inferior_id)
13414 (inferior_target_data, set_inferior_target_data)
13415 (inferior_regcache_data, set_inferior_regcache_data): Move to
13416 inferiors.h, and include it.
13417 * inferiors.h: New file.
13418
f699aaba
PA
134192013-09-05 Pedro Alves <palves@redhat.com>
13420
13421 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13422 Move ...
72f4393d 13423 * ax.h: ... here.
f699aaba 13424
c144c7a0
PA
134252013-09-05 Pedro Alves <palves@redhat.com>
13426
13427 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13428 tracepoint.h.
13429 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13430 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13431 (handle_tracepoint_general_set, handle_tracepoint_query)
13432 (tracepoint_finished_step, tracepoint_was_hit)
13433 (release_while_stepping_state_list, current_traceframe)
13434 (in_readonly_region, traceframe_read_mem)
13435 (fetch_traceframe_registers, traceframe_read_sdata)
13436 (traceframe_read_info, struct fast_tpoint_collect_status)
13437 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13438 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13439 (supply_fast_tracepoint_registers)
13440 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13441 (ipa_tdesc, claim_trampoline_space)
13442 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13443 (agent_mem_read, agent_get_trace_state_variable_value)
13444 (agent_set_trace_state_variable_value, agent_tsv_read)
13445 (agent_mem_read_string, get_raw_reg_func_addr)
13446 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13447 * tracepoint.h: ... this new file.
13448
ff42e6ab
PA
134492013-09-05 Pedro Alves <palves@redhat.com>
13450
13451 * server.h (perror_with_name, error, fatal, warning, paddress)
13452 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13453 include it.
13454 * utils.h: New file.
13455
541af0f4
PA
134562013-09-05 Pedro Alves <palves@redhat.com>
13457
13458 * server.h (remote_debug, noack_mode, transport_is_reliable)
13459 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13460 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13461 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13462 (write_enn, initialize_async_io, enable_async_io)
13463 (disable_async_io, check_remote_input_interrupt_request)
13464 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13465 (dead_thread_notify, prepare_resume_reply)
13466 (decode_address_to_semicolon, decode_address, decode_m_packet)
13467 (decode_M_packet, decode_X_packet, decode_xfer_write)
13468 (decode_search_memory_packet, unhexify, hexify)
13469 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13470 (look_up_one_symbol, relocate_instruction)
13471 (monitor_output): Move to remote-utils.h, and include it.
13472 * remote-utils.h: New file.
13473
eebdf26b
PA
134742013-09-05 Pedro Alves <palves@redhat.com>
13475
13476 * server.h (_): Delete.
13477
3aafd2ff
PA
134782013-09-02 Pedro Alves <palves@redhat.com>
13479
13480 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13481 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13482 allocated.
13483 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13484
cee83bcb
PM
134852013-09-02 Pierre Muller <muller@sourceware.org>
13486
13487 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13488 or WriteProcessMemory complete successfully and handle
13489 ERROR_PARTIAL_COPY error.
13490
9a13b2fa
PA
134912013-09-02 Pedro Alves <palves@redhat.com>
13492
13493 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13494 error instead of EIO.
13495
602e3198
JK
134962013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13497
13498 PR server/15604
13499 * linux-low.c: Include filestuff.h.
13500 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13501 * lynx-low.c: Include filestuff.h.
13502 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13503 * server.c: Include filestuff.h.
13504 (main): Call notice_open_fds.
13505 * spu-low.c: Include filestuff.h.
13506 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13507
96d7229d
LM
135082013-08-22 Luis Machado <lgustavo@codesourcery.com>
13509
13510 * Makefile.in: Explain why ../target and ../nat are not
13511 listed as include file search paths.
13512 (linux-waitpid.o): New object file rule.
13513 * configure.srv (srv_native_linux_obj): New variable.
13514 Replace all occurrences of linux native object files with
13515 $srv_native_linux_obj.
13516 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13517 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13518 (linux_enable_event_reporting): Remove declaration.
13519 (my_waitpid): Moved to common/linux-waitpid.c.
13520 (linux_wait_for_event): Pass ptid when calling
13521 linux_enable_event_reporting.
13522 (linux_supports_tracefork_flag): Remove.
13523 (linux_enable_event_reporting): Likewise.
13524 (linux_tracefork_grandchild): Remove.
13525 (STACK_SIZE): Moved to common/linux-ptrace.c.
13526 (linux_tracefork_child): Remove.
13527 (linux_test_for_tracefork): Remove.
13528 (linux_look_up_symbols): Call linux_supports_traceclone.
13529 (initialize_low): Remove call to linux_test_for_tracefork.
13530 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13531 common/linux-ptrace.h.
13532 (PTRACE_TYPE_ARG4): Likewise.
13533 Include linux-ptrace.h.
13534
32940073
PA
135352013-08-21 Pedro Alves <palves@redhat.com>
13536
13537 * config.in: Renegerate.
13538
33b60d58 135392013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13540
33b60d58
LM
13541 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13542 (SFILES): Remove $(srcdir)/common/target-common.c and
13543 add $(srcdir)/target/waitstatus.c.
13544 (OBS): Remove target-common.o and add waitstatus.o.
13545 (server_h): Remove $(srcdir)/../common/target-common.h and
13546 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13547 and $(srcdir)/../target/waitstatus.h.
13548 (target-common.o): Remove.
13549 (waitstatus.o): New target object file.
13550 * target.h: Do not include target-common.h and
13551 include target/resume.h, target/wait.h and
13552 target/waitstatus.h.
13553
b8e1b30e
LM
135542013-08-13 Luis Machado <lgustavo@codesourcery.com>
13555
13556 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13557 to PTRACE_TYPE_ARG3.
13558 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13559 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13560 PTRACE_TYPE_ARG4.
13561 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13562 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13563
7a60ad40
YQ
135642013-07-27 Jie Zhang <jie@codesourcery.com>
13565 Daniel Jacobowitz <dan@codesourcery.com>
13566 Yao Qi <yao@codesourcery.com>
13567
13568 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13569 (mips-linux-watch.o): New rule.
13570 (mips_linux_watch_h): New variable.
13571 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13572 srv_tgtobj.
13573 * linux-mips-low.c: Include mips-linux-watch.h.
13574 (struct arch_process_info, struct arch_lwp_info): New.
13575 (update_watch_registers_callback): New function.
13576 (mips_linux_new_process, mips_linux_new_thread) New functions.
13577 (mips_linux_prepare_to_resume, mips_insert_point): New
13578 functions.
13579 (mips_remove_point, mips_stopped_by_watchpoint): New
13580 functions.
13581 (rsp_bp_type_to_target_hw_bp_type): New function.
13582 (mips_stopped_data_address): New function.
13583 (the_low_target): Add watchpoint support functions.
13584
de6f69ad
YQ
135852013-07-27 Yao Qi <yao@codesourcery.com>
13586
13587 * i386-low.c: Include break-common.h.
13588 (enum target_hw_bp_type): Remove.
13589
3360c0bf
LM
135902013-07-24 Luis Machado <lgustavo@codesourcery.com>
13591
13592 * Makefile.in (SFILES): /common/target-common.c.
13593 (OBS): Add target-common.o.
13594 (server_h): Add $(srcdir)/../common/target-common.h.
13595 (target-common.o): New target.
13596 * server.c (queue_stop_reply_callback): Free
13597 status string after use.
13598 * target.c (target_waitstatus_to_string): Remove.
13599 * target.h: Include target-common.h.
13600 (resume_kind): Likewise.
13601 (target_waitkind): Likewise.
13602 (target_waitstatus): Likewise.
13603 (TARGET_WNOHANG): Likewise.
13604
bd885420
YQ
136052013-07-04 Yao Qi <yao@codesourcery.com>
13606
13607 * Makefile.in (host_alias): Use @host_noncanonical@.
13608 (target_alias): Use @target_noncanonical@.
13609 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13610 ACX_NONCANONICAL_HOST.
13611 * configure: Regenerated.
13612
13613 Revert:
13614 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13615
13616 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13617 * configure: Rebuild.
13618 * Makefile.in (version_host, version_target): Get from configure.
13619 (version.c): Use $(version_host) and $(version_target).
13620
17ef446e
PA
136212013-07-03 Pedro Alves <palves@redhat.com>
13622
13623 * Makefile.in (config.status): Depend on development.sh.
13624 * acinclude.m4: Include libmcheck.m4.
13625 * configure: Regenerate.
13626
7a9a7487
MG
136272013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13628
13629 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13630 attribute inside the parentheses.
13631 (winapi_DebugSetProcessKillOnExit): Ditto.
13632 (winapi_DebugBreakProcess): Ditto.
13633 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13634
49b64de6
MG
136352013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13636
13637 * notif.h (notif_event): Add a dummy member to avoid compiler
13638 errors.
13639
d5749ee7
PA
136402013-07-01 Pedro Alves <palves@redhat.com>
13641
13642 * hostio.c (HOSTIO_PATH_MAX): Define.
13643 (require_filename, handle_open, handle_unlink, handle_readlink):
13644 Use it.
13645
d8d2a3ee
PA
136462013-07-01 Pedro Alves <palves@redhat.com>
13647
13648 * server.h: Include "pathmax.h".
13649 * linux-low.c: Don't include sys/param.h.
13650 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13651 MAXPATHLEN.
13652 * win32-low.c: Don't include sys/param.h.
13653 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13654
bc7dea8d
PA
136552013-07-01 Pedro Alves <palves@redhat.com>
13656
13657 * event-loop.c: Don't check HAVE_UNISTD_H before including
13658 <unistd.h>.
13659 * gdbreplay.c: Likewise.
13660 * remote-utils.c: Likewise.
13661 * server.c: Likewise.
13662 * configure.ac: Don't check for unistd.h.
13663 * configure: Regenerate.
13664
d6c2da54
TT
136652013-06-28 Tom Tromey <tromey@redhat.com>
13666
13667 * Makefile.in (version.c): Use version.in, not
13668 common/version.in.
13669
257b6bec
MG
136702013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13671
13672 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13673 * configure: Rebuild.
13674 * Makefile.in (version_host, version_target): Get from configure.
13675 (version.c): Use $(version_host) and $(version_target).
13676
86ebe149
DK
136772013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13678
13679 Fix trace-status to output user name without trailing colon.
13680 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13681
f30aa5af
DK
136822013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13683
13684 Fix trace-status to output proper start-time and stop-time.
13685 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13686 output start time and stop time in hex as gdb expects.
13687
28a93511
YQ
136882013-06-26 Pedro Alves <pedro@codesourcery.com>
13689
13690 * tracepoint.c (build_traceframe_info_xml): Output trace state
13691 variables present in the trace buffer.
13692
01208463
TT
136932013-06-24 Tom Tromey <tromey@redhat.com>
13694
13695 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13696 create-version.sh.
13697 (version.o): Remove.
13698 * gdbreplay.c: Include version.h.
13699 (version, host_name): Don't declare.
13700 * server.h: Include version.h.
13701 (version, host_name): Don't declare.
13702
760256f9
PA
137032013-06-12 Pedro Alves <palves@redhat.com>
13704
13705 * linux-x86-low.c (linux_is_elf64): Delete global.
13706 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13707 with local linux_pid_exe_is_elf_64_file use.
13708
030031ee
PA
137092013-06-11 Pedro Alves <palves@redhat.com>
13710
13711 * linux-low.c (regset_disabled, disable_regset): New functions.
13712 (regsets_fetch_inferior_registers)
13713 (regsets_store_inferior_registers): Use them.
13714 (initialize_regsets_info); Don't allocate the disabled_regsets
13715 array here.
13716 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13717 comment.
13718
5da6eb0a
PA
137192013-06-11 Pedro Alves <palves@redhat.com>
13720
13721 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13722 xmalloc.
13723
7e5aaa09
PA
137242013-06-11 Pedro Alves <palves@redhat.com>
13725
13726 * linux-x86-low.c (initialize_low_arch): Call
13727 init_registers_x32_avx_linux.
13728
d878444c
JK
137292013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13730
13731 Fix compatibility with Android Bionic.
13732 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13733 it is not empty.
13734
3aee8918
PA
137352013-06-07 Pedro Alves <palves@redhat.com>
13736
5f2b57b5 13737 PR server/14823
3aee8918
PA
13738 * Makefile.in (OBS): Add tdesc.o.
13739 (IPA_OBJS): Add tdesc-ipa.o.
13740 (tdesc-ipa.o): New rule.
13741 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13742 interface.
13743 * linux-low.c (new_inferior): Delete.
13744 (disabled_regsets, num_regsets): Delete.
13745 (linux_add_process): Adjust to set the new per-process
13746 new_inferior flag.
13747 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13748 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13749 was a stop. When calling arch_setup, switch the current inferior
13750 to the thread that got an event.
13751 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13752 (regsets_fetch_inferior_registers)
13753 (regsets_store_inferior_registers): New regsets_info parameter.
13754 Adjust to use it.
13755 (linux_register_in_regsets): New regs_info parameter. Adjust to
13756 use it.
13757 (register_addr, fetch_register, store_register): New usrregs_info
13758 parameter. Adjust to use it.
13759 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13760 parameter regs_info. Adjust to use it.
13761 (linux_fetch_registers): Get the current inferior's regs_info, and
13762 adjust to use it.
13763 (linux_store_registers): Ditto.
13764 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13765 (initialize_low): Don't initialize the target_regsets here. Call
13766 initialize_low_arch.
13767 * linux-low.h (target_regsets): Delete declaration.
13768 (struct regsets_info): New.
13769 (struct usrregs_info): New.
13770 (struct regs_info): New.
13771 (struct process_info_private) <new_inferior>: New field.
13772 (struct linux_target_ops): Delete the num_regs, regmap, and
13773 regset_bitmap fields. New field regs_info.
13774 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13775 * i387-fp.c (num_xmm_registers): Delete.
13776 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13777 calls to new interface.
13778 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13779 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13780 Infer the number of xmm registers from the regcache's target
13781 description.
13782 * i387-fp.h (num_xmm_registers): Delete.
13783 * inferiors.c (add_thread): Don't install the thread's regcache
13784 here.
13785 * proc-service.c (gregset_info): Fetch the current inferior's
13786 regs_info. Adjust to use it.
13787 * regcache.c: Include tdesc.h.
13788 (register_bytes, reg_defs, num_registers)
13789 (gdbserver_expedite_regs): Delete.
13790 (get_thread_regcache): If the thread doesn't have a regcache yet,
13791 create one, instead of aborting gdbserver.
13792 (regcache_invalidate_one): Rename to ...
13793 (regcache_invalidate_thread): ... this.
13794 (regcache_invalidate_one): New.
13795 (regcache_invalidate): Only invalidate registers of the current
13796 process.
13797 (init_register_cache): Add target_desc parameter, and use it.
13798 (new_register_cache): Ditto. Assert the target description has a
13799 non zero registers_size.
13800 (regcache_cpy): Add assertions. Adjust.
13801 (realloc_register_cache, set_register_cache): Delete.
13802 (registers_to_string, registers_from_string): Adjust.
13803 (find_register_by_name, find_regno, find_register_by_number)
13804 (register_cache_size): Add target_desc parameter, and use it.
13805 (free_register_cache_thread, free_register_cache_thread_one)
13806 (regcache_release, register_cache_size): New.
13807 (register_size): Add target_desc parameter, and use it.
13808 (register_data, supply_register, supply_register_zeroed)
13809 (supply_regblock, supply_register_by_name, collect_register)
13810 (collect_register_as_string, collect_register_by_name): Adjust.
13811 * regcache.h (struct target_desc): Forward declare.
13812 (struct regcache) <tdesc>: New field.
13813 (init_register_cache, new_register_cache): Add target_desc
13814 parameter.
13815 (regcache_invalidate_thread): Declare.
13816 (regcache_invalidate_one): Delete declaration.
13817 (regcache_release): Declare.
13818 (find_register_by_number, register_cache_size, register_size)
13819 (find_regno): Add target_desc parameter.
13820 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13821 declarations.
13822 * remote-utils.c: Include tdesc.h.
13823 (outreg, prepare_resume_reply): Adjust.
13824 * server.c: Include tdesc.h.
13825 (gdbserver_xmltarget): Delete declaration.
13826 (get_features_xml, process_serial_event): Adjust.
13827 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13828 declare.
13829 (struct process_info) <tdesc>: New field.
13830 (ipa_tdesc): Declare.
13831 * tdesc.c: New file.
13832 * tdesc.h: New file.
13833 * tracepoint.c: Include tdesc.h.
13834 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13835 (get_context_regcache): Adjust to pass ipa_tdesc down.
13836 (do_action_at_tracepoint): Adjust to get the register cache size
13837 from the context regcache's description.
13838 (traceframe_walk_blocks): Adjust to get the register cache size
13839 from the current trace frame's description.
13840 (traceframe_get_pc): Adjust to get current trace frame's
13841 description and pass it down.
13842 (gdb_collect): Adjust to get the register cache size from the
13843 IPA's description.
13844 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13845 (gdbserver_xmltarget): Delete.
13846 (initialize_low_tracepoint): Set the ipa's target description.
13847 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13848 (initialize_low_tracepoint): Set the ipa's target description.
13849 * linux-x86-low.c: Include tdesc.h.
13850 [__x86_64__] (is_64bit_tdesc): New.
13851 (ps_get_thread_area, x86_get_thread_area): Use it.
13852 (i386_cannot_store_register): Rename to ...
13853 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13854 (i386_cannot_fetch_register): Rename to ...
13855 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13856 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13857 to new interface.
13858 (target_regsets): Rename to ...
13859 (x86_regsets): ... this.
13860 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13861 interface.
13862 (x86_siginfo_fixup): Use is_64bit_tdesc.
13863 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13864 (tdesc_x32_avx_linux, tdesc_x32_linux)
13865 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13866 Declare.
13867 (x86_linux_update_xmltarget): Delete.
13868 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13869 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13870 (AMD64_LINUX_USER64_CS): New.
13871 (x86_linux_read_description): New, based on
13872 x86_linux_update_xmltarget.
13873 (same_process_callback): New.
13874 (x86_arch_setup_process_callback): New.
13875 (x86_linux_update_xmltarget): New.
13876 (x86_regsets_info): New.
13877 (amd64_linux_regs_info): New.
13878 (i386_linux_usrregs_info): New.
13879 (i386_linux_regs_info): New.
13880 (x86_linux_regs_info): New.
13881 (x86_arch_setup): Reimplement.
13882 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13883 (x86_emit_ops): Ditto.
13884 (the_low_target): Adjust. Install x86_linux_regs_info,
13885 x86_cannot_fetch_register, and x86_cannot_store_register.
13886 (initialize_low_arch): New.
13887 * linux-ia64-low.c (tdesc_ia64): Declare.
13888 (ia64_fetch_register): Adjust.
13889 (ia64_usrregs_info, regs_info): New globals.
13890 (ia64_regs_info): New function.
13891 (the_low_target): Adjust.
13892 (initialize_low_arch): New function.
13893 * linux-sparc-low.c (tdesc_sparc64): Declare.
13894 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13895 Adjust.
13896 (sparc_arch_setup): New function.
13897 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13898 (the_low_target): Adjust.
13899 (initialize_low_arch): New function.
13900 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13901 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13902 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13903 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13904 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13905 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13906 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13907 (tdesc_powerpc_isa205_vsx64l): Declare.
13908 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13909 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13910 (ppc_set_pc, ppc_get_hwcap): Adjust.
13911 (ppc_usrregs_info): Forward declare.
13912 (!__powerpc64__) ppc_regmap_adjusted: New global.
13913 (ppc_arch_setup): Adjust to the current process'es target
13914 description.
13915 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13916 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13917 (ppc_store_evrregset): Adjust.
13918 (target_regsets): Rename to ...
13919 (ppc_regsets): ... this, and make static.
13920 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13921 (ppc_regs_info): New function.
13922 (the_low_target): Adjust.
13923 (initialize_low_arch): New function.
13924 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13925 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13926 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13927 (tdesc_s390x_linux64v2): Declare.
13928 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13929 (s390_fill_gregset, s390_store_last_break): Adjust.
13930 (target_regsets): Rename to ...
13931 (s390_regsets): ... this, and make static.
13932 (s390_get_pc, s390_set_pc): Adjust.
13933 (s390_get_hwcap): New target_desc parameter, and use it.
13934 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13935 (s390_arch_setup): Adjust to set the current process'es target
13936 description. Don't adjust the regmap.
13937 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13938 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13939 (regs_info_3264): New globals.
13940 (s390_regs_info): New function.
13941 (the_low_target): Adjust.
13942 (initialize_low_arch): New function.
13943 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13944 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13945 [__mips64] (init_registers_mips_linux)
13946 (init_registers_mips_dsp_linux): Delete defines.
13947 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13948 (have_dsp): New global.
13949 (mips_read_description): New, based on mips_arch_setup.
13950 (mips_arch_setup): Reimplement.
13951 (get_usrregs_info): New function.
13952 (mips_cannot_fetch_register, mips_cannot_store_register)
13953 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13954 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13955 (target_regsets): Rename to ...
13956 (mips_regsets): ... this, and make static.
13957 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13958 (dsp_regs_info, regs_info): New globals.
13959 (mips_regs_info): New function.
13960 (the_low_target): Adjust.
13961 (initialize_low_arch): New function.
13962 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13963 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13964 Declare.
13965 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13966 (arm_read_description): New, with bits factored from
13967 arm_arch_setup.
13968 (arm_arch_setup): Reimplement.
13969 (target_regsets): Rename to ...
13970 (arm_regsets): ... this, and make static.
13971 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13972 (arm_regs_info): New function.
13973 (the_low_target): Adjust.
13974 (initialize_low_arch): New function.
13975 * linux-m68k-low.c (tdesc_m68k): Declare.
13976 (target_regsets): Rename to ...
13977 (m68k_regsets): ... this, and make static.
13978 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13979 (m68k_regs_info): New function.
13980 (m68k_arch_setup): New function.
13981 (the_low_target): Adjust.
13982 (initialize_low_arch): New function.
13983 * linux-sh-low.c (tdesc_sharch): Declare.
13984 (target_regsets): Rename to ...
13985 (sh_regsets): ... this, and make static.
13986 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13987 (sh_regs_info, sh_arch_setup): New functions.
13988 (the_low_target): Adjust.
13989 (initialize_low_arch): New function.
13990 * linux-bfin-low.c (tdesc_bfin): Declare.
13991 (bfin_arch_setup): New function.
13992 (bfin_usrregs_info, regs_info): New globals.
13993 (bfin_regs_info): New function.
13994 (the_low_target): Adjust.
13995 (initialize_low_arch): New function.
13996 * linux-cris-low.c (tdesc_cris): Declare.
13997 (cris_arch_setup): New function.
13998 (cris_usrregs_info, regs_info): New globals.
13999 (cris_regs_info): New function.
14000 (the_low_target): Adjust.
14001 (initialize_low_arch): New function.
14002 * linux-cris-low.c (tdesc_crisv32): Declare.
14003 (cris_arch_setup): New function.
14004 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14005 (cris_regs_info): New function.
14006 (the_low_target): Adjust.
14007 (initialize_low_arch): New function.
14008 * linux-m32r-low.c (tdesc_m32r): Declare.
14009 (m32r_arch_setup): New function.
14010 (m32r_usrregs_info, regs_info): New globals.
14011 (m32r_regs_info): Adjust.
14012 (initialize_low_arch): New function.
14013 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14014 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14015 (tic6x_usrregs_info): Forward declare.
14016 (tic6x_read_description): New function, based on ...
14017 (tic6x_arch_setup): ... this. Reimplement.
14018 (target_regsets): Rename to ...
14019 (tic6x_regsets): ... this, and make static.
14020 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14021 (tic6x_regs_info): New function.
14022 (the_low_target): Adjust.
14023 (initialize_low_arch): New function.
14024 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14025 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14026 (target_regsets): Rename to ...
14027 (xtensa_regsets): ... this, and make static.
14028 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14029 globals.
14030 (xtensa_arch_setup, xtensa_regs_info): New functions.
14031 (the_low_target): Adjust.
14032 (initialize_low_arch): New function.
14033 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14034 (nios2_arch_setup): Set the current process'es tdesc.
14035 (target_regsets): Rename to ...
14036 (nios2_regsets): ... this.
14037 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14038 (nios2_regs_info): New function.
14039 (the_low_target): Adjust.
14040 (initialize_low_arch): New function.
a261b8f5
PA
14041 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14042 (aarch64_arch_setup): Set the current process'es tdesc.
14043 (target_regsets): Rename to ...
14044 (aarch64_regsets): ... this.
14045 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14046 (aarch64_regs_info): New function.
14047 (the_low_target): Adjust.
14048 (initialize_low_arch): New function.
3aee8918
PA
14049 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14050 globals.
14051 (target_regsets): Rename to ...
14052 (tile_regsets): ... this.
14053 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14054 (tile_regs_info): New function.
14055 (tile_arch_setup): Set the current process'es tdesc.
14056 (the_low_target): Adjust.
14057 (initialize_low_arch): New function.
14058 * spu-low.c (tdesc_spu): Declare.
14059 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14060 * win32-arm-low.c (tdesc_arm): Declare.
14061 (arm_arch_setup): New function.
14062 (the_low_target): Install arm_arch_setup instead of
14063 init_registers_arm.
14064 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14065 (init_windows_x86): Rename to ...
14066 (i386_arch_setup): ... this. Set `win32_tdesc'.
14067 (the_low_target): Adjust.
14068 * win32-low.c (win32_tdesc): New global.
14069 (child_add_thread): Don't create the thread cache here.
14070 (do_initial_child_stuff): Set the new process'es tdesc.
14071 * win32-low.h (struct target_desc): Forward declare.
14072 (win32_tdesc): Declare.
14073 * lynx-i386-low.c (tdesc_i386): Declare global.
14074 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14075 * lynx-low.c (lynx_tdesc): New global.
14076 (lynx_add_process): Set the new process'es tdesc.
14077 * lynx-low.h (struct target_desc): Forward declare.
14078 (lynx_tdesc): Declare global.
14079 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14080 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14081 * nto-low.c (nto_tdesc): New global.
14082 (do_attach): Set the new process'es tdesc.
14083 * nto-low.h (struct target_desc): Forward declare.
14084 (nto_tdesc): Declare.
14085 * nto-x86-low.c (tdesc_i386): Declare.
14086 (nto_x86_arch_setup): Set `nto_tdesc'.
14087
b1fbec62
GB
140882013-06-04 Gary Benson <gbenson@redhat.com>
14089
14090 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14091 to qSupported response when appropriate.
14092 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14093 with nonzero-length annex.
14094 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14095 arguments supplied in annex.
14096
d1ec4ce7
DE
140972013-05-31 Doug Evans <dje@google.com>
14098
ac44adcb 14099 PR server/15594
d1ec4ce7
DE
14100 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14101 64 bits in 64-cross-32 environment.
14102
9b25f2d3
PA
141032013-05-28 Pedro Alves <palves@redhat.com>
14104
14105 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14106 (aarch64-without-fpu.c): Delete rule.
14107 * configure.srv (aarch64*-*-linux*): Remove references to
14108 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14109 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14110 declaration.
14111
6740dc9c
PA
141122013-05-24 Pedro Alves <palves@redhat.com>
14113
14114 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14115 instead of strchr/decode_address. Error if the range isn't split
14116 with a ','. Don't assume there's be a ':' in the action.
14117
c2d6af84
PA
141182013-05-23 Yao Qi <yao@codesourcery.com>
14119 Pedro Alves <palves@redhat.com>
14120
14121 * linux-low.c (lwp_in_step_range): New function.
14122 (linux_wait_1): If the thread was range stepping and stopped
14123 outside the stepping range, report the stop to GDB. Otherwise,
14124 continue stepping. Add range stepping debug output.
14125 (linux_set_resume_request): Copy the step range from the resume
14126 request to the lwp.
14127 (linux_supports_range_stepping): New.
14128 (linux_target_ops) <supports_range_stepping>: Set to
14129 linux_supports_range_stepping.
14130 * linux-low.h (struct linux_target_ops)
14131 <supports_range_stepping>: New field.
14132 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14133 * linux-x86-low.c (x86_supports_range_stepping): New.
14134 (the_low_target) <supports_range_stepping>: Set to
14135 x86_supports_range_stepping.
14136 * server.c (handle_v_cont): Handle 'r' action.
14137 (handle_v_requests): Append ";r" if the target supports range
14138 stepping.
14139 * target.h (struct thread_resume) <step_range_start,
14140 step_range_end>: New fields.
14141 (struct target_ops) <supports_range_stepping>:
14142 New field.
14143 (target_supports_range_stepping): New macro.
14144
58794e1a
JB
141452013-05-17 Joel Brobecker <brobecker@adacore.com>
14146
14147 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14148 confusion in comment.
14149
d631c5a7
JB
141502013-05-17 Joel Brobecker <brobecker@adacore.com>
14151
14152 * lynx-low.c (struct process_info_private): New type.
14153 (lynx_add_process): New function.
14154 (lynx_create_inferior, lynx_attach): Replace calls to
14155 add_process by calls to lynx_add_process.
14156 (lynx_resume): If PTID is null, then try using
14157 current_process()->private->last_wait_event_ptid.
14158 Add comments.
14159 (lynx_clear_inferiors): Delete. The contents of that function
14160 has been inlined in lynx_mourn;
14161 (lynx_wait_1): Save the ptid in the process's private data.
14162 (lynx_mourn): Free the process' private data. Replace call
14163 to lynx_clear_inferiors by call to clear_inferiors.
14164
96f7a20f
YQ
141652013-05-17 Yao Qi <yao@codesourcery.com>
14166
14167 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14168 the right place.
14169
db0dfaa0
LM
141702013-05-16 Luis Machado <lgustavo@codesourcery.com>
14171
14172 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14173 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14174 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14175 PT_TEXT_END_ADDR guards. Update comments.
14176 (linux_target_op) <read_offsets>: Conditionally define to
14177 linux_read_offsets if the target is UCLIBC and if it defines
14178 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14179
68f5f838
SL
141802013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14181 Andrew Jenner <andrew@codesourcery.com>
14182
14183 * Makefile.in (SFILES): Add linux-nios2-low.c.
14184 (clean): Add action to delete nios2-linux.c.
14185 (nios2-linux.c): New rule.
14186 * configure.srv: Add nios2*-*-linux*.
14187 * linux-nios2-low.c: New.
14188
1ebff1fd
HAQ
141892013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14190
14191 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14192
f6150862
HZ
141932013-04-25 Hui Zhu <hui@codesourcery.com>
14194
14195 PR gdb/15186
f6150862
HZ
14196 * ax.c (ax_printf): Add fflush.
14197
614c279d
TT
141982013-04-22 Tom Tromey <tromey@redhat.com>
14199
14200 * Makefile.in (SFILES): Add filestuff.c.
14201 (OBS): Add filestuff.o.
14202 (filestuff.o): New target.
14203 * config.in, configure: Rebuild.
14204 * configure.ac: Check for fdwalk, pipe2.
14205
7d4e5717
PA
142062013-04-17 Pedro Alves <palves@redhat.com>
14207
14208 * configure.ac (USE_THREAD_DB): Delete variable.
14209 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14210 Don't AC_SUBST USE_THREAD_DB.
14211 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14212 * config.in, configure: Regenerate.
14213
d5c93e41
PA
142142013-04-16 Pedro Alves <palves@redhat.com>
14215
14216 * linux-low.h (struct lwp_info) <thread_known>: Move under
14217 the USE_THREAD_DB #ifdef.
14218
04f5fe89
PA
142192013-04-16 Pedro Alves <palves@redhat.com>
14220
14221 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14222 (linux-low.o): Delete rule.
14223 * linux-low.h: Always include "gdb_thread_db.h" instead of
14224 conditionally including thread_db.h.
14225 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14226 HAVE_THREAD_DB_H.
14227
480b27bf
JK
142282013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14229
14230 * Makefile.in (install-only): Fix make install regression.
14231
43662968
JK
142322013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14233
14234 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14235 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14236 installation.
14237 * gdbserver.1: Remove.
14238
3e74e146
PA
142392013-03-22 Pedro Alves <palves@redhat.com>
14240
14241 * linux-low.c (handle_extended_wait): Don't call
14242 linux_enable_event_reporting.
14243
a8347a2a
TT
142442013-03-15 Tony Theodore <tonyt@logyst.com>
14245
14246 PR build/9098:
14247 * Makefile.in (SHELL): Use @SHELL@.
14248
eeb56fa7
SDJ
142492013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14250
14251 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14252 compiler warning.
14253
4fa7e2ff
JB
142542013-03-13 Joel Brobecker <brobecker@adacore.com>
14255
14256 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14257 Remove extraneous NULL element.
14258
8ddb1965
YQ
142592013-03-13 Yao Qi <yao@codesourcery.com>
14260
14261 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14262 'V' block in trace frame.
14263
9accd112
MM
142642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14265
14266 * target.h (struct target_ops): Add btrace ops.
14267 (target_supports_btrace): New macro.
14268 (target_enable_btrace): New macro.
14269 (target_disable_btrace): New macro.
14270 (target_read_btrace): New macro.
14271 * gdbthread.h (struct thread_info): Add btrace field.
14272 * server.c: Include btrace-common.h.
14273 (handle_btrace_general_set): New function.
14274 (handle_btrace_enable): New function.
14275 (handle_btrace_disable): New function.
14276 (handle_general_set): Call handle_btrace_general_set.
14277 (handle_qxfer_btrace): New function.
14278 (struct qxfer qxfer_packets[]): Add btrace entry.
14279 * inferiors.c (remove_thread): Disable btrace.
14280 * linux-low: Include linux-btrace.h.
14281 (linux_low_enable_btrace): New function.
14282 (linux_low_read_btrace): New function.
14283 (linux_target_ops): Add btrace ops.
14284 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14285 Add srv_linux_btrace=yes.
14286 (x86_64-*-linux*): Add linux-btrace.o.
14287 Add srv_linux_btrace=yes.
14288 * configure.ac: Define HAVE_LINUX_BTRACE.
14289 * config.in: Regenerated.
14290 * configure: Regenerated.
14291
5cc22e4c
MM
142922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14293
14294 * server.c (handle_qxfer): Preserve error message if -3 is
14295 returned.
14296 (qxfer): Document the -3 return value.
14297
7c97f91e
MM
142982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14299
14300 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14301 (linux_btrace_h): New variable.
14302 (linux-btrace.o): New rule.
14303
be9a119c 143042013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14305 Hafiz Abid Qadeer <abidh@codesourcery.com>
14306
14307 * tracepoint.c (trace_buffer_size): New global.
14308 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14309 (init_trace_buffer): Change to one-argument function. Allocate
14310 trace buffer memory.
14311 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14312 handle QTBuffer:size packet.
14313 (cmd_bigqtbuffer_size): New function.
14314 (initialize_tracepoint): Call init_trace_buffer with
14315 DEFAULT_TRACE_BUFFER_SIZE.
14316 * server.c (handle_query): Add QTBuffer:size in the
14317 supported packets.
14318
e64f7499
YQ
143192013-03-07 Yao Qi <yao@codesourcery.com>
14320
14321 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14322 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14323 of -1.
14324 (cmd_qtsp): Adjust condition. Do post increment.
14325 Set cur_action and cur_step_action back to 0.
14326
f0ae6fc3
PA
143272013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14328
14329 PR server/15236
14330 * linux-low.c (linux_write_memory): Return early success if LEN is
14331 zero.
14332
b5b0b0af
CV
143332013-03-05 Corinna Vinschen <vinschen@redhat.de>
14334
334ad4a8 14335 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14336
589bc927
TT
143372013-02-28 Tom Tromey <tromey@redhat.com>
14338
14339 * configure.ac: Invoke AC_SYS_LARGEFILE.
14340 * configure, config.in: Rebuild.
14341
dfe07582
CV
143422013-02-28 Corinna Vinschen <vinschen@redhat.com>
14343
14344 * win32-low.c: Throughout, fix format strings and casts of
14345 printf-like functions to avoid type related warnings on all
14346 platforms.
14347 (get_child_debug_event): Print dwDebugEventCode as hex since
14348 that's how it's usually documented.
14349
736cd585
YQ
143502013-02-28 Yao Qi <yao@codesourcery.com>
14351
14352 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14353 pulongest.
14354
e1f58301
JW
143552013-02-27 Jiong Wang <jiwang@tilera.com>
14356
14357 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14358 (reg-tilegx32.c): New rule.
14359 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14360 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14361 different register info initializer according to elf class.
14362 (init_registers_tilgx32): New function. The tilegx32 register info
14363 initializer.
14364 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14365 (tile_store_gregset): Likewise.
14366
d171ca78
YQ
143672013-02-27 Yao Qi <yao@codesourcery.com>
14368
14369 * server.c (process_point_options): Print debug message when
14370 debug_threads is true.
14371
282bbdf3
YQ
143722013-02-26 Yao Qi <yao@codesourcery.com>
14373
14374 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14375
aca22551
PA
143762013-02-19 Pedro Alves <palves@redhat.com>
14377 Kai Tietz <ktietz@redhat.com>
14378
14379 PR gdb/15161
14380
14381 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14382 instead of strtoul to extract address from packet.
14383 (process_serial_event) <'z'>: Likewise.
14384
4f3cee1c
YQ
143852013-02-18 Yao Qi <yao@codesourcery.com>
14386
14387 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14388
8e1d55a3
PA
143892013-02-14 Pedro Alves <palves@redhat.com>
14390
14391 Plug memory leak.
14392
14393 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14394 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14395
458820da
PA
143962013-02-14 Pedro Alves <palves@redhat.com>
14397
14398 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14399
baea0dae
PA
144002013-02-14 Pedro Alves <palves@redhat.com>
14401
14402 * tracepoint.c (save_string): Delete.
14403 (add_tracepoint_action): Use savestring instead of save_string.
14404
0b1afbb3
PA
144052013-02-12 Pedro Alves <palves@redhat.com>
14406
14407 * linux-xtensa-low.c: Ditto.
14408 * xtensa-xtregs.c: Ditto.
14409
8a4ac37e
PA
144102013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14411
14412 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14413 thread_db.
14414
148de6bb
MS
144152013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14416
14417 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14418 aarch64_num_wp_regs and aarch64_num_bp_regs to
14419 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14420
55fac6e0
MS
144212013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14422
14423 * linux-aarch64-low.c (ps_get_thread_area): Replace
14424 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14425
176eb98c
MS
144262013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14427 Marcus Shawcroft <marcus.shawcroft@arm.com>
14428 Nigel Stephens <nigel.stephens@arm.com>
14429 Yufeng Zhang <yufeng.zhang@arm.com>
14430
14431 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14432 (aarch64.c, aarch64-without-fpu.c): New targets.
14433 * configure.srv (aarch64*-*-linux*): New.
14434 * linux-aarch64-low.c: New file.
14435
56f7af9c
MS
144362013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14437
43aaf8b6 14438 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14439 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14440 (dequeue_one_deferred_signal, linux_resume_one_thread)
14441 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14442 (linux_tracefork_grandchild, linux_test_for_tracefork)
14443 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14444 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14445 where the argument is 0.
14446
60f662b0
YQ
144472013-01-25 Yao Qi <yao@codesourcery.com>
14448
14449 * event-loop.c: Include "queue.h".
14450 (gdb_event_p): New typedef.
14451 (struct gdb_event) <next_event>: Remove.
14452 (event_queue): Change to QUEUE(gdb_event_p).
14453 (async_queue_event): Remove.
14454 (gdb_event_xfree): New.
14455 (initialize_event_loop): New.
14456 (process_event): Use API from QUEUE.
14457 (wait_for_event): Likewise.
14458 * server.c (main): Call initialize_event_loop.
14459 * server.h (initialize_event_loop): Declare.
14460
5ae4861a
YQ
144612013-01-18 Yao Qi <yao@codesourcery.com>
14462
14463 * ax.h (struct eval_agent_expr_context): New.
14464 (gdb_eval_agent_expr): Update declaration.
14465 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14466 TFRAME. Add new argument CTX.
14467 * server.h (struct eval_agent_expr_context): Declare.
14468 (agent_mem_read, agent_tsv_read): Update declaration.
14469 (agent_mem_read_string): Likewise.
14470 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14471 (add_traceframe_block): Add new argument TPOINT.
14472 Increase TPOINT->traceframe_usage.
14473 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14474 eval_tracepoint_agent_expr.
14475 (condition_true_at_tracepoint): Likewise.
14476 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14477 (agent_mem_read_string, agent_tsv_read): Likewise.
14478
85e00e85
YQ
144792013-01-16 Yao Qi <yao@codesourcery.com>
14480
14481 * linux-low.c (linux_resume_one_lwp): Don't check
14482 'lwp->bp_reinsert != 0'.
14483
4039cf45
JB
144842013-01-07 Joel Brobecker <brobecker@adacore.com>
14485 Pedro Alves <palves@redhat.com>
14486
14487 * lynx-low.c (ptrace_request_to_str): Define a temporary
14488 macro and use it to simplify this function's implementation.
14489
9044dee2
JB
144902013-01-07 Joel Brobecker <brobecker@adacore.com>
14491
14492 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14493 sets errno.
14494
e6352c8f
JB
144952013-01-07 Joel Brobecker <brobecker@adacore.com>
14496
14497 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14498
50681a27
JB
144992013-01-07 Joel Brobecker <brobecker@adacore.com>
14500
14501 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14502
3f6e77ef
JB
145032013-01-07 Joel Brobecker <brobecker@adacore.com>
14504
14505 * lynx-low.c (lynx_resume): Use the resume_info parameter
14506 to determine the ptid for the lynx_ptrace call, unless
14507 it is equal to minus_one_ptid, in which case we use the
14508 ptid of the current_inferior.
14509 (lynx_wait_1): After having received a thread create/exit
14510 event, resume the inferior's execution using the signaling
14511 thread's ptid, rather than the old ptid.
14512
7fda33ae
JB
145132013-01-07 Joel Brobecker <brobecker@adacore.com>
14514
14515 * lynx-low.c (lynx_resume): Delete variable ret.
14516
b9786c74
JB
145172013-01-01 Joel Brobecker <brobecker@adacore.com>
14518
14519 * gdbreplay.c (gdbreplay_version): Update copyright year.
14520 * server.c (gdbserver_version): Likewise.
14521
8b93d60f
JB
145222012-12-17 Joel Brobecker <brobecker@adacore.com>
14523
14524 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14525 new thread.
14526
037335a7
JB
145272012-12-17 Joel Brobecker <brobecker@adacore.com>
14528
14529 * lynx-low.c (ptrace_request_to_str): Add handling for
14530 PTRACE_GETTRACESIG.
14531
52d4cbd8
JB
145322012-12-17 Joel Brobecker <brobecker@adacore.com>
14533
14534 * lynx-low.c (lynx_attach): Delete variable new_process.
14535
ab8f6ca9
JB
145362012-12-17 Joel Brobecker <brobecker@adacore.com>
14537
14538 * lynx-low.c (lynx_create_inferior): Delete variable
14539 new_process.
14540
78cbc024
JB
145412012-12-17 Joel Brobecker <brobecker@adacore.com>
14542
14543 * lynx-low.c (ptrace_request_to_str): Do not handle
14544 PTRACE_GETTHREADLIST if this macro does not exist.
14545
14a00470
YQ
145462012-12-15 Yao Qi <yao@codesourcery.com>
14547
14548 * Makefile.in (OBS): Add notif.o.
14549 * notif.c, notif.h: New.
14550 * server.c: Include "notif.h".
14551 (struct vstop_notif) <next>: Remove.
14552 <base>: New field.
14553 (queue_stop_reply): Update.
14554 (push_event, send_next_stop_reply): Remove.
14555 (discard_queued_stop_replies): Update.
14556 (notif_stop): New variable.
14557 (handle_v_stopped): Remove.
14558 (handle_v_requests): Don't call handle_v_stopped. Call
14559 handle_ack_notif instead.
14560 (queue_stop_reply_callback): Call notif_event_enque instead
14561 of queue_stop_reply.
14562 (handle_status): Don't call send_next_stop_reply, call
14563 notif_write_event instead.
14564 (kill_inferior_callback): Likewise.
14565 (detach_or_kill_inferior_callback): Likewise.
14566 (main): Call initialize_notif.
14567 (process_serial_event): Call QUEUE_is_empty.
14568 (handle_target_event): Call notif_push instead of push event.
14569 * server.h (push_event): Remove declaration.
14570
61c125b9
TT
145712012-12-10 Tom Tromey <tromey@redhat.com>
14572
14573 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14574 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14575 macros.
14576 (.c.o): Rewrite.
14577 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14578 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14579 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14580 (amd64-linux-ipa.o, ax.o): Rewrite.
14581 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14582 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14583 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14584 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14585 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14586 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14587 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14588 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14589 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14590 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14591 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14592 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14593 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14594 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14595 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14596 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14597 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14598 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14599 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14600 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14601 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14602 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14603 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14604 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14605 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14606 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14607 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14608 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14609 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14610 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14611 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14612 (reg-tilegx.o): Remove.
14613 (all_object_files): New macro.
14614 Include .deps files.
14615 * aclocal.m4, configure: Rebuild.
14616 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14617 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14618 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14619
e90e9ad9
TT
146202012-12-05 Tom Tromey <tromey@redhat.com>
14621
14622 PR gdb/14917:
14623 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14624
02d403bf 146252012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14626
14627 * configure.ac: Check for linux/perf_event.h.
14628 * config.in: Regenerated.
14629 * configure: Regenerated.
14630
0270a750
PA
146312012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14632
14633 * hostio.c (handle_readlink): Decrease buffer size
14634 parameter passed to readlink by one byte.
14635
8c29b58e
YQ
146362012-11-26 Yao Qi <yao@codesourcery.com>
14637
14638 * configure.ac (build_warnings): Append '-Wempty-body'.
14639 * configure: Regenerated.
14640 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14641 body.
14642
8bdce1ff
PM
146432012-11-15 Pierre Muller <muller@sourceware.org>
14644
14645 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14646 * config.in: Regenerate.
14647 * configure: Regenerate.
14648 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14649 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14650 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14651 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14652 header.
14653 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14654 instead of <sys/wait.h> header.
14655 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14656
02d403bf 146572012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14658
14659 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14660 (various make rules): Remove -DGDBSERVER
14661
fbd5db48
YQ
146622012-11-09 Yao Qi <yao@codesourcery.com>
14663
14664 * spu-low.c (current_ptid): Move it to ..
14665 * gdbthread.h: ... here. New.
14666 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14667 * server.c (myresume, process_serial_event): Likewise.
14668 * thread-db.c (thread_db_find_new_threads): Likewise.
14669 * tracepoint.c (run_inferior_command): Likewise.
14670
b3dc46ff
AB
146712012-10-01 Andrew Burgess <aburgess@broadcom.com>
14672
14673 * server.c (handle_search_memory_1): Include access length in
14674 warning message.
14675
07c04788
HPN
146762012-09-05 Michael Brandt <michael.brandt@axis.com>
14677
14678 * linux-crisv32-low.c: Fix compile errors.
14679
918d227b
YQ
146802012-09-04 Yao Qi <yao@codesourcery.com>
14681
14682 * tracepoint.c (cmd_qtsv): Adjust debug message.
14683 Don't check CUR_TPOINT.
14684
18c1b81a
YQ
146852012-08-28 Yao Qi <yao@codesourcery.com>
14686
14687 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14688 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14689 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14690 Remove declarations of xmalloc, xreallloc, xstrdup and
14691 freeargv.
14692 * Makefile.in (libiberty_h): New.
14693 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14694 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14695
dc82f37b
YQ
146962012-08-23 Yao Qi <yao@codesourcery.com>
14697
14698 * server.h: Remove declaration of 'xsnprintf'.
14699
406b1477
KS
147002012-08-22 Keith Seitz <keiths@redhat.com>
14701
14702 * server.h: Include build-gnulib-gbserver/config.h.
14703 * gdbreplay.c: Likewise.
14704
e6712ff1
DE
147052012-08-08 Doug Evans <dje@google.com>
14706
14707 * Makefile.in (SFILES): Add gdb_vecs.c.
14708 (OBS): Add gdb_vecs.o.
14709 (gdb_vecs_h, host_defs_h): New variables.
14710 (thread-db.o): Add $(gdb_vecs_h) dependency.
14711 (gdb_vecs.o): New rule.
14712 * thread-db.c: #include "gdb_vecs.h".
14713 (thread_db_load_search): Use a vector to iterate over path elements.
14714 Handle text appearing after "$pdir".
14715
14716 * configure.ac: Add check for strstr.
14717 * config.in: Regenerate.
14718 * configure: Regenerate.
14719
7c3270ae
UW
147202012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14721
14722 * hostio.c (handle_pread): If pread fails, fall back to attempting
14723 lseek/read.
14724 (handle_pwrite): Likewise for pwrite.
14725
b62e2b27
UW
147262012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14727
14728 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14729 between unsupported TYPE and unimplementable ADDR/LEN combination.
14730 (arm_insert_point): Act on new return value.
14731
78a99e91
PA
147322012-07-31 Pedro Alves <palves@redhat.com>
14733
14734 * server.c (process_point_options): Only skip tokens if we find
14735 one that is unrecognized. Don't treat 'X' specially while
14736 skipping unrecognized tokens.
14737
fcf303ab
UW
147382012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14739
14740 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14741 to 4-byte-align HW breakpoint addresses for Thumb.
14742
7255706c
YQ
147432012-07-27 Yao Qi <yao@codesourcery.com>
14744
14745 PR remote/14161.
14746
14747 * server.h: Declare gdb_agent_about_to_close.
14748 * target.c (kill_inferior): Include "agent.h".
14749 New. Send command 'kill'.
14750 * target.h (kill_inferior): Removed macro.
14751 * tracepoint.c (gdb_agent_about_to_close): New.
14752 (gdb_agent_helper_thread): Handle command 'close'.
14753 Wait endlessly until the inferior stops.
14754 Install gdb_agent_remove_socket to atexit hook.
14755 (agent_socket_name): New static variable.
14756 (gdb_agent_socket_init): Replace local variable 'name' with
14757 'agent_socket_name'.
14758 (gdb_agent_remove_socket): New.
14759
5a3f286f
YQ
147602012-07-27 Yao Qi <yao@codesourcery.com>
14761
14762 * server.c (process_point_options): Stop at 'X' when parsing.
14763
961bd387
ME
147642012-07-19 Michael Eager <eager@eagercon.com>
14765
a261b8f5 14766 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14767 to hw_execute.
14768 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14769 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14770 hardware breakpoint.
14771
aa7c7447
JK
147722012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14773
14774 * gdbserver/linux-low.c (initialize_low): Call
14775 linux_ptrace_init_warnings.
14776
7f216e7c
DE
147772012-07-02 Doug Evans <dje@google.com>
14778
14779 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14780 pointer to int.
14781
d3ce09f5
SS
147822012-07-02 Stan Shebs <stan@codesourcery.com>
14783
14784 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14785 (ax.o): Add it to build rule.
14786 (ax-ipa.o): Ditto.
14787 (OBS): Add format.o.
14788 (IPA_OBS): Add format.o.
14789 * server.c (handle_query): Claim support for breakpoint commands.
14790 (process_point_options): Add command case.
14791 (process_serial_event): Leave running if there are printfs in
14792 effect.
14793 * mem-break.h (any_persistent_commands): Declare.
14794 (add_breakpoint_commands): Declare.
14795 (gdb_no_commands_at_breakpoint): Declare.
14796 (run_breakpoint_commands): Declare.
14797 * mem-break.c (struct point_command_list): New struct.
14798 (struct breakpoint): New field command_list.
14799 (any_persistent_commands): New function.
14800 (add_commands_to_breakpoint): New function.
14801 (add_breakpoint_commands): New function.
14802 (gdb_no_commands_at_breakpoint): New function.
14803 (run_breakpoint_commands): New function.
14804 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14805 locally.
14806 * ax.c: Include format.h.
14807 (ax_printf): New function.
14808 (gdb_eval_agent_expr): Add printf opcode.
14809
2f8f6aed
YQ
148102012-06-13 Yao Qi <yao@codesourcery.com>
14811
14812 * server.c (start_inferior): Remove duplicated writes to fields
14813 'last_resume_kind' and 'last_status' of 'current_inferior'.
14814
0c9070b3
YQ
148152012-06-12 Yao Qi <yao@codesourcery.com>
14816 Pedro Alves <palves@redhat.com>
14817
14818 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14819 comment.
14820 * server.c (handle_v_cont): Extend comment.
14821
c52daf70
YQ
148222012-06-11 Yao Qi <yao@codesourcery.com>
14823
14824 * linux-low.c (linux_attach): Add 'static'.
14825
d38bbb0a
YQ
148262012-06-06 Yao Qi <yao@codesourcery.com>
14827
14828 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14829
89dc0afd
JK
148302012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14831
14832 Fix gcc -flto compilation warning.
14833 * server.c (main): Make variable multi_mode and attach volatile.
14834
75f62ce7
TJB
148352012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14836
14837 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14838 if the platform doesn't know about it.
14839
65f479b6
PA
148402012-05-30 Jeff Kenton <jkenton@tilera.com>
14841
14842 * Makefile.in (SFILES): Add linux-tile-low.c.
14843 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14844 * configure.srv: Handle tilegx-*-linux*.
14845 * linux-tile-low.c: New file.
14846
0c5bf5a9
JK
148472012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14848
14849 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14850
a493e3e2
PA
148512012-05-24 Pedro Alves <palves@redhat.com>
14852
14853 PR gdb/7205
14854
43aaf8b6 14855 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14856
2ea28649
PA
148572012-05-24 Pedro Alves <palves@redhat.com>
14858
14859 PR gdb/7205
14860
14861 Replace target_signal with gdb_signal throughout.
14862
8d409d16
MR
148632012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14864
14865 * linux-low.c (linux_store_registers): Avoid the copying sequence
14866 when no data has been retrieved by ptrace.
14867
23512c01
MGD
148682012-05-22 Will Deacon <will.deacon@arm.com>
14869
14870 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14871 Include asm/ptrace.h.
14872 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14873 already defined.
14874
4934b29e
MR
148752012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14876
14877 * linux-low.c (linux_store_registers): Don't re-retrieve data
14878 with ptrace that has already been obtained from /proc. Always
14879 copy any data retrieved with ptrace to the buffer supplied.
14880
bde24c0a
PA
148812012-05-11 Yao Qi <yao@codesourcery.com>
14882 Pedro Alves <palves@redhat.com>
14883
14884 * linux-low.c (enum stopping_threads_kind): New.
14885 (stopping_threads): Change type to `enum stopping_threads_kind'.
14886 (handle_extended_wait): If stopping and suspending threads, leave
14887 the new_lwp suspended too.
14888 (linux_wait_for_event): Adjust.
14889 (stop_all_lwps): Set `stopping_threads' to
14890 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14891 whether we're suspending threads or just stopping them. Assert no
14892 recursion happens.
14893
623b6bdf
YQ
148942012-04-29 Yao Qi <yao@codesourcery.com>
14895
14896 * server.h: Move some code to ...
14897 * gdbthread.h: ... here. New.
14898 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14899 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14900 (nto-low.o, win32-low.o): Likewise.
14901 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14902 * regcache.c, remote-utils.c, server.c: Likewise.
14903 * target.c, tracepoint.c, win32-low.c: Likewise.
14904
f15f9948
TJB
149052012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14906
14907 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14908 (PTRACE_ARG4_TYPE): Likewise.
14909 (PTRACE_XFER_TYPE): Likewise.
14910 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14911 ptrace to PTRACE_ARG3_TYPE.
14912 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14913 (PTRACE_ARG4_TYPE): Likewise.
14914 (PTRACE_XFER_TYPE): Likewise.
14915 (linux_detach_one_lwp): Cast fourth argument of
14916 ptrace to long then PTRACE_ARG4_TYPE.
14917 (regsets_fetch_inferior_registers): Cast third argument of
14918 ptrace to long then PTRACE_ARG3_TYPE.
14919 (regsets_store_inferior_registers): Likewise.
14920
38ea300a
PA
149212012-04-20 Pedro Alves <palves@redhat.com>
14922
14923 * configure: Regenerate.
14924
c971b7fa
PA
149252012-04-19 Pedro Alves <palves@redhat.com>
14926
43aaf8b6 14927 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14928 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14929 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14930 (all, install-only, uninstall, clean-info, all-lib, clean): No
14931 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14932 (maintainer-clean realclean distclean): Use subdir_do.
14933 (subdir_do): New.
14934 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14935 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14936 * acinclude.m4: Include acx_configure_dir.m4.
14937 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14938 calls. Call AC_PROG_RANLIB. Configure gnulib using
14939 ACX_CONFIGURE_DIR.
14940 (GNULIB): New.
14941 (GNULIB_STDINT_H): Adjust.
14942 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14943 * gdbreplay.c: Include build-gnulib/config.h.
14944 * server.h: Likewise.
14945 * aclocal.m4: Regenerate.
14946 * config.in: Regenerate.
14947 * configure: Regenerate.
c971b7fa 14948
809277f8
PA
149492012-04-19 Pedro Alves <palves@redhat.com>
14950
14951 * Makefile.in (LIBGNU, INCGNU): Adjust.
14952 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14953 (all, install-only, uninstall, clean-info, all-lib, clean)
14954 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14955 * configure.ac: Adjust AC_OUTPUT output.
14956 * aclocal.m4: Regenerate.
14957 * configure: Regenerate.
14958
fd9bb8b8
PA
149592012-04-19 Pedro Alves <palves@redhat.com>
14960
14961 * Makefile.in (generated_files): New.
14962 (server_h): Remove the explicit dependency on config.h, and depend
14963 on $generated_files.
14964
1c298c66
PA
149652012-04-19 Pedro Alves <palves@redhat.com>
14966
14967 * Makefile.in (INCGNU): Add -Ignulib.
14968
57c4b50b
PA
149692012-04-19 Pedro Alves <palves@redhat.com>
14970
14971 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14972 (INCGNU): ... this, and spell out -I here.
14973 (GNULIB_LIB): Rename to ...
14974 (LIBGNU): ... this.
14975 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14976
1030e047
PA
149772012-04-19 Pedro Alves <palves@redhat.com>
14978
14979 * config.in: Regenerate.
14980
447d4319
PA
149812012-04-19 Pedro Alves <palves@redhat.com>
14982
14983 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14984 * server.h (memmem): Remove declaration.
14985 * config.in: Regenerate.
14986 * configure: Regenerate.
14987
aad9eab9
YQ
149882012-04-19 Yao Qi <yao@codesourcery.com>
14989
14990 * Makefile.in (SFILES): Add common/vec.c.
14991 (OBS): Add vec.o.
14992 (vec.o): New rule.
14993
3e10640f
YQ
149942012-04-19 Yao Qi <yao@codesourcery.com>
14995
14996 * remote-utils.c (prepare_resume_reply): Replace with macro
14997 target_core_of_thread.
14998 * server.c (handle_qxfer_threads_proper): Likewise.
14999 * target.h (traget_core_of_thread): New macro.
15000
71622373
PA
150012012-04-18 Pedro Alves <palves@redhat.com>
15002
15003 * aclocal.m4: Regenerate.
15004 * configure: Regenerate.
15005
80d26939
YQ
150062012-04-16 Yao Qi <yao@codesourcery.com>
15007
15008 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15009 duplicated on address.
15010
42476b70
YQ
150112012-04-16 Yao Qi <yao@codesourcery.com>
15012
15013 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15014 (struct tracepoint_action_ops) <send>: New field.
15015 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15016 (agent_expr_send, x_tracepoint_action_send): New.
15017 (l_tracepoint_action_send): New.
15018 (cmd_qtdp): Download and install tracepoint
15019 according to `use_agent'.
15020 (run_inferior_command): Add one more parameter `len'.
15021 Update callers.
15022 (tracepoint_send_agent): New.
15023 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15024
7bc83639
YQ
150252012-04-16 Yao Qi <yao@codesourcery.com>
15026
15027 * tracepoint.c (download_tracepoints): Moved to ...
15028 (cmd_qtstart): ... here.
15029
5f18041e
YQ
150302012-04-14 Yao Qi <yao@codesourcery.com>
15031
15032 * tracepoint.c: Include inttypes.h.
15033 (struct collect_memory_action): Use sized types.
15034 (struct tracepoint): Likewise.
15035 (cmd_qtdp, stop_tracing): Update print specifiers.
15036 (cmd_qtp, response_tracepoint): Likewise.
15037 (collect_data_at_tracepoint): Likewise.
15038 (collect_data_at_step): Likewise.
15039
55a8c076
YQ
150402012-04-14 Yao Qi <yao@codesourcery.com>
15041
15042 Import gnulib module inttypes.
15043 * aclocal.m4, config.in, configure: Regenerated.
15044
dc750257
YQ
150452012-04-14 Yao Qi <yao@codesourcery.com>
15046
15047 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15048 Makefile and config.status at last.
15049
0ab5faf9
YQ
150502012-04-13 Yao Qi <yao@codesourcery.com>
15051
15052 * tracepoint.c: Include stdint.h unconditionally.
15053
18f5fd81
TJB
150542012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15055
15056 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15057 on BFD_HAVE_SYS_PROCFS_TYPE.
15058 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15059 * configure: Regenerate.
15060 * config.in: Likewise.
15061
4d47af5c
L
150622012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15063
15064 * Makefile.in (clean): Also remove x32.c x32-linux.c
15065 x32-avx.c x32-avx-linux.c.
15066 (x32.o): New target.
15067 (x32.c): Likewise.
15068 (x32-linux.o): Likewise.
15069 (x32-linux.c): Likewise.
15070 (x32-avx.o): Likewise.
15071 (x32-avx.c): Likewise.
15072 (x32-avx-linux.o): Likewise.
15073 (x32-avx-linux.c): Likewise.
15074
15075 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15076 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15077 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15078 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15079 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15080 i386/x32-avx-linux.xml.
15081
15082 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15083 (init_registers_x32_avx_linux): Likwise.
15084 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15085 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15086
ecedbe58
PA
150872012-04-13 Pedro Alves <palves@redhat.com>
15088
15089 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15090 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15091 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15092 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15093 the sub-make.
15094
c92b5177
L
150952012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15096
15097 * linux-x86-low.c (compat_x32_clock_t): New.
15098 (compat_x32_siginfo_t): Likewise.
15099 (compat_x32_siginfo_from_siginfo): Likewise.
15100 (siginfo_from_compat_x32_siginfo): Likewise.
15101 (linux_is_elf64): Likewise.
15102 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15103 and siginfo_from_compat_x32_siginfo for x32.
15104 (x86_arch_setup): Set linux_is_elf64.
15105
214d508e
L
151062012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15107
15108 PR gdb/13969
15109 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15110 e_machine field.
15111 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15112 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15113 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15114 compatible with process.
15115
c9a1864a
YQ
151162012-04-12 Yao Qi <yao@codesourcery.com>
15117
15118 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15119 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15120 (install-only, install-info, clean): Handle sub dir gnulib.
15121 (all-lib, am--refresh): New targets.
15122 (memmem.o): Remove target.
15123 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15124 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15125 (AC_REPLACE_FUNCS): Remove memmem.
15126 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15127 (AC_OUTPUT): Generate Makefile in gnulib/.
15128 * aclocal.m4, config.in, configure: Regenerated.
15129
367ba2c2
MR
151302012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15131
15132 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15133
9d236627
PA
151342012-04-05 Pedro Alves <palves@redhat.com>
15135
15136 -Werror=strict-aliasing
15137
15138 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15139 pointer.
15140
111217b3
PA
151412012-04-04 Pedro Alves <palves@redhat.com>
15142
15143 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15144 (sparc_store_gregset_from_stack, sparc_store_gregset)
15145 (sparc_breakpoint_at): Fix formatting.
15146
8365dcf5
TJB
151472012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15148
15149 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15150 are available.
15151 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15152 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15153 * config.in: Regenerate.
15154 * configure: Likewise.
15155
689cc2ae
PA
151562012-03-29 Pedro Alves <palves@redhat.com>
15157
15158 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15159 Correct ptrace arguments.
15160
c14dfd32
PA
151612012-03-28 Pedro Alves <palves@redhat.com>
15162
15163 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15164 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15165 (IA64_FR1_REGNUM): New defines.
15166 (ia64_fetch_register): New.
15167 (the_low_target): Install it.
15168 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15169 field.
15170 * linux-low.c (linux_fetch_registers): Try the
15171 the_low_target.fetch_register hook first.
15172
15173 * linux-arm-low.c (the_low_target): Adjust.
15174 * linux-bfin-low.c (the_low_target): Adjust.
15175 * linux-cris-low.c (the_low_target): Adjust.
15176 * linux-crisv32-low.c (the_low_target): Adjust.
15177 * linux-m32r-low.c (the_low_target): Adjust.
15178 * linux-m68k-low.c (the_low_target): Adjust.
15179 * linux-mips-low.c (the_low_target): Adjust.
15180 * linux-ppc-low.c (the_low_target): Adjust.
15181 * linux-s390-low.c (the_low_target): Adjust.
15182 * linux-sh-low.c (the_low_target): Adjust.
15183 * linux-sparc-low.c (the_low_target): Adjust.
15184 * linux-tic6x-low.c (the_low_target): Adjust.
15185 * linux-x86-low.c (the_low_target): Adjust.
15186 * linux-xtensa-low.c (the_low_target): Adjust.
15187
63c88e13
PA
151882012-03-26 Pedro Alves <palves@redhat.com>
15189
15190 * server.c (handle_qxfer_libraries): Don't bail early if
15191 the_target->qxfer_libraries_svr4 is not NULL.
15192
fb723180
PA
151932012-03-26 Pedro Alves <palves@redhat.com>
15194
15195 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15196
0afae3cf
PA
151972012-03-23 Pedro Alves <palves@redhat.com>
15198
15199 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15200 "library-list-svr4" element's start tag when the the DSO list is
15201 empty.
15202
485f1ee4
PA
152032012-03-23 Pedro Alves <palves@redhat.com>
15204
15205 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15206 a variable whose type size is the same as the inferior's pointer
15207 size.
15208
a5362b9a
TS
152092012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15210
15211 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15212 struct siginfo.
15213 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15214 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15215 * linux-low.h: Include <signal.h>.
15216 (struct siginfo): Remove forward declaration.
15217 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15218 struct siginfo.
15219
d226c142
MF
152202012-03-21 Mike Frysinger <vapier@gentoo.org>
15221
15222 * .gitignore: Ignore more files.
15223
122f36ef
PA
152242012-03-19 Pedro Alves <palves@redhat.com>
15225 Jan Kratochvil <jan.kratochvil@redhat.com>
15226
15227 * server.c (cont_thread, general_thread): Add describing comments.
15228 (start_inferior): Clear `cont_thread'.
15229 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15230 of a process.
15231
fc3e5175
YQ
152322012-03-15 Yao Qi <yao@codesourcery.com>
15233
15234 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15235 handling to ...
15236 (cmd_qtdp): ... here.
15237
8d0d92cd
YQ
152382012-03-15 Yao Qi <yao@codesourcery.com>
15239
15240 * tracepoint.c (struct tracepoint_action_ops): New.
15241 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15242 (m_tracepoint_action_download): New.
15243 (r_tracepoint_action_download): New.
15244 (x_tracepoint_action_download): New.
15245 (l_tracepoint_action_download): New.
15246 (add_tracepoint_action): Install `action->ops' according type.
15247 (download_tracepoint_1): Move code `download' function pointer
15248 of various tracepoint_action_ops.
15249
87b0bb13
JK
152502012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15251
15252 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15253 linux_ptrace_attach_warnings.
15254
5f572dec
JK
152552012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15256
15257 * Makefile.in (linux-ptrace.o): New.
15258 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15259 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15260 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15261 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15262 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15263 of these targets.
15264 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15265
f4647387
YQ
152662012-03-08 Yao Qi <yao@codesourcery.com>
15267 Pedro Alves <palves@redhat.com>
15268
15269 Fix PR server/13392.
15270 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15271 offset of JMP insn.
15272 * tracepoint.c (remove_tracepoint): New.
15273 (cmd_qtdp): Call remove_tracepoint when failed to install.
15274
9b224c5e
PA
152752012-03-07 Pedro Alves <palves@redhat.com>
15276
15277 * linux-low.c (get_detach_signal): New.
15278 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15279 Pass on pending signals to PTRACE_DETACH. Check the result of the
15280 ptrace call.
15281 * server.c (program_signals, program_signals_p): New.
15282 (handle_general_set): Handle QProgramSignals.
15283 * server.h (program_signals, program_signals_p): Declare.
15284
e237a7e2
JK
152852012-03-05 Pedro Alves <palves@redhat.com>
15286 Jan Kratochvil <jan.kratochvil@redhat.com>
15287
15288 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15289 New comment why.
15290
5808517f
YQ
152912012-03-03 Yao Qi <yao@codesourcery.com>
15292
15293 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15294 agent_look_up_symbols.
15295
58b4daa5
YQ
152962012-03-03 Yao Qi <yao@codesourcery.com>
15297
15298 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15299 (linux-x86-low.o): Likewise.
15300 * server.h: Remove in_process_agent_loaded.
15301 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15302 common/agent.c.
15303 Update callers.
15304
8ffcbaaf
YQ
153052012-03-03 Yao Qi <yao@codesourcery.com>
15306
15307 * tracepoint.c (gdb_agent_capability): New global.
15308 (in_process_agent_loaded_ust): Renamed to
15309 `in_process_agent_supports_ust'.
15310 Update callers.
15311 (in_process_agent_supports_ust): Call agent_capability_check.
15312 (clear_installed_tracepoints): Assert that agent supports
15313 agent.
15314
d1feda86
YQ
153152012-03-03 Yao Qi <yao@codesourcery.com>
15316
15317 * linux-low.c (linux_supports_agent): New.
15318 (linux_target_ops): Initialize field `supports_agent' with
15319 linux_supports_agent.
15320 * target.h (struct target_ops) <supports_agent>: New.
15321 (target_supports_agent): New macro.
15322 * server.c (handle_general_set): Handle packet 'QAgent'.
15323 (handle_query): Send `QAgent+'.
15324 * Makefile.in (server.o): Depends on agent.h.
15325
2fa291ac
YQ
153262012-03-03 Yao Qi <yao@codesourcery.com>
15327
15328 * Makefile.in (OBS): Add agent.o.
15329 Add new rule for agent.o.
15330 Track dependence of tracepoint.c on agent.h.
15331 * tracepoint.c (run_inferior_command_1):
15332 (run_inferior_command): Call agent_run_command.
15333 (gdb_ust_connect_sync_socket): Deleted. Move it to
15334 common/agent.c.
15335 (resume_thread, stop_thread): Likewise.
15336 (gdb_ust_socket_init): Renamed to ...
15337 (gdb_agent_socket_init): ... New.
15338 (gdb_ust_thread): Renamed to ...
15339 (gdb_agent_helper_thread): ... New.
15340 (gdb_ust_init): Move some code to ...
15341 (gdb_agent_init): ... here. New.
15342 [HAVE_UST]: Call gdb_ust_init.
15343 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15344 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15345 * config.in, configure: Regenerated.
15346
05044653
PA
153472012-03-02 Pedro Alves <palves@redhat.com>
15348
15349 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15350 * linux-low.c (struct simple_pid_list): New.
15351 (stopped_pids): New a struct simple_pid_list pointer.
15352 (add_to_pid_list, pull_pid_from_list): New.
15353 (handle_extended_wait): Don't assume the first signal new children
15354 report is SIGSTOP. Adjust call to pull_pid_from_list.
15355 (linux_wait_for_lwp): Adjust.
15356
8d00225b
YQ
153572012-03-02 Yao Qi <yao@codesourcery.com>
15358
15359 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15360 debug log.
15361
19560ba5
YQ
153622012-03-02 Yao Qi <yao@codesourcery.com>
15363
15364 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15365 `stop_pc' and `tpoint'. Update caller.
15366
1faeff08
MR
153672012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15368
15369 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15370 * linux-low.c (use_linux_regsets): New macro.
15371 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15372 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15373 (linux_register_in_regsets): New function.
15374 (usr_fetch_inferior_registers): Skip registers covered by
15375 regsets.
15376 (usr_store_inferior_registers): Likewise.
15377 (usr_fetch_inferior_registers): New macro.
15378 (usr_store_inferior_registers): Likewise.
15379 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15380 (linux_store_registers): Likewise.
15381 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15382 prototype.
15383 (init_registers_mips64_dsp_linux): Likewise.
15384 (init_registers_mips_linux): New macro.
15385 (init_registers_mips_dsp_linux): Likewise.
15386 (mips_dsp_num_regs): Likewise.
15387 (DSP_BASE, DSP_CONTROL): New fallback macros.
15388 (mips_base_regs): New macro.
15389 (mips_regmap): Use it. Fix the size.
15390 (mips_dsp_regmap): New variable.
15391 (mips_dsp_regset_bitmap): Likewise.
15392 (mips_arch_setup): New function.
15393 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15394 than mips_regmap.
15395 (mips_cannot_store_register): Likewise.
15396 (the_low_target): Update .arch_setup, .num_regs and .regmap
15397 initializers. Add .regset_bitmap initializer.
15398 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15399 initializer.
15400 * linux-bfin-low.c (the_low_target): Likewise.
15401 * linux-cris-low.c (the_low_target): Likewise.
15402 * linux-crisv32-low.c (the_low_target): Likewise.
15403 * linux-ia64-low.c (the_low_target): Likewise.
15404 * linux-m32r-low.c (the_low_target): Likewise.
15405 * linux-m68k-low.c (the_low_target): Likewise.
15406 * linux-ppc-low.c (the_low_target): Likewise.
15407 * linux-s390-low.c (the_low_target): Likewise.
15408 * linux-sh-low.c (the_low_target): Likewise.
15409 * linux-sparc-low.c (the_low_target): Likewise.
15410 * linux-tic6x-low.c (the_low_target): Likewise.
15411 * linux-x86-low.c (the_low_target): Likewise.
15412 * linux-xtensa-low.c (the_low_target): Likewise.
15413 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15414 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15415 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15416 srv_xmlfiles.
15417 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15418 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15419
c03e6ccc
YQ
154202012-02-29 Yao Qi <yao@codesourcery.com>
15421 Pedro Alves <palves@redhat.com>
15422
15423 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15424 `step_over_finished' is true.
15425
644cebc9
PA
154262012-02-27 Pedro Alves <palves@redhat.com>
15427
15428 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15429 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15430
c14d7ab2
PA
154312012-02-27 Pedro Alves <palves@redhat.com>
15432
15433 PR server/9684
15434 * linux-low.c (pid_is_stopped): New.
15435 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15436
412c89dd
LM
154372012-02-25 Luis Machado <lgustavo@codesourcery.com>
15438
15439 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15440 of conditions.
15441
b745defe
MR
154422012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15443
15444 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15445
9f3a5c85
LM
154462012-02-24 Luis Machado <lgustavo@codesourcery>
15447
15448 * server.c (handle_query): Advertise support for target-side
15449 breakpoint condition evaluation.
15450 (process_point_options): New function.
15451 (process_serial_event): When inserting a breakpoint, check for
15452 a target-side condition that should be evaluated.
15453
15454 * mem-break.c: Include regcache.h and ax.h.
15455 (point_cond_list_t): New data structure.
15456 (breakpoint) <cond_list>: New field.
15457 (find_gdb_breakpoint_at): Make non-static.
15458 (delete_gdb_breakpoint_at): Clear any target-side
15459 conditions.
15460 (clear_gdb_breakpoint_conditions): New function.
15461 (add_condition_to_breakpoint): Likewise.
15462 (add_breakpoint_condition): Likewise.
15463 (gdb_condition_true_at_breakpoint): Likewise.
15464 (gdb_breakpoint_here): Return result directly instead
15465 of going through a local variable.
15466
15467 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15468 (clear_gdb_breakpoint_conditions): Likewise.
15469 (add_breakpoint_condition): Likewise.
15470 (gdb_condition_true_at_breakpoint): Likewise.
15471
15472 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15473 (need_step_over_p): Take target-side breakpoint condition into
15474 consideration.
15475
5e1dc496
LM
154762012-02-24 Luis Machado <lgustavo@codesourcery>
15477
15478 * server.h: Include tracepoint.h.
15479 (agent_mem_read, agent_get_trace_state_variable_value,
15480 agent_set_trace_state_variable_value,
15481 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15482 get_set_tsv_func_addr): New prototypes.
15483
15484 * ax.h: New include file.
15485 * ax.c: New source file.
15486
15487 * tracepoint.c: Include ax.h.
15488 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15489 agent_expr, eval_result_type): Move to ax.h.
15490 (parse_agent_expr): Rename to ...
15491 (gdb_parse_agent_expr): ... this, make it non-static and move
15492 to ax.h.
15493 (unparse_agent_expr) Rename to ...
15494 (gdb_unparse_agent_expr): ... this, make it non-static and move
15495 to ax.h.
15496 (eval_agent_expr): Rename to ...
15497 (eval_tracepoint_agent_expr): ... this.
15498 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15499 forward declarations.
15500 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15501 (agent_get_trace_state_variable_value): New function.
15502 (agent_set_trace_state_variable_value): New function.
15503 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15504 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15505 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15506 (condition_true_at_tracepoint): Likewise.
15507 (parse_agent_expr): Rename to ...
15508 (gdb_parse_agent_expr): ... this and move to ax.c.
15509 (unparse_agent_expr): Rename to ...
15510 (gdb_unparse_agent_expr): ... this and move to ax.c.
15511 (gdb_agent_op_name): Move to ax.c.
15512 (eval_agent_expr): Rename to ...
15513 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15514 and move to ax.c.
15515 (eval_tracepoint_agent_expr): New function.
15516 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15517 non-static.
5e1dc496
LM
15518 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15519 ax.c.
15520 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15521 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15522 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15523 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15524 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15525 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15526 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15527 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15528 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15529 (compile_bytecodes): Remove forward declaration.
15530 (is_goto_target): Move to ax.c.
15531 (compile_bytecodes): Move to ax.c and call
15532 agent_get_trace_state_variable_value (...) and
15533 agent_set_trace_state_variable_value (...).
15534
15535 * Makefile.in: Update ax.c and IPA dependencies.
15536
277e4e52
PA
155372012-02-24 Pedro Alves <palves@redhat.com>
15538
15539 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15540 (cmd_bigqtbuffer_circular): ... this. Only handle
15541 'QTBuffer:circular:'.
15542 (handle_tracepoint_general_set): Adjust.
15543
bf4c19f7
YQ
155442012-02-16 Yao Qi <yao@codesourcery.com>
15545
15546 * inferiors.c: Move code to ...
15547 * dll.c: .... here. New.
15548 * server.h: Declare clear_dlls.
15549 * Makefile.in (SFILES): Add dll.c.
15550 (OBS): Add dll.o
15551 (dll.o): New rule.
15552
d73f2619
YQ
155532012-02-11 Yao Qi <yao@codesourcery.com>
15554
15555 * server.c: (handle_monitor_command): Add a new parameter
15556 `own_buf'.
15557 (handle_query): Update caller.
15558
f8255c2a
JB
155592012-02-09 Joel Brobecker <brobecker@adacore.com>
15560
15561 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15562 * configure, config.in: Regenerate.
15563 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15564 is not defined.
15565
da84f473
PA
155662012-02-02 Pedro Alves <palves@redhat.com>
15567
15568 Try SIGKILL first, then PTRACE_KILL.
15569 * linux-low.c (linux_kill_one_lwp): New.
15570 (linux_kill_one_lwp): Rename to ...
15571 (kill_one_lwp_callback): ... this. Use the new
15572 linux_kill_one_lwp.
15573
e886a173
PA
155742012-02-02 Pedro Alves <palves@redhat.com>
15575
15576 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15577 inferior.
15578
be07f1a2
PA
155792012-01-27 Pedro Alves <palves@redhat.com>
15580
15581 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15582 (elf_64_file_p): Make static.
15583 (linux_pid_exe_is_elf_64_file): New.
15584 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15585 Delete declarations.
15586 (linux_pid_exe_is_elf_64_file): Declare.
15587 * linux-x86-low.c (x86_arch_setup): Use
15588 linux_pid_exe_is_elf_64_file.
15589
d8301ad1
JK
155902012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15591
15592 * linux-low.c (linux_wait_for_event_1): Rename to ...
15593 (linux_wait_for_event): ... here and merge it with former
15594 linux_wait_for_event - new variable wait_ptid, use it.
15595 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15596
01b17894
PA
155972012-01-23 Pedro Alves <palves@redhat.com>
15598
15599 * server.c (main): Avoid yet another case of infinite loop while
15600 detaching/killing after a longjmp.
15601
e825046f
JK
156022012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15603
15604 Code cleanup.
15605 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15606
b9e7b9c3
UW
156072012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15608
15609 * hostio.c (handle_readlink): New function.
15610 (handle_vFile): Call it to handle "vFile:readlink" packets.
15611
901f9912
UW
156122012-01-20 Pedro Alves <palves@redhat.com>
15613 Ulrich Weigand <ulrich.weigand@linaro.org>
15614
15615 * server.c (handle_v_requests): Only support vAttach and vRun to
15616 start multiple processes when in extended protocol mode.
15617
fc1ab1a0
PA
156182012-01-17 Pedro Alves <palves@redhat.com>
15619
15620 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15621 memalign plus mprotect to allocate the scratch buffer.
15622
7d5d4e98
PA
156232012-01-13 Pedro Alves <palves@redhat.com>
15624
15625 * server.c (attach_inferior): Clear `cont_thread'.
15626
f128d5e9
PA
156272012-01-13 Pedro Alves <palves@redhat.com>
15628
15629 * server.c (main): Avoid infinite loop while detaching/killing
15630 after a longjmp.
15631
06db92f0
DE
156322012-01-09 Doug Evans <dje@google.com>
15633
15634 * server.c (start_inferior): Set last_ptid in --wrapper case.
15635
32d92999
YQ
156362012-01-06 Yao Qi <yao@codesourcery.com>
15637
15638 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15639 defined.
15640 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15641
5e0a92a9
YQ
156422012-01-04 Yao Qi <yao@codesourcery.com>
15643
15644 * tracepoint.c (cmd_qtdp): Print debug message
15645 for static tracepoint.
15646
ae639e8c
YQ
156472012-01-04 Yao Qi <yao@codesourcery.com>
15648
15649 * tracepoint.c (trace_vdebug): Differentiate debug message
15650 between gdbserver and IPA.
15651
f72429c5
YQ
156522012-01-03 Yao Qi <yao@codesourcery.com>
15653
15654 * tracepoint.c (tracepoint_was_hit): Don't collect for
15655 static tracepoint.
15656
12c3e59c
JB
156572012-01-02 Joel Brobecker <brobecker@adacore.com>
15658
15659 * terminal.h: Reformat copyright header.
15660
67827812
JB
156612012-01-02 Joel Brobecker <brobecker@adacore.com>
15662
15663 * server.c (gdbserver_version): Update copyright year.
15664 * gdbreplay.c (gdbreplay_version): Likewise.
15665
3e52c33d
JK
156662011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15667
15668 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15669
15670 Revert:
15671 2011-12-18 Hui Zhu <teawater@gmail.com>
15672 * linux-low.c (linux_create_inferior): Save return value to ret.
15673
66f1260e
HZ
156742011-12-18 Hui Zhu <teawater@gmail.com>
15675
15676 * linux-low.c (linux_create_inferior): Save return value to ret.
15677
e77616d7
DE
156782011-12-16 Doug Evans <dje@google.com>
15679
e7b06c57
DE
15680 * linux-low.c (linux_create_inferior): If stdio connection,
15681 redirect stdin from /dev/null, stdout to stderr.
15682 * remote-utils.c (remote_is_stdio): New static global.
15683 (remote_connection_is_stdio): New function.
15684 (remote_prepare): Handle stdio connection.
15685 (remote_open): Ditto.
15686 (remote_close): Don't close stdin for stdio connections.
15687 (read_prim,write_prim): New functions. Replace all calls to
15688 read/write to these.
15689 * server.c (main): Watch for "-" argument. Move call to
15690 remote_prepare before start_inferior.
15691 * server.h (STDIO_CONNECTION_NAME): New macro.
15692 (remote_connection_is_stdio): Declare.
15693
e77616d7
DE
15694 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15695 in debugging output.
15696
82067193
YQ
156972011-12-15 Yao Qi <yao@codesourcery.com>
15698
15699 * tracepoint.c: Include sys/syscall.h.
15700 (gdb_ust_thread): Remove preprocessor conditional.
15701
82bfbe7e
PA
157022011-12-14 Pedro Alves <pedro@codesourcery.com>
15703
15704 * linux-low.c (linux_detach_one_lwp): Call
15705 the_low_target.prepare_to_resume before detaching.
15706
712c6575
YQ
157072011-12-14 Yao Qi <yao@codesourcery.com>
15708
15709 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15710 of write.
15711
d54d1edf
YQ
157122011-12-14 Yao Qi <yao@codesourcery.com>
15713
15714 * i386-low.c (i386_low_stopped_data_address): Initialize local
15715 variable `control'.
15716
6210a125
PA
157172011-12-13 Pedro Alves <pedro@codesourcery.com>
15718
15719 PR remote/13492
15720
15721 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15722 DR_CONTROL unless necessary. Extend comments.
15723 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15724 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15725
2ece8244
YQ
157262011-12-13 Yao Qi <yao@codesourcery.com>
15727
15728 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15729 macros.
15730 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15731
784867a5
JK
157322011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15733
15734 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15735 Print new debug message for such case.
15736
6bf36717
JK
157372011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15738
15739 Fix overlapping memcpy.
15740 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15741 the read_inferior_memory transfer.
15742 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15743 write_inferior_memory transfer.
15744 (set_fast_tracepoint_jump): New variable buf. Use it for the
15745 read_inferior_memory and write_inferior_memory transfers.
15746 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15747 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15748 Use it for the write_inferior_memory transfer.
15749 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15750 buffers.
15751
50275556
MR
157522011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15753
15754 * linux-low.c (fetch_register, store_register): Make code
15755 consistent, fix formatting.
15756
7325beb4
MR
157572011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15758
15759 * linux-low.c (usr_store_inferior_registers): Factor out code
15760 to handle individual registers into...
15761 (store_register): ... this new function.
15762
c642a434
UW
157632011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15764
15765 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15766 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15767 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15768 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15769 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15770 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15771 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15772 (srv_xmlfiles): Add new XML files.
15773
15774 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15775 and <sys/uio.h>.
15776 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15777 (init_registers_s390_linux32v1): Add prototype.
15778 (init_registers_s390_linux32v2): Likewise.
15779 (init_registers_s390_linux64v1): Likewise.
15780 (init_registers_s390_linux64v2): Likewise.
15781 (init_registers_s390x_linux64v1): Likewise.
15782 (init_registers_s390x_linux64v2): Likewise.
15783 (s390_num_regs): Increment to 52.
15784 (s390_regmap): Add orig_r2 register.
15785 (s390_num_regs_3264): Increment to 68.
15786 (s390_regmap_3264): Add orig_r2 register.
15787 (s390_collect_ptrace_register): Handle orig_r2 register.
15788 (s390_supply_ptrace_register): Likewise.
15789 (s390_fill_last_break): New function.
15790 (s390_store_last_break): Likewise.
15791 (s390_fill_system_call): New function.
15792 (s390_store_system_call): Likewise.
15793 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15794 register sets.
15795 (s390_check_regset): New function.
15796 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15797 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15798 Update target_regsets for available register sets.
15799
2268b414
JK
158002011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15801 Jan Kratochvil <jan.kratochvil@redhat.com>
15802
15803 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15804 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15805 New.
15806 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15807 * linux-low.h (struct process_info_private): New member r_debug.
15808 * server.c (handle_qxfer_libraries): Call
15809 the_target->qxfer_libraries_svr4.
15810 (handle_qxfer_libraries_svr4): New function.
15811 (qxfer_packets): New entry "libraries-svr4".
15812 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15813 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15814 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15815 PACKET_qXfer_libraries_svr4.
15816
d6db1fab
UW
158172011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15818
15819 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15820 PSW address/mask between 8-byte and 16-byte formats.
15821 (s390_supply_ptrace_register): Likewise.
15822 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15823 basic addressing mode bit.
15824
242f5f1c
SS
158252011-11-24 Stan Shebs <stan@codesourcery.com>
15826
15827 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15828
f196051f
SS
158292011-11-17 Stan Shebs <stan@codesourcery.com>
15830
15831 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15832 (tracing_start_time): New global.
15833 (tracing_stop_time): New global.
15834 (tracing_user_name): New global.
15835 (tracing_notes): New global.
15836 (tracing_stop_note): New global.
15837 (cmd_qtstart): Set traceframe_usage, start_time.
15838 (stop_tracing): Set stop_time.
15839 (cmd_qtstatus): Report additional status.
15840 (cmd_qtp): New function.
15841 (handle_tracepoint_query): Call it.
15842 (cmd_qtnotes): New function.
15843 (handle_tracepoint_general_set): Call it.
15844 (get_timestamp): Rename from tsv_get_timestamp.
15845
405f8e94
SS
158462011-11-14 Stan Shebs <stan@codesourcery.com>
15847 Kwok Cheung Yeung <kcy@codesourcery.com>
15848
15849 * linux-x86-low.c (small_jump_insn): New.
15850 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15851 trampoline and error message, build a trampoline and issue a small
15852 jump instruction to it.
15853 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15854 trampoline and error message.
15855 (x86_get_min_fast_tracepoint_insn_len): New.
15856 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15857 * linux-low.h (struct linux_target_ops): Add arguments to
15858 install_fast_tracepoint_jump_pad operation, add new operation.
15859 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15860 arguments.
15861 (linux_get_min_fast_tracepoint_insn_len): New function.
15862 (linux_target_op): Add new operation.
15863 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15864 (gdb_trampoline_buffer_end): Ditto.
15865 (gdb_trampoline_buffer_error): Ditto.
15866 (struct ipa_sym_addresses): Add fields for new IPA variables.
15867 (symbol_list): Add entries for new IPA variables.
15868 (struct tracepoint): Add fields to hold the address range of the
15869 trampoline used by the tracepoint.
15870 (trampoline_buffer_head): New static variable.
15871 (trampoline_buffer_tail): Ditto.
15872 (claim_trampoline_space): New function.
15873 (have_fast_tracepoint_trampoline_buffer): New function.
15874 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15875 structure.
15876 (install_fast_tracepoint): Ditto, also add error buffer argument.
15877 (cmd_qtminftpilen): New function.
15878 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15879 (fast_tracepoint_from_trampoline_address): New function.
15880 (fast_tracepoint_collecting): Handle trampoline as part of jump
15881 pad space.
15882 (set_trampoline_buffer_space): New function.
15883 (initialize_tracepoint): Initialize new IPA variables.
15884 * target.h (struct target_ops): Add arguments to
15885 install_fast_tracepoint_jump_pad operation, add new
15886 get_min_fast_tracepoint_insn_len operation.
15887 (target_get_min_fast_tracepoint_insn_len): New.
15888 (install_fast_tracepoint_jump_pad): Add arguments.
15889 * server.h (IPA_BUFSIZ): Define.
15890 * linux-i386-ipa.c: Include extra header files.
15891 (initialize_fast_tracepoint_trampoline_buffer): New function.
15892 (initialize_low_tracepoint): Call it.
15893 * server.h (set_trampoline_buffer_space): Declare.
15894 (claim_trampoline_space): Ditto.
15895 (have_fast_tracepoint_trampoline_buffer): Ditto.
15896
1e4d1764
YQ
158972011-11-14 Yao Qi <yao@codesourcery.com>
15898
15899 * server.c (handle_query): Handle InstallInTrace for qSupported.
15900 * tracepoint.c (add_tracepoint): Sort list.
15901 (install_tracepoint, download_tracepoint): New.
15902 (cmd_qtdp): Call them to install and download tracepoints.
15903 (sort_tracepoints): Removed.
15904 (cmd_qtstart): Update.
15905
5c73ff4e
YQ
159062011-11-14 Yao Qi <yao@codesourcery.com>
15907
15908 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15909 * mem-break.h: Declare.
15910 * tracepoint.c (cmd_qtstart): Move some code to ...
15911 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15912 New.
15913 (download_tracepoints): Move some code to ...
15914 (download_tracepoint_1): ... here. New.
15915
86a30030
YQ
159162011-11-08 Yao Qi <yao@codesourcery.com>
15917
15918 * remote-utils.c (relocate_instruction): A comment fix.
15919
8d26e50c
JB
159202011-11-07 Joel Brobecker <brobecker@adacore.com>
15921
15922 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15923 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15924 dr_status_mirror and dr_control_mirror from debug_reg_state.
15925 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15926 (i386_initial_stuff): Remove use of deleted globals.
15927 (i386_get_thread_context, i386_set_thread_context,
15928 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15929 from debug_reg_state.
15930
a59306a3
YQ
159312011-11-05 Yao Qi <yao@codesourcery.com>
15932
15933 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15934 address as TPOINT's.
15935
3065dfb6
SS
159362011-11-02 Stan Shebs <stan@codesourcery.com>
15937
15938 * tracepoint.c (agent_mem_read_string): New function.
15939 (eval_agent_expr): Call it for tracenz.
15940 * server.c (handle_query): Report support for tracenz.
15941
fd0d8c7c
YQ
159422011-11-02 Yao Qi <yao@codesourcery.com>
15943
15944 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15945
609086b1
YQ
159462011-11-02 Yao Qi <yao@codesourcery.com>
15947
15948 * target.h: Fix a typo in comment.
15949
b9fd1791
PA
159502011-10-31 Pedro Alves <pedro@codesourcery.com>
15951
15952 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15953 clobber the breakpoints' shadows with fast tracepoint jumps.
15954 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15955 * target.c (write_inferior_memory): Also pass MYADDR down to
15956 check_mem_write.
15957
03583c20
UW
159582011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15959
15960 * configure.ac: Check support for personality routine.
15961 * configure: Regenerate.
15962 * config.in: Likewise.
15963 * linux-low.c: Include <sys/personality.h>.
15964 Define ADDR_NO_RANDOMIZE if necessary.
15965 (linux_create_inferior): Disable address space randomization when
15966 forking inferior, if requested.
15967 (linux_supports_disable_randomization): New function.
15968 (linux_target_ops): Install it.
15969 * server.h (disable_randomization): Declare.
15970 * server.c (disable_randomization): New global variable.
15971 (handle_general_set): Handle QDisableRandomization.
15972 (handle_query): Likewise for qSupported.
15973 (main): Support --disable-randomization and --no-disable-randomization
15974 command line arguments.
15975 * target.h (struct target_ops): Add supports_disable_randomization.
15976 (target_supports_disable_randomization): New macro.
15977
723b724b
MF
159782011-09-29 Mike Frysinger <vapier@gentoo.org>
15979
15980 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15981 ifdef check.
15982 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15983 [!PT_GETDSBT] (target_loadmap): New definition.
15984 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15985 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15986 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15987 and PT_GETDSBT to LINUX_LOADMAP.
15988 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15989 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15990
55329a5c 159912011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15992
15993 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15994 (arm_linux_hwbp_cap): New static variable.
15995 (arm_linux_get_hwbp_cap): Replace by ...
15996 (arm_linux_init_hwbp_cap): ... this new function.
15997 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15998 (arm_linux_get_hw_watchpoint_count): Likewise.
15999 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16000 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16001 (arm_prepare_to_resume): Use perror_with_name instead of error.
16002
55329a5c 160032011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16004
16005 * linux-arm-low.c: Include <signal.h>.
16006 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16007 (struct arm_linux_hwbp_cap): New data type.
16008 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16009 (struct arm_linux_hw_breakpoint): New data type.
16010 (MAX_BPTS, MAX_WPTS): Define.
16011 (struct arch_process_info, struct arch_lwp_info): New data types.
16012 (arm_linux_get_hwbp_cap): New function.
16013 (arm_linux_get_hw_breakpoint_count): Likewise.
16014 (arm_linux_get_hw_watchpoint_count): Likewise.
16015 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16016 (arm_hwbp_control_initialize): Likewise.
16017 (arm_hwbp_control_is_enabled): Likewise.
16018 (arm_hwbp_control_is_initialized): Likewise.
16019 (arm_hwbp_control_disable): Likewise.
16020 (arm_linux_hw_breakpoint_equal): Likewise.
16021 (arm_linux_hw_point_initialize): Likewise.
16022 (struct update_registers_data): New data structure.
16023 (update_registers_callback: New function.
16024 (arm_insert_point): Likewise.
16025 (arm_remove_point): Likewise.
16026 (arm_stopped_by_watchpoint): Likewise.
16027 (arm_stopped_data_address): Likewise.
16028 (arm_new_process): Likewise.
16029 (arm_new_thread): Likewise.
16030 (arm_prepare_to_resume): Likewise.
16031 (the_low_target): Register arm_insert_point, arm_remove_point,
16032 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16033 arm_new_thread, and arm_prepare_to_resume.
16034
6b9801d4
SS
160352011-09-15 Stan Shebs <stan@codesourcery.com>
16036
16037 * server.h (struct emit_ops): Add compare-goto fields.
16038 * tracepoint.c (gdb_agent_op_sizes): New table.
16039 (emit_eq_goto): New function.
16040 (emit_ne_goto): New function.
16041 (emit_lt_goto): New function.
16042 (emit_le_goto): New function.
16043 (emit_gt_goto): New function.
16044 (emit_ge_goto): New function.
16045 (is_goto_target): New function.
16046 (compile_bytecodes): Recognize special cases of compare-goto
16047 combinations and call specialized emitters for them.
16048 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16049 (amd64_emit_ne_goto): New function.
16050 (amd64_emit_lt_goto): New function.
16051 (amd64_emit_le_goto): New function.
16052 (amd64_emit_gt_goto): New function.
16053 (amd64_emit_ge_goto): New function.
16054 (amd64_emit_ops): Add the new functions.
16055 (i386_emit_eq_goto): New function.
16056 (i386_emit_ne_goto): New function.
16057 (i386_emit_lt_goto): New function.
16058 (i386_emit_le_goto): New function.
16059 (i386_emit_gt_goto): New function.
16060 (i386_emit_ge_goto): New function.
16061 (i386_emit_ops): Add the new functions.
16062
bf15cbda
SS
160632011-09-08 Stan Shebs <stan@codesourcery.com>
16064
16065 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16066 (i386_emit_epilogue): Restore %ebx.
16067
943ca1dd
JZ
160682011-08-31 Jie Zhang <jzhang918@gmail.com>
16069
16070 * server.c (step_thread): Remove definition.
16071 (process_serial_event): Don't handle Hs.
16072 * server.h (step_thread): Remove declaration.
16073 * target.c (set_desired_inferior): Remove use of step_thread.
16074
e3deef73
LM
160752011-08-24 Luis Machado <lgustavo@codesourcery.com>
16076
16077 * linux-low.c: Include linux-procfs.h.
16078 (linux_attach_lwp_1): Update comments.
16079 (linux_attach): Scan for existing threads when attaching to a
16080 process that is the tgid.
16081 * Makefile.in: Update dependencies.
16082
13da1c97
LM
160832011-08-24 Luis Machado <lgustavo@codesourcery.com>
16084
16085 * configure.srv: Add linux-procfs.o dependencies.
16086
881127c9
YQ
160872011-08-14 Yao Qi <yao@codesourcery.com>
16088
16089 * target.h (struct target_ops): Fix indent.
16090 * win32-low.c (win32_target_ops): Fix comment.
16091
58dbd541
YQ
160922011-08-14 Andrew Jenner <andrew@codesourcery.com>
16093 Yao Qi <yao@codesourcery.com>
16094
16095 * Makefile.in (clean): Remove tic6x-*.c files.
16096 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16097 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16098 (tic6x-c64xp-linux.c): Likewise.
16099 * configure.srv: Add support for tic6x-*-uclinux.
16100 * linux-tic6x-low.c: New.
16101 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16102
78d85199
YQ
161032011-08-14 Andrew Stubbs <ams@codesourcery.com>
16104 Yao Qi <yao@codesourcery.com>
16105
16106 * target.h (struct target_ops): Add read_loadmap.
16107 * linux-low.c (struct target_loadseg): New type.
16108 (struct target_loadmap): New type.
16109 (linux_read_loadmap): New function.
16110 (linux_target_ops): Add linux_read_loadmap.
16111 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16112 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16113 to NULL.
78d85199 16114
a959a88d
EZ
161152011-08-05 Eli Zaretskii <eliz@gnu.org>
16116
16117 * win32-low.c: Include <stdint.h>.
16118
1ced966e
PA
161192011-07-22 Pedro Alves <pedro@codesourcery.com>
16120
16121 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16122 to the inferior here.
16123 (i386_remove_aligned_watchpoint): Ditto.
16124 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16125 fit part of the watchpoint in the debug registers.
16126 (i386_update_inferior_debug_regs): New.
16127 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16128 registers, and only update the inferior on success.
16129 (i386_low_remove_watchpoint): Ditto.
16130
d26e3629
KY
161312011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16132
16133 * linux-low.c (compare_ints, unique, list_threads, show_process,
16134 linux_core_of_thread): Delete.
16135 (linux_target_ops): Change linux_core_of_thread to
16136 linux_common_core_of_thread.
16137 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16138 * utils.c (malloc_failure): Change type of argument.
16139 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16140 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16141 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16142 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16143 (IPA_OBJS): Add common-utils-ipa.o.
16144 (ptid_h, linux_osdata_h): New macros.
16145 (server_h): Add common/common-utils.h, common/xml-utils.h,
16146 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16147 common/ptid.h.
16148 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16149 ptid.o, buffer.o): New rules.
16150 (linux-low.o): Add common/linux-osdata.h as a dependency.
16151 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16152 * configure.ac: Add AC_HEADER_DIRENT check.
16153 * config.in: Regenerate.
16154 * configure: Regenerate.
16155 * remote-utils.c (xml_escape_text): Delete.
16156 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16157 buffer_xml_printf): Move to common/buffer.c.
16158 * server.c (main): Remove call to initialize_inferiors.
16159 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16160 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16161 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16162 internal_error, gdb_assert, gdb_assert_fail): Delete.
16163 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16164 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16165 common/buffer.h.
16166 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16167 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16168 initialize_inferiors): Delete.
16169
2275a1a7
PA
161702011-07-20 Pedro Alves <pedro@codesourcery.com>
16171
16172 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16173 symbol error.
16174
0a5b1e09
PA
161752011-05-31 Pedro Alves <pedro@codesourcery.com>
16176
16177 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16178 assertion.
16179 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16180
6938fd34
YQ
161812011-05-26 Yao Qi <yao@codesourcery.com>
16182
16183 * Makefile.in (thread-db.o): Track dependence to
16184 common/gdb_thread_db.h.
16185 * thread-db.c: include gdb_thread_db.h from right place.
16186
b481f9e0
TT
161872011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16188
16189 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16190 __FILE__ and __LINE__ to internal_error.
16191
98a5dd13
DE
161922011-05-13 Doug Evans <dje@google.com>
16193
16194 * thread-db.c (try_thread_db_load_from_sdir): New function.
16195 (try_thread_db_load_from_dir): New function.
16196 (thread_db_load_search): Handle $sdir, ignore $pdir.
16197 Remove trying of system directories if search of
16198 libthread-db-search-path fails, that is now done via $sdir.
16199
d248b706
KY
162002011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16201
16202 * server.c (handle_query): Add EnableDisableTracepoints to the list
16203 of supported features.
43aaf8b6 16204 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16205 tracepoints.
43aaf8b6
PA
16206 (cmd_qtenable_disable): New.
16207 (cmd_qtstart): Install tracepoints even if disabled.
16208 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16209 receiving a QTEnable or QTDisable packet.
16210 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16211 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16212 tracepoints.
16213 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16214
84e578fb
DE
162152011-05-10 Doug Evans <dje@google.com>
16216
16217 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16218
71f55dd8
DE
162192011-05-04 Doug Evans <dje@google.com>
16220
16221 * linux-low.c (linux_join): Skip process lookup.
16222 * spu-low.c (spu_join): Ditto.
16223 * server.c (join_inferiors_callback): Delete.
16224 (process_serial_event): For 'D' packet (detach) call join_inferior
16225 directly.
16226
4d393d60
JM
162272011-05-04 Joseph Myers <joseph@codesourcery.com>
16228
16229 * README: Don't mention xscale*-*-linux*.
16230 * configure.srv (xscale*-*-linux*): Don't handle target.
16231
b00ad6ff
NF
162322011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16233
16234 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16235 casting pointers.
16236 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16237 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16238 (i386_emit_void_call_2): Likewise.
16239
af96c192
YQ
162402011-04-26 Yao Qi <yao@codesourcery.com>
16241
43aaf8b6
PA
16242 * linux-low.c: Move common macros to linux-ptrace.h.
16243 Include linux-ptrace.h.
af96c192
YQ
16244 * Makefile.in (linux_ptrace_h): New.
16245 (linux-low.o): Depends on linux-ptrace.h.
16246
03f2bd59
JK
162472011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16248
16249 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16250 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16251 (remote_prepare): New function with most of the TCP code from ...
16252 (remote_open): ... here. Detect PORT here unconditionally. Move also
16253 setting transport_is_reliable.
16254 * server.c (run_once): New variable.
16255 (gdbserver_usage): Document it.
16256 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16257 the first run if RUN_ONCE.
16258 * server.h (run_once, remote_prepare): New declarations.
16259
7a9dd1b2
TT
162602011-04-19 Tom Tromey <tromey@redhat.com>
16261
16262 * win32-low.c (handle_load_dll): Remove duplicate "the".
16263
81239425
PM
162642011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16265
16266 Remove support for old Cygwin 1.5 versions.
16267 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16268 function to avoid warning.
16269 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16270 warning.
16271
9e0627f1
PM
162722011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16273
16274 * gdbserver/server.h (Macro _): Define it if not available.
16275
588eebee
MS
162762011-03-14 Michael Snyder <msnyder@vmware.com>
16277
348af9f7 16278 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16279
43f70d4c
JB
162802011-03-10 Joel Brobecker <brobecker@adacore.com>
16281
16282 * Makefile.in (maintainer-clean realclean distclean): Remove
16283 "make ... subdir_do" command.
16284
348af9f7
MS
162852011-03-10 Michael Snyder <msnyder@vmware.com>
16286
16287 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16288
16289 * server.c (handle_v_run): Free alloced buffer on early return.
16290
e637a4f5
YQ
162912011-03-09 Yao Qi <yao@codesourcery.com>
16292
16293 Revert:
16294 2011-03-04 Yao Qi <yao@codesourcery.com>
16295
16296 * Makefile.in: Remove GNU make feature --directory.
16297
16298 2011-03-05 Yao Qi <yao@codesourcery.com>
16299
16300 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16301 (subdir_do): New make target. Copied from gdb/Makefile.
16302 (maintainer-clean, realclean, distclean, clean): Call corresponding
16303 make targets in common/Makefile.
16304
16305 2011-02-11 Yao Qi <yao@codesourcery.com>
16306
16307 * configure.ac: Call AC_PROG_RANLIB.
16308 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16309 * configure: Regenerate.
16310
e6edda56
JK
163112011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16312
16313 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16314
e5141119
JB
163152011-03-06 Yao Qi <yao@codesourcery.com>
16316
16317 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16318
64794aa4
JB
163192011-03-05 Yao Qi <yao@codesourcery.com>
16320
16321 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16322 (subdir_do): New make target. Copied from gdb/Makefile.
16323 (maintainer-clean, realclean, distclean, clean): Call corresponding
16324 make targets in common/Makefile.
16325
7a762829
YQ
163262011-03-04 Yao Qi <yao@codesourcery.com>
16327
16328 * Makefile.in: Remove GNU make feature --directory.
16329
348af9f7
MS
163302011-03-04 Michael Snyder <msnyder@vmware.com>
16331
16332 * server.c (queue_stop_reply): Call xmalloc not malloc.
16333
163342011-03-02 Michael Snyder <msnyder@vmware.com>
16335
16336 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16337
9f72fee2
MS
163382011-02-28 Michael Snyder <msnyder@vmware.com>
16339
588eebee
MS
16340 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16341 (cmd_qtframe): Ditto.
16342 (cmd_qtbuffer): Ditto.
16343 (cmd_bigqtbuffer): Ditto.
16344
9f72fee2
MS
16345 * utils.c (decimal2str): Initialize 'width' to nine, then
16346 don't mess with it.
16347
8040bd49
UW
163482011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16349
16350 * hostio.c (require_data): Free *data, not data.
16351
7e52cbd0
JK
163522011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16353
16354 * hostio.c (require_data): Use free, not xfree.
16355
9130f83e
MS
163562011-02-27 Michael Snyder <msnyder@vmware.com>
16357
4b812f4e
MS
16358 * server.c (handle_query): Discard unused value.
16359
9130f83e
MS
16360 * hostio.c (require_data): Free malloc memory before returning
16361 error.
16362
69d37113
MS
163632011-02-26 Michael Snyder <msnyder@vmware.com>
16364
16365 * linux-low.c (list_threads): Call closedir for dirent.
16366
35f5825a
MS
163672011-02-27 Michael Snyder <msnyder@vmware.com>
16368
2a589cef
MS
16369 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16370 a case statement falls through.
16371
0adea5f7
MS
16372 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16373
35f5825a
MS
16374 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16375 in comparison.
16376
238f1c74
MS
163772011-02-26 Michael Snyder <msnyder@vmware.com>
16378
16379 * utils.c (decimal2str): Eliminate dead code and dead param.
16380 (pulongest): Drop dead param from call to decimal2str.
16381 (plongest): Ditto.
16382
633ff500
JB
163832011-02-24 Joel Brobecker <brobecker@adacore.com>
16384
16385 Revert the following patch (not approved yet):
16386 2011-02-21 Hui Zhu <teawater@gmail.com>
16387 * tracepoint.c (tp_printf): New function.
16388 (eval_agent_expr): Handle gdb_agent_op_printf.
16389
f9c6ff72
HZ
163902011-02-21 Hui Zhu <teawater@gmail.com>
16391
16392 * tracepoint.c (tp_printf): New function.
16393 (eval_agent_expr): Handle gdb_agent_op_printf.
16394
94d5e490
TT
163952011-02-18 Tom Tromey <tromey@redhat.com>
16396
16397 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16398 (tracepoint.o): Likewise.
16399 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16400 (gdb_agent_op_names): Likewise.
16401
c7f96d2b
TT
164022011-02-18 Tom Tromey <tromey@redhat.com>
16403
16404 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16405 gdb_agent_op_rot>: New constants.
16406 (gdb_agent_op_names): Add pick and roll.
16407 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16408 cases.
16409
0feedb2c
JK
164102011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16411
16412 * aclocal.m4: Regenerated with aclocal-1.11.1.
16413
b3b9301e
PA
164142011-02-14 Pedro Alves <pedro@codesourcery.com>
16415
16416 * server.c (handle_qxfer_traceframe_info): New.
16417 (qxfer_packets): Register "traceframe-info".
16418 (handle_query): Report support for qXfer:traceframe-info:read+.
16419 * tracepoint.c (match_blocktype): New.
16420 (traceframe_find_block_type): Rename to ...
16421 (traceframe_walk_blocks): ... this. Add callback filter argument,
16422 and use it.
16423 (traceframe_find_block_type): New, reimplemented on top of
16424 traceframe_walk_blocks.
16425 (build_traceframe_info_xml): New.
16426 (traceframe_read_info): New.
16427 * server.h (traceframe_read_info): Declare.
16428
4f3e6fb7
YQ
164292011-02-11 Yao Qi <yao@codesourcery.com>
16430
16431 * configure.ac: Call AC_PROG_RANLIB.
16432 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16433 * configure: Regenerate.
16434
764880b7
PA
164352011-02-07 Pedro Alves <pedro@codesourcery.com>
16436
16437 * server.c (gdb_read_memory): Change return semantics to allow
16438 partial transfers.
16439 (handle_search_memory_1): Adjust.
16440 (process_serial_event) <'m' packet>: Handle partial transfers.
16441 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16442
1c79eb8a
PA
164432011-01-28 Pedro Alves <pedro@codesourcery.com>
16444
16445 * regcache.c (init_register_cache): Initialize
16446 regcache->register_status.
16447 (free_register_cache): Release regcache->register_status.
16448 (regcache_cpy): Copy register_status.
16449 (registers_to_string): Print 'x's for unavailable registers.
16450 (supply_register): Mark the register's status valid or
16451 unavailable, depending on whether a buffer was passed in or not.
16452 (supply_register_zeroed): New.
16453 (supply_regblock): Mark the registers' status valid or
16454 unavailable, depending on whether a buffer was passed in or not.
16455 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16456 (struct regcache): New `register_status' field.
16457 (supply_register_zeroed): Declare.
16458 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16459 supply_register_zeroed, rather than passing a NULL buffer to
16460 supply_register.
16461 * tracepoint.c (fetch_traceframe_registers): Update comment.
16462
85724a0e
PA
164632011-01-28 Pedro Alves <pedro@codesourcery.com>
16464
16465 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16466 buffer explicit.
16467
d08aafef
PA
164682011-01-25 Pedro Alves <pedro@codesourcery.com>
16469
16470 * server.h (decode_xfer_write): Change prototype.
16471 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16472 and don't extract the annex here.
16473 * server.c (decode_xfer_read): Remove `annex' parameter,
16474 and don't extract the annex here.
16475 (decode_xfer): New.
16476 (struct qxfer): New.
16477 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16478 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16479 (handle_qxfer_statictrace): New functions, abstracted out from
16480 handle_query, and made to use the struct qxfer interface.
16481 (handle_threads_qxfer_proper): Rename to ...
16482 (handle_qxfer_threads_proper): ... this.
16483 (handle_threads_qxfer): Rename to ...
16484 (handle_qxfer_threads): ... this. Adjust.
16485 (qxfer_packets): New array.
16486 (handle_qxfer): New function.
16487 (handle_query): Use handle_qxfer.
16488
493e2a69
MS
164892011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16490
16491 * gdbreplay.c: Shorten lines of >= 80 columns.
16492 * linux-low.c: Ditto.
16493 * linux-ppc-low.c: Ditto.
16494 * linux-s390-low.c: Ditto.
16495 * linux-sparc-low.c: Ditto.
16496 * linux-x86-low.c: Ditto.
16497 * linux-xtensa-low.c: Ditto.
16498 * mem-break.c: Ditto.
16499 * nto-low.c: Ditto.
16500 * regcache.h: Ditto.
16501 * remote-utils.c: Ditto.
16502 * server.c: Ditto.
16503 * server.h: Ditto.
16504 * thread-db.c: Ditto.
16505 * tracepoint.c: Ditto.
16506 * utils.c: Ditto.
16507 * win32-low.h: Ditto.
16508
44944448
JB
165092011-01-05 Joel Brobecker <brobecker@adacore.com>
16510
16511 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16512 update.
16513
71ce852c
JB
165142011-01-01 Joel Brobecker <brobecker@adacore.com>
16515
16516 * server.c (gdbserver_version): Update copyright year in version
16517 output.
16518 * gdbreplay.c (gdbreplay_version): Ditto.
16519
eb826dc6
MF
165202010-12-29 Jie Zhang <jie.zhang@analog.com>
16521
16522 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16523 * linux-bfin-low.c: New file.
16524 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16525 PT_DATA_ADDR for BFIN targets.
16526 * Makefile.in (SFILES): Add linux-bfin-low.c.
16527 (clean): Remove reg-bfin.c.
16528 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16529 * README: Mention supported Blackfin targets.
16530
39ab222a
MF
165312010-12-23 Mike Frysinger <vapier@gentoo.org>
16532
16533 * .gitignore: New file.
16534
a1f2ce7d
MF
165352010-11-16 Mike Frysinger <vapier@gentoo.org>
16536
16537 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16538
f474844c
JZ
165392010-10-22 Jie Zhang <jie@codesourcery.com>
16540
16541 * Makefile.in: Add FLAGS_TO_PASS variable.
16542 (install): Remove dependency of install-only and recursively
16543 invoke make for install-only.
16544
f1048712
DE
165452010-10-04 Doug Evans <dje@google.com>
16546
16547 * Makefile.in (uninstall): Use $(DESTDIR).
16548
b53a1623
PA
165492010-09-24 Pedro Alves <pedro@codesourcery.com>
16550
e6ee044d
PA
16551 PR gdb/11842
16552
b53a1623
PA
16553 * linux-x86-low.c (compat_siginfo_from_siginfo)
16554 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16555 si_code is < 0. Check for si_code == SI_TIMER before checking for
16556 si_code < 0.
16557
fa1bd1e4
JB
165582010-09-13 Joel Brobecker <brobecker@adacore.com>
16559
16560 * lynx-i386-low.c: New file.
16561 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16562
47fac8f8
JB
165632010-09-13 Joel Brobecker <brobecker@adacore.com>
16564
16565 * lynx-low.c (ptrace_request_to_str): Remove handling for
16566 request values that have been removed in LynxOS 5.x.
16567
1adfc54d
JB
165682010-09-13 Joel Brobecker <brobecker@adacore.com>
16569
16570 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16571 <ptrace.h>
16572
c2a66c29
NS
165732010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16574
16575 * configure.ac: Add --enable-inprocess-agent option.
16576 * configure: Rebuilt.
16577
32fcada3
YQ
165782010-09-06 Yao Qi <yao@codesourcery.com>
16579
16580 * linux-low.c (linux_kill): Remove unused variable.
16581 (linux_stabilize_threads): Likewise.
16582 * server.c (start_inferior): Likewise.
16583 (queue_stop_reply_callback): Likewise.
16584 * tracepoint.c (do_action_at_tracepoint): Likewise.
16585
0cccb683
YQ
165862010-09-06 Yao Qi <yao@codesourcery.com>
16587
16588 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16589 on return.
16590
423ec54c
JK
165912010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16592
16593 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16594
12ac6819
PA
165952010-09-06 Pedro Alves <pedro@codesourcery.com>
16596
16597 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16598 "$(IPA_DEPFILES)".
16599
8ed54b31
JB
166002010-09-01 Joel Brobecker <brobecker@adacore.com>
16601
16602 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16603 gdbserver/lynx-ppc-low.c: New files.
16604 * Makefile.in (lynx_low_h): New variable.
16605 (lynx-low.o, lynx-ppc-low.o): New rules.
16606 * configure.ac: On LynxOS, link with -lnetinet.
16607 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16608 * configure: regenerate.
16609
bb0116a4
JB
166102010-09-01 Joel Brobecker <brobecker@adacore.com>
16611
16612 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16613 * configure.ac: Add check for vasprintf and vsnprintf.
16614 * configure, config.in: Regenerate.
16615 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16616
a778ab81 166172010-09-01 Joel Brobecker <brobecker@adacore.com>
16618
16619 * gdbreplay.c: Move include of alloca.h up, next to include of
16620 malloc.h.
16621 * server.h: Add include of malloc.h.
16622 * mem-break.c: Remove include of malloc.h.
16623 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16624
8b034a19 166252010-09-01 Joel Brobecker <brobecker@adacore.com>
16626
16627 * Makefile.in (memmem.o): Build with -Wno-error.
16628
166292010-09-01 Joel Brobecker <brobecker@adacore.com>
16630
16631 * utils.c (xsnprintf): Make non-static.
16632 * server.h: Add xsnprintf declaration.
16633 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16634 replace calls to snprintf by calls to xsnprintf throughout.
16635
166362010-09-01 Joel Brobecker <brobecker@adacore.com>
16637
16638 * configure.ac: Add configure check for alloca.
16639 * configure, config.in: Regenerate.
16640 * server.h: Include alloca.h if it exists.
16641 * gdbreplay.c: Include alloca.h if it exists.
16642
1a981360
PA
166432010-08-28 Pedro Alves <pedro@codesourcery.com>
16644
16645 * linux-low.c (__SIGRTMIN): Define if not already defined.
16646 (linux_create_inferior): Check for __ANDROID__ rather than
16647 __SIGRTMIN.
16648 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16649 are already deferred.
16650 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16651 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16652 stopped and already has a pending signal to report.
16653 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16654 a pending signal to report or is moving out of a jump pad.
16655 (linux_init_signals): Check for __ANDROID__ rather than
16656 __SIGRTMIN.
16657
b4d51a55
PA
166582010-08-28 Pedro Alves <pedro@codesourcery.com>
16659
16660 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16661 debug_threads check. Avoid a linear search when not doing debug
16662 output.
16663
ec48365d
PA
166642010-08-27 Pedro Alves <pedro@codesourcery.com>
16665
16666 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16667 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16668 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16669 (process_event): Change local fd's type to gdb_fildes_t.
16670 (create_file_handler): Adjust prototype.
16671 (delete_file_handler): Adjust prototype.
16672 (handle_file_event): Adjust prototype. Use pfildes.
16673 (create_file_event): Adjsut prototype.
16674 * remote-utils.c (remote_desc, listen_desc): Change type to
16675 gdb_fildes_t.
16676 * server.h: New gdb_fildes_t typedef.
16677 [USE_WIN32API]: Include winsock2.h.
16678 (delete_file_handler, add_file_handler): Adjust prototypes.
16679 (pfildes): Declare.
16680 * utils.c (pfildes): New.
16681
854d88f0
PA
166822010-08-27 Pedro Alves <pedro@codesourcery.com>
16683
16684 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16685 * configure: Regenerate.
16686
0146f85b
PA
166872010-08-27 Pedro Alves <pedro@codesourcery.com>
16688
16689 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16690 (linux_done_accessing_memory): ... this.
16691 (linux_target_ops): Adjust.
16692 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16693 * nto-low.c (nto_target_ops): Adjust comment.
16694 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16695 * spu-low.c (spu_target_ops): Adjust comment.
16696 * target.h (target_ops): Rename unprepare_to_access_memory field
16697 to done_accessing_memory.
16698 (unprepare_to_access_memory): Rename to ...
16699 (done_accessing_memory): ... this.
16700
90d74c30
PA
167012010-08-26 Pedro Alves <pedro@codesourcery.com>
16702
16703 * linux-low.c (linux_prepare_to_access_memory): New.
16704 (linux_unprepare_to_access_memory): New.
16705 (linux_target_ops): Install them.
16706 * server.c (read_memory): Rename to ...
16707 (gdb_read_memory): ... this. Use
16708 prepare_to_access_memory/prepare_to_access_memory.
16709 (write_memory): Rename to ...
16710 (gdb_write_memory): ... this. Use
16711 prepare_to_access_memory/prepare_to_access_memory.
16712 (handle_search_memory_1): Adjust.
16713 (process_serial_event): Adjust.
16714 * target.h (struct target_ops): New fields
16715 prepare_to_access_memory and unprepare_to_access_memory.
16716 (prepare_to_access_memory, unprepare_to_access_memory): New.
16717 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16718 prepare_to_access_memory/prepare_to_access_memory.
16719 * nto-low.c (nto_target_ops): Adjust.
16720 * spu-low.c (spu_target_ops): Adjust.
16721 * win32-low.c (win32_target_ops): Adjust.
16722
fd467969
PA
167232010-08-26 Pedro Alves <pedro@codesourcery.com>
16724
16725 * Makefile.in (WARN_CFLAGS): Get it from configure.
16726 (WERROR_CFLAGS): New.
16727 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16728 * configure.ac: Introduce --enable-werror, which adds -Werror to
16729 the compiler command line. Enabled by default. Disable with
16730 --disable-werror. Add -Wdeclaration-after-statement
16731 Wpointer-arith and -Wformat-nonliteral to warning flags.
16732 * configure: Regenerate.
16733
331e2f5f
PA
167342010-08-26 Pedro Alves <pedro@codesourcery.com>
16735
16736 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16737
e581f2b4
PA
167382010-08-26 Pedro Alves <pedro@codesourcery.com>
16739
16740 * gdbreplay.c (remote_error): New.
16741 (gdbchar): New.
16742 (expect): Use gdbchar. Check for error reading from GDB.
16743 Clarify sync error output.
16744 (play): Check for errors writing to GDB.
16745 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16746 * remote-utils.c (getpkt): Check for errors writing to the remote
16747 descriptor.
16748
3c11dd79
PA
167492010-08-25 Pedro Alves <pedro@codesourcery.com>
16750
16751 * linux-low.c (linux_wait_1): Move non-debugging code out of
16752 `debug_threads' control.
16753
d20a8ad9
PA
167542010-08-25 Pedro Alves <pedro@codesourcery.com>
16755
16756 * linux-low.c (linux_wait_1): Don't set last_status here.
16757 * server.c (push_event, queue_stop_reply_callback): Assert we're
16758 not pushing a TARGET_WAITKIND_IGNORE event.
16759 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16760 (myresume, handle_target_event): Set the thread's last_resume_kind
16761 and last_status from the target returned status.
16762
964e4306
PA
167632010-08-25 Pedro Alves <pedro@codesourcery.com>
16764
16765 PR threads/10729
16766
16767 * linux-x86-low.c (update_debug_registers_callback): New.
16768 (i386_dr_low_set_addr): Use it.
16769 (i386_dr_low_get_addr): New.
16770 (i386_dr_low_set_control): Use update_debug_registers_callback.
16771 (i386_dr_low_get_control): New.
16772 (i386_dr_low_get_status): Adjust.
16773 * linux-low.c (linux_stop_lwp): New.
16774 * linux-low.h (linux_stop_lwp): Declare.
16775
16776 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16777 argument instead of a i386_debug_reg_state.
16778 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16779 a i386_debug_reg_state.
16780 (i386_insert_aligned_watchpoint): Adjust.
16781 (i386_remove_aligned_watchpoint): Adjust.
16782 (i386_low_stopped_data_address): Read the debug registers from the
16783 inferior instead of from the mirrors.
16784 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16785 (i386_dr_low_get_addr): Declare.
16786 (i386_dr_low_get_control): Declare.
16787 (i386_dr_low_get_status): Change prototype.
16788
16789 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16790 (i386_dr_low_get_addr): New.
16791 (i386_dr_low_get_control): New.
16792 (i386_dr_low_get_status): Adjust prototype. Return
16793 dr_status_mirror.
16794 (i386_initial_stuff): Clear dr_status_mirror and
16795 dr_control_mirror.
16796 (i386_get_thread_context): Adjust.
16797 (i386_set_thread_context): Adjust.
16798 (i386_thread_added): Adjust.
16799
5f21a75b
PA
168002010-08-24 Pedro Alves <pedro@codesourcery.com>
16801
16802 * linux-low.h (linux_thread_area): Delete declaration.
16803
3e4c1235
TS
168042010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16805
16806 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16807 after its termination.
16808
1971b033
PA
168092010-08-09 Pedro Alves <pedro@codesourcery.com>
16810
16811 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16812 (gdb_wants_all_stopped): Delete.
16813 (linux_wait_1): Don't call them.
16814 * server.c (handle_v_cont): Tag all threads as want-stopped.
16815 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16816 stopped as "client-wants-stopped".
16817
310444ac
PA
168182010-07-31 Pedro Alves <pedro@codesourcery.com>
16819
16820 * Makefile.in (signals_h): New.
16821 (server_h): Depend on it.
16822 (server.o): Don't depend on $(signals_def).
16823 (signals.o): Depend on $(signals_def).
16824
a19cae16
JK
168252010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16826
16827 * Makefile.in (signals_def): New.
16828 (server_h): Append include/gdb/signals.h and signals_def.
16829 (server.o): Append signals_def.
16830
30d50328
JK
168312010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16832
16833 * server.c (handle_target_event): Use target_signal_to_host for
16834 resume_info.sig initialization.
16835 * target.h (struct thread_resume) <sig>: New comment.
16836
5c3216e2
OS
168372010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16838
c6f46ca0
OS
16839 * server.c (handle_query): strcpy() the returned string from paddress()
16840 instead of sprintf().
5c3216e2
OS
16841 * utils.c (paddress): Return phex_nz().
16842
6bd31874
JB
168432010-07-07 Joel Brobecker <brobecker@adacore.com>
16844
16845 * server.c (handle_v_cont): Call mourn_inferior if process
16846 just exited.
16847 (myresume): Likewise.
16848
0fb4aa4b
PA
168492010-07-01 Pedro Alves <pedro@codesourcery.com>
16850
16851 Static tracepoints, and integration with UST.
16852
16853 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16854 * mem-break.c (uninsert_all_breakpoints)
16855 (reinsert_all_breakpoints): New.
16856 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16857 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16858 (gdb_agent_ust_loaded, helper_thread_id)
16859 (gdb_agent_helper_thread_id): New macros.
16860 (struct ipa_sym_addresses): Add addr_ust_loaded,
16861 addr_helper_thread_id, addr_cmd_buf.
16862 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16863 (in_process_agent_loaded_ust): New.
16864 (write_e_ust_not_loaded): New.
16865 (maybe_write_ipa_ust_not_loaded): New.
16866 (struct collect_static_trace_data_action): New.
16867 (enum tracepoint_type) <static_tracepoint>: New.
16868 (struct tracepoint) <handle>: Mention static tracepoints.
16869 (struct static_tracepoint_ctx): New.
16870 (CMD_BUF_SIZE): New.
16871 (add_tracepoint_action): Handle static tracepoint actions.
16872 (unprobe_marker_at): New.
16873 (clear_installed_tracepoints): Handle static tracepoints.
16874 (cmd_qtdp): Handle static tracepoints.
16875 (probe_marker_at): New.
16876 (cmd_qtstart): Handle static tracepoints.
16877 (response_tracepoint): Handle static tracepoints.
16878 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16879 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16880 (get_context_regcache): Handle static tracepoints.
16881 (do_action_at_tracepoint): Handle static tracepoint actions.
16882 (traceframe_find_block_type): Handle static trace data blocks.
16883 (traceframe_read_sdata): New.
16884 (download_tracepoints): Download static tracepoint actions.
16885 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16886 (GDB_PROBE_NAME): New.
16887 (ust_ops): New.
16888 (GET_UST_SYM): New.
16889 (USTF): New.
16890 (dlsym_ust): New.
16891 (ust_marker_to_static_tracepoint): New.
16892 (gdb_probe): New.
16893 (collect_ust_data_at_tracepoint): New.
16894 (gdb_ust_probe): New.
16895 (UNIX_PATH_MAX, SOCK_DIR): New.
16896 (gdb_ust_connect_sync_socket): New.
16897 (resume_thread, stop_thread): New.
16898 (run_inferior_command): New.
16899 (init_named_socket): New.
16900 (gdb_ust_socket_init): New.
16901 (cstr_to_hexstr): New.
16902 (next_st): New.
16903 (first_marker, next_marker): New.
16904 (response_ust_marker): New.
16905 (cmd_qtfstm, cmd_qtsstm): New.
16906 (unprobe_marker_at, probe_marker_at): New.
16907 (cmd_qtstmat, gdb_ust_thread): New.
16908 (gdb_ust_init): New.
16909 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16910 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16911 (ST_REGENTRY): New.
16912 (x86_64_st_collect_regmap): New.
16913 (X86_64_NUM_ST_COLLECT_GREGS): New.
16914 (AMD64_RIP_REGNUM): New.
16915 (supply_static_tracepoint_registers): New.
16916 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16917 (ST_REGENTRY): New.
16918 (i386_st_collect_regmap): New.
16919 (i386_NUM_ST_COLLECT_GREGS): New.
16920 (supply_static_tracepoint_registers): New.
16921 * server.c (handle_query): Handle qXfer:statictrace:read.
16922 <qSupported>: Report support for StaticTracepoints, and
16923 qXfer:statictrace:read features.
16924 * server.h (traceframe_read_sdata)
16925 (supply_static_tracepoint_registers): Declare.
16926 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16927 (unpack_varlen_hex): Include in IPA build.
16928 * Makefile.in (ustlibs, ustinc): New.
16929 (IPA_OBJS): Add remote-utils-ipa.o.
16930 ($(IPA_LIB)): Link -ldl and -lpthread.
16931 (UST_CFLAGS): New.
16932 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16933 * config.in, configure: Regenerate.
16934
9e4344e5
PA
169352010-06-20 Ian Lance Taylor <iant@google.com>
16936 Pedro Alves <pedro@codesourcery.com>
16937
16938 * linux-x86-low.c (always_true): Delete.
16939 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16940 trying to fool the compiler with always_true.
16941
c6beb2cb
PA
169422010-06-20 Pedro Alves <pedro@codesourcery.com>
16943
16944 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16945 conditions in gdbserver.
16946
d2ed6730
UW
169472010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16948
16949 * spu-low.c (spu_read_memory): Wrap around local store limit.
16950 (spu_write_memory): Likewise.
16951
4e29fb54
PA
169522010-06-15 Pedro Alves <pedro@codesourcery.com>
16953
16954 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16955 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16956 LONGEST uses.
16957 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16958 uses.
16959 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16960 uses with LONGEST uses.
16961
6a271cae
PA
169622010-06-14 Stan Shebs <stan@codesourcery.com>
16963 Pedro Alves <pedro@codesourcery.com>
16964
16965 Bytecode compiler.
16966
16967 * linux-x86-low.c: Include limits.h.
16968 (add_insns): New.
16969 (always_true): New.
16970 (EMIT_ASM): New.
16971 (EMIT_ASM32): New.
16972 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16973 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16974 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16975 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16976 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16977 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16978 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16979 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16980 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16981 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16982 (amd64_emit_void_call_2): New.
16983 (amd64_emit_ops): New.
16984 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16985 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16986 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16987 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16988 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16989 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16990 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16991 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16992 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16993 (i386_emit_stack_adjust, i386_emit_int_call_1)
16994 (i386_emit_void_call_2): New.
16995 (i386_emit_ops): New.
16996 (x86_emit_ops): New.
16997 (the_low_target): Install x86_emit_ops.
16998 * server.h (struct emit_ops): New.
16999 (get_raw_reg_func_addr): Declare.
17000 (current_insn_ptr, emit_error): Declare.
17001 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17002 (set_trace_state_variable_value): New defines.
17003 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17004 addr_get_trace_state_variable_value and
17005 addr_set_trace_state_variable_value.
17006 (symbol_list): New fields for get_raw_reg,
17007 get_trace_state_variable_value and set_trace_state_variable_value.
17008 (condfn): New typedef.
17009 (struct tracepoint): New field `compiled_cond'.
17010 (do_action_at_tracepoint): Clear compiled_cond.
17011 (get_trace_state_variable_value, set_trace_state_variable_value):
17012 Export in the IPA.
17013 (condition_true_at_tracepoint): If there's a compiled condition,
17014 run that.
17015 (current_insn_ptr, emit_error): New globals.
17016 (struct bytecode_address): New.
17017 (get_raw_reg_func_addr): New.
17018 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17019 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17020 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17021 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17022 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17023 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17024 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17025 (compile_tracepoint_condition, compile_bytecodes): New.
17026 * target.h (emit_ops): Forward declare.
17027 (struct target_ops): New field emit_ops.
17028 (target_emit_ops): New.
17029 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17030 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17031 * linux-low.c (linux_emit_ops): New.
17032 (linux_target_ops): Install it.
17033 * linux-low.h (struct linux_target_ops): New field emit_ops.
17034
92b72907
UW
170352010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17036
17037 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17038 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17039
fa593d66
PA
170402010-06-01 Pedro Alves <pedro@codesourcery.com>
17041 Stan Shebs <stan@codesourcery.com>
17042
17043 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17044 (all): Depend on $(extra_libraries).
17045 (install-only): Install the IPA.
17046 (IPA_OBJS, IPA_LIB): New.
17047 (clean): Remove the IPA lib.
17048 (IPAGENT_CFLAGS): New.
17049 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17050 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17051 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17052 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17053 * configure.ac: Check for atomic builtins support in the compiler.
17054 (IPA_DEPFILES, extra_libraries): Define.
17055 * configure.srv (ipa_obj): Add description.
17056 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17057 (i[34567]86-*-linux*): Set ipa_obj.
17058 (x86_64-*-linux*): Set ipa_obj.
17059 * linux-low.c (stabilizing_threads): New.
17060 (supports_fast_tracepoints): New.
17061 (linux_detach): Stabilize threads before detaching.
17062 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17063 the lwp is either not stabilizing, or is moving out of a jump pad.
17064 (linux_fast_tracepoint_collecting): New.
17065 (maybe_move_out_of_jump_pad): New.
17066 (enqueue_one_deferred_signal): New.
17067 (dequeue_one_deferred_signal): New.
17068 (linux_wait_for_event_1): If moving out of a jump pad, defer
17069 pending signals to later.
17070 (linux_stabilize_threads): New.
17071 (linux_wait_1): Check if threads need moving out of jump pads, and
17072 do it if so.
17073 (stuck_in_jump_pad_callback): New.
17074 (move_out_of_jump_pad_callback): New.
17075 (lwp_running): New.
17076 (linux_resume_one_lwp): Handle moving out of jump pads.
17077 (linux_set_resume_request): Dequeue deferred signals.
17078 (need_step_over_p): Also step over fast tracepoint jumps.
17079 (start_step_over): Also uninsert fast tracepoint jumps.
17080 (finish_step_over): Also reinsert fast tracepoint jumps.
17081 (linux_install_fast_tracepoint_jump): New.
17082 (linux_target_ops): Install linux_stabilize_threads and
17083 linux_install_fast_tracepoint_jump_pad.
17084 * linux-low.h (linux_target_ops) <get_thread_area,
17085 install_fast_tracepoint_jump_pad>: New fields.
17086 (struct lwp_info) <collecting_fast_tracepoint,
17087 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17088 (linux_get_thread_area): Declare.
17089 * linux-x86-low.c (jump_insn): New.
17090 (x86_get_thread_area): New.
17091 (append_insns): New.
17092 (push_opcode): New.
17093 (amd64_install_fast_tracepoint_jump_pad): New.
17094 (i386_install_fast_tracepoint_jump_pad): New.
17095 (x86_install_fast_tracepoint_jump_pad): New.
17096 (the_low_target): Install x86_get_thread_area and
17097 x86_install_fast_tracepoint_jump_pad.
17098 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17099 (struct fast_tracepoint_jump): New.
17100 (fast_tracepoint_jump_insn): New.
17101 (fast_tracepoint_jump_shadow): New.
17102 (find_fast_tracepoint_jump_at): New.
17103 (fast_tracepoint_jump_here): New.
17104 (delete_fast_tracepoint_jump): New.
17105 (set_fast_tracepoint_jump): New.
17106 (uninsert_fast_tracepoint_jumps_at): New.
17107 (reinsert_fast_tracepoint_jumps_at): New.
17108 (set_breakpoint_at): Use write_inferior_memory.
17109 (uninsert_raw_breakpoint): Use write_inferior_memory.
17110 (check_mem_read): Mask out fast tracepoint jumps.
17111 (check_mem_write): Mask out fast tracepoint jumps.
17112 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17113 (set_fast_tracepoint_jump): Declare.
17114 (delete_fast_tracepoint_jump)
17115 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17116 (reinsert_fast_tracepoint_jumps_at): Declare.
17117 * regcache.c: Don't compile many functions when building the
17118 in-process agent library.
17119 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17120 the register buffer in the heap.
17121 (free_register_cache): If the register buffer isn't owned by the
17122 regcache, don't free it.
17123 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17124 pre-existing register caches.
17125 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17126 type.
17127 (convert_ascii_to_int): : Constify `from' parameter type.
17128 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17129 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17130 the needed buffer in-place.
17131 (relocate_instruction): New.
17132 * server.c (handle_query) <qSymbols>: If the target supports
17133 tracepoints, give it a chance of looking up symbols. Report
17134 support for fast tracepoints.
17135 (handle_status): Stabilize threads.
17136 (process_serial_event): Adjust.
17137 * server.h (struct fast_tracepoint_jump): Forward declare.
17138 (struct process_info) <fast_tracepoint_jumps>: New field.
17139 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17140 (decode_X_packet, decode_M_packet): Adjust.
17141 (relocate_instruction): Declare.
17142 (in_process_agent_loaded): Declare.
17143 (tracepoint_look_up_symbols): Declare.
17144 (struct fast_tpoint_collect_status): Declare.
17145 (fast_tracepoint_collecting): Declare.
17146 (force_unlock_trace_buffer): Declare.
17147 (handle_tracepoint_bkpts): Declare.
17148 (initialize_low_tracepoint)
17149 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17150 * target.h (struct target_ops) <stabilize_threads,
17151 install_fast_tracepoint_jump_pad>: New fields.
17152 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17153 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17154 [HAVE_STDINT_H]: Include stdint.h.
17155 (trace_debug_1): Rename to ...
17156 (trace_vdebug): ... this.
17157 (trace_debug): Rename to ...
17158 (trace_debug_1): ... this. Add `level' parameter.
17159 (trace_debug): New.
17160 (ATTR_USED, ATTR_NOINLINE): New.
17161 (IP_AGENT_EXPORT): New.
17162 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17163 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17164 (about_to_request_buffer_space, trace_buffer_is_full)
17165 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17166 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17167 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17168 (traceframe_write_count, traceframes_created)
17169 (trace_state_variables)
17170 New renaming defines.
17171 (struct ipa_sym_addresses): New.
17172 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17173 (symbol_list): New.
17174 (ipa_sym_addrs): New.
17175 (all_tracepoint_symbols_looked_up): New.
17176 (in_process_agent_loaded): New.
17177 (write_e_ipa_not_loaded): New.
17178 (maybe_write_ipa_not_loaded): New.
17179 (tracepoint_look_up_symbols): New.
17180 (debug_threads) [IN_PROCESS_AGENT]: New.
17181 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17182 (UNKNOWN_SIDE_EFFECTS): New.
17183 (stop_tracing): New.
17184 (flush_trace_buffer): New.
17185 (stop_tracing_bkpt): New.
17186 (flush_trace_buffer_bkpt): New.
17187 (read_inferior_integer): New.
17188 (read_inferior_uinteger): New.
17189 (read_inferior_data_pointer): New.
17190 (write_inferior_data_pointer): New.
17191 (write_inferior_integer): New.
17192 (write_inferior_uinteger): New.
17193 (struct collect_static_trace_data_action): Delete.
17194 (enum tracepoint_type): New.
17195 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17196 <actions_str, step_actions, step_actions_str>: Only include in
17197 GDBserver.
fa593d66
PA
17198 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17199 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17200 (tracepoints): Use IP_AGENT_EXPORT.
17201 (last_tracepoint): Don't include in the IPA.
17202 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17203 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17204 (alloced_trace_state_variables): New.
17205 (trace_state_variables): Use IP_AGENT_EXPORT.
17206 (traceframe_t): Delete unused variable.
17207 (circular_trace_buffer): Don't include in the IPA.
17208 (trace_buffer_start): Delete.
17209 (struct trace_buffer_control): New.
17210 (trace_buffer_free): Delete.
17211 (struct ipa_trace_buffer_control): New.
17212 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17213 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17214 New.
17215 (trace_buffer_ctrl): New.
17216 (TRACE_BUFFER_CTRL_CURR): New.
17217 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17218 Reimplement as macros.
17219 (trace_buffer_wrap): Delete.
17220 (traceframe_write_count, traceframe_read_count)
17221 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17222 (struct tracepoint_hit_ctx) <type>: New field.
17223 (struct fast_tracepoint_ctx): New.
17224 (memory_barrier): New.
17225 (cmpxchg): New.
17226 (record_tracepoint_error): Update atomically in the IPA.
17227 (clear_inferior_trace_buffer): New.
17228 (about_to_request_buffer_space): New.
17229 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17230 updating the same buffer.
17231 (add_tracepoint): Default the tracepoint's type to trap
17232 tracepoint, and orig_size to -1.
17233 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17234 internal variables.
17235 (create_trace_state_variable): New parameter `gdb'. Handle it.
17236 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17237 (cmd_qtdp): Handle fast tracepoints.
17238 (cmd_qtdv): Adjust.
17239 (max_jump_pad_size): New.
17240 (gdb_jump_pad_head): New.
17241 (get_jump_space_head): New.
17242 (claim_jump_space): New.
17243 (sort_tracepoints): New.
17244 (MAX_JUMP_SIZE): New.
17245 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17246 IPA.
17247 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17248 support. Upload fast traceframes, and delete internal IPA
17249 breakpoints.
17250 (stop_tracing_handler): New.
17251 (flush_trace_buffer_handler): New.
17252 (cmd_qtstop): Upload fast tracepoints.
17253 (response_tracepoint): Handle fast tracepoints.
17254 (tracepoint_finished_step): Upload fast traceframes. Set the
17255 tracepoint hit context's tracepoint type.
17256 (handle_tracepoint_bkpts): New.
17257 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17258 type. Add comment about fast tracepoints.
17259 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17260 non-existing action_str field.
17261 (get_context_regcache): Handle fast tracepoints.
17262 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17263 to the regcache.
17264 (fast_tracepoint_from_jump_pad_address): New.
17265 (fast_tracepoint_from_ipa_tpoint_address): New.
17266 (collecting_t): New.
17267 (force_unlock_trace_buffer): New.
17268 (fast_tracepoint_collecting): New.
17269 (collecting): New.
17270 (gdb_collect): New.
17271 (write_inferior_data_ptr): New.
17272 (target_tp_heap): New.
17273 (target_malloc): New.
17274 (download_agent_expr): New.
17275 (UALIGN): New.
17276 (download_tracepoints): New.
17277 (download_trace_state_variables): New.
17278 (upload_fast_traceframes): New.
17279 (IPA_FIRST_TRACEFRAME): New.
17280 (IPA_NEXT_TRACEFRAME_1): New.
17281 (IPA_NEXT_TRACEFRAME): New.
17282 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17283 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17284 (gdb_jump_pad_buffer_end): New.
17285 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17286 (initialize_tracepoint): Adjust.
17287 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17288 buffer. Initialize the low module.
17289 * utils.c (PREFIX, TOOLNAME): New.
17290 (malloc_failure): Use PREFIX.
17291 (error): In the IPA, an error causes an exit.
17292 (fatal, warning): Use PREFIX.
17293 (internal_error): Use TOOLNAME.
17294 (NUMCELLS): Increase to 10.
17295 * configure, config.in: Regenerate.
17296
d149dd1d
PA
172972010-06-01 Pedro Alves <pedro@codesourcery.com>
17298
17299 * server.c (handle_query) <qSupported>: Do two passes over the
17300 qSupported string to avoid nesting strtok.
17301
f6528abd
JK
173022010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17303
17304 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17305 (CDEPS): New.
17306 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17307 -Wl,--dynamic-list.
17308 * configure: Regenerate.
17309 * proc-service.list: New.
17310
ca2a87a0
JK
173112010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17312
17313 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17314 New comment.
17315
363a6e9f
OS
173162010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17317
17318 * gdbreplay.c (remote_open): Check error return from socket() call by
17319 its equality to -1 not by it being negative.
17320 * remote-utils.c (remote_open): Likewise.
17321
d23b6cb1
PA
173222010-05-23 Pedro Alves <pedro@codesourcery.com>
17323
17324 * config.h: Regenerate.
17325
28d3cf85
MK
173262010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17327
17328 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17329 doesn't provide PTRACE_GET_THREAD_AREA.
17330
fea36a59
MK
173312010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17332
17333 * linux-m68k-low.c: Include <asm/ptrace.h>
17334 (ps_get_thread_area): Implement.
17335
24b066ba
DE
173362010-05-03 Doug Evans <dje@google.com>
17337
17338 * event-loop.c (struct callback_event): New struct.
17339 (callback_list): New global.
17340 (append_callback_event, delete_callback_event): New functions.
17341 (process_callback): New function.
17342 (start_event_loop): Call it.
17343 * remote-utils.c (NOT_SCHEDULED): Define.
17344 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17345 moved out of readchar.
17346 (readchar): Rewrite. Call reschedule before returning.
17347 (reset_readchar): New function.
17348 (remote_close): Call it.
17349 (process_remaining, reschedule): New functions.
17350 * server.h (callback_handler_func): New typedef.
17351 (append_callback_event, delete_callback_event): Declare.
17352
9836d6ea
PA
173532010-05-03 Pedro Alves <pedro@codesourcery.com>
17354
17355 * proc-service.c (ps_pglobal_lookup): Use
17356 thread_db_look_up_one_symbol.
17357 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17358 parameter. Use it instead of all_symbols_looked_up.
17359 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17360 field.
17361 (all_symbols_looked_up): Don't declare.
17362 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17363 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17364 field.
17365 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17366 Set all_symbols_looked_up here.
17367 (thread_db_look_up_one_symbol): New.
17368 (thread_db_get_tls_address): Adjust.
17369 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17370 thread_db object on the heap, and tentatively set it in the
17371 process structure.
17372 (thread_db_init): Don't set all_symbols_looked_up here.
17373 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17374
7984d532
PA
173752010-05-03 Pedro Alves <pedro@codesourcery.com>
17376
17377 * linux-low.c (linux_kill, linux_detach): Adjust.
17378 (status_pending_p_callback): Remove redundant statement. Check
17379 for !TARGET_WAITIKIND_IGNORE, instead of
17380 TARGET_WAITKIND_STOPPED.
17381 (handle_tracepoints): Make sure LWP is locked. Adjust.
17382 (linux_wait_for_event_1): Adjust.
17383 (linux_cancel_breakpoints): New.
17384 (unsuspend_one_lwp): New.
17385 (unsuspend_all_lwps): New.
17386 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17387 (send_sigstop_callback): Change return type to int, add new
17388 `except' parameter and handle it.
17389 (suspend_and_send_sigstop_callback): New.
17390 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17391 pass them down. If SUSPEND, also increment the lwp's suspend
17392 count.
17393 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17394 (need_step_over_p): Don't consider suspended LWPs.
17395 (start_step_over): Adjust.
17396 (proceed_one_lwp): Change return type to int, add new `except'
17397 parameter and handle it.
17398 (unsuspend_and_proceed_one_lwp): New.
17399 (proceed_all_lwps): Use find_inferior instead of
17400 for_each_inferior.
17401 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17402 also decrement the suspend count of LWPs. Pass `except' down,
17403 instead of hacking its suspend count.
17404 (linux_pause_all): Add `freeze' parameter. Adjust.
17405 (linux_unpause_all): New.
17406 (linux_target_ops): Install linux_unpause_all.
17407 * server.c (handle_status): Adjust.
17408 * target.h (struct target_ops): New fields `unpause_all' and
17409 `cancel_breakpoints'. Add new parameter to `pause_all'.
17410 (pause_all): Add new `freeze' parameter.
17411 (unpause_all): New.
17412 (cancel_breakpoints): New.
17413 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17414 cancel breakpoints.
17415 (cmd_qtstart): Pause threads.
17416 (stop_tracing): Pause threads, and cancel breakpoints.
17417 * win32-low.c (win32_target_ops): Adjust.
17418
e471f25b
PA
174192010-05-03 Pedro Alves <pedro@codesourcery.com>
17420
17421 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17422 the inferior right away from here...
17423 (linux_wait_1): ... to here, and adjust to check the thread's
17424 last_resume_kind instead of the lwp's step or stop_expected flags.
17425
1915ef4f
PA
174262010-05-02 Pedro Alves <pedro@codesourcery.com>
17427
17428 * README: Use consistent `GDB' and `GDBserver' spellings.
17429
f9e39928
PA
174302010-05-02 Pedro Alves <pedro@codesourcery.com>
17431
17432 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17433 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17434 (linux_detach_one_lwp): Assume the lwp is stopped.
17435 (any_thread_of): Delete.
17436 (linux_detach): Stop all lwps here. Don't blindly delete all
17437 breakpoints.
17438 (delete_lwp_callback): New.
17439 (linux_mourn): Delete all lwps of the process that is gone.
17440 (linux_wait_1): Don't delete the last lwp of the process here.
17441 * mem-break.h (mark_breakpoints_out): Declare.
17442 * mem-break.c (mark_breakpoints_out): New.
17443 (free_all_breakpoints): Use it.
17444 * server.c (handle_target_event): If the process is gone, mark
17445 breakpoints out.
17446 * thread-db.c (struct thread_db) <create_bp>: New field.
17447 (thread_db_enable_reporting): Fix prototype. Store a thread event
17448 breakpoint reference in the thread_db struct.
17449 (thread_db_load_search): Clear the thread_db object.
17450 (try_thread_db_load_1): Ditto.
17451 (switch_to_process): New.
17452 (disable_thread_event_reporting): Use it.
17453 (remove_thread_event_breakpoints): New.
17454 (thread_db_detach, thread_db_mourn): Use it.
17455
1e7fc18c
PA
174562010-05-01 Pedro Alves <pedro@codesourcery.com>
17457
17458 * linux-low.c (linux_enable_event_reporting): New.
17459 (linux_wait_for_event_1, handle_extended_wait): Use it.
17460
02fc4de7
PA
174612010-04-30 Pedro Alves <pedro@codesourcery.com>
17462
17463 * linux-low.c (linux_kill_one_lwp, linux_kill)
17464 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17465 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17466 SIGSTOP even if the LWP is stopped.
17467 (send_sigstop_callback): New.
17468 (stop_all_lwps): Use send_sigstop_callback instead.
17469 (linux_resume_one_thread): Adjust.
17470 (proceed_one_lwp): Still proceed an LWP that the client has
17471 requested to stop, if we haven't reported it as stopped yet. Make
17472 sure that LWPs the client want stopped, have a pending SIGSTOP.
17473
bc3b5632
DE
174742010-04-26 Doug Evans <dje@google.com>
17475
ae1ada35
DE
17476 * server.c (handle_general_set): Make static.
17477
bc3b5632
DE
17478 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17479 Print received char after testing for error/eof instead of before.
17480 (input_interrupt): Tweak comment.
17481
65730243
DE
174822010-04-23 Doug Evans <dje@google.com>
17483
17484 * server.c (start_inferior): Print inferior argv if --debug.
17485
a8ae7dc0
AR
174862010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17487
17488 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17489 * nto-x86-low.c: Include server.h
17490
1c07cc19
PM
174912010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17492
17493 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17494 be consistent with other sources of this directory.
17495 (init_registers_amd64): Correct name of source file of this function
17496 in the comment.
17497
e0a61e09
PM
174982010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17499
17500 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17501 64-bit executables.
17502
54709339
PM
175032010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17504
17505 * win32-i386-low.c: Add 64-bit support.
17506 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17507 (init_registers_amd64): Declare.
17508 (mappings): Add 64-bit version of array.
17509 (init_windows_x86): New function.
17510 (the_low_target): Change init_arch field to init_windows_x86.
17511
e8f0053d
PM
175122010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17513
17514 * win32-low.c: Adapt to support also 64-bit architecture.
17515 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17516 (get_image_name): Use SIZE_T type for local variable `done'.
17517 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17518 (toolhelp_get_dll_name): Idem.
17519 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17520 Use uintptr_t typecast to avoid warning.
17521 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17522 (handle_exception): Use phex_nz to avoid warning.
17523 (win32_wait): Remove unused local variable `process'.
17524
c481e77e
PM
175252010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526
17527 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17528 `amd64-avx.o'.
17529
12ea4b69
PM
175302010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17531
17532 * configure.ac: Use `ws2_32' library for srv_mingw.
17533 * configure: Regenerate.
17534 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17535 * remote-utils.c: Likewise.
17536
f6d1620c
L
175372010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17538
17539 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17540 if __x86_64__ is defined.
17541
8e642873
PM
175422010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17543
17544 * configure: Regenerate.
17545
711e434b
PM
175462010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17547
17548 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17549 * target.h (target_ops): New get_tib_address field.
17550 * win32-low.h (win32_thread_info): Add thread_local_base field.
17551 * win32-low.c (child_add_thread): Add tlb argument.
17552 Set thread_local_base field to TLB.
17553 (get_child_debug_event): Adapt to child_add_thread change.
17554 (win32_get_tib_address): New function.
17555 (win32_target_ops): Set get_tib_address field to
17556 win32_get_tib_address.
17557 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17558
505106cd
PA
175592010-04-12 Pedro Alves <pedro@codesourcery.com>
17560
505106cd
PA
17561 * linux-low.c (linux_mourn): Also remove the process.
17562 * server.c (handle_target_event): Don't remove the process here.
17563 * nto-low.c (nto_mourn): New.
17564 (nto_target_ops): Install it.
17565 * spu-low.c (spu_mourn): New.
17566 (spu_target_ops): Install it.
17567 * win32-low.c (win32_mourn): New.
17568 (win32_target_ops): Install it.
17569
e8470a06
PA
175702010-04-12 Pedro Alves <pedro@codesourcery.com>
17571
17572 * server.h (buffer_xml_printf): Remove redundant `;'.
17573
45ba0d02
PA
175742010-04-12 Pedro Alves <pedro@codesourcery.com>
17575
17576 * regcache.c (set_register_cache): Invalidate regcaches before
17577 changing the register cache layout.
17578 (regcache_invalidate_one): Allow a NULL regcache.
17579 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17580 regcaches before changing the register cache layout or the target
17581 regsets.
17582
59e04013
L
175832010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17584
17585 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17586 variable warning on Linux/x86-64.
17587
8336d594
PA
175882010-04-11 Pedro Alves <pedro@codesourcery.com>
17589
17590 GDBserver disconnected tracing support.
17591
17592 * linux-low.c (linux_remove_process): Delete.
17593 (add_lwp): Don't set last_resume_kind here.
17594 (linux_kill): Use `mourn'.
17595 (linux_detach): Use `thread_db_detach', and `mourn'.
17596 (linux_mourn): New.
17597 (linux_attach_lwp_1): Adjust comment.
17598 (linux_attach): last_resume_kind moved the thread_info; adjust.
17599 (status_pending_p_callback): Adjust.
17600 (linux_wait_for_event_1): Adjust.
17601 (count_events_callback, select_singlestep_lwp_callback)
17602 (select_event_lwp_callback, cancel_breakpoints_callback)
17603 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17604 (proceed_one_lwp): Adjust.
17605 (linux_async): Add debug output.
17606 (linux_thread_stopped): New.
17607 (linux_pause_all): New.
17608 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17609 linux_pause_all.
17610 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17611 (thread_db_free): Delete declaration.
17612 (thread_db_detach, thread_db_mourn): Declare.
17613 * thread-db.c (thread_db_init): Use thread_db_mourn.
17614 (thread_db_free): Delete, split in two.
17615 (disable_thread_event_reporting): New.
17616 (thread_db_detach): New.
17617 (thread_db_mourn): New.
17618
17619 * server.h (struct thread_info) <last_resume_kind>: New field.
17620 <attached>: Add comment.
17621 <gdb_detached>: New field.
17622 (handler_func): Change return type to int.
17623 (handle_serial_event, handle_target_event): Ditto.
17624 (gdb_connected): Declare.
17625 (tracing): Delete.
17626 (disconnected_tracing): Declare.
17627 (stop_tracing): Declare.
17628
17629 * server.c (handle_query) <qSupported>: Report support for
17630 disconnected tracing.
17631 (queue_stop_reply_callback): Account for running threads.
17632 (gdb_wants_thread_stopped): New.
17633 (gdb_wants_all_threads_stopped): New.
17634 (gdb_reattached_process): New.
17635 (handle_status): Clear the `gdb_detached' flag of all processes.
17636 In all-stop, stop all threads.
17637 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17638 (process_serial_event): If the remote connection breaks, or if an
17639 exit was forced with "monitor exit", force an event loop exit.
17640 Handle disconnected tracing on detach.
17641 (handle_serial_event): Adjust.
17642 (handle_target_event): If GDB isn't connected, forward events back
17643 to the inferior, unless the last process exited, in which case,
17644 exit gdbserver. Adjust interface.
17645
17646 * remote-utils.c (remote_open): Don't block in accept. Instead
17647 register an event loop source on the listen socket file
17648 descriptor. Refactor bits into ...
17649 (listen_desc): ... this new global.
17650 (gdb_connected): ... this new function.
17651 (enable_async_notification): ... this new function.
17652 (handle_accept_event): ... this new function.
17653 (remote_close): Clear remote_desc.
17654
17655 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17656
17657 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17658 New fields.
17659 (mourn_inferior): Define.
17660 (target_process_qsupported): Avoid the dangling else problem.
17661 (thread_stopped): Define.
17662 (pause_all): Define.
17663 (target_waitstatus_to_string): Declare.
17664 * target.c (target_waitstatus_to_string): New.
17665
17666 * tracepoint.c (tracing): Make extern.
17667 (disconnected_tracing): New.
17668 (stop_tracing): Make extern. Handle tracing stops due to GDB
17669 disconnecting.
17670 (cmd_qtdisconnected): New.
17671 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17672 (handle_tracepoint_general_set): Handle QTDisconnected.
17673
17674 * event-loop.c (event_handler_func): Change return type to int.
17675 (process_event): Bail out if the event handler wants the event
17676 loop to stop.
17677 (handle_file_event): Ditto.
17678 (start_event_loop): Bail out if the event handler wants the event
17679 loop to stop.
17680
17681 * nto-low.c (nto_target_ops): Adjust.
17682 * spu-low.c (spu_wait): Don't remove the process here.
17683 (spu_target_ops): Adjust.
17684 * win32-low.c (win32_wait): Don't remove the process here.
17685 (win32_target_ops): Adjust.
17686
5d267c4c
PA
176872010-04-11 Pedro Alves <pedro@codesourcery.com>
17688
17689 * regcache.c (realloc_register_cache): Invalidate inferior's
17690 regcache before recreating it.
17691
623ccd72
PA
176922010-04-09 Pedro Alves <pedro@codesourcery.com>
17693
17694 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17695
219f2f23
PA
176962010-04-09 Stan Shebs <stan@codesourcery.com>
17697 Pedro Alves <pedro@codesourcery.com>
17698
17699 * server.h (LONGEST): New.
17700 (struct thread_info) <while_stepping>: New field.
17701 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17702 Declare.
17703 (initialize_tracepoint, handle_tracepoint_general_set)
17704 (handle_tracepoint_query, tracepoint_finished_step)
17705 (tracepoint_was_hit, release_while_stepping_state_list):
17706 (current_traceframe): Declare.
17707 * server.c (handle_general_set): Handle tracepoint packets.
17708 (read_memory): New.
17709 (write_memory): New.
17710 (handle_search_memory_1): Use read_memory.
17711 (handle_query): Report support for conditional tracepoints, trace
17712 state variables, and tracepoint sources. Handle tracepoint
17713 queries.
17714 (main): Initialize the tracepoints module.
17715 (process_serial_event): Handle traceframe reads/writes.
17716
17717 * linux-low.c (handle_tracepoints): New.
17718 (linux_wait_1): Call it.
17719 (linux_resume_one_lwp): Handle while-stepping.
17720 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17721 (linux_target_ops): Install them.
17722 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17723 New field.
17724 * linux-x86-low.c (x86_supports_tracepoints): New.
17725 (the_low_target). Install it.
17726
17727 * mem-break.h (delete_breakpoint): Declare.
17728 * mem-break.c (delete_breakpoint): Make external.
17729
17730 * target.h (struct target_ops): Add `supports_tracepoints',
17731 `read_pc', and `write_pc' fields.
17732 (target_supports_tracepoints): Define.
17733 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17734 (phex_nz): New.
17735
17736 * regcache.h (struct regcache) <registers_owned>: New field.
17737 (init_register_cache, regcache_cpy): Declare.
17738 (regcache_read_pc, regcache_write_pc): Declare.
17739 (register_cache_size): Declare.
17740 (supply_regblock): Declare.
17741 * regcache.c (init_register_cache): New.
17742 (new_register_cache): Use it.
17743 (regcache_cpy): New.
17744 (register_cache_size): New.
17745 (supply_regblock): New.
17746 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17747
219f2f23
PA
17748 * tracepoint.c: New.
17749
17750 * Makefile.in (OBS): Add tracepoint.o.
17751 (tracepoint.o): New rule.
17752
3a13a53b
L
177532010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17754
17755 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17756 (i386-mmx.o): New.
17757 (i386-mmx.c): Likewise.
17758 (i386-mmx-linux.o): Likewise.
17759 (i386-mmx-linux.c): Likewise.
17760
17761 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17762 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17763 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17764 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17765
17766 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17767 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17768 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17769
1570b33e
L
177702010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17771
17772 * Makefile.in (clean): Updated.
17773 (i386-avx.o): New.
17774 (i386-avx.c): Likewise.
17775 (i386-avx-linux.o): Likewise.
17776 (i386-avx-linux.c): Likewise.
17777 (amd64-avx.o): Likewise.
17778 (amd64-avx.c): Likewise.
17779 (amd64-avx-linux.o): Likewise.
17780 (amd64-avx-linux.c): Likewise.
17781
17782 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17783 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17784 (srv_amd64_regobj): Add amd64-avx.o.
17785 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17786 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17787 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17788 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17789 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17790 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17791 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17792
17793 * i387-fp.c: Include "i386-xstate.h".
17794 (i387_xsave): New.
17795 (i387_cache_to_xsave): Likewise.
17796 (i387_xsave_to_cache): Likewise.
17797 (x86_xcr0): Likewise.
17798
17799 * i387-fp.h (i387_cache_to_xsave): Likewise.
17800 (i387_xsave_to_cache): Likewise.
17801 (x86_xcr0): Likewise.
17802
17803 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17804 * linux-crisv32-low.c (target_regsets): Likewise.
17805 * linux-m68k-low.c (target_regsets): Likewise.
17806 * linux-mips-low.c (target_regsets): Likewise.
17807 * linux-ppc-low.c (target_regsets): Likewise.
17808 * linux-s390-low.c (target_regsets): Likewise.
17809 * linux-sh-low.c (target_regsets): Likewise.
17810 * linux-sparc-low.c (target_regsets): Likewise.
17811 * linux-xtensa-low.c (target_regsets): Likewise.
17812
17813 * linux-low.c: Include <sys/uio.h>.
17814 (regsets_fetch_inferior_registers): Support nt_type.
17815 (regsets_store_inferior_registers): Likewise.
17816 (linux_process_qsupported): New.
17817 (linux_target_ops): Add linux_process_qsupported.
17818
17819 * linux-low.h (regset_info): Add nt_type.
17820 (linux_target_ops): Add process_qsupported.
17821
17822 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17823 and <sys/uio.h>.
17824 (init_registers_i386_avx_linux): New.
17825 (init_registers_amd64_avx_linux): Likewise.
17826 (xmltarget_i386_linux_no_xml): Likewise.
17827 (xmltarget_amd64_linux_no_xml): Likewise.
17828 (PTRACE_GETREGSET): Likewise.
17829 (PTRACE_SETREGSET): Likewise.
17830 (x86_fill_xstateregset): Likewise.
17831 (x86_store_xstateregset): Likewise.
17832 (use_xml): Likewise.
17833 (x86_linux_update_xmltarget): Likewise.
17834 (x86_linux_process_qsupported): Likewise.
17835 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17836 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17837 init_registers_i386_linux here. Call
17838 x86_linux_update_xmltarget.
17839 (the_low_target): Add x86_linux_process_qsupported.
17840
17841 * server.c (handle_query): Call target_process_qsupported.
17842
17843 * target.h (target_ops): Add process_qsupported.
17844 (target_process_qsupported): New.
17845
fc7238bb
PA
178462010-04-03 Pedro Alves <pedro@codesourcery.com>
17847
17848 * inferiors.c (add_thread): Set last_status kind to
17849 TARGET_WAITKIND_IGNORE.
17850 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17851 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17852 (linux_wait_1): Move `thread' local definition to block that uses
17853 it. Don't NULL initialize `event_child'.
17854 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17855 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17856 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17857
bdabb078
PA
178582010-04-01 Pedro Alves <pedro@codesourcery.com>
17859
17860 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17861 an extended waitstatus, or by a watchpoint.
17862 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17863 thread was stepping or has been stopped by a watchpoint.
17864
d3bbe7a0
PA
178652010-04-01 Pedro Alves <pedro@codesourcery.com>
17866
17867 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17868 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17869 of another, then delete the previous, and validate all
17870 breakpoints.
17871 (validate_inserted_breakpoint): New.
17872 (delete_disabled_breakpoints): New.
17873 (validate_breakpoints): New.
17874 (check_mem_read): Validate breakpoints before trusting their
17875 shadow. Delete disabled breakpoints.
17876 (check_mem_write): Validate breakpoints before trusting they
17877 should be inserted. Delete disabled breakpoints.
17878 * mem-break.h (validate_breakpoints):
17879 * server.c (handle_query): Validate breakpoints when we see a
17880 qSymbol query.
17881
8b07ae33
PA
178822010-04-01 Pedro Alves <pedro@codesourcery.com>
17883
17884 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17885 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17886 if we could tell there's a GDB breakpoint at stop_pc.
17887 (need_step_over_p): Don't do a step over if we find a GDB
17888 breakpoint at the resume PC.
17889
17890 * mem-break.c (struct raw_breakpoint): New.
17891 (enum bkpt_type): New type `gdb_breakpoint'.
17892 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17893 fields. New field `raw'.
17894 (find_raw_breakpoint_at): New.
17895 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17896 breakpoint instead.
17897 (set_breakpoint_at): Adjust.
17898 (delete_raw_breakpoint): New.
17899 (release_breakpoint): New.
17900 (delete_breakpoint): Rename to...
17901 (delete_breakpoint_1): ... this. Add proc parameter. Use
17902 release_breakpoint. Return ENOENT.
17903 (delete_breakpoint): Reimplement.
17904 (find_breakpoint_at): Delete.
17905 (find_gdb_breakpoint_at): New.
17906 (delete_breakpoint_at): Delete.
17907 (set_gdb_breakpoint_at): New.
17908 (delete_gdb_breakpoint_at): New.
17909 (gdb_breakpoint_here): New.
17910 (set_reinsert_breakpoint): Use release_breakpoint.
17911 (uninsert_breakpoint): Rename to ...
17912 (uninsert_raw_breakpoint): ... this.
17913 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17914 (reinsert_raw_breakpoint): Change parameter type to
17915 raw_breakpoint.
17916 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17917 instead.
17918 (check_breakpoints): Adjust. Use release_breakpoint.
17919 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17920 (breakpoint_inserted_here): Ditto.
17921 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17922 Don't trust the breakpoint's shadow if it is not inserted.
17923 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17924 (delete_all_breakpoints): Adjust.
17925 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17926 use delete_breakpoint_1.
17927
17928 * mem-break.h (breakpoints_supported): Delete declaration.
17929 (set_gdb_breakpoint_at): Declare.
17930 (gdb_breakpoint_here): Declare.
17931 (delete_breakpoint_at): Delete.
17932 (delete_gdb_breakpoint_at): Declare.
17933
17934 * server.h (struct raw_breakpoint): Forward declare.
17935 (struct process_info): New field `raw_breakpoints'.
17936
17937 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17938 breakpoints.
17939
6bf5e0ba
PA
179402010-03-24 Pedro Alves <pedro@codesourcery.com>
17941
17942 * linux-low.c (status_pending_p_callback): Fix comment.
17943 (linux_wait_for_event_1): Move most of the internal breakpoint
17944 handling from here...
17945 (linux_wait_1): ... to here.
17946 (count_events_callback): New.
17947 (select_singlestep_lwp_callback): New.
17948 (select_event_lwp_callback): New.
17949 (cancel_breakpoints_callback): New.
17950 (select_event_lwp): New.
17951 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17952 priority to all LWPs that have had events that should be reported
17953 to the client. Cancel breakpoints when about to reporting the
17954 event to the client, not while stopping lwps. No longer cancel
17955 finished single-steps here.
17956 (cancel_finished_single_step): Delete.
17957 (cancel_finished_single_steps): Delete.
17958
414a389f
PA
179592010-03-24 Pedro Alves <pedro@codesourcery.com>
17960
17961 * mem-break.c (enum bkpt_type): New.
17962 (struct breakpoint): New field `type'.
17963 (set_breakpoint_at): Change return type to struct breakpoint
17964 pointer. Set type to `other_breakpoint' by default.
17965 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17966 in the breakpoint list.
17967 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17968 (reinsert_breakpoint): Rename to ...
17969 (reinsert_raw_breakpoint): ... this.
17970 (reinsert_breakpoints_at): Adjust.
17971 * mem-break.h (struct breakpoint): Declare.
17972 (set_breakpoint_at): Change return type to struct breakpoint
17973 pointer.
17974
2280c721
PA
179752010-03-24 Pedro Alves <pedro@codesourcery.com>
17976
17977 * server.c (handle_query): Assign, not compare.
17978
d50171e4
PA
179792010-03-24 Pedro Alves <pedro@codesourcery.com>
17980
17981 Teach linux gdbserver to step-over-breakpoints.
17982
17983 * linux-low.c (can_hardware_single_step): New.
17984 (supports_breakpoints): New.
17985 (handle_extended_wait): If stopping threads, read the stop pc of
17986 the new cloned LWP.
17987 (get_pc): New.
17988 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17989 low target doesn't support retrieving the PC.
17990 (add_lwp): Set last_resume_kind to resume_continue.
17991 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17992 (linux_attach): Don't clear stop_expected. Set the lwp's
17993 last_resume_kind to resume_stop.
17994 (linux_detach_one_lwp): Don't check for removed breakpoints.
17995 (check_removed_breakpoint): Delete.
17996 (status_pending_p): Rename to ...
17997 (status_pending_p_callback): ... this. Don't check for removed
17998 breakpoints. Don't consider threads that are stopped from GDB's
17999 perspective.
18000 (linux_wait_for_lwp): Always read the stop_pc here.
18001 (cancel_breakpoint): New.
18002 (step_over_bkpt): New global.
18003 (linux_wait_for_event_1): Implement stepping over breakpoints.
18004 (gdb_wants_lwp_stopped): New.
18005 (gdb_wants_all_stopped): New.
18006 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18007 single-step traps here. Store the thread's last reported target
18008 wait status.
18009 (send_sigstop): Don't clear stop_expected. Always set it,
18010 instead.
18011 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18012 (cancel_finished_single_step): New.
18013 (cancel_finished_single_steps): New.
18014 (wait_for_sigstop): Don't cancel finished single-step traps here.
18015 (linux_resume_one_lwp): Don't check for removed breakpoints.
18016 Don't set `step' on non-hardware step archs.
18017 (linux_set_resume_request): Ignore resume_stop requests if already
18018 stopping or stopped. Set the lwp's last_resume_kind.
18019 (resume_status_pending_p): Don't check for removed breakpoints.
18020 (need_step_over_p): New.
18021 (start_step_over): New.
18022 (finish_step_over): New.
18023 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18024 requests. Clear the thread's last reported target waitstatus.
18025 Don't use the `suspended' flag. Don't consider pending breakpoints.
18026 (linux_resume): Start a step-over if necessary.
18027 (proceed_one_lwp): New.
18028 (proceed_all_lwps): New.
18029 (unstop_all_lwps): New.
18030 * linux-low.h (struct lwp_info): Rewrite comment for the
18031 `suspended' flag. Add the `stop_pc' field. Delete the
18032 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18033 Add `'last_resume_kind' and `need_step_over' fields.
18034 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18035 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18036 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18037 (set_raw_breakpoint_at): New.
18038 (set_breakpoint_at): Rewrite to use it.
18039 (reinsert_breakpoint_handler): Delete.
18040 (set_reinsert_breakpoint): New.
18041 (reinsert_breakpoint_by_bp): Delete.
18042 (delete_reinsert_breakpoints): New.
18043 (uninsert_breakpoint): Rewrite.
18044 (uninsert_breakpoints_at): New.
18045 (reinsert_breakpoint): Rewrite.
18046 (reinsert_breakpoints_at): New.
18047 (check_breakpoints): Rewrite.
18048 (breakpoint_here): New.
18049 (breakpoint_inserted_here): New.
18050 (check_mem_read): Adjust.
18051 * mem-break.h (breakpoints_supported, breakpoint_here)
18052 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18053 (reinsert_breakpoint_by_bp): Delete declaration.
18054 (delete_reinsert_breakpoints): Declare.
18055 (reinsert_breakpoint): Delete declaration.
18056 (reinsert_breakpoints_at): Declare.
18057 (uninsert_breakpoint): Delete declaration.
18058 (uninsert_breakpoints_at): Declare.
18059 (check_breakpoints): Adjust prototype.
18060 * server.h: Adjust include order.
18061 (struct thread_info): Declare here. Add a `last_status' field.
18062
30ba68cb
MS
180632010-03-23 Michael Snyder <msnyder@vmware.com>
18064
18065 * server.c (crc32): New function.
18066 (handle_query): Add handling for 'qCRC:' request.
18067
b9a881c2
PA
180682010-03-23 Pedro Alves <pedro@codesourcery.com>
18069
18070 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18071 lwp had been stopped by a watchpoint.
18072
e92d13d5
PA
180732010-03-16 Pedro Alves <pedro@codesourcery.com>
18074
18075 * server.h (internal_error): Declare.
18076 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18077 * utils.c (internal_error): New function.
18078
64daa791
AS
180792010-03-15 Andreas Schwab <schwab@redhat.com>
18080
18081 * configure.srv: Fix typo setting srv_regobj.
18082
f52cd8cd
PA
180832010-03-15 Pedro Alves <pedro@codesourcery.com>
18084
18085 * linux-low.c (fetch_register): Avoid passing a non string literal
18086 format to `error'.
18087 (usr_store_inferior_registers): Ditto.
18088
93ae6fdc
PA
180892010-03-14 Pedro Alves <pedro@codesourcery.com>
18090
18091 * linux-low.c (linux_write_memory): Bail out early if peeking
18092 memory failed.
18093
c3adc08c
PA
180942010-03-14 Pedro Alves <pedro@codesourcery.com>
18095
18096 * linux-low.h (struct lwp_info): New fields
18097 `stopped_by_watchpoint' and `stopped_data_address'.
18098 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18099 here, and cache them in the lwp object.
18100 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18101 directly.
18102 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18103 field.
18104 (linux_stopped_by_watchpoint): Rewrite.
18105 (linux_stopped_data_address): Rewrite.
18106
bce522a2
PA
181072010-03-06 Simo Melenius <simo.melenius@iki.fi>
18108
18109 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18110 switching the current inferior, not before.
18111
90884b2b
L
181122010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18113
18114 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18115 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18116 i386-linux.c and amd64-linux.c.
18117 (reg-i386.o): Removed.
18118 (reg-i386.c): Likewise.
18119 (reg-i386-linux.o): Likewise.
18120 (reg-i386-linux.c): Likewise.
18121 (reg-x86-64.o): Likewise.
18122 (reg-x86-64.c): Likewise.
18123 (reg-x86-64-linux.o): Likewise.
18124 (reg-x86-64-linux.c): Likewise.
18125 (i386.o): New.
18126 (i386.c): Likewise.
18127 (i386-linux.o): Likewise.
18128 (i386-linux.c): Likewise.
18129 (amd64.o): Likewise.
18130 (amd64.c): Likewise.
18131 (amd64-linux.o): Likewise.
18132 (amd64-linux.c): Likewise.
18133
18134 * configure.srv (srv_i386_regobj): New.
18135 (srv_i386_linux_regobj): Likewise.
18136 (srv_amd64_regobj): Likewise.
18137 (srv_amd64_linux_regobj): Likewise.
18138 (srv_i386_32bit_xmlfiles): Likewise.
18139 (srv_i386_64bit_xmlfiles): Likewise.
18140 (srv_i386_xmlfiles): Likewise.
18141 (srv_amd64_xmlfiles): Likewise.
18142 (srv_i386_linux_xmlfiles): Likewise.
18143 (srv_amd64_linux_xmlfiles): Likewise.
18144 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18145 srv_xmlfiles to $srv_i386_xmlfiles.
18146 (i[34567]86-*-mingw32ce*): Likewise.
18147 (i[34567]86-*-mingw*): Likewise.
18148 (i[34567]86-*-nto*): Likewise.
18149 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18150 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18151 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18152 (x86_64-*-linux*): Likewise.
18153
18154 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18155 (init_registers_amd64_linux): New.
18156 (x86_arch_setup): Replace init_registers_x86_64_linux with
18157 init_registers_amd64_linux.
18158
193f13e6
MK
181592010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18160
18161 * configure.ac: Check for libdl. If it is not available link against
18162 static libthread_db.
18163 * configure: Regenerate.
18164
85d721b8
PA
181652010-02-22 Pedro Alves <pedro@codesourcery.com>
18166
18167 PR9605
18168
18169 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18170 handing a read watchpoint.
18171 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18172
6076632b
DE
181732010-02-12 Doug Evans <dje@google.com>
18174
18175 * linux-low.c (linux_supports_tracefork_flag): Document.
18176 (linux_look_up_symbols): Add comment.
18177
3327ccf7
L
181782010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18179
18180 * regcache.c (supply_register): Clear regcache if buf is NULL.
18181
0718675c 181822010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18183 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18184
18185 * inferiors.c (find_inferior): Add function documentation.
18186 (unloaded_dll): Handle the case where the unloaded dll has not
18187 been previously registered in the dll list.
18188
177321bd
DJ
181892010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18190
18191 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18192 (thumb2_breakpoint): New.
18193 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18194
2b009048
DJ
181952010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18196
18197 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18198 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18199 breakpoints.
18200
3be029c7
PA
182012010-01-21 Pedro Alves <pedro@codesourcery.com>
18202
18203 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18204
18f5de3b
JK
182052010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18206
18207 * linux-s390-low.c (s390_collect_ptrace_register)
18208 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18209
3743bb4f
DE
182102010-01-21 Doug Evans <dje@google.com>
18211
14ce3065
DE
18212 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18213 (PTRACE_ARG4_TYPE): New macro.
18214 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18215 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18216 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18217 (usr_store_inferior_registers): Ditto.
18218 (linux_read_memory, linux_write_memory): Ditto.
18219 (linux_test_for_tracefork): Ditto.
18220
3743bb4f
DE
18221 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18222 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18223
8b315be5
PA
182242010-01-21 Pedro Alves <pedro@codesourcery.com>
18225
18226 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18227 target.
18228
85492558
PA
182292010-01-21 Pedro Alves <pedro@codesourcery.com>
18230
18231 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18232 prototype to take a regcache. Adjust.
18233
442ea881
PA
182342010-01-20 Pedro Alves <pedro@codesourcery.com>
18235
18236 * regcache.h (struct thread_info): Forward declare.
18237 (struct regcache): New.
18238 (new_register_cache): Adjust prototype.
18239 (get_thread_regcache): Declare.
18240 (free_register_cache): Adjust prototype.
18241 (registers_to_string, registers_from_string): Ditto.
18242 (supply_register, supply_register_by_name, collect_register)
18243 (collect_register_as_string, collect_register_by_name): Ditto.
18244 * regcache.c (struct inferior_regcache_data): Delete.
18245 (get_regcache): Rename to ...
18246 (get_thread_regcache): ... this. Adjust. Switch inferior before
18247 fetching registers.
18248 (regcache_invalidate_one): Adjust.
18249 (regcache_invalidate): Fix prototype.
18250 (new_register_cache): Return the new register cache.
18251 (free_register_cache): Change prototype.
18252 (realloc_register_cache): Adjust.
18253 (registers_to_string): Change prototype to take a regcache. Adjust.
18254 (registers_from_string): Ditto.
18255 (register_data): Ditto.
18256 (supply_register): Ditto.
18257 (supply_register_by_name): Ditto.
18258 (collect_register): Ditto.
18259 (collect_register_as_string): Ditto.
18260 (collect_register_by_name): Ditto.
18261 * server.c (process_serial_event): Adjust.
18262 * linux-low.h (regset_fill_func, regset_store_func): Change
18263 prototype.
18264 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18265 Change prototype.
18266 * linux-low.c (get_stop_pc): Adjust.
18267 (check_removed_breakpoint): Adjust.
18268 (linux_wait_for_event): Adjust.
18269 (linux_resume_one_lwp): Adjust.
18270 (fetch_register): Add regcache parameter. Adjust.
18271 (usr_store_inferior_registers): Ditto.
18272 (regsets_fetch_inferior_registers): Ditto.
18273 (regsets_store_inferior_registers): Ditto.
18274 (linux_fetch_registers, linux_store_registers): Ditto.
18275 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18276 regcache. Adjust.
43aaf8b6
PA
18277 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18278 Ditto.
442ea881
PA
18279 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18280 prototype to take a regcache.
18281 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18282 * remote-utils.c (convert_ascii_to_int, outreg)
18283 (prepare_resume_reply): Change prototype to take a regcache.
18284 Adjust.
18285 * target.h (struct target_ops) <fetch_registers, store_registers>:
18286 Change prototype to take a regcache.
18287 (fetch_inferior_registers, store_inferior_registers): Change
18288 prototype to take a regcache. Adjust.
18289 * proc-service.c (ps_lgetregs): Adjust.
18290 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18291 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18292 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18293 take a regcache. Adjust.
18294 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18295 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18296 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18297 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18298 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18299 (cris_cannot_fetch_register):
18300 (cris_breakpoint_at): Change prototype to take a regcache.
18301 Adjust.
18302 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18303 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18304 to take a regcache. Adjust.
18305 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18306 Adjust.
18307 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18308 take a regcache. Adjust.
18309 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18310 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18311 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18312 * linux-mips-low.c (mips_get_pc):
18313 (mips_set_pc): Change prototype to take a regcache. Adjust.
18314 (mips_reinsert_addr): Adjust.
18315 (mips_collect_register): Change prototype to take a regcache.
18316 Adjust.
18317 (mips_supply_register):
18318 (mips_collect_register_32bit, mips_supply_register_32bit)
18319 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18320 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18321 * linux-ppc-low.c (ppc_supply_ptrace_register)
18322 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18323 (parse_spufs_run): Adjust.
18324 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18325 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18326 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18327 take a regcache. Adjust.
18328 * linux-s390-low.c (s390_collect_ptrace_register)
18329 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18330 (s390_set_pc): Change prototype to take a regcache. Adjust.
18331 (s390_arch_setup): Adjust.
18332 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18333 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18334 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18335 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18336 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18337 regcache. Adjust.
18338 (sparc_breakpoint_at): Adjust.
18339 * linux-xtensa-low.c (xtensa_fill_gregset):
18340 (xtensa_store_gregset):
18341 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18342 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18343 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18344 prototype to take a regcache. Adjust.
18345 * win32-arm-low.c (arm_fetch_inferior_register)
18346 (arm_store_inferior_register): Change prototype to take a
18347 regcache. Adjust.
18348 * win32-i386-low.c (i386_fetch_inferior_register)
18349 (i386_store_inferior_register): Change prototype to take a
18350 regcache. Adjust.
18351 * win32-low.c (child_fetch_inferior_registers)
18352 (child_store_inferior_registers): Change prototype to take a
18353 regcache. Adjust.
18354 (win32_wait): Adjust.
18355 (win32_fetch_inferior_registers): Change prototype to take a
18356 regcache. Adjust.
18357 (win32_store_inferior_registers): Adjust.
18358 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18359 store_inferior_register>: Change prototype to take a regcache.
18360
60c3d7b0
DE
183612010-01-20 Doug Evans <dje@google.com>
18362
18363 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18364 #ifdef.
18365 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18366 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18367
dc146f7c
VP
183682010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18369
18370 * linux-low.c (linux_core_of_thread): New.
18371 (compare_ints, show_process, list_threads): New.
18372 (linux_qxfer_osdata): Report threads and cores.
18373 (linux_target_op): Register linux_core_of_thread.
18374 * remote-utils.c (prepare_resume_reply): Report the core.
18375 (buffer_xml_printf): Support %d specifier.
18376 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18377 New.
18378 (handle_query): Handle qXfer:threads. Announce availability
18379 thereof.
18380 * target.h (struct target_ops): New field core_of_thread.
18381
7803799a
UW
183822010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18383
18384 * Makefile.in (clean): Remove new generated files.
18385 (reg-s390.o, reg-s390.c): Remove rules.
18386 (reg-s390x.o, reg-s390x.c): Likewise.
18387 (s390-linux32.o, s390-linux32.c): Add rules.
18388 (s390-linux64.o, s390-linux64.c): Likewise.
18389 (s390x-linux64.o, s390x-linux64.c): Likewise.
18390 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18391 * linux-s390-low.c: Include <elf.h>.
18392 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18393 (init_registers_s390): Remove prototype.
18394 (init_registers_s390x): Likewise.
18395 (init_registers_s390_linux32): Add prototype.
18396 (init_registers_s390_linux64): Likewise.
18397 (init_registers_s390x_linux64): Likewise.
18398 (s390_num_regs_3264): New define.
18399 (s390_regmap_3264): New global variable.
18400 (s390_cannot_fetch_register): Remove obsolete check.
18401 (s390_cannot_store_register): Likewise.
18402 (s390_collect_ptrace_register): Handle upper/lower register halves.
18403 (s390_supply_ptrace_register): Likewise.
18404 (s390_fill_gregset): Update to register number changes.
18405 (s390_get_hwcap): New routine.
18406 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18407 Install appropriate regmap and register set.
18408
6e7ffa39
JB
184092010-01-01 Joel Brobecker <brobecker@adacore.com>
18410
18411 * server.c (gdbserver_version): Update copyright year to 2010.
18412 * gdbreplay.c (gdbreplay_version): Likewise.
18413
957f3f49
DE
184142009-12-28 Doug Evans <dje@google.com>
18415
18416 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18417 elf/external.h. Include <elf.h> instead but only if necessary.
18418
ca5c370d
PA
184192009-12-28 Pedro Alves <pedro@codesourcery.com>
18420
18421 * linux-low.c (linux_remove_process): Remove `detaching'
18422 parameter. Don't release/detach from thread_db here.
18423 (linux_kill): Release/detach from thread_db here, ...
18424 (linux_detach): ... and here, before actually detaching.
18425 (linux_wait_1): ... and here, when a process exits.
18426 * thread-db.c (any_thread_of): New.
18427 (thread_db_free): Switch the current inferior to a thread of the
18428 passed in process.
18429
4ee62156
DE
184302009-12-21 Doug Evans <dje@google.com>
18431
d90e6a88
DE
18432 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18433
c5f62d5f
DE
18434 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18435 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18436 warning ifndef __NR_tkill. Move setting of errno there too.
18437 Delete unnecessary resetting of errno after syscall.
18438 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18439
10e86dd7
DE
18440 * configure.ac: Check for dladdr.
18441 * config.in: Regenerate.
18442 * configure: Regenerate.
18443 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18444 (try_thread_db_load): Update.
18445
4ee62156
DE
18446 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18447
00f515da
DE
184482009-12-18 Doug Evans <dje@google.com>
18449
e9464885
DE
18450 * event-loop.c: Include unistd.h if it exists.
18451
07d4f67e
DE
18452 * linux-low.c (my_waitpid): Move definition away from being in
18453 between linux_tracefork_child/linux_test_for_tracefork.
18454
00f515da
DE
18455 * gdb_proc_service.h (psaddr_t): Fix type.
18456 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18457 signature to match glibc.
18458
1de1badb
DE
184592009-12-16 Doug Evans <dje@google.com>
18460
18461 * linux-low.c (linux_read_memory): Fix argument to read.
18462
aeeb81d1
PA
184632009-11-26 Pedro Alves <pedro@codesourcery.com>
18464
18465 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18466 events, don't leave current_inferior pointing at null.
18467
10357975
PA
184682009-11-26 Pedro Alves <pedro@codesourcery.com>
18469
18470 * win32-low.c (LOG): Delete.
18471 (OUTMSG): Output to stderr.
18472 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18473 on compile time LOG macro.
18474 (win32_wait): Fix debug output.
18475
cf6e3471
PA
184762009-11-26 Pedro Alves <pedro@codesourcery.com>
18477
18478 * win32-low.c (win32_add_one_solib): If the dll name is
18479 "ntdll.dll", prepend the system directory to the dll path.
18480
0c85e18e
MK
184812009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18482
18483 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18484
9ac544ce 184852009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18486 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18487
18488 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18489 * configure.ac: Check for __mcoldfire__ and set
18490 gdb_cv_m68k_is_coldfire.
18491 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18492 reg-cf.o and reg-m68k.o.
18493 * configure: Regenerated.
18494
fd7dd3e6
PA
184952009-11-16 Pedro Alves <pedro@codesourcery.com>
18496
18497 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18498 Pass it to thread_db_free.
18499 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18500 proper `detaching' argument to linux_remove_process.
18501 * linux-low.h (thread_db_free): Add `detaching' parameter.
18502 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18503 to thread_db_free.
18504 (thread_db_free): Add `detaching' parameter. Only
18505 call td_ta_clear_event if detaching from process.
18506
75aa492e
MK
185072009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18508
18509 * thread-db.c (thread_db_free): Fix typo.
18510
21e1bee4
PP
185112009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18512
18513 PR gdb/10838
18514 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18515
8838b45e
NS
185162009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18517
18518 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18519 with an i686 compiler.
18520 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18521 needed.
18522 * configure: Rebuilt.
18523
8a35fb51
SL
185242009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18525
18526 PR gdb/10783
18527
18528 * server.c (handle_search_memory_1): Correct read_addr initialization
18529 in loop for searching subsequent chunks.
18530
96f15937
PP
185312009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18532
18533 * configure.ac: New --with-libthread-db option.
18534 * thread-db.c: Allow direct dependence on libthread_db.
18535 (thread_db_free): Adjust.
18536 * config.in: Regenerate.
18537 * configure: Likewise.
889bf7c5 18538
5f7d1694
PP
185392009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18540
18541 PR gdb/10757
18542 * thread-db.c (attach_thread): New function.
18543 (maybe_attach_thread): Return success/failure.
18544 (find_new_threads_callback): Adjust.
889bf7c5
PA
18545 (thread_db_find_new_threads): Loop until no new threads.
18546
88e3b899
PA
185472009-10-13 Pedro Alves <pedro@codesourcery.com>
18548
18549 * proc-service.c (ps_lgetregs): Formatting.
18550
cdbfd419
PP
185512009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18552
18553 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18554 * configure.ac: Adjust.
18555 * linux-low.h (struct process_info_private): Move members to struct
18556 thread_db.
18557 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18558 * linux-low.c (linux_remove_process): Adjust.
18559 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18560 * server.c (handle_query): Move code ...
18561 (handle_monitor_command): ... here. New function.
18562 * target.h (struct target_ops): New member.
18563 * thread-db.c (struct thread_db): New.
18564 (libthread_db_search_path): New variable.
18565 (thread_db_create_event, thread_db_enable_reporting)
18566 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18567 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18568 (try_thread_db_load_1, dladdr_to_soname): New functions.
18569 (try_thread_db_load, thread_db_load_search): New functions.
18570 (thread_db_init): Search for libthread_db.
18571 (thread_db_free): New function.
18572 (thread_db_handle_monitor_command): Likewise.
18573 * config.in: Regenerate.
18574 * configure: Regenerate.
889bf7c5 18575
4168d2d6
UW
185762009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18577
18578 * spu-low.c (spu_kill): Wait for inferior to terminate.
18579 Call clear_inferiors.
18580 (spu_detach): Call clear_inferiors.
18581
81ecdfbb
RW
185822009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18583
18584 * aclocal.m4: Regenerate.
18585 * config.in: Likewise.
18586 * configure: Likewise.
18587
0b9ff2c0
UW
185882009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18589
18590 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18591 (parse_spufs_run): New function.
18592 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18593 (ppc_breakpoint_at): Handle SPU breakpoints.
18594
efcbbd14
UW
185952009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18596
18597 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18598 (SPUFS_MAGIC): Define.
18599 (spu_enumerate_spu_ids): New function.
18600 (linux_qxfer_spu): New function.
18601 (linux_target_ops): Install linux_qxfer_spu.
18602
f4d9bade
UW
186032009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18604
18605 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18606 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18607 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18608 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18609 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18610 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18611 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18612 (init_registers_powerpc_cell32l): Add prototype.
18613 (init_registers_powerpc_cell64l): Likewise.
18614 (ppc_arch_setup): Detect Cell/B.E. architecture.
18615
96e946ca
RW
186162009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18617
18618 * Makefile.in (datarootdir): New variable.
18619
58d6951d
DJ
186202009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18621
18622 * linux-low.c (linux_write_memory): Update debugging output.
18623 * Makefile.in (clean): Add new descriptions.
18624 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18625 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18626 * configure.srv: Add new files for arm*-*-linux*.
18627 * linux-arm-low.c: Add new declarations.
18628 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18629 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18630 (HWCAP_VFPv3D16): New.
18631 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18632 instead of __IWMMXT__.
18633 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18634 (arm_arch_setup): New.
18635 (target_regsets): Remove #ifdef. Add VFP regset.
18636 (the_low_target): Use arm_arch_setup.
18637
12b42a12
DJ
186382009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18639
18640 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18641 the main thread again.
18642
ac8c974e
AR
186432009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18644
18645 Adding Neutrino gdbserver.
18646 * configure: Regenerated.
18647 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18648 * configure.srv (i[34567]86-*-nto*): New target.
18649 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18650 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18651 (nto_comctrl) [__QNX__]: New function.
18652 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18653
4424e0c3 186542009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18655
18656 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18657 srv_tgtobj.
18658
912cf4ba
PA
186592009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18660 Pedro Alves <pedro@codesourcery.com>
18661
18662 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18663 don't support CONTEXT_EXTENDED_REGISTERS.
18664 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18665 (the_low_target): Install them.
18666 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18667 failing with ERROR_PIPE_NOT_CONNECTED.
18668
aa5ca48f
DE
186692009-06-30 Doug Evans <dje@google.com>
18670 Pierre Muller <muller@ics.u-strasbg.fr>
18671
18672 Add h/w watchpoint support to x86-linux, win32-i386.
18673 * Makefile.in (SFILES): Add i386-low.c
18674 (i386_low_h): Define.
18675 (i386-low.o): Add dependencies.
18676 (linux-x86-low.o): Add i386-low.h dependency.
18677 (win32-i386-low.o): Ditto.
18678 * i386-low.c: New file.
18679 * i386-low.h: New file.
18680 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18681 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18682 * linux-low.c (linux_add_process): Initialize arch_private.
18683 (linux_remove_process): Free arch_private.
18684 (add_lwp): Initialize arch_private.
18685 (delete_lwp): Free arch_private.
18686 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18687 provided.
18688 * linux-low.h (process_info_private): New member arch_private.
18689 (lwp_info): New member arch_private.
18690 (linux_target_ops): New members new_process, new_thread,
18691 prepare_to_resume.
18692 (ptid_of): New macro.
18693 * linux-x86-low.c: Include stddef.h, i386-low.h.
18694 (arch_process_info): New struct.
18695 (arch_lwp_info): New struct.
18696 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18697 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18698 (i386_dr_low_get_status): New function.
18699 (x86_insert_point, x86_remove_point): New functions.
18700 (x86_stopped_by_watchpoint): New function.
18701 (x86_stopped_data_address): New function.
18702 (x86_linux_new_process, x86_linux_new_thread): New functions.
18703 (x86_linux_prepare_to_resume): New function.
18704 (the_low_target): Add entries for insert_point, remove_point,
18705 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18706 prepare_to_resume.
18707 * server.c (debug_hw_points): New global.
18708 (monitor_show_help): Document set debug-hw-points.
18709 (handle_query): Process "set debug-hw-points".
18710 * server.h (debug_hw_points): Declare.
18711 (paddress): Declare.
18712 * utils.c (NUMCELLS, CELLSIZE): New macros.
18713 (get_sell, xsnprintf, paddress): New functions.
18714 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18715 remove_point, stopped_by_watchpoint, stopped_data_address.
18716 * win32-i386-low.c: Include i386-low.h.
18717 (debug_reg_state): Replaces dr.
18718 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18719 (i386_dr_low_get_status): New function.
18720 (i386_insert_point, i386_remove_point): New functions.
18721 (i386_stopped_by_watchpoint): New function.
18722 (i386_stopped_data_address): New function.
18723 (i386_initial_stuff): Update.
18724 (get_thread_context,set_thread_context,i386_thread_added): Update.
18725 (the_low_target): Add entries for insert_point,
18726 remove_point, stopped_by_watchpoint, stopped_data_address.
18727 * win32-low.c (win32_insert_watchpoint): New function.
18728 (win32_remove_watchpoint): New function.
18729 (win32_stopped_by_watchpoint): New function.
18730 (win32_stopped_data_address): New function.
18731 (win32_target_ops): Add entries for insert_watchpoint,
18732 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18733 * win32-low.h (win32_target_ops): New members insert_point,
18734 remove_point, stopped_by_watchpoint, stopped_data_address.
18735
d993e290
PA
187362009-06-25 Pedro Alves <pedro@codesourcery.com>
18737
18738 * server.c (process_serial_event): Re-return unsupported, not
18739 error, if the type isn't recognized. Re-allow supporting only
18740 insert or remove packets. Also call require_running for
18741 breakpoints. Add missing break statement to default case. Tidy.
18742 * target.h (struct target_ops): Rename insert_watchpoint to
18743 insert_point, and remove_watchpoint to remove_point.
18744
18745 * linux-low.h (struct linux_target_ops): Likewise.
18746 * linux-low.c (linux_insert_watchpoint): Rename to ...
18747 (linux_insert_point): ... this. Adjust.
18748 (linux_remove_watchpoint): Rename to ...
18749 (linux_remove_point): ... this. Adjust.
18750 (linux_target_ops): Adjust.
18751 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18752 (cris_insert_point): ... this.
18753 (cris_remove_watchpoint): Rename to ...
18754 (cris_remove_point): ... this.
18755 (the_low_target): Adjust.
18756
0f54c268
PM
187572009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18758
18759 * server.c (handle_v_kill): Pass signal_pid to
18760 kill_inferior if multi_process is zero.
18761
c6314022
AR
187622009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18763
18764 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18765 * target.h (target_ops): Comment for *_watchpoint to make it clear
18766 the functions can get types '0' and '1'.
18767
4463ce24
AR
187682009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18769
18770 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18771 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18772 * regcache.c (get_regcache): Likewise.
18773 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18774 * win32-low.c (child_fetch_inferior_registers): Remove check for
18775 regno 0.
18776
cf8fd78b
PA
187772009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18778 Pedro Alves <pedro@codesourcery.com>
18779
18780 * target.h (struct target_ops) <supports_multi_process>: New
18781 callback.
18782 (target_supports_multi_process): New.
18783 * server.c (handle_query): Even if GDB reports support, only
18784 enable multi-process if the target also supports it. Report
18785 multi-process support only if the target backend supports it.
18786 * linux-low.c (linux_supports_multi_process): New function.
18787 (linux_target_ops): Install it as target_supports_multi_process
18788 callback.
18789
47c0c975
DE
187902009-05-24 Doug Evans <dje@google.com>
18791
e09875d4
DE
18792 Global renaming of find_thread_pid to find_thread_ptid.
18793 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18794 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18795 All callers updated.
18796
e27d73f6
DE
18797 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18798 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18799 directly.
18800
47c0c975
DE
18801 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18802 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18803 (linux_resume_one_lwp): Ditto.
18804
2acc282a
DE
188052009-05-23 Doug Evans <dje@google.com>
18806
18807 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18808 from struct inferior_list_entry * to struct lwp_info *.
18809 All callers updated.
18810
9f1036c1
DE
188112009-05-13 Doug Evans <dje@google.com>
18812
18813 * linux-x86-low.c: Don't include assert.h.
18814 (x86_siginfo_fixup): Use fatal, not assert.
18815 (x86_arch_setup): Fix comment.
18816
d0722149
DE
188172009-05-12 Doug Evans <dje@google.com>
18818
18819 Biarch support for i386/amd64 gdbserver.
18820 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18821 Add linux-x86-low.c.
18822 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18823 (linux-x86-low.o): Add.
18824 * linux-x86-64-low.c: Delete.
18825 * linux-i386-low.c: Delete.
18826 * linux-x86-low.c: New file.
18827 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18828 linux-x86-low.o.
18829 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18830 linux-x86-low.o.
18831 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18832 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18833 (linux_child_pid_to_exec_file): New function.
18834 (elf_64_header_p, elf_64_file_p): New functions.
18835 (siginfo_fixup): New function.
18836 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18837 give target a chance to convert layout.
18838 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18839 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18840
fdeb2a12
DE
188412009-05-07 Doug Evans <dje@google.com>
18842
18843 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18844 (regsets_store_inferior_registers): Ditto.
18845
a6dbe5df
PA
188462009-05-06 Pedro Alves <pedro@codesourcery.com>
18847
18848 PR server/10048
18849
18850 * linux-low.c (must_set_ptrace_flags): Delete.
18851 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18852 of the global.
18853 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18854 `lwp->must_set_ptrace_flags' instead.
ba42693b 18855 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18856 (linux_wait_1): ... not here.
18857
5091eb23
DE
188582009-04-30 Doug Evans <dje@google.com>
18859
9f767825
DE
18860 * inferiors.c (started_inferior_callback): New function.
18861 (attached_inferior_callback): New function.
18862 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18863 * server.c (print_started_pid, print_attached_pid): New functions.
18864 (detach_or_kill_for_exit): New function.
18865 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18866 * server.h (have_started_inferiors_p): Declare.
18867 (have_attached_inferiors_p): Declare.
18868
5091eb23
DE
18869 * inferiors.c (remove_process): Fix memory leak, free process.
18870 * linux-low.c (linux_remove_process): New function.
18871 (linux_kill): Call it instead of remove_process.
18872 (linux_detach, linux_wait_1): Ditto.
18873
155c8968
PA
188742009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18875
18876 * configure.srv: Add x86 Windows CE target.
18877
7fe519cb
UW
188782009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18879
18880 * inferiors.c (get_thread_process): Make global.
18881 * server.h (get_thread_process): Add prototype.
18882 * thread-db.c (find_one_thread): Use get_thread_process
18883 instead of current_process.
18884 (thread_db_get_tls_address): Do not crash if called when
18885 thread layer is not yet initialized.
18886
5472f405
UW
188872009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18888
18889 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18890 * spu-low.c (current_tid): Rename to ...
18891 (current_ptid): ... this.
18892 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18893 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18894 ptid_get_lwp (current_ptid) instead of current_tid.
18895 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18896 instead of current_tid. Use find_process_pid to verify pid
18897 argument is valid. Pass proper argument to remove_process.
18898 (spu_thread_alive): Compare current_ptid instead of current_tid.
18899 (spu_resume): Likewise.
18900
55ac2b99
PA
189012009-04-02 Pedro Alves <pedro@codesourcery.com>
18902
18903 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18904 variable.
18905
95954743
PA
189062009-04-01 Pedro Alves <pedro@codesourcery.com>
18907
18908 Implement the multiprocess extensions, and add linux multiprocess
18909 support.
18910
18911 * server.h (ULONGEST): Declare.
18912 (struct ptid, ptid_t): New.
18913 (minus_one_ptid, null_ptid): Declare.
18914 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18915 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18916 (struct inferior_list_entry): Change `id' type from unsigned from
18917 to ptid_t.
18918 (struct sym_cache, struct breakpoint, struct
18919 process_info_private): Forward declare.
18920 (struct process_info): Declare.
18921 (current_process): Declare.
18922 (all_processes): Declare.
18923 (initialize_inferiors): Declare.
18924 (add_thread): Adjust to use ptid_t.
18925 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18926 (add_process, remove_process, find_thread_pid): Declare.
18927 (find_inferior_id): Adjust to use ptid_t.
18928 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18929 (multi_process): Declare.
18930 (push_event): Adjust to use ptid_t.
18931 (read_ptid, write_ptid): Declare.
18932 (prepare_resume_reply): Adjust to use ptid_t.
18933 (clear_symbol_cache): Declare.
18934 * inferiors.c (all_processes): New.
18935 (null_ptid, minus_one_ptid): New.
18936 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18937 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18938 (add_thread): Change unsigned long to ptid. Remove gdb_id
18939 parameter. Adjust.
18940 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18941 (gdb_id_to_thread): Rename to ...
18942 (find_thread_pid): ... this. Change unsigned long to ptid.
18943 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18944 (loaded_dll, pull_pid_from_list): Adjust.
18945 (add_process, remove_process, find_process_pid)
18946 (get_thread_process, current_process, initialize_inferiors): New.
18947 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18948 (struct target_waitstatus) <related_pid>: Ditto.
18949 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18950 return type to int.
18951 (struct target_ops) <join>: Add `pid' argument.
18952 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18953 (struct target_ops) <wait>: Add `ptid' field. Change return type
18954 to ptid.
18955 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18956 (mywait): Add `ptid' argument. Change return type to ptid_t.
18957 (target_pid_to_str): Declare.
18958 * target.c (set_desired_inferior): Adjust to use ptids.
18959 (mywait): Add new `ptid' argument. Adjust.
18960 (target_pid_to_str): New.
18961 * mem-break.h (free_all_breakpoints): Declare.
18962 * mem-break.c (breakpoints): Delelete.
18963 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18964 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18965 to use per-process breakpoint list.
18966 (free_all_breakpoints): New.
18967 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18968 (symbol_cache, all_symbols_looked_up): Delete.
18969 (hexchars): New.
18970 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18971 read_ptid): New.
18972 (prepare_resume_reply): Change ptid argument's type from unsigned
18973 long to ptid_t. Adjust. Implement W;process and X;process.
18974 (free_sym_cache, clear_symbol_cache): New.
18975 (look_up_one_symbol): Adjust to per-process symbol cache. *
18976 * server.c (cont_thread, general_thread, step_thread): Change type
18977 to ptid_t.
18978 (attached): Delete.
18979 (multi_process): New.
18980 (last_ptid): Change type to ptid_t.
18981 (struct vstop_notif) <ptid>: Change type to ptid_t.
18982 (queue_stop_reply, push_event): Change `ptid' argument's type to
18983 ptid_t.
18984 (discard_queued_stop_replies): Add `pid' argument.
18985 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18986 changes. Don't reference the `attached' global.
18987 (attach_inferior): Adjust to mywait interface changes.
18988 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18989 features. Handle and report "multiprocess+". Handle
18990 "qAttached:PID".
18991 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18992 changes.
18993 (handle_v_kill): New.
18994 (handle_v_stopped): Adjust to use target_pid_to_str.
18995 (handle_v_requests): Allow multiple attaches and runs when
18996 multiprocess extensions are in effect. Handle "vKill".
18997 (myresume): Adjust to use ptids.
18998 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18999 (handle_status): Adjust to discard_queued_stop_replies interface
19000 change.
19001 (first_thread_of, kill_inferior_callback)
19002 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19003 (main): Call initialize_inferiors. Adjust to use ptids, killing
19004 and detaching from all inferiors. Handle multiprocess packet
19005 variants.
19006 * linux-low.h: Include gdb_proc_service.h.
19007 (struct process_info_private): New.
19008 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19009 <lwpid_of>: Use ptid_get_lwp.
19010 (get_lwp_thread): Adjust.
19011 (struct lwp_info): Add `dead' member.
19012 (find_lwp_pid): Declare.
19013 * linux-low.c (thread_db_active): Delete.
19014 (new_inferior): Adjust comment.
19015 (inferior_pid): Delete.
19016 (linux_add_process): New.
19017 (handle_extended_wait): Adjust.
19018 (add_lwp): Change unsigned long to ptid.
19019 (linux_create_inferior): Add process to processes table. Adjust
19020 to use ptids. Don't set new_inferior here.
19021 (linux_attach_lwp): Rename to ...
19022 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19023 it. Adjust to use ptids.
19024 (linux_attach_lwp): New.
19025 (linux_attach): Add process to processes table. Don't set
19026 new_inferior here.
19027 (struct counter): New.
19028 (second_thread_of_pid_p, last_thread_of_process_p): New.
19029 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19030 multiple processes.
19031 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19032 processes. Remove process from process table.
19033 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19034 to multiple processes.
19035 (any_thread_of): New.
19036 (linux_detach): Add `pid' argument, and handle it. Remove process
19037 from processes table.
19038 (linux_join): Add `pid' argument. Handle it.
19039 (linux_thread_alive): Change unsighed long argument to ptid_t.
19040 Consider dead lwps as not being alive.
19041 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19042 threads we're not interested in.
19043 (same_lwp, find_lwp_pid): New.
19044 (linux_wait_for_lwp): Change `pid' argument's type from int to
19045 ptid_t. Adjust.
19046 (linux_wait_for_event): Rename to ...
19047 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19048 from int to ptid_t. Adjust.
19049 (linux_wait_for_event): New.
19050 (linux_wait_1): Add `ptid' argument. Change return type to
19051 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19052 that exit from the process table.
19053 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19054 Adjust.
19055 (mark_lwp_dead): New.
19056 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19057 stopping all threads, mark its main lwp as dead.
19058 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19059 ptids.
19060 (fetch_register, usr_store_inferior_registers)
19061 (regsets_fetch_inferior_registers)
19062 (regsets_store_inferior_registers, linux_read_memory)
19063 (linux_write_memory): Inline `inferior_pid'.
19064 (linux_look_up_symbols): Adjust to use per-process
19065 `thread_db_active'.
19066 (linux_request_interrupt): Adjust to use ptids.
19067 (linux_read_auxv): Inline `inferior_pid'.
19068 (initialize_low): Don't reference thread_db_active.
19069 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19070 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19071 (ps_getpid): Return the pid of the current inferior.
19072 * thread-db.c (proc_handle, thread_agent): Delete.
19073 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19074 per-process data.
19075 (find_one_thread): Change argument type to ptid_t. Adjust to
19076 per-process data.
19077 (maybe_attach_thread): Adjust to per-process data and ptids.
19078 (thread_db_find_new_threads): Ditto.
19079 (thread_db_init): Ditto.
19080 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19081 processes table. Adjust to use ptids.
19082 (spu_kill, spu_detach): Adjust interface. Remove process from
19083 processes table.
19084 (spu_join, spu_thread_alive): Adjust interface.
19085 (spu_wait): Adjust interface. Remove process from processes
19086 table. Adjust to use ptids.
19087 * win32-low.c (current_inferior_tid): Delete.
19088 (current_inferior_ptid): New.
19089 (debug_event_ptid): New.
19090 (thread_rec): Take a ptid. Adjust.
19091 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19092 (child_delete_thread): Ditto.
19093 (do_initial_child_stuff): Add `attached' argument. Add process to
19094 processes table.
19095 (child_fetch_inferior_registers, child_store_inferior_registers):
19096 Adjust.
19097 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19098 (win32_attach): Pass 1 to do_initial_child_stuff.
19099 (win32_kill): Adjust interface. Remove process from processes
19100 table.
19101 (win32_detach): Ditto.
19102 (win32_join): Adjust interface.
19103 (win32_thread_alive): Take a ptid.
19104 (win32_resume): Adjust to use ptids.
19105 (get_child_debug_event): Ditto.
19106 (win32_wait): Adjust interface. Remove exiting process from
19107 processes table.
19108
bd99dc85
PA
191092009-04-01 Pedro Alves <pedro@codesourcery.com>
19110
19111 Non-stop mode support.
19112
19113 * server.h (non_stop): Declare.
19114 (gdb_client_data, handler_func): Declare.
19115 (delete_file_handler, add_file_handler, start_event_loop):
19116 Declare.
19117 (handle_serial_event, handle_target_event, push_event)
19118 (putpkt_notif): Declare.
19119 * target.h (enum resume_kind): New.
19120 (struct thread_resume): Replace `step' field by `kind' field.
19121 (TARGET_WNOHANG): Define.
19122 (struct target_ops) <wait>: Add `options' argument.
19123 <supports_non_stop, async, start_non_stop>: New fields.
19124 (target_supports_non_stop, target_async): New.
19125 (start_non_stop): Declare.
19126 (mywait): Add `options' argument.
19127 * target.c (mywait): Add `options' argument. Print child exit
19128 notifications here.
19129 (start_non_stop): New.
19130 * server.c (non_stop, own_buf, mem_buf): New globals.
19131 (struct vstop_notif): New.
19132 (notif_queue): New global.
19133 (queue_stop_reply, push_event, discard_queued_stop_replies)
19134 (send_next_stop_reply): New.
19135 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19136 interface changes.
19137 (attach_inferior): In non-stop mode, don't wait for the target
19138 here.
19139 (handle_general_set): Handle QNonStop.
19140 (handle_query): When handling qC, return the current general
19141 thread, instead of the first thread of the list.
19142 (handle_query): If the backend supports non-stop mode, include
19143 QNonStop+ in the qSupported query response.
19144 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19145 and non-stop mode.
19146 (handle_v_attach, handle_v_run): Handle non-stop mode.
19147 (handle_v_stopped): New.
19148 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19149 (myresume): Adjust to use resume_kind. Handle non-stop.
19150 (queue_stop_reply_callback): New.
19151 (handle_status): Handle non-stop mode.
19152 (main): Clear non_stop flag on reconnection. Use the event-loop.
19153 Refactor serial protocol handling from here ...
19154 (process_serial_event): ... to this new function. When GDB
19155 selects any thread, select one here. In non-stop mode, wait until
19156 GDB acks all pending events before exiting.
19157 (handle_serial_event, handle_target_event): New.
19158 * remote-utils.c (remote_open): Install remote_desc in the event
19159 loop.
19160 (remote_close): Remove remote_desc from the event loop.
19161 (putpkt_binary): Rename to...
19162 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19163 (putpkt_binary): New as wrapper around putpkt_binary_1.
19164 (putpkt_notif): New.
19165 (prepare_resume_reply): In non-stop mode, don't change the
19166 general_thread.
19167 * event-loop.c: New.
19168 * Makefile.in (OBJ): Add event-loop.o.
19169 (event-loop.o): New rule.
19170
19171 * linux-low.h (pid_of): Moved here.
19172 (lwpid_of): New.
19173 (get_lwp_thread): Use lwpid_of.
19174 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19175 * linux-low.c (pid_of): Delete.
19176 (inferior_pid): Use lwpid_of.
19177 (linux_event_pipe): New.
19178 (target_is_async_p): New.
19179 (delete_lwp): New.
19180 (handle_extended_wait): Use lwpid_of.
19181 (add_lwp): Don't set lwpid field.
19182 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19183 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19184 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19185 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19186 first. Adjust to linux_wait_for_event interface changes. Use
19187 lwpid_of.
19188 (linux_detach): Don't delete the main lwp here.
19189 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19190 (status_pending_p): Don't consider explicitly suspended lwps.
19191 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19192 pointer. Add OPTIONS argument. Change return type to int. Use
19193 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19194 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19195 pointer. Add status pointer argument. Return a pid instead of a
19196 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19197 changes. In non-stop mode, don't switch to a random thread.
19198 (linux_wait): Rename to...
19199 (linux_wait_1): ... this. Add target_options argument, and handle
19200 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19201 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19202 clean exit and signal exit code. Don't stop all threads in
19203 non-stop mode. In all-stop mode, only stop all threads when
19204 reporting a stop to GDB. Handle explicit thread stop requests.
19205 (async_file_flush, async_file_mark): New.
19206 (linux_wait): New.
19207 (send_sigstop): Use lwpid_of.
19208 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19209 interface changes. In non-stop mode, don't switch to a random
19210 thread.
19211 (linux_resume_one_lwp): Use lwpid_of.
19212 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19213 (linux_resume_one_thread): ... this. Handle resume_stop. In
19214 non-stop mode, don't look for pending flag in all threads.
19215 (resume_status_pending_p): Don't consider explicitly suspended
19216 threads.
19217 (my_waitpid): Reimplement. Emulate __WALL.
19218 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19219 Use lwpid_of.
19220 (sigchld_handler, linux_supports_non_stop, linux_async)
19221 (linux_start_non_stop): New.
19222 (linux_target_ops): Register linux_supports_non_stop, linux_async
19223 and linux_start_non_stop.
19224 (initialize_low): Install SIGCHLD handler.
19225 * thread-db.c (thread_db_create_event, find_one_thread)
19226 (thread_db_get_tls_address): Use lwpid_of.
19227 * win32-low.c (win32_detach): Adjust to use resume_kind.
19228 (win32_wait): Add `options' argument.
19229 * spu-low.c (spu_resume): Adjust to use resume_kind.
19230 (spu_wait): Add `options' argument.
19231
5b1c542e
PA
192322009-04-01 Pedro Alves <pedro@codesourcery.com>
19233
19234 Decouple target code from remote protocol.
19235
19236 * target.h (enum target_waitkind): New.
19237 (struct target_waitstatus): New.
19238 (struct target_ops) <wait>: Return an unsigned long. Take a
19239 target_waitstatus pointer instead of a char pointer.
19240 (mywait): Likewise.
19241 * target.c (mywait): Change prototype to return an unsigned long.
19242 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19243 * server.h (thread_from_wait, old_thread_from_wait): Delete
19244 declarations.
19245 (prepare_resume_reply): Change prototype to take a
19246 target_waitstatus.
19247 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19248 (last_status, last_ptid): New.
19249 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19250 pid instead of a signal.
19251 (attach_inferior): Remove "status" and "signal" parameters.
19252 Adjust.
19253 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19254 not as an address.
19255 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19256 (handle_v_requests, myresume): Remove "status" and "signal"
19257 parameters. Adjust.
19258 (handle_status): New.
19259 (main): Delete local `status'. Adjust.
19260 * remote-utils.c: Include target.h.
19261 (prepare_resume_reply): Change prototype to take a
19262 target_waitstatus. Adjust.
19263
19264 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19265 interface.
19266 * spu-low.c (spu_wait): Adjust.
19267 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19268 Delete.
19269 (win32_wait): Adjust.
19270
2bd7c093
PA
192712009-04-01 Pedro Alves <pedro@codesourcery.com>
19272
19273 * target.h (struct thread_resume): Delete leave_stopped member.
19274 (struct target_ops): Add a `n' argument to the `resume' callback.
19275 * server.c (start_inferior): Adjust.
19276 (handle_v_cont, myresume): Adjust.
19277 * linux-low.c (check_removed_breakpoint): Adjust to resume
19278 interface change, and to removed leave_stopped field.
19279 (resume_ptr): Delete.
19280 (struct thread_resume_array): New.
19281 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19282 resume interface change.
19283 (linux_continue_one_thread, linux_queue_one_thread)
19284 (resume_status_pending_p): Check if the resume field is NULL
19285 instead of checking the leave_stopped member.
19286 (linux_resume): Adjust to the target resume interface change.
19287 * spu-low.c (spu_resume): Adjust to the target resume interface
19288 change.
19289 * win32-low.c (win32_detach, win32_resume): Ditto.
19290
c35fafde
PA
192912009-04-01 Pedro Alves <pedro@codesourcery.com>
19292
19293 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19294 flag.
19295 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19296 pending.
19297 (linux_continue_one_thread): Only preserve the stepping flag if
19298 there's a pending breakpoint.
19299
0a59d50b
PA
193002009-03-31 Pedro Alves <pedro@codesourcery.com>
19301
19302 * server.c (main): After the inferior having exited, call
19303 remote_close before exiting gdbserver.
19304
f04c6d38
TJB
193052009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19306
19307 Fix size of FPSCR in Power 7 processors.
19308 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19309 (PPC_FEATURE_HAS_DFP): New #define.
19310 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19311 size of the FPSCR.
19312
78e5cee6
PA
193132009-03-23 Pedro Alves <pedro@codesourcery.com>
19314
19315 * server.c (handle_query) Whitespace and formatting.
19316
1b3f6016
PA
193172009-03-22 Pedro Alves <pedro@codesourcery.com>
19318
19319 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19320 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19321 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19322 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19323 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19324 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19325 Makefile.in, configure.ac: Fix whitespace throughout.
19326 * configure: Regenerate.
19327
a07b2135
PA
193282009-03-22 Pedro Alves <pedro@codesourcery.com>
19329
19330 * inferiors.c (find_inferior): Make it safe for the callback
19331 function to delete the currently iterated inferior.
19332
67cc2626
PA
193332009-03-22 Pedro Alves <pedro@codesourcery.com>
19334
19335 * Makefile.in (linuw_low_h): Move higher.
19336 (thread-db.o): Depend on $(linux_low_h).
19337
54a0b537
PA
193382009-03-17 Pedro Alves <pedro@codesourcery.com>
19339
19340 Rename "process" to "lwp" throughout.
19341
19342 * linux-low.c (all_processes): Rename to...
19343 (all_lwps): ... this.
19344 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19345 (add_process): Rename to ...
19346 (add_lwp): ... this. Adjust.
19347 (linux_create_inferior): Adjust.
19348 (linux_attach_lwp): Adjust.
19349 (linux_attach): Adjust.
19350 (linux_kill_one_process): Rename to ...
19351 (linux_kill_one_lwp): ... this. Adjust.
19352 (linux_kill): Adjust.
19353 (linux_detach_one_process): Rename to ...
19354 (linux_detach_one_lwp): ... this. Adjust.
19355 (linux_detach): Adjust.
19356 (check_removed_breakpoint): Adjust.
19357 (status_pending_p): Adjust.
19358 (linux_wait_for_process): Rename to ...
19359 (linux_wait_for_lwp): ... this. Adjust.
19360 (linux_wait_for_event): Adjust.
19361 (send_sigstop): Adjust.
19362 (wait_for_sigstop): Adjust.
19363 (stop_all_processes): Rename to ...
19364 (stop_all_lwps): ... this.
19365 (linux_resume_one_process): Rename to ...
19366 (linux_resume_one_lwp): ... this. Adjust.
19367 (linux_set_resume_request, linux_continue_one_thread)
19368 (linux_queue_one_thread, resume_status_pending_p)
19369 (usr_store_inferior_registers, regsets_store_inferior_registers)
19370 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19371 Adjust.
19372 * linux-low.h (get_process): Rename to ...
19373 (get_lwp): ... this. Adjust.
19374 (get_thread_process): Rename to ...
19375 (get_thread_lwp): ... this. Adjust.
19376 (get_process_thread): Rename to ...
19377 (get_lwp_thread): ... this. Adjust.
19378 (struct process_info): Rename to ...
19379 (struct lwp_info): ... this.
19380 (all_processes): Rename to ...
19381 (all_lwps): ... this.
19382 * proc-service.c (ps_lgetregs): Adjust.
19383 * thread-db.c (thread_db_create_event, find_one_thread)
19384 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19385
0b16c5cf
PA
193862009-03-14 Pedro Alves <pedro@codesourcery.com>
19387
19388 * server.c (handle_query): Handle "qAttached".
19389
32de4b9d
NS
193902009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19391
19392 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19393 GPLv3, update license URL.
19394
2aecd87f
DE
193952009-03-01 Doug Evans <dje@google.com>
19396
93efd302 19397 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19398 (server_h): Add gdb_signals.h.
19399 (signals.o): Update.
19400 * server.h (target_signal_from_host,target_signal_to_host_p)
19401 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19402
86b1f9c5
PM
194032009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19404
19405 * remote-utils.c (getpkt): Also generate remote-debug
19406 information if noack_mode is set.
19407
4aa995e1
PA
194082009-02-06 Pedro Alves <pedro@codesourcery.com>
19409
19410 * server.c (handle_query): Report qXfer:siginfo:read and
19411 qXfer:siginfo:write as supported and handle them.
19412 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19413 * linux-low.c (linux_xfer_siginfo): New.
19414 (linux_target_ops): Set it.
19415
62709adf
PA
194162009-01-26 Pedro Alves <pedro@codesourcery.com>
19417
19418 * server.c (gdbserver_usage): Mention --remote-debug.
19419 (main): Accept '--remote-debug' switch.
19420
aef93bd7
DE
194212009-01-18 Doug Evans <dje@google.com>
19422
19423 * regcache.c (new_register_cache): No need to check result of xcalloc.
19424 * server.c (handle_search_memory): Back out calls to xmalloc,
19425 result is checked and error is returned to user upon failure.
19426 (handle_query): Ditto. Add more checks for result of malloc.
19427 (handle_v_cont): Check result of malloc, report error back to
19428 user upon failure.
19429 (handle_v_run): Ditto. Call freeargv.
19430 * server.h (freeargv): Declare.
19431 * utils.c (freeargv): New fn.
19432
54363045
DE
194332009-01-15 Doug Evans <dje@google.com>
19434
f626972c
DE
19435 * gdbreplay.c (perror_with_name): Make arg const char *.
19436 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19437 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19438 * utils.c (perror_with_name): Make arg const char *.
54363045 19439
18aae699
PA
194402009-01-14 Pedro Alves <pedro@codesourcery.com>
19441
19442 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19443 when handling a EXIT_PROCESS_DEBUG_EVENT.
19444
ff703abe
JB
194452009-01-06 Joel Brobecker <brobecker@adacore.com>
19446
19447 * gdbreplay.c (gdbreplay_version): Update copyright year.
19448 * server.c (gdbserver_version): Likewise.
19449
f21cc1a2 194502009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19451
19452 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19453 (handle_extended_wait): Improve comment.
0e21c1ec 19454
bca929d3
DE
194552008-12-13 Doug Evans <dje@google.com>
19456
19457 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19458 * server.h (ATTR_MALLOC): New macro.
19459 (xmalloc,xcalloc,xstrdup): Declare.
19460 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19461 * inferiors.c: Ditto.
19462 * linux-low.c: Ditto.
19463 * mem-break.c: Ditto.
19464 * regcache.c: Ditto.
19465 * remote-utils.c: Ditto.
19466 * server.c: Ditto.
19467 * target.c: Ditto.
19468 * win32-low.c: Ditto.
19469
97438e3f
DE
194702008-12-12 Doug Evans <dje@google.com>
19471
896c7fbb
DE
19472 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19473 in debugging printf.
19474
97438e3f
DE
19475 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19476
e3b886f8
DE
194772008-12-09 Doug Evans <dje@google.com>
19478
19479 * linux-low.h (struct process_info): Delete member tid, unused.
19480 * thread-db.c (find_one_thread): Update.
19481 (maybe_attach_thread): Update.
19482
07e059b5
VP
194832008-12-02 Pedro Alves <pedro@codesourcery.com>
19484
889bf7c5
PA
19485 * target.h (struct target_ops): Add qxfer_osdata member.
19486 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19487 and dirent.h.
19488 (linux_qxfer_osdata): New functions.
19489 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19490 callback.
19491 * server.c (handle_query): Handle "qXfer:osdata:read:".
19492 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19493 (buffer_xml_printf): New functions.
19494 * server.h (struct buffer): New.
19495 (buffer_grow_str, buffer_grow_str0): New macros.
19496 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19497 (buffer_xml_printf): Declare.
07e059b5 19498
4cab47ab
DE
194992008-11-24 Doug Evans <dje@google.com>
19500
19501 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19502
f142445f
DJ
195032008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19504
19505 * server.c (handle_v_run): Always use the supplied argument list.
19506
d0107bb6 195072008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19508
d0107bb6
BW
19509 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19510 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19511
2c4ad781
TJB
195122008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19513
19514 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19515 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19516 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19517 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19518 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19519 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19520 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19521 XML target descriptions.
19522 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19523 when inferior is running on an ISA 2.05 or later processor. Add
19524 special case to return offset for full 64-bit slot of FPSCR when
19525 in 32-bits.
19526
dfb64f85
DJ
195272008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19528
19529 * Makefile.in (SFILES, clean): Added sparc64 files.
19530 (reg-sparc64.o, reg-sparc64.c): New.
19531 * configure.srv (sparc*-*-linux*): New configuration.
19532 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19533 syscall arguments for SPARC.
19534 (regsets_store_inferior_registers): Likewise.
19535 * linux-sparc-low.c: New file.
19536
66b6e1dd
DE
195372008-10-21 Doug Evans <dje@google.com>
19538
19539 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19540 (READLINE_DIR,READLINE_DEP): Delete.
19541 (INTERNAL_CFLAGS): Update.
19542 (LINTFLAGS): Update.
19543
9b710a42
PA
195442008-10-10 Pedro Alves <pedro@codesourcery.com>
19545
19546 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19547 whole argv from the last run, not just argv[0].
19548
5822d809
PA
195492008-09-08 Pedro Alves <pedro@codesourcery.com>
19550
19551 * regcache.c (new_register_cache): Return NULL if the register
19552 cache size isn't known yet.
19553 (free_register_cache): Avoid dereferencing a NULL regcache.
19554
74aac56f
DJ
195552008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19556
19557 * configure.srv: Merge MIPS and MIPS64.
19558
400b20f5
MR
195592008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19560
19561 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19562
677c5bb1
LM
195632008-08-18 Luis Machado <luisgpm@br.ibm.com>
19564
19565 * Makefile.in: Add required vsx dependencies.
19566
19567 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19568 Declare init_registers_powerpc_vsx32l.
19569 Declare init_registers_powerpc_vsx64l.
19570 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19571 (ppc_arch_setup): Check for VSX in hwcap.
19572 (ppc_fill_vsxregset): New function.
19573 (ppc_store_vsxregset): New function.
19574 Add new VSX entry in regset_info target_regsets.
19575
19576 * configure.srv: Add new VSX dependencies.
19577
a6f3e723
SL
195782008-08-12 Pedro Alves <pedro@codesourcery.com>
19579
19580 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19581 (remote_open): Set or clear transport_is_reliable.
19582 (putpkt_binary): Don't expect acks in noack mode.
19583 (getpkt): Don't send ack/nac in noack mode.
19584 * server.c (handle_general_set): Handle QStartNoAckMode.
19585 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19586 qSupported.
19587 (main): Reset noack_mode on every connection.
19588 * server.h (noack_mode): Declare.
19589
a417dc56
RW
195902008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19591
19592 * Makefile.in (GDBREPLAY_OBS): New variable.
19593 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19594
3221518c
UW
195952008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19596 Daniel Jacobowitz <dan@codesourcery.com>
19597
19598 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19599 (usr_store_inferior_registers): Likewise.
19600 (regsets_store_inferior_registers): Likewise.
19601
ec56be1b
PA
196022008-07-31 Rolf Jansen <rj@surtec.com>
19603 Pedro Alves <pedro@codesourcery.com>
19604
19605 * configure.ac: Check for memmem declaration.
19606 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19607 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19608 (disable_packet_qfThreadInfo): Unconditionally compile.
19609 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19610 * configure, config.in: Regenerate.
19611
2fe5e3ff
DE
196122008-07-28 Doug Kwan <dougkwan@google.com>
19613
19614 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19615 (linux_write_memory): Remove declaration of errno.
19616
836acd6d
UW
196172008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19618
19619 * linux-low.c (handle_extended_wait): Do not use "status"
19620 variable uninitialized.
19621
aeba519e
PA
196222008-07-07 Pedro Alves <pedro@codesourcery.com>
19623
19624 * server.c (handle_v_attach): Inhibit reporting dll changes.
19625
db42f210
PA
196262008-06-27 Pedro Alves <pedro@codesourcery.com>
19627
19628 * remote-utils.c (prepare_resume_reply): If requested, don't
19629 output "thread:TID" in the T stop reply.
19630
19631 * server.c (disable_packet_vCont, disable_packet_Tthread)
19632 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19633 (handle_query): If requested, disable support for qC, qfThreadInfo
19634 and qsThreadInfo.
19635 (handle_v_requests): If requested, disable support for vCont.
19636 (gdbserver_show_disableable): New.
19637 (main): Handle --disable-packet and --disable-packet=LIST.
19638
19639 * server.h (disable_packet_vCont, disable_packet_Tthread)
19640 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19641
8e4c5421
CD
196422008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19643
19644 * server.c (gdbserver_usage): Mention --version.
19645
6e23a804
DJ
196462008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19647
19648 * Makefile.in (gdbreplay.o): New rule.
19649
90aa6a40
JM
196502008-06-06 Joseph Myers <joseph@codesourcery.com>
19651
19652 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19653 message, not gdbserver.
19654
c16158bc 196552008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19656 Nathan Sidwell <nathan@codesourcery.com>
19657 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19658
19659 * acinclude.m4: Include ../../config/acx.m4.
19660 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19661 * configure, config.in: Regenerate.
19662 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19663 * server.c (gdbserver_version): Print PKGVERSION.
19664 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19665 (main): Adjust gdbserver_usage calls.
19666 * gdbreplay.c (version, host_name): Add declarations.
19667 (gdbreplay_version, gdbreplay_usage): New.
19668 (main): Accept --version and --help options.
19669
aeb75bf5
DJ
196702008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19671
19672 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19673 (arm_breakpoint_at): Handle Thumb.
19674 (the_low_target): Add comment.
19675
76b233dd
UW
196762008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19677
19678 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19679
08388c79
DE
196802008-05-09 Doug Evans <dje@google.com>
19681
a3c83fae
DE
19682 * server.h (decode_search_memory_packet): Declare.
19683 * remote-utils.c (decode_search_memory_packet): New fn.
19684 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19685 (handle_search_memory): New fn.
19686 (handle_query): Process qSearch:memory packets.
19687
bb9c3d36
UW
196882008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19689
19690 * regcache.c (registers_length): Remove.
19691 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19692 full register packet.
19693 * regcache.h (registers_length): Remove prototype.
19694 * server.h (PBUFSIZ): Define to 16384.
19695
7284e1be
UW
196962008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19697
19698 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19699 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19700 powerpc-64l.o, and powerpc-altivec64l.o.
19701 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19702 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19703 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19704 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19705 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19706 to srv_xmlfiles.
19707
19708 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19709 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19710 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19711 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19712 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19713 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19714 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19715 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19716 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19717 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19718 (clean): Update.
19719
19720 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19721 (init_registers_powerpc_32l): ... this new prototype.
19722 (init_registers_powerpc_32): Remove, replace by ...
19723 (init_registers_powerpc_altivec32l): ... this new prototype.
19724 (init_registers_powerpc_e500): Remove, replace by ...
19725 (init_registers_powerpc_e500l): ... this new prototype.
19726 (init_registers_ppc64): Remove, replace by ...
19727 (init_registers_powerpc_64l): ... this new prototype.
19728 (init_registers_powerpc_64): Remove, replace by ...
19729 (init_registers_powerpc_altivec64l): ... this new prototype.
19730 (ppc_num_regs): Set to 73.
19731 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19732 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19733 (ppc_cannot_store_register): Handle orig_r3 and trap.
19734 (ppc_arch_setup): Update init_registers_... calls.
19735 (ppc_fill_gregset): Handle orig_r3 and trap.
19736
19737 * inferiors.c (clear_inferiors): Reset current_inferior.
19738
fdc59709
PB
197392008-04-23 Paolo Bonzini <bonzini@gnu.org>
19740
889bf7c5
PA
19741 * acinclude.m4: Add override.m4.
19742 * configure: Regenerate.
fdc59709 19743
c9b2f845
UW
197442008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19745
19746 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19747 initial call to init_register_ppc64.
19748
550512b8
UW
197492008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19750
43aaf8b6
PA
19751 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19752 single powerpc*-*-linux* case.
550512b8
UW
19753 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19754
b6430ec3
UW
197552008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19756
19757 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19758 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19759 from reg_xmlfiles.
19760 * linux-ppc-low.c: Include <elf.h>.
19761 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19762 (ppc_hwcap): New global variable.
19763 (ppc_regmap): Remove __SPE__ #ifdef sections.
19764 (ppc_regmap_e500): New global variable.
19765 (ppc_cannot_store_register): Update __SPE__ special case.
19766 (ppc_get_hwcap): New function.
19767 (ppc_arch_setup): Use it to determine whether inferior supports
19768 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19769 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19770 Do not access registers if target does not support AltiVec.
19771 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19772 Do not access registers if target does not support SPE.
19773 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19774
52fa2412
UW
197752008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19776
19777 * linux-low.c (disabled_regsets, num_regsets): New.
19778 (use_regsets_p): Delete.
19779 (linux_wait_for_process): Clear disabled_regsets.
19780 (regsets_fetch_inferior_registers): Check and set it.
19781 (regsets_store_inferior_registers): Likewise.
19782 (linux_fetch_registers, linux_store_registers): Do not use
19783 use_regsets_p.
19784 (initialize_low): Allocate disabled_regsets.
19785
e28b3332
DJ
197862008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19787
19788 * Makefile.in (LIBOBJS): New.
19789 (OBS): Use LIBOBJS.
19790 (memmem.o): New rule.
19791 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19792 * configure: Regenerated.
19793
4536995d
UW
197942008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19795
19796 * server.c (handle_query): Never return "unsupported" for
19797 qXfer:features:read queries.
19798
221c031f
UW
197992008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19800
19801 * server.c (get_features_xml): Fix inverted condition.
19802 (handle_query): Always support qXfer:feature:read.
19803
ccd213ac
DJ
198042008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19805
19806 * server.c (wrapper_argv): New.
19807 (start_inferior): Handle wrapper_argv. If set, expect an extra
19808 trap.
19809 (gdbserver_usage): Document --wrapper.
19810 (main): Parse --wrapper.
19811
6fe305f7
UW
198122008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19813
19814 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19815 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19816 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19817 (ppc_set_pc): Likewise.
19818 (ppc_arch_setup): New function.
19819 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19820 of collect_register.
889bf7c5 19821 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19822
5b0a002e
UW
198232008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19824
19825 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19826 instead of linux-ppc64-low.o.
19827 * linux-ppc64-low.c: Remove file.
19828 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19829 (linux-ppc64-low.o): Remove rule.
19830
19831 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19832 (init_registers_powerpc_64): Likewise.
19833 (ppc_regmap): Conditionally define depending on __powerpc64__.
19834 (ppc_cannot_store_register): Do not special-case "fpscr" when
19835 compiled on __powerpc64__.
19836 (ppc_collect_ptrace_register): New function.
19837 (ppc_supply_ptrace_register): New function.
19838 (ppc_breakpoint): Change type to "unsigned int".
19839 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19840 (the_low_target): Conditionally provide initializers for the
889bf7c5 19841 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19842 collect_ptrace_register and supply_ptrace_register members.
19843
9b4b61c8
UW
198442008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19845
19846 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19847 * server.c (gdbserver_xmltarget): Define.
19848 (get_features_xml): Use it to replace "target.xml" and arch_string.
19849
19850 * configure.srv: Remove srv_xmltarget. Add XML files that were
19851 mentioned there to srv_xmlfiles instead. Remove conditional tests
19852 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19853 srv_xmlfiles and srv_regobj to include all possible choices.
19854 * configure.ac (srv_xmltarget): Remove.
19855 (srv_xmlfiles): Do not add "target.xml".
19856 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19857 checks for supplementary target information.
19858 * configure: Regenerate.
19859 * Makefile.in (XML_TARGET): Remove.
19860 (target.xml): Remove rule.
19861 (clean): Do not clean up target.xml.
19862 (.PRECIOUS): Do not mention target.xml.
19863
19864 * target.h (struct target_ops): Remove arch_string member.
19865 * linux-low.c (linux_arch_string): Remove.
19866 (linux_target_ops): Remove arch_string initializer.
19867 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19868 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19869 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19870 * spu-low.c (spu_arch_string): Remove.
19871 (spu_target_ops): Remove arch_string initializer.
19872 * win32-low.c (win32_arch_string): Remove.
19873 (win32_target_ops): Remove arch_string initializer.
19874 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19875 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19876 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19877
ee1a7ae4
UW
198782008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19879
19880 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19881 by collect_ptrace_register and supply_ptrace_register hooks.
19882 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19883 instead of checking for the_low_target.left_pad_xfer.
19884 (usr_store_inferior_registers): Use collect_ptrace_register callback
19885 instead of checking for the_low_target.left_pad_xfer.
19886
19887 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19888 (s390_supply_ptrace_register): Likewise.
19889 (s390_fill_gregset): Call s390_collect_ptrace_register.
19890 (the_low_target): Update.
19891
19892 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19893 (ppc_supply_ptrace_register): Likewise.
19894 (the_low_target): Update.
19895
19896 * linux-i386-low.c (the_low_target): Update.
19897 * linux-x86-64-low.c (the_low_target): Update.
19898
d61ddec4
UW
198992008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19900
19901 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19902 reg-s390.o and reg-s390x.o.
19903
19904 * linux-low.c (new_inferior): New global variable.
19905 (linux_create_inferior, linux_attach): Set it.
19906 (linux_wait_for_process): Call the_low_target.arch_setup after the
19907 target has stopped for the first time.
19908 (initialize_low): Do not call the_low_target.arch_setup.
19909
19910 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19911 (s390_set_pc): Likewise.
19912 (s390_arch_setup): New function.
19913 (the_low_target): Use s390_arch_setup as arch_setup routine.
19914
19915 * regcache.c (realloc_register_cache): New function.
19916 (set_register_cache): Call it for each existing regcache.
19917
d05b4ac3
UW
199182008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19919
19920 * server.h (init_registers): Remove prototype.
19921
19922 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19923 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19924 instead of init_registers ().
19925 * linux-arm-low.c (init_registers_arm): Add prototype.
19926 (init_registers_arm_with_iwmmxt): Likewise.
19927 (the_low_target): Add initializer for arch_setup field.
19928 * linux-cris-low.c (init_registers_cris): Add prototype.
19929 (the_low_target): Add initializer for arch_setup field.
19930 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19931 (the_low_target): Add initializer for arch_setup field.
19932 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19933 (the_low_target): Add initializer for arch_setup field.
19934 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19935 (the_low_target): Add initializer for arch_setup field.
19936 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19937 (the_low_target): Add initializer for arch_setup field.
19938 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19939 (the_low_target): Add initializer for arch_setup field.
19940 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19941 (init_registers_mips64_linux): Likewise.
19942 (the_low_target): Add initializer for arch_setup field.
19943 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19944 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19945 (the_low_target): Add initializer for arch_setup field.
19946 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19947 (init_registers_powerpc_64): Likewise.
19948 (the_low_target): Add initializer for arch_setup field.
19949 * linux-s390-low.c (init_registers_s390): Add prototype.
19950 (init_registers_s390x): Likewise.
19951 (the_low_target): Add initializer for arch_setup field.
19952 * linux-sh-low.c (init_registers_sh): Add prototype.
19953 (the_low_target): Add initializer for arch_setup field.
19954 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19955 (the_low_target): Add initializer for arch_setup field.
19956 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19957 (the_low_target): Add initializer for arch_setup field.
19958
19959 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19960 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19961 instead of init_registers ().
19962 * win32-arm-low.c (init_registers_arm): Add prototype.
19963 (the_low_target): Add initializer for arch_setup field.
19964 * win32-i386-low.c (init_registers_i386): Add prototype.
19965 (the_low_target): Add initializer for arch_setup field.
19966
19967 * spu-low.c (init_registers_spu): Add prototype.
19968 (initialize_low): Call initialie_registers_spu () instead of
19969 initialize_registers ().
19970
fd96d250
PA
199712008-02-19 Pedro Alves <pedro@codesourcery.com>
19972
19973 * server.c (handle_v_requests): When handling the vRun and vAttach
19974 packets, if already debugging a process, don't kill it. Return an
19975 error instead.
19976
d41b6bb4
DJ
199772008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19978
19979 * server.c (handle_query): Correct length check.
19980
5ac588cf
PA
199812008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19982
19983 * win32-low.c (do_initial_child_stuff): Add process handle
19984 parameter. Set current_process_handle and current_process_id from the
19985 parameters. Clear globals.
19986 (win32_create_inferior): Don't set current_process_handle and
19987 current_process_id here. Instead pass them on the call to
19988 do_initial_child_stuff.
19989 (win32_attach): Likewise.
19990 (win32_clear_inferiors): New.
19991 (win32_kill): Don't close the current process handle or the
19992 current thread handle here. Instead call win32_clear_inferiors.
19993 (win32_detach): Don't open a new handle to the process. Call
19994 win32_clear_inferiors.
19995 (win32_join): Don't rely on current_process_handle; open a new
19996 handle using the process id.
19997 (win32_wait): Call win32_clear_inferiors when the inferior process
19998 has exited.
19999
ecd7ecbc
DJ
200002008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20001
20002 * server.c (monitor_show_help): Add "exit".
20003
1525d545
MG
200042008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20005
ecd7ecbc 20006 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20007 (clean): Add reg-xtensa.c.
20008 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20009 * configure.srv (xtensa*-*-linux*) New target.
20010 * linux-xtensa-low.c: New.
20011 * xtensa-xtregs.c: New.
1525d545 20012
59a016f0
PA
200132008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20014
20015 * hostio.c: Don't include errno.h.
20016 (errno_to_fileio_errno): Move to hostio-errno.
20017 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20018 error number outputting to the target->hostio_last_error callback.
20019 (hostio_packet_error): Use FILEIO_EINVAL directly.
20020 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20021 calls to hostio_error.
20022 * hostio-errno.c: New.
20023 * server.h (hostio_last_error_from_errno): Declare.
20024 * target.h (target_ops): Add hostio_last_error member.
20025 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20026 as hostio_last_error handler.
889bf7c5 20027 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20028 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20029 (wince_hostio_last_error): New functions.
20030 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20031 as hostio_last_error handler.
20032 (win32_target_ops) [!_WIN32_WCE]: Register
20033 hostio_last_error_from_errno as hostio_last_error handler.
20034 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20035 (hostio-errno.o): New rule.
20036 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20037 * configure.srv (srv_hostio_err_objs): New variable. Default to
20038 hostio-errno.o.
20039 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20040 * configure: Regenerate.
20041
2d717e4f
DJ
200422008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20043
20044 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20045 (linux_kill, linux_detach): Clean up the process list.
20046 * remote-utils.c (remote_open): Improve port number parsing.
20047 (putpkt_binary, input_interrupt): Only send interrupts if the target
20048 is running.
20049 * server.c (extended_protocol): Make static.
20050 (attached): Define earlier.
20051 (exit_requested, response_needed, program_argv): New variables.
20052 (target_running): New.
20053 (start_inferior): Clear attached here.
20054 (attach_inferior): Set attached here.
20055 (require_running): Define.
20056 (handle_query): Use require_running and target_running. Implement
20057 "monitor exit".
20058 (handle_v_attach, handle_v_run): New.
20059 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20060 (gdbserver_usage): Update.
20061 (main): Redo argument parsing. Handle --debug and --multi. Handle
20062 --attach along with other options or after the port. Save
20063 program_argv. Support no initial program. Resynchronize
20064 communication with GDB after an error. Handle "monitor exit".
20065 Use require_running and target_running. Always allow the extended
20066 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20067 restart in extended mode.
20068 * README: Refer to the GDB manual. Update --attach usage.
20069
7407e2de
AS
200702007-12-20 Andreas Schwab <schwab@suse.de>
20071
20072 * linux-low.c (STACK_SIZE): Define.
20073 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20074 (linux_test_for_tracefork): Likewise.
20075
b65d95c5
DJ
200762007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20077
20078 * linux-low.c (linux_wait_for_event): Update messages. Do not
20079 reinsert auto-delete breakpoints.
20080 * mem-break.c (struct breakpoint): Change return type of handler to
20081 int.
20082 (set_breakpoint_at): Update handler type.
20083 (reinsert_breakpoint_handler): Return 1 instead of calling
20084 delete_breakpoint.
20085 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20086 setting a new one.
20087 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20088 * mem-break.h (set_breakpoint_at): Update handler type.
20089 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20090 * win32-low.c (auto_delete_breakpoint): New.
20091 (get_child_debug_event): Use it.
20092
4e799345
DJ
200932007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20094
20095 * configure.ac: Check for pread and pwrite.
20096 * hostio.c (handle_pread): Fall back to lseek and read.
20097 (handle_pwrite): Fall back to lseek and write.
20098 * config.in, configure: Regenerated.
20099
27524b67
DJ
201002007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20101
20102 * server.c (myresume): Add own_buf argument.
20103 (main): Update calls.
20104
a20d5e98
DJ
201052007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20106
20107 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20108 * remote-utils.c (remote_open): Do not call disable_async_io.
20109 (block_async_io): Delete.
20110 (unblock_async_io): Make static.
20111 (initialize_async_io): New.
20112 * server.c (handle_v_cont): Handle async I/O here.
20113 (myresume): Likewise. Move other common resume tasks here...
20114 (main): ... from here. Call initialize_async_io. Disable async
20115 I/O before the main loop.
20116 * server.h (initialize_async_io): Declare.
20117 (block_async_io, unblock_async_io): Delete prototypes.
20118 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20119
b79d787e
DJ
201202007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20121
20122 * remote-utils.c (readchar): Allow binary data in received messages.
20123
d97903b2
PA
201242007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20125
20126 * win32-low.c (attaching): New global.
20127 (win32_create_inferior): Clear the `attaching' global.
20128 (win32_attach): Set the `attaching' global.
20129 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20130 attaching. Only set a breakpoint at the entry point if not
20131 attaching.
20132
311de423
PA
201332007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20134
20135 * server.c (main): Don't report dll events on the initial
20136 connection on attaches.
20137
6c2d16d2
PA
201382007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20139
20140 * server.c (main): Relax numerical bases supported for the pid of
20141 the --attach command line argument.
20142
5ca906e6
PA
201432007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20144
20145 * win32-low.c (win32_attach): Call OpenProcess before
20146 DebugActiveProcess, not after. Add last error output to error
20147 call.
20148
9c6c8194
PA
201492007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20150
20151 * win32-low.c (win32_get_thread_context)
20152 (win32_set_thread_context): New functions.
20153 (thread_rec): Use win32_get_thread_context.
20154 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20155 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20156 field.
20157
4d5d1aaa
PA
201582007-12-03 Leo Zayas
20159 Pedro Alves <pedro_alves@portugalmail.pt>
20160
20161 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20162 global variables.
20163 (child_add_thread): Minor cleanup.
20164 (child_continue): Resume artificially suspended threads before
20165 calling ContinueDebugEvent.
20166 (suspend_one_thread): New.
20167 (fake_breakpoint_event): New.
20168 (get_child_debug_event): Change return type to int. Check here if
20169 gdb sent an interrupt request. If a soft interrupt was requested,
20170 fake a breakpoint event. Return 0 if there is no event to handle,
20171 and 1 otherwise.
20172 (win32_wait): Don't check here if gdb sent an interrupt request.
20173 Ensure there is a valid event to handle.
20174 (win32_request_interrupt): Add soft interruption method as last
20175 resort.
20176
c436e841
PA
201772007-12-03 Leo Zayas
20178 Pedro Alves <pedro_alves@portugalmail.pt>
20179
20180 * win32-low.h (win32_thread_info): Add descriptions to the
20181 structure members. Replace `suspend_count' counter by a
20182 `suspended' flag.
20183 * win32-low.c (thread_rec): Update condition of when to get the
20184 context from the inferior. Rely on ContextFlags being set if it
20185 has already been retrieved. Only suspend the inferior thread if
20186 we haven't already. Warn if that fails.
20187 (continue_one_thread): s/suspend_count/suspended/. Only call
20188 ResumeThread once. Warn if that fails.
20189
e7b5fa67
PA
201902007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20191
20192 * win32-low.c (win32_wait): Don't read from the inferior when it
20193 has already exited.
20194
a385171d
PA
201952007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20196
20197 * Makefile.in (win32_low_h): New variable.
20198 (win32-low.o): Add dependency on $(win32_low_h).
20199 (win32-arm-low.o, win32-i386-low.o): New rules.
20200
f80c84b3
DJ
202012007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20202
20203 * hostio.c: Correct copyright year.
20204
a6b151f1
DJ
202052007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20206
20207 * Makefile.in (OBS): Add hostio.o.
20208 (hostio.o): New rule.
20209 * server.h (handle_vFile): Declare.
20210 * hostio.c: New file.
20211 * server.c (handle_v_requests): Take packet_len and new_packet_len
20212 for binary packets. Call handle_vFile.
20213 (main): Update call to handle_v_requests.
20214
f9387fc3
DJ
202152007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20216
20217 * linux-low.c: Include <sched.h>.
20218
51c2684e
DJ
202192007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20220
20221 * linux-low.c (linux_tracefork_grandchild): New.
20222 (linux_tracefork_child): Use clone.
20223 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20224
75f83163
JB
202252007-10-31 Joel Brobecker <brobecker@adacore.com>
20226
20227 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20228
da5898ce
DJ
202292007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20230
20231 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20232
24a09b5f
DJ
202332007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20234
20235 * inferiors.c (change_inferior_id): Delete.
20236 (add_pid_to_list, pull_pid_from_list): New.
20237 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20238 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20239 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20240 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20241 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20242 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20243 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20244 (using_threads): Always set to 1.
20245 (handle_extended_wait): New.
20246 (add_process): Do not set TID.
20247 (linux_create_inferior): Set must_set_ptrace_flags.
20248 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20249 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20250 (linux_thread_alive): Rename TID argument to LWPID.
20251 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20252 (linux_wait_for_event): Do not use TID or check using_threads. Update
20253 call to dead_thread_notify. Call handle_extended_wait.
20254 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20255 (send_sigstop): Delete sigstop_sent.
20256 (wait_for_sigstop): Avoid TID.
20257 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20258 (linux_test_for_tracefork): New.
20259 (linux_lookup_signals): Use thread_db_active and
20260 linux_supports_tracefork_flag.
20261 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20262 * linux-low.h (get_process_thread): Avoid TID.
20263 (struct process_ifo): Move thread_known and tid to the end. Remove
20264 sigstop_sent.
20265 (linux_attach_lwp, thread_db_init): Update prototypes.
20266 * server.h (change_inferior_id): Delete prototype.
20267 (add_pid_to_list, pull_pid_from_list): New prototypes.
20268 * thread-db.c (thread_db_use_events): New.
20269 (find_first_thread): Rename to...
20270 (find_one_thread): ...this. Update callers and messages. Do not
20271 call fatal. Check thread_db_use_events. Do not call
20272 change_inferior_id or new_thread_notify.
20273 (maybe_attach_thread): Update. Do not call new_thread_notify.
20274 (thread_db_init): Set thread_db_use_events. Check use_events.
20275 * utils.c (fatal, warning): Correct message prefix.
20276
30ed0a8f
DJ
202772007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20278
20279 * Makefile.in (clean): Remove new files.
20280 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20281 (powerpc-64.o, powerpc-64.c): New rules.
20282 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20283 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20284 with SPE.
20285 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20286 SPE targets.
20287 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20288 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20289 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20290 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20291 (target_regsets): Add AltiVec and SPE register sets.
20292 * configure.ac: Check for AltiVec and SPE.
20293 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20294 (ppc_fill_vrregset, ppc_store_vrregset): New.
20295 (target_regsets): Add AltiVec register set.
20296 * configure: Regenerated.
20297
fd462a61
DJ
202982007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20299
20300 * linux-low.c (O_LARGEFILE): Define.
20301 (linux_read_memory): Use /proc/PID/mem.
20302 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20303 * configure, config.in: Regenerated.
20304
69f223ed
DJ
203052007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20306
20307 * linux-low.c (linux_wait_for_event): Do not pass signals while
20308 single-stepping.
20309
aec18585
PA
203102007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20311
20312 * win32-low.c (create_process): New.
20313 (win32_create_inferior): Use create_process instead of
20314 CreateProcess. If create_process failed retry appending an ".exe"
20315 suffix. Store the GetLastError result immediatelly after
20316 create_process calls and use it on the call to error.
20317
34d86ddd
PA
203182007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20319
20320 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20321
5a0e3bd0
JB
203222007-08-23 Joel Brobecker <brobecker@adacore.com>
20323
20324 * configure.ac: Switch license to GPLv3.
20325
f88c79e6
MS
203262007-08-01 Michael Snyder <msnyder@access-company.com>
20327
20328 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20329
6b3d9b83
PA
203302007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20331
20332 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20333 typedef.
20334 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20335 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20336 CloseToolhelp32Snapshot.
20337 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20338 CloseToolhelp32Snapshot.
20339
c588c53c
MS
203402007-07-27 Michael Snyder <michael.snyder@access-company.com>
20341
20342 * server.c (main): Check for inferior exit before main loop.
20343
aa0403d9
PA
203442007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20345
20346 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20347 instead of on tmp_desc.
20348
255e7678
DJ
203492007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20350 Daniel Jacobowitz <dan@codesourcery.com>
20351
20352 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20353 (add_thread): Minor cleanups.
20354 (clear_inferiors): Move lower in the file. Clear the DLL
20355 list.
20356 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20357 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20358 (xml_escape_text): New.
20359 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20360 for qSupported.
20361 (handle_v_cont): Report errors.
20362 (gdbserver_version): Update.
20363 (main): Correct size of own_buf. Do not report initial DLL events.
20364 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20365 (unloaded_dll, xml_escape_text): New.
20366 * win32-low.c (enum target_waitkind): Update comments.
20367 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20368 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20369 (win32_EnumProcessModules, win32_GetModuleInformation)
20370 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20371 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20372 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20373 (win32_Module32First, win32_Module32Next, load_toolhelp)
20374 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20375 (get_child_debug_event): Handle DLL events.
20376 (win32_wait): Likewise.
20377
0d37add9
DJ
203782007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20379
20380 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20381 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20382
45e2715e
PA
203832007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20384
20385 * win32-low.c (handle_output_debug_string): Ignore event if not
20386 waiting.
20387
c5674cf1
PA
203882007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20389
20390 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20391
2bbe3cc1
DJ
203922007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20393
20394 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20395
ae13219e
DJ
203962007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20397
20398 * inferiors.c (change_inferior_id): Add comment.
20399 * linux-low.c (check_removed_breakpoint): Add an early
20400 prototype. Improve debug output.
20401 (linux_attach): Doc update.
20402 (linux_detach_one_process, linux_detach): Clean up before releasing
20403 each process.
20404 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20405 * linux-low.h (struct process_info): Doc improvement.
20406 * mem-break.c (delete_all_breakpoints): New.
20407 * mem-break.h (delete_all_breakpoints): New prototype.
20408 * thread-db.c (find_first_thread): New.
20409 (thread_db_create_event): Call it instead of
20410 thread_db_find_new_threads. Clean up unused variables.
20411 (maybe_attach_thread): Remove first thread handling.
20412 (thread_db_find_new_threads): Use find_first_thread.
20413 (thread_db_get_tls_address): Likewise.
20414
4105de34
DJ
204152007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20416
20417 * thread-db.c (thread_db_find_new_threads): Add prototype.
20418 (thread_db_create_event): Check for the main thread before adding
20419 a new thread.
20420 (maybe_attach_thread): Only enable event reporting if TID == 0.
20421 (thread_db_get_tls_address): Check for new threads.
20422
2b876972
DJ
204232007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20424
20425 * linux-low.c (linux_create_inferior): Try execv before execvp.
20426 * spu-low.c (spu_create_inferior): Likewise.
20427
7a245884
DJ
204282007-06-13 Mike Frysinger <vapier@gentoo.org>
20429
20430 * linux-low.c (linux_create_inferior): Change execv to execvp.
20431 * spu-low.c (spu_create_inferior): Likewies.
20432
117ce543
DJ
204332007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20434
20435 * Makefile.in (clean): Clean new files instead of deleted ones.
20436 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20437 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20438 rules.
20439 * configure.srv: Specify XML files and new regformats for MIPS and
20440 MIPS64 GNU/Linux.
20441 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20442 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20443 an entry for the restart register.
20444 (mips_cannot_fetch_register, mips_cannot_store_register)
20445 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20446 register names to match the XML descriptions.
20447 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20448 restart register instead of $0.
20449
0e7f50da
UW
204502007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20451 Markus Deuling <deuling@de.ibm.com>
20452
20453 * remote-utils.c (decode_xfer_write): New function.
20454 * server.h (decode_xfer_write): Add prototype.
20455 * server.c (handle_query): Add PACKET_LEN argument. Support
20456 qXfer:spu:read and qXfer:spu:write packets.
20457 (main): Pass packet_len to handle_query.
20458 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20459 * target.h (target_ops): Add qxfer_spu.
20460
374c1d38
UW
204612007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20462
20463 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20464 accessing non-seekable spufs files.
20465
bb63802a
UW
204662007-05-16 Markus Deuling <deuling@de.ibm.com>
20467
889bf7c5 20468 * server.c (handle_query): Add reply for qC packet.
bb63802a 20469
7390519e
PA
204702007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20471 Leo Zayas <lerele@champenstudios@com>
20472
20473 * server.h (check_remote_input_interrupt_request): New function.
20474 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20475 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20476 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20477 (check_remote_input_interrupt_request): New function.
20478 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20479 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20480 winapi_GenerateConsoleCtrlEvent): New typedefs.
20481 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20482 to 250 ms.
20483 (win32_wait): Check for remote interrupt request
20484 with check_remote_input_interrupt_request.
20485 (win32_request_interrupt): New function.
20486 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20487
34b34921
PA
204882007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20489
20490 * win32-low.c (debug_registers_changed,
20491 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20492 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20493 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20494 (thread_rec): Get context using the low target.
20495 (child_add_thread): Call thread_added on the low target,
20496 which does the same thing.
20497 (regptr): Delete.
20498 (do_initial_child_stuff): Remove debug registers references.
20499 Set context using the low target. Resume threads after
20500 setting the contexts.
20501 (child_continue): Remove dead variable. Remove debug
20502 registers references.
20503 (child_fetch_inferior_registers): Go through the low target.
20504 (do_child_store_inferior_registers): Remove.
20505 (child_store_inferior_registers): Go through the low target.
20506 (win32_resume): Remove debug registers references.
20507 Set context using the low target.
20508 (handle_exception): Change return type to void. Don't record
20509 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20510 first chance exception.
889bf7c5 20511 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20512 goto loop. Always return after waiting for debug event.
20513 (win32_wait): Convert to switch statement. Handle spurious
20514 events.
20515
20516 * win32-i386-low.c (debug_registers_changed,
20517 debug_registers_used): New.
20518 (initial_stuff): Rename to ...
20519 (i386_initial_stuff): ... this. Clear debug registers
20520 state variables.
20521 (store_debug_registers): Delete.
20522 (i386_get_thread_context): New.
20523 (load_debug_registers): Delete.
20524 (i386_set_thread_context): New.
20525 (i386_thread_added): New.
20526 (single_step): Rename to ...
20527 (i386_single_step): ... this.
20528 (do_fetch_inferior_registers): Rename to ...
20529 (i386_fetch_inferior_register): ... this.
20530 (i386_store_inferior_register): New.
20531 (the_low_target): Adapt to new interface.
20532
20533 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20534 (arm_get_thread_context): New.
20535 (arm_set_thread_context): New.
20536 (regptr): New.
20537 (do_fetch_inferior_registers): Rename to ...
20538 (arm_fetch_inferior_register): ... this.
20539 (arm_store_inferior_register): New.
20540 (arm_wince_breakpoint): Reimplement as unsigned long.
20541 (arm_wince_breakpoint_len): Define.
20542 (the_low_target): Adapt to new interface.
20543
20544 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20545 load_debug_registers. Add get_thread_context, set_thread_context,
20546 thread_added and store_inferior_register. Rename
20547 fetch_inferior_registers to fetch_inferior_register.
20548 (regptr): Remove declaration.
20549
dd6953e1
PA
205502007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20551
20552 * linux-low.c (linux_detach): Change return type to int. Return 0.
20553 * spu-low.c (spu_detach): Likewise.
20554
444d6139
PA
205552007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20556
20557 * target.h (target_ops): Change return type of detach to int.
20558 Add join.
20559 (join_inferior): New.
20560 * server.c (main): Don't skip detach support on mingw32.
20561 If the inferior doesn't support detaching return error.
20562 Call join_inferior instead of using waitpid.
20563 * linux-low.c (linux_join): New.
20564 (linux_target_op): Add linux_join.
20565 * spu-low.c (spu_join): New.
20566 (spu_target_ops): Add spu_join.
20567 * win32-low.c (win32_detach): Adapt to new interface.
20568 Reopen current_process_handle before detaching. Issue a child
20569 resume before detaching.
20570 (win32_join): New.
20571 (win32_target_op): Add win32_join.
20572
1d5315fe
PA
205732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20574
20575 * win32-low.c (win32-attach): Fix return value.
20576 * target.h (target_ops): Describe ATTACH return values.
20577
bf914831
PA
205782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20579
20580 * win32-low.c (GETPROCADDRESS): Define.
20581 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20582 (winapi_DebugSetProcessKillOnExit): Likewise.
20583 (win32_create_inferior): Force usage of ansi CreateProcessA.
20584 (win32_attach): Use GETPROCADDRESS.
20585 (win32_detach): Likewise.
20586
f72f3e60
PA
205872007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20588
20589 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20590
ed50f18f
PA
205912007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20592
20593 * win32-low.c: Commit leftover changes from 2007-03-29.
20594
0c2ead7e
DJ
205952007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20596
20597 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20598 fields short instead of int. Add explicit padding.
20599 (i387_cache_to_fsave): Remove unnecessary casts.
20600 (i387_fsave_to_cache): Doc fix.
20601 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20602
73725ff3
DJ
206032007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20604
20605 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20606 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20607
d99f33d8
PA
206082007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20609
20610 * configure.srv (arm*-*-mingw32ce*): Move near the other
20611 arm targets.
20612
68070c10
PA
206132007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20614
2482afc6 20615 * configure.ac: Add errno checking.
68070c10
PA
20616 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20617 sys/file.h and malloc.h.
20618 (AC_CHECK_DECLS): Add perror.
20619 (srv_mingwce): Handle.
2482afc6 20620 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20621 win32-i386-low.o to srv_tgtobj.
20622 (i[34567]86-*-mingw*): Likewise.
20623 (arm*-*-mingw32ce*): Add case.
20624 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20625 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20626 [__MINGW32CE__] (strerror): New function.
20627 [__MINGW32CE__] (errno): Define to GetLastError.
20628 [__MINGW32CE__] (COUNTOF): New macro.
20629 (remote_open): Remove extra close call.
20630 * mem-break.c (delete_breakpoint_at): New function.
20631 * mem-break.h (delete_breakpoint_at): Declare.
20632 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20633 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20634 [USE_WIN32API] (read, write): Add char* casts.
20635 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20636 * server.h: Include wincecompat.h on Windows CE.
20637 [HAVE_ERRNO_H]: Check.
20638 (perror): Declare if not declared.
20639 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20640 (perror_with_name): Remove errno declaration.
20641 * wincecompat.h: New.
20642 * wincecompat.c: New.
20643 * win32-low.h: New.
20644 * win32-arm-low.c: New.
20645 * win32-i386-low.c: New.
20646 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20647 (OUTMSG2): Make it safe.
20648 (_T): New macro.
20649 (COUNTOF): New macro.
20650 (NUM_REGS): Get it from the low target.
20651 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20652 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20653 (thread_rec): Let low target handle debug registers.
20654 (child_add_thread): Likewise.
20655 (child_init_thread_list): Likewise.
20656 (continue_one_thread): Likewise.
20657 (regptr): New.
20658 (do_child_fetch_inferior_registers): Move to ...
20659 * win32-i386-low.c: ... here, and rename to ...
20660 (do_fetch_inferior_registers): ... this.
889bf7c5 20661 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20662 Go through the low target.
20663 (do_child_store_inferior_registers): Use regptr.
20664 (strwinerror): New function.
20665 (win32_create_inferior): Handle Windows CE.
20666 Use strwinerror instead of strerror on Windows error
20667 codes. Add program to the error output.
20668 Don't close the main thread handle on Windows CE.
20669 (win32_attach): Use coredll.dll on Windows CE.
20670 (win32_kill): Close current process and current
20671 thread handles.
20672 (win32_detach): Use coredll.dll on Windows CE.
20673 (win32_resume): Let low target handle debug registers, and
20674 step request.
20675 (handle_exception): Add/Remove initial breakpoint. Avoid
20676 non-existant WSTOPSIG on Windows CE.
20677 (win32_read_inferior_memory): Cast to remove warning.
20678 (win32_arch_string): Go through the low target.
20679 (initialize_low): Call set_breakpoint_data with the low
20680 target's breakpoint.
20681 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20682 FOP_REGNUM, mappings): Move to ...
20683 * win32-i386-low.c: ... here.
20684 * win32-low.c (win32_thread_info): Move to ...
20685 * win32-low.h: ... here.
20686 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20687 win32-arm-low.c and wincecompat.c.
20688 (all:): Add $EXEEXT.
20689 (install-only:): Likewise.
20690 (gdbserver:): Likewise.
20691 (gdbreplay:): Likewise.
20692 * config.in: Regenerate.
20693 * configure: Regenerate.
20694
41093d81
PA
206952007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20696
20697 * win32-low.c: Rename typedef thread_info to
20698 win32_thread_info throughout.
20699
544afa54
PA
207002007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20701
20702 * win32-i386-low.c: Rename to ...
20703 * win32-low.c: ... this.
20704 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20705 * Makefile.in: Likewise.
20706
bce7165d
PA
207072007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20708
20709 * remote-utils.c (monitor_output): Constify msg parameter.
20710 * server.h (monitor_output): Likewise.
20711 * win32-i386-low.c (handle_output_debug_string): New.
20712 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20713 handle_output_debug_string.
20714 (get_child_debug_event): Likewise.
20715
506c7aa0
DJ
207162007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20717
20718 * server.c (main): Correct strtoul check.
20719
42c81e2a
DJ
207202007-03-27 Jon Ringle <jon@ringle.org>
20721
20722 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20723
9453113a
DJ
207242007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20725
20726 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20727
64a69107
DJ
207282007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20729
20730 * terminal.h: Check HAVE_SGTTY_H.
20731
207322007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20733
20734 * remote-utils.c (remote_open): Print out the assigned port number.
20735
c74d0ad8
DJ
207362007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20737
20738 * remote-utils.c (monitor_output): New function.
20739 * server.c (debug_threads): Define here.
20740 (monitor_show_help): New function.
20741 (handle_query): Handle qRcmd.
20742 (main): Do not handle 'd' packet.
20743 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20744 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20745 of debug_threads.
20746
de7c3b4a
PA
207472007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20748
20749 * Makefile.in (EXEEXT): New.
20750 (clean): Use $(EXEEXT).
20751
ef57601b
PA
207522007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20753
20754 * target.h (target_ops): Rename send_signal to request_interrupt,
20755 and remove enum target_signal parameter.
20756 * linux-low.c (linux_request_interrupt): Rename from
20757 linux_send_signal, and always send SIGINT.
20758 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20759 and always send SIGINT.
20760 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20761 of send_signal.
20762 (input_interrupt): Likewise.
20763
820f2bda
PA
207642007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20765
20766 * server.c (get_features_xml): Check if target implemented
20767 arch_string.
20768 * win32-i386-low.c (win32_arch_string): New.
20769 (win32_target_ops): Add win32_arch_string as arch_string member.
20770
ab39bf24
UW
207712007-02-22 Markus Deuling <deuling@de.ibm.com>
20772
20773 * spu-low.c (spu_arch_string): New.
20774 (spu_target_ops): Add spu_arch_string.
20775
61ff6e04
DJ
207762007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20777
20778 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20779 * configure.ac: Do not check for terminal.h.
20780 * configure, config.in: Regenerated.
20781
fb1e4ffc
DJ
207822007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20783
20784 * Makefile.in (OBS): Add $(XML_BUILTIN).
20785 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20786 (clean): Update.
20787 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20788 (arm-with-iwmmxt.c): New.
20789 * config.in, configure: Regenerate.
20790 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20791 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20792 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20793 (arm*-*-linux*): Add iWMMXt and regset support.
20794 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20795 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20796 (arm_store_wmmxregset, target_regsets): New.
20797 * server.c (get_features_xml): Take annex argument. Check builtin
20798 XML documents.
20799 (handle_query): Handle multiple annexes.
20800
0f48aa01
DJ
208012007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20802
20803 * remote-utils.c [USE_WIN32API] (read, write): Define.
20804 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20805 write.
20806
23181151
DJ
208072007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20808
20809 * linux-i386-low.c (the_low_target): Set arch_string.
20810 * linux-x86-64-low.c (the_low_target): Likewise.
20811 * linux-low.c (linux_arch_string): New.
20812 (linux_target_ops): Add it.
20813 * linux-low.h (struct linux_target_ops): Add arch_string.
20814 * server.c (write_qxfer_response): Use const void * for DATA.
20815 (get_features_xml): New.
20816 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20817 * target.h (struct target_ops): Add arch_string method.
20818
9d606399
DJ
208192007-01-03 Denis Pilat <denis.pilat@st.com>
20820 Daniel Jacobowitz <dan@codesourcery.com>
20821
20822 * linux-low.c (linux_kill): Handle being called with no threads.
20823 * win32-i386-low.c (win32_kill): Likewise.
20824 (get_child_debug_event): Clear current_process_handle.
20825
208262006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20827 Daniel Jacobowitz <dan@codesourcery.com>
20828
20829 * remote-utils.c (remote_open): Check the type of specified
20830 serial port devices before opening them.
20831 * server.c (main): Kill the inferior if an error occurs during
20832 the first remote_open.
20833
a5e13d24
DJ
208342006-12-05 Markus Deuling <deuling@de.ibm.com>
20835
20836 * README: Update supported targets.
20837
186947f7
DJ
208382006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20839
20840 * Makefile.in (clean): Remove reg-mips64.c.
20841 (reg-mips64.c, reg-mips64.o): New rules.
20842 * configure.srv: Handle mips64. Include regset support for mips.
20843 * linux-mips-low.c (union mips_register): New.
20844 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20845 (mips_breakpoint, mips_breakpoint_at): Use int.
20846 (mips_collect_register, mips_supply_register)
20847 (mips_collect_register_32bit, mips_supply_register_32bit)
20848 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20849 (mips_store_fpregset, target_regsets): New.
20850 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20851
a13e2c95
UW
208522006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20853
20854 * configure.srv: Add target "spu*-*-*".
20855 * Makefile.in (clean): Remove reg-spu.c.
20856 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20857 * spu-low.c: New file.
20858
cb7283db
DJ
208592006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20860
20861 * configure.ac: Correct td_thr_tls_get_addr test.
20862 * configure: Regenerated.
20863
89be2091
DJ
208642006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20865
20866 * linux-low.c (linux_wait_for_event): Reformat. Use the
20867 pass_signals array.
20868 * remote-utils.c (decode_address_to_semicolon): New.
20869 * server.c (pass_signals, handle_general_set): New.
20870 (handle_query): Mention QPassSignals for qSupported.
20871 (main): Call handle_general_set.
20872 * server.h (pass_signals, decode_address_to_semicolon): New.
20873
000ef4f0
DJ
208742006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20875
20876 * server.c (handle_query): Correct error handling for read_auxv.
20877
b7149293
UW
208782005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20879
20880 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20881 and srv_linux_thread_db to yes.
20882 * linux-s390-low.c (s390_fill_gregset): New function.
20883 (target_regsets): Define data structure.
20884
dae5f5cf
DJ
208852006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20886
20887 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20888 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20889 * config.in, configure: Regenerated.
20890 * inferiors.c (gdb_id_to_thread): New function.
20891 (gdb_id_to_thread_id): Use it.
20892 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20893 * linux-low.h (struct process_info): Add th member.
20894 (thread_db_get_tls_address): New prototype.
20895 * remote-utils.c (decode_address): Make non-static.
20896 * server.c (handle_query): Handle qGetTLSAddr.
20897 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20898 * target.h (struct target_ops): Add get_tls_address.
20899 * thread-db.c (maybe_attach_thread): Save the thread handle.
20900 (thread_db_get_tls_address): New.
20901
32ca6d61
DJ
209022006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20903
20904 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20905 (linux_resume_one_process): Take a siginfo_t *. Update all
20906 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20907 (struct pending_signals): Add a siginfo_t.
20908 (linux_wait_for_process): Always set last_status.
20909 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20910 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20911 * linux-low.h (struct process_info): Add last_status.
20912
5ffff7c1
DJ
209132006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20914
20915 * remote-utils.c (try_rle): New function.
20916 (putpkt_binary): Use it.
20917
8695c747
DJ
209182006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20919
20920 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20921 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20922 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20923 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20924 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20925 point registers.
20926
290fadea
RS
209272006-08-08 Richard Sandiford <richard@codesourcery.com>
20928
20929 * server.c (terminal_fd): New variable.
20930 (old_foreground_pgrp): Likewise.
20931 (restore_old_foreground_pgrp): New function.
20932 (start_inferior): Record the terminal file descriptor in terminal_fd
20933 and its original foreground group in old_foreground_pgrp. Register
20934 restore_old_foreground_pgrp with atexit().
20935
9f2e1e63
DJ
209362006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20937
20938 * server.c (handle_query): Correct qPart to qXfer.
20939
b80864fb
DJ
209402006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20941
20942 * configure.ac: Check for more headers which are missing on
20943 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20944 * configure.srv: Add Cygwin and mingw32.
20945 * remote-utils.c: Don't include headers unconditionally which
20946 are missing on mingw32. Include <winsock.h> for mingw32.
20947 (remote_open): Adjust for mingw32 support. Flush
20948 standard error after writing to it.
20949 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20950 (unblock_async_io, enable_async_io, disable_async_io)
20951 (readchar, getpkt): Update for Winsock support.
20952 (prepare_resume_reply): Expect a protocol signal number.
20953 * server.c: Disable <sys/wait.h> on mingw32.
20954 (start_inferior): Adjust for mingw32 support. Flush
20955 standard error after writing to it.
20956 (attach_inferior): Likewise. Use protocol signal
20957 numbers.
20958 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20959 and names.
20960 * win32-i386-low.c: New file.
20961 * Makefile.in (XM_CLIBS): Set.
20962 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20963 (win32-i386-low.o): New dependency rule.
20964 * linux-low.c (linux_wait): Use target signal numbers.
20965 * target.h (struct target_ops): Doc fix.
20966 * server.h (target_signal_to_name): New prototype.
20967 * gdbreplay.c: Don't include headers unconditionally which
20968 are missing on mingw32. Include <winsock.h> for mingw32.
20969 (remote_close, remote_open): Adjust for Winsock support.
20970 * configure, config.in: Regenerated.
20971
0876f84a
DJ
209722006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20973
20974 * server.c (decode_xfer_read, write_qxfer_response): New.
20975 (handle_query): Take a packet length argument. Handle
20976 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20977 the qSupported response.
20978 (main): Update call to handle_query.
20979
01f9e8fa
DJ
209802006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20983 (putpkt_binary): Renamed from putpkt and adjusted for binary
20984 data.
20985 (putpkt): New wrapper for putpkt_binary.
20986 (readchar): Don't mask off the high bit.
20987 (decode_X_packet): New function.
20988 * server.c (main): Call putpkt_binary if a handler sets the packet
20989 length. Save the length of the incoming packet. Handle 'X'.
20990 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20991
be2a5f71
DJ
209922006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20993
20994 * server.c (handle_query): Handle qSupported.
20995
ea025f5f
DJ
209962006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20997
20998 * remote-utils.c (all_symbols_looked_up): New variable.
20999 (look_up_one_symbol): Check it.
21000 * server.h (look_up_one_symbol): New declaration.
21001 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21002
9308fc88
DJ
210032006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21004
21005 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21006 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21007 (PTRACE_GET_THREAD_AREA): Define.
21008 (ps_get_thread_area): New function.
21009
52fb6437
NS
210102006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21011
21012 * configure.srv (m68k*-*-uclinux*): New target.
21013 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21014 (linux_resume_one_process): Remove extraneous cast.
21015 (linux_read_offsets): New.
21016 (linux_target_op): Add linux_read_offsets on mmuless systems.
21017 * server.c (handle_query): Add qOffsets logic.
21018 * target.h (struct target_ops): Add read_offsets.
21019
21b0f40c
DJ
210202006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21021
21022 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21023 (PTRACE_GET_THREAD_AREA): Define.
21024 (ps_get_thread_area): New function.
21025 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21026 (linux-x86-64-low.o): Update.
21027
0050a760
DJ
210282006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21029
21030 * configure.ac: Remove checks for prfpregset_t.
21031 * gdb_proc_service.h: New file.
21032 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21033 new "gdb_proc_service.h".
21034 * proc-service.c: Likewise.
21035 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21036 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21037 * Makefile.in (gdb_proc_service_h): Updated.
21038 * configure, config.in: Regenerated.
21039
b92a518e
DJ
210402006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21041
21042 * remote-utils.c (prepare_resume_reply): Move declaration
21043 of gdb_id_from_wait to the top of the block.
21044
545587ee
DJ
210452006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21046
21047 * linux-low.c (regsets_store_inferior_registers): Read the regset
21048 from the target before filling it.
21049
9db87ebd
DJ
210502006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21051
21052 * server.c (attach_inferior): Return SIGTRAP for a successful
21053 attach.
21054
dd24457d
DJ
210552006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21056
21057 * Makefile.in (OBS): Add version.o.
21058 (STAGESTUFF): Delete.
21059 (version.o): Add dependencies.
21060 (version.c): Replace rule.
21061 (clean): Remove version.c.
21062 * server.c (gdbserver_version): New.
21063 (gdbserver_usage): Use printf.
21064 (main): Handle --version and --help.
21065 * server.h (version, host_name): Add declarations.
21066
6f0f660e
EZ
210672005-12-23 Eli Zaretskii <eliz@gnu.org>
21068
889bf7c5
PA
21069 * linux-arm-low.c:
21070 * linux-arm-low.c:
21071 * inferiors.c:
21072 * i387-fp.h:
21073 * i387-fp.c:
21074 * gdbreplay.c:
21075 * regcache.c:
21076 * proc-service.c:
21077 * mem-break.h:
21078 * mem-break.c:
21079 * linux-x86-64-low.c:
21080 * linux-sh-low.c:
21081 * linux-s390-low.c:
21082 * linux-ppc64-low.c:
21083 * linux-ppc-low.c:
21084 * linux-mips-low.c:
21085 * linux-m68k-low.c:
21086 * linux-m32r-low.c:
21087 * linux-low.h:
21088 * linux-low.c:
21089 * linux-ia64-low.c:
21090 * linux-i386-low.c:
21091 * linux-crisv32-low.c:
21092 * thread-db.c:
21093 * terminal.h:
21094 * target.h:
21095 * target.c:
21096 * server.h:
21097 * server.c:
21098 * remote-utils.c:
21099 * regcache.h:
21100 * utils.c:
21101 * Makefile.in:
21102 * configure.ac:
6f0f660e
EZ
21103 * gdbserver.1: Add (C) after Copyright. Update the FSF
21104 address.
21105
9d1fb177
DJ
211062005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21107
21108 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21109 (arm_breakpoint_at): Recognize both breakpoints.
21110 (the_low_target): Use the correct breakpoint instruction.
21111
011a70c2
DJ
211122005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21113
21114 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21115 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21116 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21117 (the_low_target): Update.
21118
7fb85e41
AS
211192005-10-25 Andreas Schwab <schwab@suse.de>
21120
21121 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21122
21123 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21124 (ia64_num_regs): Reduce to 462.
21125
3db0444b
DJ
211262005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21127
21128 * acinclude.m4: Correct quoting.
21129 * aclocal.m4: Regenerated.
21130
21131 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21132 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21133 (thread_db_init): Call thread_db_err_str.
21134 * configure.ac: Check for TD_VERSION.
21135 * config.in, configure: Regenerated.
21136
bee0189a
DJ
211372005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21138
21139 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21140
e9d25b98
DJ
211412005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21142
21143 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21144 is not available. Define HAVE_PTRACE_GETREGS if it is.
21145 * config.in, configure: Regenerated.
21146 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21147 * linux-i386-low.c, linux-m68k-low.c: Update to use
21148 HAVE_PTRACE_GETREGS.
21149 * linux-low.c (regsets_fetch_inferior_registers)
21150 (regsets_store_inferior_registers): Only return 0 if we processed
21151 GENERAL_REGS.
21152 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21153 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21154
a06660f7
DJ
211552005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21156
21157 * inferiors.c (struct thread_info): Add gdb_id.
21158 (add_thread): Add gdb_id argument.
21159 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21160 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21161 calls to add_thread.
21162 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21163 * server.c (handle_query): Use thread_to_gdb_id.
21164 (handle_v_cont, main): Use gdb_id_to_thread_id.
21165 * server.h (add_thread): Update prototype.
21166 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21167 prototypes.
21168
5a1f5858
DJ
211692005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21172 left-padded registers.
21173 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21174 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21175
e122f1f5
SE
211762005-07-01 Steve Ellcey <sje@cup.hp.com>
21177
21178 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21179 * configure: Regenerate.
21180 * config.in: Regenerate.
21181 * server.h (NEED_DECLARATION_STRERROR):
21182 Replace with !HAVE_DECL_STRERROR.
21183
d592fa2f
DJ
211842005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21185
21186 * linux-low.c (linux_wait, linux_send_signal): Don't test
21187 an unsigned long variable for > 0 if it could be MAX_ULONG.
21188 * server.c (myresume): Likewise.
21189 * target.c (set_desired_inferior): Likewise.
21190
ccbd4912
MK
211912005-06-13 Mark Kettenis <kettenis@gnu.org>
21192
21193 * configure.ac: Simplify and improve check for socklen_t.
21194 * configure, config.in: Regenerate.
21195
f450004a
DJ
211962005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21197
21198 * acconfig.h: Remove.
21199 * configure.ac: Add a test for socklen_t. Use three-argument
21200 AC_DEFINE throughout.
21201 * config.in: Regenerated using autoheader 2.59.
21202 * configure: Regenerated.
21203
21204 * gdbreplay.c (socklen_t): Provide a default.
21205 (remote_open): Use socklen_t.
21206 * remote-utils.c (socklen_t): Provide a default.
21207 (remote_open): Use socklen_t.
21208 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21209 unsigned char.
21210
21211 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21212 char for buffers.
21213 * linux-low.c (linux_read_memory, linux_write_memory)
21214 (linux_read_auxv): Likewise.
21215 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21216 (check_mem_write): Likewise.
21217 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21218 Likewise.
21219 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21220 (registers_from_string, register_data): Likewise.
21221 * server.c (handle_query, main): Likewise.
21222 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21223 (decode_M_packet): Likewise.
21224 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21225 * target.h (struct target_ops): Update read_memory, write_memory,
21226 and read_auxv.
21227 (read_inferior_memory, write_inferior_memory): Update.
21228 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21229 to unsigned char *.
21230 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21231 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21232 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21233 linux-s390-low.c, linux-sh-low.c: Update for changes in
21234 read_inferior_memory and the_low_target->breakpoint.
21235
eee84df1
DJ
212362005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21237
21238 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21239 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21240 * configure.srv: Add powerpc64-*-linux*.
21241 * linux-ppc64-low.c: New file.
21242
45b134e5
OF
212432005-05-23 Orjan Friberg <orjanf@axis.com>
21244
21245 * linux-cris-low.c: New file with support for CRIS.
21246 * linux-crisv32-low.c: Ditto for CRISv32.
21247 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21248 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21249 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21250 reg-crisv32.o, and reg-crisv32.c to make rules.
21251 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21252 recognized targets.
21253
48d93c75
UW
212542005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21255
21256 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21257 of sizeof (PTRACE_XFER_TYPE).
21258 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21259
e013ee27
OF
212602005-05-12 Orjan Friberg <orjanf@axis.com>
21261
889bf7c5 21262 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21263 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21264 pointers for hardware watchpoint support.
21265 * linux-low.h (struct linux_target_ops): Ditto.
21266 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21267 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21268 to linux_target_ops.
21269 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21270 reply packet.
21271 * server.c (main): Recognize 'Z' and 'z' packets.
21272
b0ded00b
UW
212732005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21274
21275 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21276 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21277 (the_low_target): Add new members.
21278
8643e2ad
DJ
212792005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21280
21281 * proc-service.c (ps_lgetregs): Search all_processes instead of
21282 all_threads.
21283
fc620387
DJ
212842005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21285
21286 * server.c (start_inferior): Change return type to int.
21287 (attach_inferior): Change sigptr to int *.
21288 (handle_v_cont, handle_v_requests): Change signal to int *.
21289 (main): Change signal to int.
21290
212912005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21292
21293 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21294 * configure.srv: Add m32r*-*-linux*.
21295 * linux-m32r-low.c: New file.
21296
e0e76420
DJ
212972005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21298
21299 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21300
a1928bad
DJ
213012005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21302
21303 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21304 Take unsigned long arguments for PIDs.
21305 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21306 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21307 (wait_for_sigstop, linux_resume_one_process)
21308 (regsets_fetch_inferior_registers, linux_send_signal)
21309 (linux_read_auxv): Likewise. Update the types of variables holding
21310 PIDs. Update format string specifiers.
21311 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21312 * remote-utils.c (prepare_resume_reply): Likewise.
21313 * server.c (cont_thread, general_thread, step_thread)
21314 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21315 unsigned long.
21316 (handle_query): Update format specifiers.
21317 (handle_v_cont, main): Use strtoul for thread IDs.
21318 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21319 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21320 (general_thread, step_thread, thread_from_wait)
21321 (old_thread_from_wait): Update.
21322 * target.h (struct thread_resume): Use unsigned long for THREAD.
21323 (struct target_ops): Use unsigned long for arguments to attach and
21324 thread_alive.
21325
dcdb98d2
DJ
213262005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21327
21328 * acinclude.m4: Include bfd/bfd.m4 directly.
21329 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21330 <agriffis@toolchain.org>.
21331 * aclocal.m4, configure: Regenerated.
21332
bec39cab
AC
213332005-01-07 Andrew Cagney <cagney@gnu.org>
21334
21335 * configure.ac: Rename configure.in, require autoconf 2.59.
21336 * configure: Re-generate.
21337
434c4c77
DJ
213382004-12-08 Daniel Jacobowitz <dan@debian.org>
21339
21340 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21341 LIBS when finished.
21342 * aclocal.m4: Regenerated.
21343 * configure: Regenerated.
21344
db1d3e1b
AS
213452004-11-21 Andreas Schwab <schwab@suse.de>
21346
21347 * linux-m68k-low.c (m68k_num_gregs): Define.
21348 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21349 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21350 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21351 (m68k_breakpoint_at): New. Add to the_low_target.
21352
21353 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21354 srv_linux_thread_db to yes.
21355
43360365
JB
213562004-10-20 Joel Brobecker <brobecker@gnat.com>
21357
21358 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21359 (ARCH_SET_FS): Likewise.
21360 (ARCH_GET_FS): Likewise.
21361 (ARCH_GET_GS): Likewise.
21362
fd500816
DJ
213632004-10-16 Daniel Jacobowitz <dan@debian.org>
21364
21365 * linux-i386-low.c (ps_get_thread_area): New.
21366 * linux-x86-64-low.c (ps_get_thread_area): New.
21367 * linux-low.c: Include <sys/syscall.h>.
21368 (linux_kill_one_process): Don't kill the first thread here.
21369 (linux_kill): Kill the first thread here.
21370 (kill_lwp): New function.
21371 (send_sigstop, linux_send_signal): Use it.
21372 * proc-service.c: Clean up #ifdefs.
21373 (fpregset_info): Delete.
21374 (ps_lgetregs): Update and enable implementation.
21375 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21376 implementations.
21377 * remote-utils.c (struct sym_cache, symbol_cache): New.
21378 (input_interrupt): Print a clearer message.
21379 (async_io_enabled): New variable.
21380 (enable_async_io, disable_async_io): Use it. Update comments.
21381 (look_up_one_symbol): Use the symbol cache.
21382 * thread-db.c (thread_db_look_up_symbols): New function.
21383 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21384
f6de3c42
DJ
213852004-10-16 Daniel Jacobowitz <dan@debian.org>
21386
21387 * configure.in: Test for -rdynamic.
21388 * configure: Regenerated.
21389 * Makefile (INTERNAL_LDFLAGS): New.
21390 (gdbserver, gdbreplay): Use it.
21391
2c0fc042
AC
213922004-09-02 Andrew Cagney <cagney@gnu.org>
21393
21394 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21395
075b3282
DJ
213962004-03-23 Daniel Jacobowitz <drow@mvista.com>
21397
21398 * linux-low.c (linux_wait): Clear all_processes list also.
21399
fa6a77dc
DJ
214002004-03-12 Daniel Jacobowitz <drow@mvista.com>
21401
21402 * linux-low.c: Include <errno.h>. Remove extern declaration of
21403 errno.
21404
6d782a97
DJ
214052004-03-12 Daniel Jacobowitz <drow@mvista.com>
21406
21407 * gdbreplay.c, server.h, utils.c: Update copyright years.
21408
3a7fb99b
DJ
214092004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21410
21411 * server.c (main): Print child status or termination signal from
21412 variable 'signal', not 'sig'.
21413
c3e735a6
DJ
214142004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21415
21416 * linux-low.c (linux_read_memory): Change return type to
21417 int. Check for and return error from ptrace().
21418 * target.c (read_inferior_memory): Change return type to int. Pass
21419 back return status from the_target->read_memory().
21420 * target.h (struct target_ops): Adapt *read_memory() prototype.
21421 Update comment.
21422 (read_inferior_memory): Adapt prototype.
21423 * server.c (main): Return an error packet if
21424 read_inferior_memory() returns an error.
21425
a59d1c82
DJ
214262004-03-04 Daniel Jacobowitz <drow@mvista.com>
21427
21428 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21429 Unify with other clean targets.
21430
dc3f8883
DJ
214312004-02-29 Daniel Jacobowitz <drow@mvista.com>
21432
21433 * server.c (handle_v_cont): Call set_desired_inferior.
21434
89a208da
DJ
214352004-02-29 Daniel Jacobowitz <drow@mvista.com>
21436
21437 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21438
62ea82f5
DJ
214392004-02-29 Daniel Jacobowitz <drow@mvista.com>
21440
21441 * linux-low.c (linux_wait): Unblock async I/O.
21442 (linux_resume): Block and enable async I/O.
21443 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21444 * server.h (block_async_io, unblock_async_io): Add prototypes.
21445
6910d122
DJ
214462004-02-29 Daniel Jacobowitz <drow@mvista.com>
21447
21448 * remote-utils.c (remote_open): Print a status notice after
21449 opening a TCP port.
21450 * server.c (attach_inferior): Print a status notice after
21451 attaching.
21452
214532004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21454
21455 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21456
c89dc5d4
DJ
214572004-02-26 Daniel Jacobowitz <drow@mvista.com>
21458
21459 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21460 error packet.
21461 * server.c, target.h: Update copyright years.
21462
4b8dad4a
RM
214632004-02-25 Roland McGrath <roland@redhat.com>
21464
21465 * target.h (struct target_ops): New member `read_auxv'.
21466 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21467 * linux-low.c (linux_read_auxv): New function.
21468 (linux_target_ops): Initialize `read_auxv' member to that.
21469
d7446758
JB
214702004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21471
21472 Committed by Jim Blandy <jimb@redhat.com>.
21473
21474 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21475 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21476 instead of GPR_SIZE to distiguish s390 and s390x targets.
21477
5544ad89
DJ
214782004-01-31 Daniel Jacobowitz <drow@mvista.com>
21479
21480 * linux-low.c: Update copyright year.
21481 (check_removed_breakpoint): Clear pending_is_breakpoint.
21482 (linux_set_resume_request, linux_queue_one_thread)
21483 (resume_status_pending_p): New functions.
21484 (linux_continue_one_thread): Use process->resume.
21485 (linux_resume): Only resume threads if there are no pending events.
21486 * linux-low.h (struct process_info): Add resume request
21487 pointer.
21488
2a68b70e
DJ
214892004-01-30 Daniel Jacobowitz <drow@mvista.com>
21490
21491 * regcache.c (new_register_cache): Clear the allocated register
21492 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21493
64386c31
DJ
214942003-10-13 Daniel Jacobowitz <drow@mvista.com>
21495
21496 * linux-low.c (linux_resume): Take a struct thread_resume *
21497 argument.
21498 (linux_wait): Update call.
21499 (resume_ptr): New static variable.
21500 (linux_continue_one_thread): Renamed from
21501 linux_continue_one_process. Use resume_ptr.
21502 (linux_resume): Use linux_continue_one_thread.
21503 * server.c (handle_v_cont, handle_v_requests): New functions.
21504 (myresume): New function.
21505 (main): Handle 'v' case.
21506 * target.h (struct thread_resume): New type.
21507 (struct target_ops): Change argument of "resume" to struct
21508 thread_resume *.
21509 (myresume): Delete macro.
21510
c938e9b0
L
215112003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21512
21513 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21514 (uninstall): Support DESTDIR.
21515
7f313d07
BC
21516Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21517
21518 * configure.srv: Add xscale*linux copy of arm*linux entry.
21519
3b2fc2ea
DJ
215202003-07-24 Daniel Jacobowitz <drow@mvista.com>
21521
21522 * linux-arm-low.c (arm_reinsert_addr): New function.
21523 (the_low_target): Add arm_reinsert_addr.
21524
1c0a559e
MK
215252003-07-08 Mark Kettenis <kettenis@gnu.org>
21526
21527 * mem-break.c: Remove whitespace at end of file.
21528
43d5792c
DJ
215292003-06-28 Daniel Jacobowitz <drow@mvista.com>
21530
21531 * configure.in: Check whether we need to prototype strerror.
21532 * server.h: Optionally prototype strerror.
21533 * gdbreplay.c (perror_with_name): Use strerror.
21534 * linux-low.c (linux_attach_lwp): Use strerror.
21535 * utils.c (perror_with_name): Use strerror.
21536 * config.in, configure: Regenerated.
21537
c8a86edf
DJ
215382003-06-28 Daniel Jacobowitz <drow@mvista.com>
21539
21540 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21541 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21542
73d37363
DJ
215432003-06-20 Daniel Jacobowitz <drow@mvista.com>
21544
21545 * Makefile.in (SFILES): Update.
21546 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21547 low-sun3.c: Remove files.
21548
6ad8ae5c
DJ
215492003-06-17 Daniel Jacobowitz <drow@mvista.com>
21550
21551 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21552 (linux_detach_one_process, linux_detach): New functions.
21553 (linux_target_ops): Add linux_detach.
21554 * server.c (main): Handle 'D' packet.
21555 * target.h (struct target_ops): Add "detach" member.
21556 (detach_inferior): Define.
21557
1581182a
MK
215582003-06-13 Mark Kettenis <kettenis@gnu.org>
21559
21560 From Kelley Cook <kelleycook@wideopenwest.com>:
21561 * configure.srv: Accept i[34567]86 variants.
21562
e5379b03
DJ
215632003-06-05 Daniel Jacobowitz <drow@mvista.com>
21564
21565 * linux-low.c (linux_wait_for_event): Correct comment typos.
21566 (linux_resume_one_process): Call check_removed_breakpoint.
21567 (linux_send_signal): New function.
21568 (linux_target_ops): Add linux_send_signal.
21569 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21570 of kill.
21571 * target.h (struct target_ops): Add send_signal.
21572
2ff29de4
JB
215732003-05-29 Jim Blandy <jimb@redhat.com>
21574
21575 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21576 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21577 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21578 away part of the register's value.
21579
254787d4
DJ
215802003-03-26 Daniel Jacobowitz <drow@mvista.com>
21581
21582 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21583 (linux_wait_for_event, linux_init_signals): Likewise.
21584
94e10508
DJ
215852003-03-17 Daniel Jacobowitz <drow@mvista.com>
21586
21587 * configure.in: Check for stdlib.h.
21588 * configure: Regenerated.
21589 * config.in: Regenerated.
21590
4c0711e0
DJ
215912003-01-04 Andreas Schwab <schwab@suse.de>
21592
21593 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21594
ef66e766
AC
215952003-01-02 Andrew Cagney <ac131313@redhat.com>
21596
21597 * Makefile.in: Remove obsolete code.
21598
a1358604
DJ
215992002-11-20 Daniel Jacobowitz <drow@mvista.com>
21600
21601 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21602 defined(PT_FPR0_HI).
21603
23ce3b1c
DJ
216042002-11-17 Stuart Hughes <seh@zee2.com>
21605
21606 * linux-arm-low.c (arm_num_regs): Increase.
21607 (arm_regmap): Include status register.
21608
216092002-11-17 Daniel Jacobowitz <drow@mvista.com>
21610
21611 * linux-low.c (register_addr): Remove incorrect -1 check.
21612
a9fa9f7d
DJ
216132002-08-29 Daniel Jacobowitz <drow@mvista.com>
21614
21615 * linux-low.c (linux_create_inferior): Call setpgid. Return
21616 the new PID.
21617 (unstopped_p, linux_signal_pid): Remove.
21618 (linux_target_ops): Remove linux_signal_pid.
21619 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21620 global instead of target method.
21621 * target.h (struct target_ops): Remove signal_pid. Update comment
21622 for create_inferior.
21623 * server.c (signal_pid): New variable.
21624 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21625 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21626 (attach_inferior): Set signal_pid.
21627
17574093
DJ
216282002-08-23 Daniel Jacobowitz <drow@mvista.com>
21629
21630 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21631
216322002-08-20 Jim Blandy <jimb@redhat.com>
21633
21634 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21635 default for this.
21636
216372002-08-01 Andrew Cagney <cagney@redhat.com>
21638
21639 * Makefile.in: Make chill references obsolete.
21640
216412002-07-24 Kevin Buettner <kevinb@redhat.com>
21642
21643 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21644 * configure: Regenerate.
21645 * config.in: Regenerate.
21646
216472002-07-09 David O'Brien <obrien@FreeBSD.org>
21648
21649 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21650 (perror_with_name, remote_close, remote_open, expect, play): Static.
21651
216522002-07-04 Michal Ludvig <mludvig@suse.cz>
21653
4b8dad4a 21654 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21655 byte offsets instead of an array of indexes.
21656 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21657
216582002-06-13 Daniel Jacobowitz <drow@mvista.com>
21659
21660 * regcache.c: Add comment.
21661
216622002-06-11 Daniel Jacobowitz <drow@mvista.com>
21663
21664 * thread-db.c: New file.
21665 * proc-service.c: New file.
21666 * acinclude.m4: New file.
21667 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21668 proc-service.o, and thread-db.o.
21669 (linux-low.o): Add USE_THREAD_DB.
21670 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21671 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21672 * aclocal.m4: Regenerated.
21673 * config.in: Regenerated.
21674 * configure: Regenerated.
21675 * configure.in: Check for proc_service.h, sys/procfs.h,
21676 thread_db.h, and linux/elf.h headrs.
21677 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21678 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21679 Check for -lthread_db and thread support.
21680 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21681 PowerPC, and SuperH.
21682 * i387-fp.c: Constify arguments.
21683 * i387-fp.h: Likewise.
21684 * inferiors.c: (struct thread_info): Renamed from
21685 `struct inferior_info'. Remove PID member. Use generic inferior
21686 list header. All uses updated.
21687 (inferiors, signal_pid): Removed.
21688 (all_threads): New variable.
21689 (get_thread): Define.
21690 (add_inferior_to_list): New function.
21691 (for_each_inferior): New function.
21692 (change_inferior_id): New function.
21693 (add_inferior): Removed.
21694 (remove_inferior): New function.
21695 (add_thread): New function.
21696 (free_one_thread): New function.
21697 (remove_thread): New function.
21698 (clear_inferiors): Use for_each_inferior and free_one_thread.
21699 (find_inferior): New function.
21700 (find_inferior_id): New function.
21701 (inferior_target_data): Update argument type.
21702 (set_inferior_target_data): Likewise.
21703 (inferior_regcache_data): Likewise.
21704 (set_inferior_regcache_data): Likewise.
21705 * linux-low.c (linux_bp_reinsert): Remove.
21706 (all_processes, stopping_threads, using_thrads)
21707 (struct pending_signals, debug_threads, pid_of): New.
21708 (inferior_pid): Replace with macro.
21709 (struct inferior_linux_data): Remove.
21710 (get_stop_pc, add_process): New functions.
21711 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21712 Use add_process and add_thread.
21713 (linux_attach_lwp): New function, based on old linux_attach. Use
21714 add_process and add_thread. Set stop_expected for new threads.
21715 (linux_attach): New function.
21716 (linux_kill_one_process): New function.
21717 (linux_kill): Kill all LWPs.
21718 (linux_thread_alive): Use find_inferior_id.
21719 (check_removed_breakpoints, status_pending_p): New functions.
21720 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21721 Update. Use WNOHANG. Wait for cloned processes also. Update process
21722 struct for the found process.
21723 (linux_wait_for_event): New function.
21724 (linux_wait): Use it. Support LWPs.
21725 (send_sigstop, wait_for_sigstop, stop_all_processes)
21726 (linux_resume_one_process, linux_continue_one_process): New functions.
21727 (linux_resume): Support LWPs.
21728 (REGISTER_RAW_SIZE): Remove.
21729 (fetch_register): Use register_size instead. Call supply_register.
21730 (usr_store_inferior_registers): Likewise. Call collect_register.
21731 Fix recursive case.
21732 (regsets_fetch_inferior_registers): Improve error message.
21733 (regsets_store_inferior_registers): Add debugging.
21734 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21735 (unstopped_p, linux_signal_pid): New functions.
21736 (linux_target_ops): Add linux_signal_pid.
21737 (linux_init_signals): New function.
21738 (initialize_low): Call it. Initialize using_threads.
21739 * regcache.c (inferior_regcache_data): Add valid
21740 flag.
21741 (get_regcache): Fetch registers lazily. Add fetch argument
21742 and update all callers.
21743 (regcache_invalidate_one, regcache_invalidate): New
21744 functions.
21745 (new_register_cache): Renamed from create_register_cache.
21746 Return the new regcache.
21747 (free_register_cache): Change argument to a void *.
21748 (registers_to_string, registers_from_string): Call get_regcache
21749 with fetch flag set.
21750 (register_data): Make static. Pass fetch flag to get_regcache.
21751 (supply_register): Call get_regcache with fetch flag clear.
21752 (collect_register): Call get_regcache with fetch flag set.
21753 (collect_register_as_string): New function.
21754 * regcache.h: Update.
21755 * remote-utils.c (putpkt): Flush after debug output and use
21756 stderr.
21757 Handle input interrupts while waiting for an ACK.
21758 (input_interrupt): Use signal_pid method.
21759 (getpkt): Flush after debug output and use stderr.
21760 (outreg): Use collect_register_as_string.
21761 (new_thread_notify, dead_thread_notify): New functions.
21762 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21763 and general_thread.
21764 (look_up_one_symbol): Flush after debug output.
21765 * server.c (step_thread, server_waiting): New variables.
21766 (start_inferior): Don't use signal_pid. Update call to mywait.
21767 (attach_inferior): Update call to mywait.
21768 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21769 (main): Don't fetch/store registers explicitly. Use
21770 set_desired_inferior. Support proposed ``Hs'' packet. Update
21771 calls to mywait.
21772 * server.h: Update.
21773 (struct inferior_list, struct_inferior_list_entry): New.
21774 * target.c (set_desired_inferior): New.
21775 (write_inferior_memory): Constify.
21776 (mywait): New function.
21777 * target.h: Update.
21778 (struct target_ops): New signal_pid method.
21779 (mywait): Removed macro, added prototype.
21780
21781 * linux-low.h (regset_func): Removed.
21782 (regset_fill_func, regset_store_func): New.
21783 (enum regset_type): New.
21784 (struct regset_info): Add type field. Use new operation types.
21785 (struct linux_target_ops): stop_pc renamed to get_pc.
21786 Add decr_pc_after_break and breakpoint_at.
21787 (get_process, get_thread_proess, get_process_thread)
21788 (strut process_info, all_processes, linux_attach_lwp)
21789 (thread_db_init): New.
21790
21791 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21792 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21793 (the_low_target): Add new members.
21794 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21795 (i386_store_fpxregset): Constify.
21796 (target_regsets): Add new kind identifier.
21797 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21798 (i386_set_pc): Add debugging.
21799 (i386_breakpoint_at): New function.
21800 (the_low_target): Add new members.
21801 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21802 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21803 (mips_breakpoint_at): New.
21804 (the_low_target): Add new members.
21805 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21806 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21807 (the_low_target): Add new members.
21808 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21809 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21810 (the_low_target): Add new members.
21811 * linux-x86-64-low.c (target_regsets): Add new kind
21812 identifier.
21813
218142002-05-15 Daniel Jacobowitz <drow@mvista.com>
21815
21816 From Martin Pool <mbp@samba.org>:
21817 * server.c (gdbserver_usage): New function.
21818 (main): Call it.
21819
218202002-05-14 Daniel Jacobowitz <drow@mvista.com>
21821
21822 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21823 stop_at -> stop_pc.
21824
218252002-05-04 Andrew Cagney <ac131313@redhat.com>
21826
21827 * Makefile.in: Remove obsolete code.
21828
218292002-04-24 Michal Ludvig <mludvig@suse.cz>
21830
21831 * linux-low.c (regsets_fetch_inferior_registers),
21832 (regsets_store_inferior_registers): Removed cast to int from
21833 ptrace() calls.
21834 * regcache.h: Added declaration of struct inferior_info.
21835
218362002-04-20 Daniel Jacobowitz <drow@mvista.com>
21837
21838 * inferiors.c (struct inferior_info): Add regcache_data.
21839 (add_inferior): Call create_register_cache.
21840 (clear_inferiors): Call free_register_cache.
21841 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21842 * regcache.c (struct inferior_regcache_data): New.
21843 (registers): Remove.
21844 (get_regcache): New function.
21845 (create_register_cache, free_register_cache): New functions.
21846 (set_register_cache): Don't initialize the register cache here.
21847 (registers_to_string, registers_from_string, register_data): Call
21848 get_regcache.
21849 * regcache.h: Add prototypes.
21850 * server.h: Likewise.
21851
218522002-04-20 Daniel Jacobowitz <drow@mvista.com>
21853
21854 * mem-break.c: New file.
21855 * mem-break.h: New file.
21856 * Makefile.in: Add mem-break.o rule; update server.h
21857 dependencies.
21858 * inferiors.c (struct inferior_info): Add target_data
21859 member.
21860 (clear_inferiors): Free target_data member if set.
21861 (inferior_target_data, set_inferior_target_data): New functions.
21862 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21863 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21864 * linux-low.c (linux_bp_reinsert): New variable.
21865 (struct inferior_linux_data): New.
21866 (linux_create_inferior): Use set_inferior_target_data.
21867 (linux_attach): Likewise. Call add_inferior.
21868 (linux_wait_for_one_inferior): New function.
21869 (linux_wait): Call it.
21870 (linux_write_memory): Add const.
21871 (initialize_low): Call set_breakpoint_data.
21872 * linux-low.h (struct linux_target_ops): Add breakpoint
21873 handling members.
21874 * server.c (attach_inferior): Remove extra add_inferior
21875 call.
21876 * server.h: Include mem-break.h. Update inferior.c
21877 prototypes.
21878 * target.c (read_inferior_memory)
21879 (write_inferior_memory): New functions.
21880 * target.h (read_inferior_memory)
21881 (write_inferior_memory): Change macros to prototypes.
21882 (struct target_ops): Update comments. Add const to write_memory
21883 definition.
21884
218852002-04-11 Daniel Jacobowitz <drow@mvista.com>
21886
21887 * linux-low.c (usr_store_inferior_registers): Support
21888 registers which are allowed to fail to store.
21889 * linux-low.h (linux_target_ops): Likewise.
21890 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21891 (ppc_cannot_store_register): FPSCR may not be storable.
21892
218932002-04-09 Daniel Jacobowitz <drow@mvista.com>
21894
21895 * server.h: Include <string.h> if HAVE_STRING_H.
21896 * ChangeLog: Correct paths in last ChangeLog entry.
21897
218982002-04-09 Daniel Jacobowitz <drow@mvista.com>
21899
21900 * linux-low.h: Remove obsolete prototypes.
21901 (struct linux_target_ops): New.
21902 (extern the_low_target): New.
21903 * linux-low.c (num_regs, regmap): Remove declarations.
21904 (register_addr): Use the_low_target explicitly.
21905 (fetch_register): Likewise.
21906 (usr_fetch_inferior_registers): Likewise.
21907 (usr_store_inferior_registers): Likewise.
21908 * linux-arm-low.c (num_regs): Remove.
21909 (arm_num_regs): Define.
21910 (arm_regmap): Renamed from regmap, made static.
21911 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21912 made static.
21913 (arm_cannot_store_register): Renamed from cannot_store_register,
21914 made static.
21915 (the_low_target): New.
21916 * linux-i386-low.c (num_regs): Remove.
21917 (i386_num_regs): Define.
21918 (i386_regmap): Renamed from regmap, made static.
21919 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21920 made static.
21921 (i386_cannot_store_register): Renamed from cannot_store_register,
21922 made static.
21923 (the_low_target): New.
21924 * linux-ia64-low.c (num_regs): Remove.
21925 (ia64_num_regs): Define.
21926 (ia64_regmap): Renamed from regmap, made static.
21927 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21928 made static.
21929 (ia64_cannot_store_register): Renamed from cannot_store_register,
21930 made static.
21931 (the_low_target): New.
21932 * linux-m68k-low.c (num_regs): Remove.
21933 (m68k_num_regs): Define.
21934 (m68k_regmap): Renamed from regmap, made static.
21935 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21936 made static.
21937 (m68k_cannot_store_register): Renamed from cannot_store_register,
21938 made static.
21939 (the_low_target): New.
21940 * linux-mips-low.c (num_regs): Remove.
21941 (mips_num_regs): Define.
21942 (mips_regmap): Renamed from regmap, made static.
21943 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21944 made static.
21945 (mips_cannot_store_register): Renamed from cannot_store_register,
21946 made static.
21947 (the_low_target): New.
21948 * linux-ppc-low.c (num_regs): Remove.
21949 (ppc_num_regs): Define.
21950 (ppc_regmap): Renamed from regmap, made static.
21951 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21952 made static.
21953 (ppc_cannot_store_register): Renamed from cannot_store_register,
21954 made static.
21955 (the_low_target): New.
21956 * linux-s390-low.c (num_regs): Remove.
21957 (s390_num_regs): Define.
21958 (s390_regmap): Renamed from regmap, made static.
21959 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21960 made static.
21961 (s390_cannot_store_register): Renamed from cannot_store_register,
21962 made static.
21963 (the_low_target): New.
21964 * linux-sh-low.c (num_regs): Remove.
21965 (sh_num_regs): Define.
21966 (sh_regmap): Renamed from regmap, made static.
21967 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21968 made static.
21969 (sh_cannot_store_register): Renamed from cannot_store_register,
21970 made static.
21971 (the_low_target): New.
21972 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21973 (the_low_target): New.
21974
219752002-04-09 Daniel Jacobowitz <drow@mvista.com>
21976
21977 * Makefile.in: Add stamp-h target.
21978 * configure.in: Create stamp-h.
21979 * configure: Regenerated.
21980
219812002-04-09 Daniel Jacobowitz <drow@mvista.com>
21982
21983 * inferiors.c: New file.
21984 * target.c: New file.
21985 * target.h: New file.
21986 * Makefile.in: Add target.o and inferiors.o. Update
21987 dependencies.
21988 * linux-low.c (inferior_pid): New static variable,
21989 moved from server.c.
21990 (linux_create_inferior): Renamed from create_inferior.
21991 Call add_inferior. Return 0 on success instead of a PID.
21992 (linux_attach): Renamed from myattach.
21993 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21994 (linux_thread_alive): Renamed from mythread_alive.
21995 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21996 child dies.
21997 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21998 (regsets_store_inferior_registers): Correct error message.
21999 Add missing ``return 0''.
22000 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22001 (linux_store_registers): Renamed from store_inferior_registers.
22002 (linux_read_memory): Renamed from read_inferior_memory.
22003 (linux_write_memory): Renamed from write_inferior_memory.
22004 (linux_target_ops): New structure.
22005 (initialize_low): Call set_target_ops ().
22006 * remote-utils.c (unhexify): New function.
22007 (hexify): New function.
22008 (input_interrupt): Send signals to ``signal_pid''.
22009 * server.c (inferior_pid): Remove.
22010 (start_inferior): Update create_inferior call.
22011 (attach_inferior): Call add_inferior.
22012 (handle_query): New function.
22013 (main): Call handle_query for `q' packets.
22014 * server.h: Include "target.h". Remove obsolete prototypes.
22015 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22016
220172002-04-09 Daniel Jacobowitz <drow@mvista.com>
22018
22019 * Makefile.in: Add WARN_CFLAGS. Update configury
22020 dependencies.
22021 * configure.in: Check for <string.h>
22022 * configure: Regenerate.
22023 * config.in: Regenerate.
22024 * gdbreplay.c: Include needed system headers.
22025 (remote_open): Remove strchr prototype.
22026 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22027 * regcache.c (supply_register): Change buf argument to const void *.
22028 (supply_register_by_name): Likewise.
22029 (collect_register): Change buf argument to void *.
22030 (collect_register_by_name): Likewise.
22031 * regcache.h: Add missing prototypes.
22032 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22033 * server.c (handle_query): New function.
22034 (attached): New static variable, moved out of main.
22035 (main): Quiet longjmp clobber warnings.
22036 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22037 * utils.c (error): Remove NORETURN.
22038 (fatal): Likewise.