]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Move event-loop.[ch] to gdbsupport/
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
8ae8e197
TT
12020-04-13 Tom Tromey <tom@tromey.com>
2
3 * configure: Rebuild.
4 * config.in: Rebuild.
5
360ad8b3
TT
62020-04-08 Tom Tromey <tromey@adacore.com>
7
8 PR gdb/22992
9 * win32-low.c (child_continue): Call matching_pending_stop.
10 (get_child_debug_event): Call fetch_pending_stop. Push pending
11 stop when needed.
12
523d4f80
TT
132020-04-08 Tom Tromey <tromey@adacore.com>
14
15 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
16 (win32_process_target::supports_stopped_by_sw_breakpoint):
17 Declare.
18 * win32-low.c (win32_supports_z_point_type): Always handle
19 Z_PACKET_SW_BP.
20 (win32_insert_point): Call insert_memory_breakpoint when needed.
21 (win32_remove_point): Call remove_memory_breakpoint when needed.
22 (win32_process_target::stopped_by_sw_breakpoint)
23 (win32_process_target::supports_stopped_by_sw_breakpoint): New
24 methods.
25 (win32_target_ops): Update.
26 (maybe_adjust_pc): New function.
27 (win32_wait): Call maybe_adjust_pc.
28
e54e5929
TT
292020-04-08 Tom Tromey <tromey@adacore.com>
30
31 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
32 field.
33 * win32-i386-low.c (the_low_target): Update.
34 * win32-arm-low.c (the_low_target): Update.
35
d6225aff
TT
362020-04-08 Tom Tromey <tromey@adacore.com>
37
38 * win32-low.h (win32_process_target::read_pc)
39 (win32_process_target::write_pc): Declare.
40 * win32-low.c (win32_process_target::read_pc)
41 (win32_process_target::write_pc): New methods.
42 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
43 functions.
44 (the_low_target): Update.
45 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
46 functions.
47 (the_low_target): Update.
48
2c1d95e8
TT
492020-04-08 Tom Tromey <tromey@adacore.com>
50
51 * win32-low.c (win32_kill, get_child_debug_event): Use
52 wait_for_debug_event.
53
e758e19c
TT
542020-04-08 Tom Tromey <tromey@adacore.com>
55
56 * win32-low.c (child_continue): Call continue_last_debug_event.
57
8d30e395
TT
582020-04-08 Tom Tromey <tromey@adacore.com>
59
60 * win32-low.c (handle_exception): Remove.
61 (windows_nat::handle_ms_vc_exception): New function.
62 (get_child_debug_event): Add "continue_status" parameter.
63 Update.
64 (win32_wait): Update.
65
a816ba18
TT
662020-04-08 Tom Tromey <tromey@adacore.com>
67
68 * win32-low.c (windows_nat::handle_load_dll): Rename from
69 handle_load_dll. No longer static.
70 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
71 No longer static.
72
d41b524f
TT
732020-04-08 Tom Tromey <tromey@adacore.com>
74
75 * win32-low.c (handle_output_debug_string): Add parameter. Change
76 return type.
77 (win32_kill, get_child_debug_event): Update.
78
3c76026d
TT
792020-04-08 Tom Tromey <tromey@adacore.com>
80
81 * win32-low.c (current_process_handle, current_process_id)
82 (main_thread_id, last_sig, current_event, siginfo_er): Move to
83 nat/windows-nat.c.
84
9d8679cc
TT
852020-04-08 Tom Tromey <tromey@adacore.com>
86
87 * win32-low.c (get_image_name): Remove.
88 (handle_load_dll): Update.
89
28688adf
TT
902020-04-08 Tom Tromey <tromey@adacore.com>
91
92 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
93 No longer static. Change parameters.
94 (child_add_thread, child_fetch_inferior_registers)
95 (child_store_inferior_registers, win32_resume)
96 (win32_get_tib_address): Update.
97
4834dad0
TT
982020-04-08 Tom Tromey <tromey@adacore.com>
99
100 * win32-low.h (struct win32_target_ops): Use qualified names where
101 needed.
102 * win32-i386-low.c: Add "using namespace".
103 * win32-low.c: Add "using namespace".
104 * win32-arm-low.c: Add "using namespace".
105
65bafd5b
TT
1062020-04-08 Tom Tromey <tromey@adacore.com>
107
108 * win32-low.c (delete_thread_info): Don't call CloseHandle.
109
98a03287
TT
1102020-04-08 Tom Tromey <tromey@adacore.com>
111
112 * win32-low.c (win32_require_context, suspend_one_thread): Use
113 windows_thread_info::suspend.
114 (continue_one_thread): Use windows_thread_info::resume.
115 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
116
62fe396b
TT
1172020-04-08 Tom Tromey <tromey@adacore.com>
118
119 * win32-i386-low.c (update_debug_registers)
120 (i386_prepare_to_resume, i386_thread_added): Update.
121
e9534bd2
TT
1222020-04-08 Tom Tromey <tromey@adacore.com>
123
124 * win32-low.c (child_add_thread): Use new.
125 (delete_thread_info): Use delete.
126
ae1f8880
TT
1272020-04-08 Tom Tromey <tromey@adacore.com>
128
129 * win32-low.h (struct windows_thread_info): Remove.
130
e56f8ccb
TT
1312020-04-08 Tom Tromey <tromey@adacore.com>
132
133 * win32-low.h (struct windows_thread_info): Rename from
134 win32_thread_info. Remove typedef.
135 (struct win32_target_ops, win32_require_context): Update.
136 * win32-low.c (win32_get_thread_context)
137 (win32_set_thread_context, win32_prepare_to_resume)
138 (win32_require_context, thread_rec, child_add_thread)
139 (delete_thread_info, continue_one_thread)
140 (child_fetch_inferior_registers, child_store_inferior_registers)
141 (win32_resume, suspend_one_thread, win32_get_tib_address):
142 Update.
143 * win32-i386-low.c (update_debug_registers)
144 (win32_get_current_dr, i386_get_thread_context)
145 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
146 (i386_fetch_inferior_register, i386_store_inferior_register):
147 Update.
148 * win32-arm-low.c (arm_get_thread_context)
149 (arm_fetch_inferior_register, arm_store_inferior_register):
150 Update.
151
0dd7b52e
TBA
1522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153
154 * linux-low.h (struct linux_target_ops): Remove.
155 (the_low_target): Remove.
156 * linux-x86-low.cc (the_low_target): Remove.
157 * linux-aarch64-low.cc (the_low_target): Ditto.
158 * linux-arm-low.cc (the_low_target): Ditto.
159 * linux-bfin-low.cc (the_low_target): Ditto.
160 * linux-cris-low.cc (the_low_target): Ditto.
161 * linux-crisv32-low.cc (the_low_target): Ditto.
162 * linux-ia64-low.cc (the_low_target): Ditto.
163 * linux-m32r-low.cc (the_low_target): Ditto.
164 * linux-m68k-low.cc (the_low_target): Ditto.
165 * linux-mips-low.cc (the_low_target): Ditto.
166 * linux-nios2-low.cc (the_low_target): Ditto.
167 * linux-ppc-low.cc (the_low_target): Ditto.
168 * linux-riscv-low.cc (the_low_target): Ditto.
169 * linux-s390-low.cc (the_low_target): Ditto.
170 * linux-sh-low.cc (the_low_target): Ditto.
171 * linux-sparc-low.cc (the_low_target): Ditto.
172 * linux-tic6x-low.cc (the_low_target): Ditto.
173 * linux-tile-low.cc (the_low_target): Ditto.
174 * linux-xtensa-low.cc (the_low_target): Ditto.
175
fc5ecdb6
TBA
1762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
177
178 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
179 linux target define the op by overriding the declaration in
180 process_stratum_target.
181
182 * linux-low.h (struct linux_target_ops): Remove the op.
183 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
184 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
185 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
186 (x86_get_ipa_tdesc_idx): Turn into...
187 (x86_target::get_ipa_tdesc_idx): ...this.
188 (the_low_target): Remove the op field.
189 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
190 (ppc_get_ipa_tdesc_idx): Turn into...
191 (ppc_target::get_ipa_tdesc_idx): ...this.
192 (the_low_target): Remove the op field.
193 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
194 (s390_get_ipa_tdesc_idx): Turn into...
195 (s390_target::get_ipa_tdesc_idx): ...this.
196 (the_low_target): Remove the op field.
197
9eedd27d
TBA
1982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
199
200 Turn the 'get_syscall_trapinfo' linux target op into a method
201 of process_stratum_target.
202
203 * linux-low.h (struct linux_target_ops): Remove the op.
204 (class linux_process_target) <get_syscall_trapinfo>
205 <gdb_catch_this_syscall>
206 <low_supports_catch_syscall>
207 <low_get_syscall_trapinfo>: Declare.
208 * linux-low.cc (get_syscall_trapinfo): Turn into...
209 (linux_process_target::get_syscall_trapinfo): ...this.
210 (linux_process_target::low_get_syscall_trapinfo): Define.
211 (gdb_catch_this_syscall_p): Turn into...
212 (linux_process_target::gdb_catch_this_syscall): ...this.
213 (linux_process_target::low_supports_catch_syscall): Define.
214
215 Update the callers below.
216
217 (linux_process_target::wait_1)
218 (linux_process_target::supports_catch_syscall)
219
220 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
221 <low_get_syscall_trapinfo>: Declare.
222 (x86_target::low_supports_catch_syscall): Define.
223 (x86_get_syscall_trapinfo): Turn into...
224 (x86_target::low_get_syscall_trapinfo): ...this.
225 (the_low_target): Remove the op field.
226 * linux-aarch64-low.cc (class aarch64_target)
227 <low_supports_catch_syscall>
228 <low_get_syscall_trapinfo>: Declare.
229 (aarch64_target::low_supports_catch_syscall): Define.
230 (aarch64_get_syscall_trapinfo): Turn into...
231 (aarch64_target::low_get_syscall_trapinfo): ...this.
232 (the_low_target): Remove the op field.
233 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
234 <low_get_syscall_trapinfo>: Declare.
235 (arm_target::low_supports_catch_syscall): Define.
236 (arm_get_syscall_trapinfo): Turn into...
237 (arm_target::low_get_syscall_trapinfo): ...this.
238 (the_low_target): Remove the op field.
239 * linux-ppc-low.cc (the_low_target): Remove the op field.
240 * linux-s390-low.cc (the_low_target): Remove the op field.
241
b31cdfa6
TBA
2422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
243
244 Remove the 'supports_hardware_single_step' linux target op and
245 override the process_stratum_target's op definition in
246 linux_process_target to return true.
247
248 * linux-low.h (struct linux_target_ops): Remove the op.
249 (class linux_process_target) <finish_step_over>
250 <maybe_hw_step>: Declare.
251 * linux-low.cc (can_hardware_single_step): Remove.
252 (maybe_hw_step): Turn into...
253 (linux_process_target::maybe_hw_step): ...this.
254 (finish_step_over): Turn into...
255 (linux_process_target::finish_step_over): ...this.
256 (linux_process_target::supports_hardware_single_step): Update
257 to return true.
258
259 Update the callers below.
260
261 (linux_process_target::single_step)
262 (linux_process_target::resume_one_lwp_throw)
263
264 * linux-arm-low.cc (class arm_target)
265 <supports_hardware_single_step>: Declare.
266 (arm_supports_hardware_single_step): Turn into...
267 (arm_target::supports_hardware_single_step): ...this.
268 (the_low_target): Remove the op field.
269 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
270 (the_low_target): Remove the op field.
271 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
272 Remove.
273 (the_low_target): Remove the op field.
274 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
275 (the_low_target): Remove the op field.
276 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
277 (the_low_target): Remove the op field.
278 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
279 (the_low_target): Remove the op field.
280 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
281 (the_low_target): Remove the op field.
282 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
283 (the_low_target): Remove the op field.
284 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
285 (the_low_target): Remove the op field.
286 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
287 (the_low_target): Remove the op field.
288 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
289 (the_low_target): Remove the op field.
290 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
291 (the_low_target): Remove the op field.
292 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
293 Remove.
294 (the_low_target): Remove the op field.
295
9cfd8715
TBA
2962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
297
298 Turn the 'supports_range_stepping' linux target op into a method
299 of linux_process_target.
300
301 * linux-low.h (struct linux_target_ops): Remove the op.
302 (class linux_process_target) <low_supports_range_stepping>: Declare.
303 * linux-low.cc (linux_process_target::low_supports_range_stepping):
304 Define.
305 (linux_process_target::supports_range_stepping): Update the call
306 site.
307 * linux-x86-low.cc (class x86_target)
308 <low_supports_range_stepping>: Declare.
309 (x86_supports_range_stepping): Turn into...
310 (x86_target::low_supports_range_stepping): ...this.
311 (the_low_target): Remove the op field.
312 * linux-aarch64-low.cc (class aarch64_target)
313 <low_supports_range_stepping>: Declare.
314 (aarch64_supports_range_stepping): Turn into...
315 (aarch64_target::low_supports_range_stepping): ...this.
316 (the_low_target): Remove the op field.
317 * linux-arm-low.cc (the_low_target): Remove the op field.
318 * linux-bfin-low.cc (the_low_target): Ditto.
319 * linux-crisv32-low.cc (the_low_target): Ditto.
320 * linux-m32r-low.cc (the_low_target): Ditto.
321 * linux-m68k-low.cc (the_low_target): Ditto.
322 * linux-ppc-low.cc (the_low_target): Ditto.
323 * linux-s390-low.cc (the_low_target): Ditto.
324 * linux-sh-low.cc (the_low_target): Ditto.
325 * linux-tic6x-low.cc (the_low_target): Ditto.
326 * linux-tile-low.cc (the_low_target): Ditto.
327 * linux-xtensa-low.cc (the_low_target): Ditto.
328
ab64c999
TBA
3292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
330
331 Remove the 'emit_ops' linux target ops and let the concrete
332 linux target define the op by overriding the declaration of
333 process_stratum_target.
334
335 * linux-low.h (struct linux_target_ops): Remove the op.
336 (class linux_process_target) <emit_ops>: Remove.
337 * linux-low.cc (linux_process_target::emit_ops): Remove.
338 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
339 (x86_emit_ops): Turn into...
340 (x86_target::emit_ops): ...this.
341 (the_low_target): Remove the op field.
342 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
343 (aarch64_emit_ops): Turn into...
344 (aarch64_target::emit_ops): ...this.
345 (the_low_target): Remove the op field.
346 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
347 (ppc_emit_ops): Turn into...
348 (ppc_target::emit_ops): ...this.
349 (the_low_target): Remove the op field.
350 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
351 (s390_emit_ops): Turn into...
352 (s390_target::emit_ops): ...this.
353 (the_low_target): Remove the op field.
354 * linux-arm-low.cc (the_low_target): Remove the op field.
355 * linux-bfin-low.cc (the_low_target): Ditto.
356 * linux-crisv32-low.cc (the_low_target): Ditto.
357 * linux-m32r-low.cc (the_low_target): Ditto.
358 * linux-m68k-low.cc (the_low_target): Ditto.
359 * linux-sh-low.cc (the_low_target): Ditto.
360 * linux-tic6x-low.cc (the_low_target): Ditto.
361 * linux-tile-low.cc (the_low_target): Ditto.
362 * linux-xtensa-low.cc (the_low_target): Ditto.
363
809a0c35
TBA
3642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365
366 Remove the 'install_fast_tracepoint_jump_pad' and
367 'get_min_fast_tracepoint_insn_len' linux target ops to let the
368 concrete linux target define the ops by overriding the declarations
369 of process_stratum_target.
370
371 * linux-low.h (struct linux_target_ops): Remove the ops.
372 (class linux_process_target) <supports_fast_tracepoints>
373 <install_fast_tracepoint_jump_pad>
374 <get_min_fast_tracepoint_insn_len>: Remove.
375 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
376 (linux_process_target::install_fast_tracepoint_jump_pad)
377 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
378 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
379 <install_fast_tracepoint_jump_pad>
380 <get_min_fast_tracepoint_insn_len>: Declare.
381 (x86_target::supports_fast_tracepoints): Define.
382 (x86_install_fast_tracepoint_jump_pad): Turn into...
383 (x86_target::install_fast_tracepoint_jump_pad): ...this.
384 (x86_get_min_fast_tracepoint_insn_len): Turn into...
385 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
386 (the_low_target): Remove the op fields.
387 * linux-aarch64-low.cc (class aarch64_target)
388 <supports_fast_tracepoints>
389 <install_fast_tracepoint_jump_pad>
390 <get_min_fast_tracepoint_insn_len>: Declare.
391 (aarch64_target::supports_fast_tracepoints): Define.
392 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
393 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
394 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
395 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
396 (the_low_target): Remove the op fields.
397 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
398 <install_fast_tracepoint_jump_pad>
399 <get_min_fast_tracepoint_insn_len>: Declare.
400 (ppc_target::supports_fast_tracepoints): Define.
401 (ppc_install_fast_tracepoint_jump_pad): Turn into...
402 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
403 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
404 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
405 (the_low_target): Remove the op fields.
406 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
407 <install_fast_tracepoint_jump_pad>
408 <get_min_fast_tracepoint_insn_len>: Declare.
409 (s390_target::supports_fast_tracepoints): Define.
410 (s390_install_fast_tracepoint_jump_pad): Turn into...
411 (s390_target::install_fast_tracepoint_jump_pad): ...this.
412 (s390_get_min_fast_tracepoint_insn_len): Turn into...
413 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
414 (the_low_target): Remove the op fields.
415 * linux-arm-low.cc (the_low_target): Remove the op fields.
416 * linux-bfin-low.cc (the_low_target): Ditto.
417 * linux-crisv32-low.cc (the_low_target): Ditto.
418 * linux-m32r-low.cc (the_low_target): Ditto.
419 * linux-m68k-low.cc (the_low_target): Ditto.
420 * linux-sh-low.cc (the_low_target): Ditto.
421 * linux-tic6x-low.cc (the_low_target): Ditto.
422 * linux-tile-low.cc (the_low_target): Ditto.
423 * linux-xtensa-low.cc (the_low_target): Ditto.
424
13e567af
TBA
4252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
426
427 Turn the 'get_thread_area' linux target op into a method of
428 process_stratum_target.
429
430 * linux-low.h (struct linux_target_ops): Remove the op.
431 (class linux_process_target) <stuck_in_jump_pad>
432 <linux_fast_tracepoint_collecting>
433 <low_get_thread_area>: Declare.
434 * linux-low.cc (supports_fast_tracepoints): Remove.
435 (linux_fast_tracepoint_collecting): Turn into...
436 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
437 (linux_process_target::low_get_thread_area): Define.
438 (stuck_in_jump_pad_callback): Turn into...
439 (linux_process_target::stuck_in_jump_pad): ...this.
440
441 Update the caller below.
442
443 (linux_process_target::stabilize_threads)
444
445 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
446 Declare.
447 (x86_get_thread_area): Turn into...
448 (x86_target::low_get_thread_area): ...this.
449 (the_low_target): Remove the op field.
450 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
451 Declare.
452 (aarch64_get_thread_area): Turn into...
453 (aarch64_target::low_get_thread_area): ...this.
454 (the_low_target): Remove the op field.
455 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
456 Declare.
457 (ppc_get_thread_area): Turn into...
458 (ppc_target::low_get_thread_area): ...this.
459 (the_low_target): Remove the op field.
460 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
461 Declare.
462 (s390_get_thread_area): Turn into...
463 (s390_target::low_get_thread_area): ...this.
464 (the_low_target): Remove the op field.
465 * linux-arm-low.cc (the_low_target): Remove the op field.
466 * linux-bfin-low.cc (the_low_target): Ditto.
467 * linux-crisv32-low.cc (the_low_target): Ditto.
468 * linux-m32r-low.cc (the_low_target): Ditto.
469 * linux-m68k-low.cc (the_low_target): Ditto.
470 * linux-sh-low.cc (the_low_target): Ditto.
471 * linux-tic6x-low.cc (the_low_target): Ditto.
472 * linux-tile-low.cc (the_low_target): Ditto.
473 * linux-xtensa-low.cc (the_low_target): Ditto.
474
47f70aa7
TBA
4752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
476
477 Remote the 'supports_tracepoints' linux target op and let the
478 concrete linux target define it by overriding the op declared in
479 process_stratum_target.
480
481 * linux-low.h (struct linux_target_ops): Remove the op.
482 (class linux_process_target) <supports_tracepoints>: Remove.
483 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
484 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
485 Declare.
486 (x86_supports_tracepoints): Turn into...
487 (x86_target::supports_tracepoints): ...this.
488 (the_low_target): Remove the op field.
489 * linux-aarch64-low.cc (class aarch64_target)
490 <supports_tracepoints>: Declare.
491 (aarch64_supports_tracepoints): Turn into...
492 (aarch64_target::supports_tracepoints): ...this.
493 (the_low_target): Remove the op field.
494 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
495 Declare.
496 (ppc_supports_tracepoints): Turn into...
497 (ppc_target::supports_tracepoints): ...this.
498 (the_low_target): Remove the op field.
499 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
500 Declare.
501 (s390_supports_tracepoints): Turn into...
502 (s390_target::supports_tracepoints): ...this.
503 (the_low_target): Remove the op field.
504 * linux-arm-low.cc (the_low_target): Remove the op field.
505 * linux-bfin-low.cc (the_low_target): Ditto.
506 * linux-crisv32-low.cc (the_low_target): Ditto.
507 * linux-m32r-low.cc (the_low_target): Ditto.
508 * linux-m68k-low.cc (the_low_target): Ditto.
509 * linux-sh-low.cc (the_low_target): Ditto.
510 * linux-tic6x-low.cc (the_low_target): Ditto.
511 * linux-tile-low.cc (the_low_target): Ditto.
512 * linux-xtensa-low.cc (the_low_target): Ditto.
513
a5b5da92
TBA
5142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515
516 Remove the 'process_qsupported' linux target op and let a concrete
517 linux target define the op by overriding the op declaration in
518 process_stratum_target.
519
520 * linux-low.h (struct linux_target_ops): Remove the op.
521 (class linux_process_target) <process_qsupported>: Remove.
522 * linux-low.cc (linux_process_target::process_qsupported): Remove.
523 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
524 (x86_linux_process_qsupported): Turn into...
525 (x86_target::process_qsupported): ...this.
526 (the_low_target): Remove the op field.
527 * linux-aarch64-low.cc (the_low_target): Remove the op
528 field.
529 * linux-arm-low.cc (the_low_target): Ditto.
530 * linux-bfin-low.cc (the_low_target): Ditto.
531 * linux-crisv32-low.cc (the_low_target): Ditto.
532 * linux-m32r-low.cc (the_low_target): Ditto.
533 * linux-m68k-low.cc (the_low_target): Ditto.
534 * linux-ppc-low.cc (the_low_target): Ditto.
535 * linux-s390-low.cc (the_low_target): Ditto.
536 * linux-sh-low.cc (the_low_target): Ditto.
537 * linux-tic6x-low.cc (the_low_target): Ditto.
538 * linux-tile-low.cc (the_low_target): Ditto.
539 * linux-xtensa-low.cc (the_low_target): Ditto.
540
d7599cc0
TBA
5412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542
543 Turn the 'prepare_to_resume' linux target op into a method of
544 linux_process_target.
545
546 * linux-low.h (struct linux_target_ops): Remove the op.
547 (class linux_process_target) <low_prepare_to_resume>: Declare.
548 * linux-low.cc (linux_process_target::low_prepare_to_resume):
549 Define.
550
551 Update the callers below:
552
553 (linux_process_target::resume_one_lwp_throw)
554 (linux_process_target::low_prepare_to_resume)
555
556 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
557 Declare.
558 (x86_target::low_prepare_to_resume): Define.
559 (the_low_target): Remove the op field.
560 * linux-aarch64-low.cc (class aarch64_target)
561 <low_prepare_to_resume>: Declare.
562 (aarch64_target::low_prepare_to_resume): Define.
563 (the_low_target): Remove the op field.
564 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
565 Declare.
566 (arm_prepare_to_resume): Turn into...
567 (arm_target::low_prepare_to_resume): ...this.
568 (the_low_target): Remove the op field.
569 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
570 Declare.
571 (mips_linux_prepare_to_resume): Turn into...
572 (mips_target::low_prepare_to_resume): ...this.
573 (the_low_target): Remove the op field.
574 * linux-bfin-low.cc (the_low_target): Remove the op field.
575 * linux-crisv32-low.cc (the_low_target): Ditto.
576 * linux-m32r-low.cc (the_low_target): Ditto.
577 * linux-m68k-low.cc (the_low_target): Ditto.
578 * linux-ppc-low.cc (the_low_target): Ditto.
579 * linux-s390-low.cc (the_low_target): Ditto.
580 * linux-sh-low.cc (the_low_target): Ditto.
581 * linux-tic6x-low.cc (the_low_target): Ditto.
582 * linux-tile-low.cc (the_low_target): Ditto.
583 * linux-xtensa-low.cc (the_low_target): Ditto.
584
fd000fb3
TBA
5852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
586
587 Turn the 'new_process', 'delete_process', 'new_thread',
588 'delete_thread', and 'new_fork' linux target ops into methods
589 of linux_process_target.
590
591 * linux-low.h (struct linux_target_ops): Remove the ops.
592 (class linux_process_target) <add_linux_process>
593 <add_lwp>
594 <delete_lwp>
595 <attach_lwp>
596 <detach_one_lwp>
597 <check_zombie_leaders>
598 <filter_exit_event>
599 <low_new_process>
600 <low_delete_process>
601 <low_new_thread>
602 <low_delete_thread>
603 <low_new_fork>: Declare.
604 * linux-low.cc (delete_lwp): Turn into...
605 (linux_process_target::delete_lwp): ...this.
606 (linux_process_target::low_delete_thread): Define.
607 (linux_add_process): Turn into...
608 (linux_process_target::add_linux_process): ...this.
609 (linux_process_target::low_new_process): Define.
610 (linux_process_target::low_delete_process): Define.
611 (linux_process_target::low_new_fork): Define.
612 (add_lwp): Turn into...
613 (linux_process_target::add_lwp): ...this.
614 (linux_process_target::low_new_thread): Define.
615 (linux_attach_lwp): Turn into...
616 (linux_process_target::attach_lwp): ...this.
617 (linux_detach_one_lwp): Turn into...
618 (linux_process_target::detach_one_lwp): ...this.
619 (linux_detach_lwp_callback): Remove and inline...
620 (linux_process_target::detach): ...here.
621 (check_zombie_leaders): Turn into...
622 (linux_process_target::check_zombie_leaders): ...this.
623 (filter_exit_event): Turn into...
624 (linux_process_target::filter_exit_event): ...this.
625
626 Update the callers below.
627
628 (linux_process_target::handle_extended_wait)
629 (linux_process_target::create_inferior)
630 (attach_proc_task_lwp_callback)
631 (linux_process_target::attach)
632 (linux_process_target::detach)
633 (linux_process_target::mourn)
634 * thread-db.cc (attach_thread)
635
636 * linux-x86-low.cc (class x86_target) <low_new_process>
637 <low_delete_process>
638 <low_new_thread>
639 <low_delete_thread>
640 <low_new_fork>: Declare.
641 (x86_linux_new_process): Turn into...
642 (x86_target::low_new_process): ...this.
643 (x86_linux_delete_process): Turn into...
644 (x86_target::low_delete_process): ...this.
645 (x86_target::low_new_thread): Define.
646 (x86_target::low_delete_thread): Define.
647 (x86_linux_new_fork): Turn into...
648 (x86_target::low_new_fork): ...this.
649 (the_low_target): Remove the op fields.
650 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
651 <low_delete_process>
652 <low_new_thread>
653 <low_delete_thread>
654 <low_new_fork>: Declare.
655 (aarch64_linux_new_process): Turn into...
656 (aarch64_target::low_new_process): ...this.
657 (aarch64_linux_delete_process): Turn into...
658 (aarch64_target::low_delete_process): ...this.
659 (aarch64_target::low_new_thread): Define.
660 (aarch64_target::low_delete_thread): Define.
661 (aarch64_linux_new_fork): Turn into...
662 (aarch64_target::low_new_fork): ...this.
663 (the_low_target): Remove the op fields.
664 * linux-arm-low.cc (class arm_target) <low_new_process>
665 <low_delete_process>
666 <low_new_thread>
667 <low_delete_thread>
668 <low_new_fork>: Declare.
669 (arm_new_process): Turn into...
670 (arm_target::low_new_process): ...this.
671 (arm_delete_process): Turn into...
672 (arm_target::low_delete_process): ...this.
673 (arm_new_thread): Turn into...
674 (arm_target::low_new_thread): ...this.
675 (arm_delete_thread): Turn into...
676 (arm_target::low_delete_thread): ...this.
677 (arm_new_fork): Turn into...
678 (arm_target::low_new_fork): ...this.
679 (the_low_target): Remove the op fields.
680 * linux-mips-low.cc (class mips_target) <low_new_process>
681 <low_delete_process>
682 <low_new_thread>
683 <low_delete_thread>
684 <low_new_fork>: Declare.
685 (mips_linux_new_process): Turn into...
686 (mips_target::low_new_process): ...this.
687 (mips_linux_delete_process): Turn into...
688 (mips_target::low_delete_process): ...this.
689 (mips_linux_new_thread): Turn into...
690 (mips_target::low_new_thread): ...this.
691 (mips_linux_delete_thread): Turn into...
692 (mips_target::low_delete_thread): ...this.
693 (mips_linux_new_fork): Turn into...
694 (mips_target::low_new_fork): ...this.
695 (the_low_target): Remove the op fields.
696 * linux-bfin-low.cc (the_low_target): Remove the op fields.
697 * linux-crisv32-low.cc (the_low_target): Ditto.
698 * linux-m32r-low.cc (the_low_target): Ditto.
699 * linux-m68k-low.cc (the_low_target): Ditto.
700 * linux-ppc-low.cc (the_low_target): Ditto.
701 * linux-s390-low.cc (the_low_target): Ditto.
702 * linux-sh-low.cc (the_low_target): Ditto.
703 * linux-tic6x-low.cc (the_low_target): Ditto.
704 * linux-tile-low.cc (the_low_target): Ditto.
705 * linux-xtensa-low.cc (the_low_target): Ditto.
706
cb63de7c
TBA
7072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
708
709 Turn the 'siginfo_fixup' linux target op into a method of
710 linux_process_target.
711
712 * linux-low.h (struct linux_target_ops): Remove the op.
713 (class linux_process_target) <siginfo_fixup>
714 <low_siginfo_fixup>: Declare.
715 * linux-low.cc (siginfo_fixup): Turn into...
716 (linux_process_target::siginfo_fixup): ...this.
717 (linux_process_target::low_siginfo_fixup): Define.
718 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
719 (x86_siginfo_fixup): Turn into...
720 (x86_target::low_siginfo_fixup): ...this.
721 (the_low_target): Remove the op field.
722 * linux-aarch64-low.cc (class aarch64_target):
723 <low_siginfo_fixup>: Declare.
724 (aarch64_linux_siginfo_fixup): Turn into...
725 (aarch64_target::low_siginfo_fixup): ...this.
726 (the_low_target): Remove the op field.
727 * linux-arm-low.cc (the_low_target): Remove the op field.
728 * linux-bfin-low.cc (the_low_target): Ditto.
729 * linux-crisv32-low.cc (the_low_target): Ditto.
730 * linux-m32r-low.cc (the_low_target): Ditto.
731 * linux-m68k-low.cc (the_low_target): Ditto.
732 * linux-mips-low.cc (the_low_target): Ditto.
733 * linux-ppc-low.cc (the_low_target): Ditto.
734 * linux-s390-low.cc (the_low_target): Ditto.
735 * linux-sh-low.cc (the_low_target): Ditto.
736 * linux-tic6x-low.cc (the_low_target): Ditto.
737 * linux-tile-low.cc (the_low_target): Ditto.
738 * linux-xtensa-low.cc (the_low_target): Ditto.
739
b35db733
TBA
7402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
741
742 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
743 linux target ops into methods of linux_process_target.
744
745 * linux-low.h (struct linux_target_ops): Remove the ops.
746 (class linux_process_target) <low_collect_ptrace_register>
747 <low_store_ptrace_register>: Declare.
748 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
749 (linux_process_target::low_supply_ptrace_register): Define.
750
751 Update the callers below.
752
753 (linux_process_target::fetch_register)
754 (linux_process_target::store_register)
755
756 * linux-x86-low.cc (the_low_target): Remove the op fields.
757 * linux-aarch64-low.cc (the_low_target): Ditto.
758 * linux-arm-low.cc (the_low_target): Ditto.
759 * linux-bfin-low.cc (the_low_target): Ditto.
760 * linux-crisv32-low.cc (the_low_target): Ditto.
761 * linux-m32r-low.cc (the_low_target): Ditto.
762 * linux-m68k-low.cc (the_low_target): Ditto.
763 * linux-sh-low.cc (the_low_target): Ditto.
764 * linux-sparc-low.cc (the_low_target): Ditto.
765 * linux-tic6x-low.cc (the_low_target): Ditto.
766 * linux-tile-low.cc (the_low_target): Ditto.
767 * linux-xtensa-low.cc (the_low_target): Ditto.
768 * linux-mips-low.cc (class mips_target)
769 <low_collect_ptrace_register>
770 <low_supply_ptrace_register>: Declare.
771 (mips_collect_ptrace_register): Turn into ...
772 (mips_target::low_collect_ptrace_register): ...this.
773 (mips_supply_ptrace_register): Turn into...
774 (mips_target::low_supply_ptrace_register): ...this.
775 (the_low_target): Remove the op fields.
776 * linux-ppc-low.cc (class ppc_target)
777 <low_collect_ptrace_register>
778 <low_supply_ptrace_register>: Declare.
779 (ppc_collect_ptrace_register): Turn into ...
780 (ppc_target::low_collect_ptrace_register): ...this.
781 (ppc_supply_ptrace_register): Turn into ...
782 (ppc_target::low_supply_ptrace_register): ...this.
783 (ppc_fill_gregset): Update for the calls to
784 low_collect_ptrace_register.
785 (the_low_target): Remove the op fields.
786 * linux-s390-low.cc (class s390_target)
787 <low_collect_ptrace_register>
788 <low_supply_ptrace_register>: Declare.
789 (s390_collect_ptrace_register): Turn into ...
790 (s390_target::low_collect_ptrace_register): ...this.
791 (s390_supply_ptrace_register): Turn into ...
792 (s390_target::low_supply_ptrace_register): ...this.
793 (s390_fill_gregset): Update for the calls to
794 low_collect_ptrace_register.
795 (the_low_target): Remove the op fields.
796
ac1bbaca
TBA
7972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
798
799 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
800 target ops into methods of linux_process_target.
801
802 * linux-low.h (struct linux_target_ops): Remove the ops.
803 (class linux_process_target) <check_stopped_by_watchpoint>
804 <low_stopped_by_watchpoint>
805 <low_stopped_data_address>: Declare.
806 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
807 (linux_process_target::check_stopped_by_watchpoint): ...this.
808 (linux_process_target::low_stopped_by_watchpoint): Define.
809 (linux_process_target::low_stopped_data_address): Define.
810 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
811 <low_stopped_data_address>: Declare.
812 (x86_stopped_by_watchpoint): Turn into...
813 (x86_target::low_stopped_by_watchpoint): ...this.
814 (x86_stopped_data_address): Turn into...
815 (x86_target::low_stopped_data_address): ...this.
816 (the_low_target): Remove the op fields.
817 * linux-aarch64-low.cc (class aarch64_target)
818 <low_stopped_by_watchpoint>
819 <low_stopped_data_address>: Declare.
820 (aarch64_stopped_by_watchpoint): Turn into...
821 (aarch64_target::low_stopped_by_watchpoint): ...this.
822 (aarch64_stopped_data_address): Turn into...
823 (aarch64_target::low_stopped_data_address): ...this.
824 (the_low_target): Remove the op fields.
825 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
826 <low_stopped_data_address>: Declare.
827 (arm_stopped_by_watchpoint): Turn into...
828 (arm_target::low_stopped_by_watchpoint): ...this.
829 (arm_stopped_data_address): Turn into...
830 (arm_target::low_stopped_data_address): ...this.
831 (the_low_target): Remove the op fields.
832 * linux-crisv32-low.cc (class crisv32_target)
833 <low_stopped_by_watchpoint>
834 <low_stopped_data_address>: Declare.
835 (cris_stopped_by_watchpoint): Turn into...
836 (crisv32_target::low_stopped_by_watchpoint): ...this.
837 (cris_stopped_data_address): Turn into...
838 (crisv32_target::low_stopped_data_address): ...this.
839 (the_low_target): Remove the op fields.
840 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
841 <low_stopped_data_address>: Declare.
842 (mips_stopped_by_watchpoint): Turn into...
843 (mips_target::low_stopped_by_watchpoint): ...this.
844 (mips_stopped_data_address): Turn into...
845 (mips_target::low_stopped_data_address): ...this.
846 (the_low_target): Remove the op fields.
847 * linux-bfin-low.cc (the_low_target): Remove the op fields.
848 * linux-m32r-low.cc (the_low_target): Ditto.
849 * linux-m68k-low.cc (the_low_target): Ditto.
850 * linux-ppc-low.cc (the_low_target): Ditto.
851 * linux-s390-low.cc (the_low_target): Ditto.
852 * linux-sh-low.cc (the_low_target): Ditto.
853 * linux-sparc-low.cc (the_low_target): Ditto.
854 * linux-tic6x-low.cc (the_low_target): Ditto.
855 * linux-tile-low.cc (the_low_target): Ditto.
856 * linux-xtensa-low.cc (the_low_target): Ditto.
857
9db9aa23
TBA
8582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
859
860 Turn the 'insert_point' and 'remove_point' linux target ops into
861 methods of linux_process_target.
862
863 * linux-low.h (struct linux_target_ops): Remove the ops.
864 (class linux_process_target) <low_insert_point>
865 <low_remove_point>: Declare.
866 * linux-low.cc (linux_process_target::low_insert_point)
867 (linux_process_target::low_remove_point): Define.
868 (linux_process_target::insert_point)
869 (linux_process_target::remove_point): Update for calls to
870 low_insert_point and low_remove_point.
871 * linux-x86-low.cc (class x86_target) <low_insert_point>
872 <low_remove_point>: Declare.
873 (x86_insert_point): Turn into...
874 (x86_target::low_insert_point): ...this.
875 (x86_remove_point): Turn into...
876 (x86_target::low_remove_point): ...this.
877 (the_low_target): Remove the op fields.
878 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
879 <low_remove_point>: Declare.
880 (aarch64_insert_point): Turn into...
881 (aarch64_target::low_insert_point): ...this.
882 (aarch64_remove_point): Turn into...
883 (aarch64_target::low_remove_point): ...this.
884 (the_low_target): Remove the op fields.
885 * linux-arm-low.cc (class arm_target) <low_insert_point>
886 <low_remove_point>: Declare.
887 (arm_insert_point): Turn into...
888 (arm_target::low_insert_point): ...this.
889 (arm_remove_point): Turn into...
890 (arm_target::low_remove_point): ...this.
891 (the_low_target): Remove the op fields.
892 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
893 <low_remove_point>: Declare.
894 (crisv32_insert_point): Turn into...
895 (crisv32_target::low_insert_point): ...this.
896 (crisv32_remove_point): Turn into...
897 (crisv32_target::low_remove_point): ...this.
898 (the_low_target): Remove the op fields.
899 * linux-mips-low.cc (class mips_target) <low_insert_point>
900 <low_remove_point>: Declare.
901 (mips_insert_point): Turn into...
902 (mips_target::low_insert_point): ...this.
903 (mips_remove_point): Turn into...
904 (mips_target::low_remove_point): ...this.
905 (the_low_target): Remove the op fields.
906 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
907 <low_remove_point>: Declare.
908 (ppc_insert_point): Turn into...
909 (ppc_target::low_insert_point): ...this.
910 (ppc_remove_point): Turn into...
911 (ppc_target::low_remove_point): ...this.
912 (the_low_target): Remove the op fields.
913 * linux-bfin-low.cc (the_low_target): Remove the op fields.
914 * linux-m32r-low.cc (the_low_target): Ditto.
915 * linux-m68k-low.cc (the_low_target): Ditto.
916 * linux-s390-low.cc (the_low_target): Ditto.
917 * linux-sh-low.cc (the_low_target): Ditto.
918 * linux-sparc-low.cc (the_low_target): Ditto.
919 * linux-tic6x-low.cc (the_low_target): Ditto.
920 * linux-tile-low.cc (the_low_target): Ditto.
921 * linux-xtensa-low.cc (the_low_target): Ditto.
922
007c9b97
TBA
9232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
924
925 Remove the 'supports_z_point_type' linux target op and let the
926 concrete linux target define it by overriding the op declared in
927 process_stratum_target.
928
929 * linux-low.cc (linux_process_target::supports_z_point_type):
930 Remove.
931 * linux-low.h (struct linux_target_ops): Remove the op.
932 (class linux_process_target) <supports_z_point_type>: Remove.
933 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
934 Declare.
935 (x86_supports_z_point_type): Turn into...
936 (x86_target::supports_z_point_type): ...this.
937 (the_low_target): Remove the op field.
938 * linux-aarch64-low.cc (class aarch64_target)
939 <supports_z_point_type>: Declare.
940 (aarch64_supports_z_point_type): Turn into...
941 (aarch64_target::supports_z_point_type): ...this.
942 (the_low_target): Remove the op field.
943 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
944 Declare.
945 (arm_supports_z_point_type): Turn into...
946 (arm_target::supports_z_point_type): ...this.
947 (the_low_target): Remove the op field.
948 * linux-crisv32-low.cc (class crisv32_target)
949 <supports_z_point_type>: Declare.
950 (cris_supports_z_point_type): Turn into...
951 (crisv32_target::supports_z_point_type): ...this.
952 (the_low_target): Remove the op field.
953 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
954 Declare.
955 (mips_supports_z_point_type): Turn into...
956 (mips_target::supports_z_point_type): ...this.
957 (the_low_target): Remove the op field.
958 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
959 Declare.
960 (ppc_supports_z_point_type): Turn into...
961 (ppc_target::supports_z_point_type): ...this.
962 (the_low_target): Remove the op field.
963 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
964 Declare.
965 (s390_supports_z_point_type): Turn into...
966 (s390_target::supports_z_point_type): ...this.
967 (the_low_target): Remove the op field.
968 * linux-bfin-low.cc (the_low_target): Remove the op field.
969 * linux-m32r-low.cc (the_low_target): Ditto.
970 * linux-m68k-low.cc (the_low_target): Ditto.
971 * linux-sh-low.cc (the_low_target): Ditto.
972 * linux-sparc-low.cc (the_low_target): Ditto.
973 * linux-tic6x-low.cc (the_low_target): Ditto.
974 * linux-tile-low.cc (the_low_target): Ditto.
975 * linux-xtensa-low.cc (the_low_target): Ditto.
976
d7146cda
TBA
9772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
978
979 Turn the 'breakpoint_at' linux target op into a method of
980 linux_process_target.
981
982 * linux-low.h (struct linux_target_ops): Remove the op.
983 (class linux_process_target) <low_breakpoint_at>: Declare.
984
985 Update the callers below:
986
987 * linux-low.cc (linux_process_target::save_stop_reason)
988 (linux_process_target::thread_still_has_status_pending)
989 (linux_process_target::wait_1)
990
991 * linux-x86-low.cc (class x86_target)
992 <low_breakpoint_at>: Declare.
993 (x86_breakpoint_at): Turn into...
994 (x86_target::low_breakpoint_at): ...this.
995 (the_low_target): Remove the op field.
996 * linux-aarch64-low.cc (class aarch64_target)
997 <low_breakpoint_at>: Declare.
998 (aarch64_breakpoint_at): Turn into...
999 (aarch64_target::low_breakpoint_at): ...this.
1000 (the_low_target): Remove the op field.
1001 * linux-arm-low.cc (class arm_target)
1002 <low_breakpoint_at>: Declare.
1003 (arm_target::low_breakpoint_at): Define.
1004 (the_low_target): Remove the op field.
1005 * linux-bfin-low.cc (class bfin_target)
1006 <low_breakpoint_at>: Declare.
1007 (bfin_breakpoint_at): Turn into...
1008 (bfin_target::low_breakpoint_at): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-cris-low.cc (class cris_target)
1011 <low_breakpoint_at>: Declare.
1012 (cris_breakpoint_at): Turn into...
1013 (cris_target::low_breakpoint_at): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-crisv32-low.cc (class crisv32_target)
1016 <low_breakpoint_at>: Declare.
1017 (crisv32_breakpoint_at): Turn into...
1018 (crisv32_target::low_breakpoint_at): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-ia64-low.cc (class ia64_target)
1021 <low_breakpoint_at>: Declare.
1022 (ia64_target::low_breakpoint_at): Define.
1023 * linux-m32r-low.cc (class m32r_target)
1024 <low_breakpoint_at>: Declare.
1025 (m32r_breakpoint_at): Turn into...
1026 (m32r_target::low_breakpoint_at): ...this.
1027 (the_low_target): Remove the op field.
1028 * linux-m68k-low.cc (class m68k_target)
1029 <low_breakpoint_at>: Declare.
1030 (m68k_breakpoint_at): Turn into...
1031 (m68k_target::low_breakpoint_at): ...this.
1032 (the_low_target): Remove the op field.
1033 * linux-mips-low.cc (class mips_target)
1034 <low_breakpoint_at>: Declare.
1035 (mips_breakpoint_at): Turn into...
1036 (mips_target::low_breakpoint_at): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-nios2-low.cc (class nios2_target)
1039 <low_breakpoint_at>: Declare.
1040 (nios2_breakpoint_at): Turn into...
1041 (nios2_target::low_breakpoint_at): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-ppc-low.cc (class ppc_target)
1044 <low_breakpoint_at>: Declare.
1045 (ppc_breakpoint_at): Turn into...
1046 (ppc_target::low_breakpoint_at): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-riscv-low.cc (class riscv_target)
1049 <low_breakpoint_at>: Declare.
1050 (riscv_breakpoint_at): Turn into...
1051 (riscv_target::low_breakpoint_at): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-s390-low.cc (class s390_target)
1054 <low_breakpoint_at>: Declare.
1055 (s390_breakpoint_at): Turn into...
1056 (s390_target::low_breakpoint_at): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-sh-low.cc (class sh_target)
1059 <low_breakpoint_at>: Declare.
1060 (sh_breakpoint_at): Turn into...
1061 (sh_target::low_breakpoint_at): ...this.
1062 (the_low_target): Remove the op field.
1063 * linux-sparc-low.cc (class sparc_target)
1064 <low_breakpoint_at>: Declare.
1065 (sparc_breakpoint_at): Turn into...
1066 (sparc_target::low_breakpoint_at): ...this.
1067 (the_low_target): Remove the op field.
1068 * linux-tic6x-low.cc (class tic6x_target)
1069 <low_breakpoint_at>: Declare.
1070 (tic6x_breakpoint_at): Turn into...
1071 (tic6x_target::low_breakpoint_at): ...this.
1072 (the_low_target): Remove the op field.
1073 * linux-tile-low.cc (class tile_target)
1074 <low_breakpoint_at>: Declare.
1075 (tile_breakpoint_at): Turn into...
1076 (tile_target::low_breakpoint_at): ...this.
1077 (the_low_target): Remove the op field.
1078 * linux-xtensa-low.cc (class xtensa_target)
1079 <low_breakpoint_at>: Declare.
1080 (xtensa_breakpoint_at): Turn into...
1081 (xtensa_target::low_breakpoint_at): ...this.
1082 (the_low_target): Remove the op field.
1083
d4807ea2
TBA
10842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085
1086 Turn the 'decr_pc_after_break' linux_target_ops field into
1087 a method of linux_process_target.
1088
1089 * linux-low.h (struct linux_target_ops)
1090 <decr_pc_after_break>: Remove.
1091 (class linux_process_target) <low_decr_pc_after_break>: New method
1092 declaration.
1093 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1094 New method implementation.
1095
1096 Update the users below.
1097
1098 (linux_process_target::save_stop_reason)
1099 (linux_process_target::wait_1)
1100 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1101 New declaration.
1102 (x86_target::low_decr_pc_after_break): New method implementation.
1103 (the_low_target): Remove the field.
1104 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1105 New declaration.
1106 (bfin_target::low_decr_pc_after_break): New method implementation.
1107 (the_low_target): Remove the field.
1108 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1109 New declaration.
1110 (m68k_target::low_decr_pc_after_break): New method implementation.
1111 (the_low_target): Remove the field.
1112 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1113 New declaration.
1114 (s390_target::low_decr_pc_after_break): New method implementation.
1115 (the_low_target): Remove the field.
1116 * linux-aarch64-low.cc (the_low_target): Remove the field.
1117 * linux-arm-low.cc (the_low_target): Remove the field.
1118 * linux-cris-low.cc (the_low_target): Remove the field.
1119 * linux-crisv32-low.cc (the_low_target): Remove the field.
1120 * linux-m32r-low.cc (the_low_target): Remove the field.
1121 * linux-mips-low.cc (the_low_target): Remove the field.
1122 * linux-nios2-low.cc (the_low_target): Remove the field.
1123 * linux-ppc-low.cc (the_low_target): Remove the field.
1124 * linux-riscv-low.cc (the_low_target): Remove the field.
1125 * linux-sh-low.cc (the_low_target): Remove the field.
1126 * linux-sparc-low.cc (the_low_target): Remove the field.
1127 * linux-tic6x-low.cc (the_low_target): Remove the field.
1128 * linux-tile-low.cc (the_low_target): Remove the field.
1129 * linux-xtensa-low.cc (the_low_target): Remove the field.
1130
7582c77c
TBA
11312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132
1133 Remove the 'supports_software_single_step' linux target op and let
1134 the concrete linux target define it by overriding the op in
1135 process_stratum_target.
1136 Turn the 'get_next_pcs' linux target op into a method of
1137 linux_process_target.
1138
1139 * linux-low.h (struct linux_target_ops): Remove the ops.
1140 (class linux_process_target) <supports_software_single_step>:
1141 Remove.
1142 <low_get_next_pcs>: Declare.
1143 * linux-low.cc (can_software_single_step): Remove.
1144 (linux_process_target::low_get_next_pcs): Define.
1145 (linux_process_target::supports_software_single_step): Remove.
1146
1147 Update the callers below.
1148
1149 (linux_process_target::handle_extended_wait)
1150 (linux_process_target::wait_1)
1151 (linux_process_target::install_software_single_step_breakpoints)
1152 (linux_process_target::single_step)
1153 (linux_process_target::thread_needs_step_over)
1154 (linux_process_target::proceed_one_lwp)
1155 (linux_process_target::supports_range_stepping)
1156
1157 * linux-x86-low.cc (the_low_target): Remove the op field.
1158 * linux-aarch64-low.cc (the_low_target): Ditto.
1159 * linux-bfin-low.cc (the_low_target): Ditto.
1160 * linux-cris-low.cc (the_low_target): Ditto.
1161 * linux-crisv32-low.cc (the_low_target): Ditto.
1162 * linux-m32r-low.cc (the_low_target): Ditto.
1163 * linux-m68k-low.cc (the_low_target): Ditto.
1164 * linux-mips-low.cc (the_low_target): Ditto.
1165 * linux-nios2-low.cc (the_low_target): Ditto.
1166 * linux-ppc-low.cc (the_low_target): Ditto.
1167 * linux-riscv-low.cc (the_low_target): Ditto.
1168 * linux-s390-low.cc (the_low_target): Ditto.
1169 * linux-sh-low.cc (the_low_target): Ditto.
1170 * linux-sparc-low.cc (the_low_target): Ditto.
1171 * linux-tic6x-low.cc (the_low_target): Ditto.
1172 * linux-tile-low.cc (the_low_target): Ditto.
1173 * linux-xtensa-low.cc (the_low_target): Ditto.
1174 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1175 <supports_software_single_step>: Declare.
1176 (arm_target::supports_software_single_step): Define.
1177 (arm_gdbserver_get_next_pcs): Turn into...
1178 (arm_target::low_get_next_pcs): ...this.
1179 (the_low_target): Remove the op field.
1180
3ca4edb6
TBA
11812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1182
1183 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1184 the concrete linux target define it by overriding the op
1185 in process_stratum_target.
1186
1187 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1188 Remove.
1189 * linux-low.h (struct linux_target_ops): Remove the op.
1190 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1191 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1192 Declare.
1193 (x86_sw_breakpoint_from_kind): Turn into...
1194 (x86_target::sw_breakpoint_from_kind): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-aarch64-low.cc (class aarch64_target)
1197 <sw_breakpoint_from_kind>: Declare.
1198 (aarch64_sw_breakpoint_from_kind): Turn into...
1199 (aarch64_target::sw_breakpoint_from_kind): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1202 Declare.
1203 (arm_target::sw_breakpoint_from_kind): Define.
1204 (the_low_target): Remove the op field.
1205 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1206 Declare.
1207 (bfin_sw_breakpoint_from_kind): Turn into...
1208 (bfin_target::sw_breakpoint_from_kind): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1211 Declare.
1212 (cris_sw_breakpoint_from_kind): Turn into...
1213 (cris_target::sw_breakpoint_from_kind): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-crisv32-low.cc (class crisv32_target)
1216 <sw_breakpoint_from_kind>: Declare.
1217 (cris_sw_breakpoint_from_kind): Turn into...
1218 (crisv32_target::sw_breakpoint_from_kind): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1221 Declare.
1222 (ia64_target::sw_breakpoint_from_kind): Define.
1223 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1224 Declare.
1225 (m32r_sw_breakpoint_from_kind): Turn into...
1226 (m32r_target::sw_breakpoint_from_kind): ...this.
1227 (the_low_target): Remove the op field.
1228 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1229 Declare.
1230 (m68k_sw_breakpoint_from_kind): Turn into...
1231 (m68k_target::sw_breakpoint_from_kind): ...this.
1232 (the_low_target): Remove the op field.
1233 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1234 Declare.
1235 (mips_sw_breakpoint_from_kind): Turn into...
1236 (mips_target::sw_breakpoint_from_kind): ...this.
1237 (the_low_target): Remove the op field.
1238 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1239 Declare.
1240 (nios2_sw_breakpoint_from_kind): Turn into...
1241 (nios2_target::sw_breakpoint_from_kind): ...this.
1242 (the_low_target): Remove the op field.
1243 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1244 Declare.
1245 (ppc_sw_breakpoint_from_kind): Turn into...
1246 (ppc_target::sw_breakpoint_from_kind): ...this.
1247 (the_low_target): Remove the op field.
1248 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1249 Declare.
1250 (riscv_sw_breakpoint_from_kind): Turn into...
1251 (riscv_target::sw_breakpoint_from_kind): ...this.
1252 (the_low_target): Remove the op field.
1253 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1254 Declare.
1255 (s390_sw_breakpoint_from_kind): Turn into...
1256 (s390_target::sw_breakpoint_from_kind): ...this.
1257 (the_low_target): Remove the op field.
1258 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1259 Declare.
1260 (sh_sw_breakpoint_from_kind): Turn into...
1261 (sh_target::sw_breakpoint_from_kind): ...this.
1262 (the_low_target): Remove the op field.
1263 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1264 Declare.
1265 (sparc_sw_breakpoint_from_kind): Turn into...
1266 (sparc_target::sw_breakpoint_from_kind): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1269 Declare.
1270 (tic6x_sw_breakpoint_from_kind): Turn into...
1271 (tic6x_target::sw_breakpoint_from_kind): ...this.
1272 (the_low_target): Remove the op field.
1273 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1274 Declare.
1275 (tile_sw_breakpoint_from_kind): Turn into...
1276 (tile_target::sw_breakpoint_from_kind): ...this.
1277 (the_low_target): Remove the op field.
1278 * linux-xtensa-low.cc (class xtensa_target)
1279 <sw_breakpoint_from_kind>: Declare.
1280 (xtensa_sw_breakpoint_from_kind): Turn into...
1281 (xtensa_target::sw_breakpoint_from_kind): ...this.
1282 (the_low_target): Remove the op field.
1283
06250e4e
TBA
12842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285
1286 Remove the 'breakpoint_kind_from_pc' and
1287 'breakpoint_kind_from_current_state' linux target ops, and let the
1288 concrete linux target define them by overriding the ops of
1289 process_stratum_target.
1290
1291 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1292 Remove.
1293 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1294 * linux-low.h (struct linux_target_ops): Remove ops.
1295 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1296 <breakpoint_kind_from_current_state>: Remove.
1297 * linux-x86-low.cc (the_low_target): Remove the op fields.
1298 * linux-bfin-low.cc (the_low_target): Ditto.
1299 * linux-cris-low.cc (the_low_target): Ditto.
1300 * linux-crisv32-low.cc (the_low_target): Ditto.
1301 * linux-m32r-low.cc (the_low_target): Ditto.
1302 * linux-m68k-low.cc (the_low_target): Ditto.
1303 * linux-mips-low.cc (the_low_target): Ditto.
1304 * linux-nios2-low.cc (the_low_target): Ditto.
1305 * linux-ppc-low.cc (the_low_target): Ditto.
1306 * linux-s390-low.cc (the_low_target): Ditto.
1307 * linux-sh-low.cc (the_low_target): Ditto.
1308 * linux-sparc-low.cc (the_low_target): Ditto.
1309 * linux-tic6x-low.cc (the_low_target): Ditto.
1310 * linux-tile-low.cc (the_low_target): Ditto.
1311 * linux-xtensa-low.cc (the_low_target): Ditto.
1312 * linux-aarch64-low.cc (class aarch64_target)
1313 <breakpoint_kind_from_pc>
1314 <breakpoint_kind_from_current_state>: Declare.
1315 (aarch64_breakpoint_kind_from_pc): Turn into...
1316 (aarch64_target::breakpoint_kind_from_pc): ...this.
1317 (aarch64_breakpoint_kind_from_current_state): Turn into...
1318 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1319 (the_low_target): Remove the op fields.
1320 * linux-arm-low.cc (class arm_target):
1321 <breakpoint_kind_from_pc>
1322 <breakpoint_kind_from_current_state>: Declare.
1323 (arm_target::breakpoint_kind_from_pc): Define.
1324 (arm_target::breakpoint_kind_from_current_state): Define.
1325 (the_low_target): Remove the op fields.
1326 * linux-riscv-low.cc (class riscv_target):
1327 <breakpoint_kind_from_pc>: Declare.
1328 (riscv_breakpoint_kind_from_pc): Turn into...
1329 (riscv_target::breakpoint_kind_from_pc): ...this.
1330 (the_low_target): Remove the op fields.
1331
bf9ae9d8
TBA
13322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1333
1334 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1335 of linux_process_target.
1336
1337 * linux-low.h (struct linux_target_ops): Remove the ops.
1338 (class linux_process_target) <low_supports_breakpoints>
1339 <low_get_pc>
1340 <low_set_pc>: Declare.
1341 * linux-low.cc (supports_breakpoints): Turn into...
1342 (linux_process_target::low_supports_breakpoints): ...this.
1343 (linux_process_target::low_get_pc): Define.
1344 (linux_process_target::low_set_pc): Define.
1345
1346 Update the callers below.
1347
1348 (linux_process_target::get_pc)
1349 (linux_process_target::save_stop_reason)
1350 (linux_process_target::maybe_move_out_of_jump_pad)
1351 (linux_process_target::wait_1)
1352 (linux_process_target::resume_one_lwp_throw)
1353 (linux_process_target::resume)
1354 (linux_process_target::proceed_all_lwps)
1355 (linux_process_target::read_pc)
1356 (linux_process_target::write_pc)
1357
1358 * linux-x86-low.cc (class linux_process_target)
1359 <low_supports_breakpoints>
1360 <low_get_pc>
1361 <low_set_pc>: Declare.
1362 (x86_target::low_supports_breakpoints): Define.
1363 (x86_get_pc): Turn into...
1364 (x86_target::low_get_pc): ...this.
1365 (x86_set_pc): Turn into...
1366 (x86_target::low_set_pc): ...this.
1367 (the_low_target): Remove the op fields.
1368 * linux-arm-low.cc (class arm_target)
1369 <low_supports_breakpoints>
1370 <low_get_pc>
1371 <low_set_pc>: Declare.
1372 (arm_target::low_supports_breakpoints)
1373 (arm_target::low_get_pc)
1374 (arm_target::low_set_pc): Define.
1375 (the_low_target): Remove the op fields.
1376 * linux-bfin-low.cc (class bfin_target)
1377 <low_supports_breakpoints>
1378 <low_get_pc>
1379 <low_set_pc>: Declare.
1380 (bfin_target::low_supports_breakpoints)
1381 (bfin_target::low_get_pc)
1382 (bfin_target::low_set_pc): Define.
1383 (the_low_target): Remove the op fields.
1384 * linux-cris-low.cc (class cris_target)
1385 <low_supports_breakpoints>
1386 <low_get_pc>
1387 <low_set_pc>: Declare.
1388 (cris_target::low_supports_breakpoints)
1389 (cris_target::low_get_pc)
1390 (cris_target::low_set_pc): Define.
1391 (the_low_target): Remove the op fields.
1392 * linux-crisv32-low.cc (class crisv32_target)
1393 <low_supports_breakpoints>
1394 <low_get_pc>
1395 <low_set_pc>: Declare.
1396 (crisv32_target::low_supports_breakpoints)
1397 (crisv32_target::low_get_pc)
1398 (crisv32_target::low_set_pc): Define.
1399 (the_low_target): Remove the op fields.
1400 * linux-m32r-low.cc (class m32r_target)
1401 <low_supports_breakpoints>
1402 <low_get_pc>
1403 <low_set_pc>: Declare.
1404 (m32r_target::low_supports_breakpoints)
1405 (m32r_target::low_get_pc)
1406 (m32r_target::low_set_pc): Define.
1407 (the_low_target): Remove the op fields.
1408 * linux-m68k-low.cc (class m68k_target)
1409 <low_supports_breakpoints>
1410 <low_get_pc>
1411 <low_set_pc>: Declare.
1412 (m68k_target::low_supports_breakpoints)
1413 (m68k_target::low_get_pc)
1414 (m68k_target::low_set_pc): Define.
1415 (the_low_target): Remove the op fields.
1416 * linux-nios2-low.cc (class nios2_target)
1417 <low_supports_breakpoints>
1418 <low_get_pc>
1419 <low_set_pc>: Declare.
1420 (nios2_target::low_supports_breakpoints)
1421 (nios2_target::low_get_pc)
1422 (nios2_target::low_set_pc): Define.
1423 (the_low_target): Remove the op fields.
1424 * linux-sh-low.cc (class sh_target)
1425 <low_supports_breakpoints>
1426 <low_get_pc>
1427 <low_set_pc>: Declare.
1428 (sh_target::low_supports_breakpoints)
1429 (sh_target::low_get_pc)
1430 (sh_target::low_set_pc): Define.
1431 (the_low_target): Remove the op fields.
1432 * linux-xtensa-low.cc (class xtensa_target)
1433 <low_supports_breakpoints>
1434 <low_get_pc>
1435 <low_set_pc>: Declare.
1436 (xtensa_target::low_supports_breakpoints)
1437 (xtensa_target::low_get_pc)
1438 (xtensa_target::low_set_pc): Define.
1439 (the_low_target): Remove the op fields.
1440 * linux-sparc-low.cc (class sparc_target)
1441 <low_supports_breakpoints>
1442 <low_get_pc>: Declare.
1443 (sparc_target::low_supports_breakpoints)
1444 (sparc_target::low_get_pc): Define.
1445 (the_low_target): Remove the op fields.
1446 * linux-tile-low.cc (class tile_target)
1447 <low_supports_breakpoints>
1448 <low_get_pc>
1449 <low_set_pc>: Declare.
1450 (tile_target::low_supports_breakpoints)
1451 (tile_target::low_get_pc)
1452 (tile_target::low_set_pc): Define.
1453 (the_low_target): Remove the op fields.
1454 * linux-aarch64-low.cc (class aarch64_target)
1455 <low_supports_breakpoints>
1456 <low_get_pc>
1457 <low_set_pc>: Declare.
1458 (aarch64_target::low_supports_breakpoints): Define.
1459 (aarch64_get_pc): Turn into...
1460 (aarch64_target::low_get_pc): ...this.
1461 (aarch64_set_pc): Turn into...
1462 (aarch64_target::low_set_pc): ...this.
1463 (the_low_target): Remove the op fields.
1464 * linux-mips-low.cc (class mips_target)
1465 <low_supports_breakpoints>
1466 <low_get_pc>
1467 <low_set_pc>: Declare.
1468 (mips_target::low_supports_breakpoints): Define.
1469 (mips_get_pc): Turn into...
1470 (mips_target::low_get_pc): ...this.
1471 (mips_set_pc): Turn into...
1472 (mips_target::low_set_pc): ...this.
1473 (the_low_target): Remove the op fields.
1474 * linux-ppc-low.cc (class ppc_target)
1475 <low_supports_breakpoints>
1476 <low_get_pc>
1477 <low_set_pc>: Declare.
1478 (ppc_target::low_supports_breakpoints): Define.
1479 (ppc_get_pc): Turn into...
1480 (ppc_target::low_get_pc): ...this.
1481 (ppc_set_pc): Turn into...
1482 (ppc_target::low_set_pc): ...this.
1483 (the_low_target): Remove the op fields.
1484 * linux-riscv-low.cc (class riscv_target)
1485 <low_supports_breakpoints>
1486 <low_get_pc>
1487 <low_set_pc>: Declare.
1488 (riscv_target::low_supports_breakpoints): Define.
1489 (riscv_get_pc): Turn into...
1490 (riscv_target::low_get_pc): ...this.
1491 (riscv_set_pc): Turn into...
1492 (riscv_target::low_set_pc): ...this.
1493 (the_low_target): Remove the op fields.
1494 * linux-s390-low.cc (class s390_target)
1495 <low_supports_breakpoints>
1496 <low_get_pc>
1497 <low_set_pc>: Declare.
1498 (s390_target::low_supports_breakpoints): Define.
1499 (s390_get_pc): Turn into...
1500 (s390_target::low_get_pc): ...this.
1501 (s390_set_pc): Turn into...
1502 (s390_target::low_set_pc): ...this.
1503 (the_low_target): Remove the op fields.
1504 * linux-tic6x-low.cc (class tic6x_target)
1505 <low_supports_breakpoints>
1506 <low_get_pc>
1507 <low_set_pc>: Declare.
1508 (tic6x_target::low_supports_breakpoints): Define.
1509 (tic6x_get_pc): Turn into...
1510 (tic6x_target::low_get_pc): ...this.
1511 (tic6x_set_pc): Turn into...
1512 (tic6x_target::low_set_pc): ...this.
1513 (the_low_target): Remove the op fields.
1514
df95181f
TBA
15152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1516
1517 Turn some more static methods in linux-low into private methods
1518 of linux_process_target.
1519
1520 * linux-low.cc (get_pc): Turn into...
1521 (linux_process_target::get_pc): ...this.
1522 (save_stop_reason): Turn into...
1523 (linux_process_target::save_stop_reason): ...this.
1524 (thread_still_has_status_pending_p): Turn into...
1525 (linux_process_target::thread_still_has_status_pending): ...this.
1526 (status_pending_p_callback): Turn into...
1527 (linux_process_target::status_pending_p_callback): ...this.
1528 (resume_stopped_resumed_lwps): Turn into...
1529 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1530 (install_software_single_step_breakpoints): Turn into...
1531 (linux_process_target::install_software_single_step_breakpoints):
1532 ...this.
1533 (single_step): Turn into...
1534 (linux_process_target::single_step): ...this.
1535 (linux_resume_one_lwp_throw): Turn into...
1536 (linux_process_target::resume_one_lwp_throw): ...this.
1537 (linux_resume_one_lwp): Turn into...
1538 (linux_process_target::resume_one_lwp): ...this.
1539 (resume_status_pending_p): Turn into...
1540 (linux_process_target::resume_status_pending): ...this.
1541 (need_step_over_p): Turn into...
1542 (linux_process_target::thread_needs_step_over): ...this.
1543 (linux_resume_one_thread): Turn into...
1544 (linux_process_target::resume_one_thread): ...this.
1545 (proceed_one_lwp): Turn into...
1546 (linux_process_target::proceed_one_lwp): ...this.
1547 (unsuspend_and_proceed_one_lwp): Turn into...
1548 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1549
1550 Update the calls/references to the above functions below.
1551
1552 (linux_process_target::handle_extended_wait)
1553 (linux_process_target::filter_event)
1554 (linux_process_target::wait_for_event_filtered)
1555 (linux_process_target::wait_1)
1556 (linux_process_target::move_out_of_jump_pad)
1557 (linux_process_target::start_step_over)
1558 (linux_process_target::resume)
1559 (linux_process_target::proceed_all_lwps)
1560 (regsets_store_inferior_registers)
1561 (linux_process_target::store_register)
1562
1563 * linux-low.h (class linux_process_target)
1564 <get_pc>
1565 <save_stop_reason>
1566 <thread_still_has_status_pending>
1567 <status_pending_p_callback>
1568 <resume_stopped_resumed_lwps>
1569 <install_software_single_step_breakpoints>
1570 <single_step>
1571 <resume_one_lwp_throw>
1572 <resume_one_lwp>
1573 <resume_status_pending>
1574 <thread_needs_step_over>
1575 <resume_one_thread>
1576 <proceed_one_lwp>
1577 <unsuspend_and_proceed_one_lwp>: Declare.
1578
bd70b1f2
TBA
15792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580
1581 Turn the 'fetch_register' linux target op into a method of
1582 linux_process_target.
1583
1584 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1585 (class linux_process_target) <low_fetch_register>: Declare.
1586 * linux-x86-low.cc (the_low_target)
1587 * linux-aarch64-low.cc (the_low_target)
1588 * linux-arm-low.cc (the_low_target)
1589 * linux-bfin-low.cc (the_low_target)
1590 * linux-cris-low.cc (the_low_target)
1591 * linux-crisv32-low.cc (the_low_target)
1592 * linux-m32r-low.cc (the_low_target)
1593 * linux-m68k-low.cc (the_low_target)
1594 * linux-nios2-low.cc (the_low_target)
1595 * linux-ppc-low.cc (the_low_target)
1596 * linux-s390-low.cc (the_low_target)
1597 * linux-sh-low.cc (the_low_target)
1598 * linux-sparc-low.cc (the_low_target)
1599 * linux-tic6x-low.cc (the_low_target)
1600 * linux-tile-low.cc (the_low_target)
1601 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1602 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1603 Declare.
1604 (ia64_fetch_register): Turn into...
1605 (ia64_target::low_fetch_register): ...this.
1606 (the_low_target): Remove the op field.
1607 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1608 Declare.
1609 (mips_fetch_register): Turn into...
1610 (mips_target::low_fetch_register): ...this.
1611 (the_low_target): Remove the op field.
1612 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1613 Declare.
1614 (riscv_fetch_register): Turn into...
1615 (riscv_target::low_fetch_register): ...this.
1616 (the_low_target): Remove the op field.
1617
1618 Update the callers below.
1619
1620 * linux-low.cc (linux_process_target::fetch_registers)
1621 (linux_process_target::low_fetch_register)
1622
daca57a7
TBA
16232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1624
1625 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1626 linux target ops into methods of linux_process_target.
1627
1628 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1629 (class linux_process_target) <fetch_register>
1630 <store_register>
1631 <usr_fetch_inferior_registers>
1632 <usr_store_inferior_registers>
1633 <low_cannot_fetch_register>
1634 <low_cannot_fetch_register> Declare.
1635 * linux-low.cc (fetch_register): Turn into...
1636 (linux_process_target::fetch_register): ...this.
1637 (store_register): Turn into ...
1638 (linux_process_target::store_register): ...this.
1639 (usr_fetch_inferior_registers): Turn into...
1640 (linux_process_target::usr_fetch_inferior_registers): ...this.
1641 (usr_store_inferior_registers): Turn into...
1642 (linux_process_target::usr_store_inferior_registers): ...this.
1643 * linux-x86-low.cc (class x86_target)
1644 <low_cannot_fetch_register>
1645 <low_cannot_store_register>: Declare.
1646 (x86_cannot_store_register): Turn into...
1647 (x86_target::low_cannot_store_register): ...this.
1648 (x86_cannot_fetch_register): Turn into...
1649 (x86_target::low_cannot_fetch_register): ...this.
1650 (the_low_target): Remove the target op fields.
1651 * linux-aarch64-low.cc (class aarch64_target)
1652 <low_cannot_fetch_register>
1653 <low_cannot_store_register>: Declare.
1654 (aarch64_target::low_cannot_fetch_register)
1655 (aarch64_target::low_cannot_store_register): Define.
1656 (the_low_target): Remove the op fields.
1657 * linux-arm-low.cc (class arm_target)
1658 <low_cannot_fetch_register>
1659 <low_cannot_store_register>: Declare.
1660 (arm_cannot_fetch_register): Turn into...
1661 (arm_target::low_cannot_fetch_register): ...this.
1662 (arm_cannot_store_register): Turn into...
1663 (arm_target::low_cannot_store_register): ...this.
1664 (the_low_target): Remove the op fields.
1665 * linux-bfin-low.cc (class bfin_target)
1666 <low_cannot_fetch_register>
1667 <low_cannot_store_register>: Declare.
1668 (bfin_cannot_fetch_register): Turn into...
1669 (bfin_target::low_cannot_fetch_register): ...this.
1670 (bfin_cannot_store_register): Turn into...
1671 (bfin_target::low_cannot_store_register): ...this.
1672 (the_low_target): Remove the op fields.
1673 * linux-cris-low.cc (class cris_target)
1674 <low_cannot_fetch_register>
1675 <low_cannot_store_register>: Declare.
1676 (cris_cannot_fetch_register): Turn into...
1677 (cris_target::low_cannot_fetch_register): ...this.
1678 (cris_cannot_store_register): Turn into...
1679 (cris_target::low_cannot_store_register): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-crisv32-low.cc (class crisv32_target)
1682 <low_cannot_fetch_register>
1683 <low_cannot_store_register>: Declare.
1684 (crisv32_target::low_cannot_fetch_register)
1685 (crisv32_target::low_cannot_store_register): Define.
1686 (the_low_target): Remove the op fields.
1687 * linux-ia64-low.cc (class ia64_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (ia64_cannot_fetch_register): Turn into...
1691 (ia64_target::low_cannot_fetch_register): ...this.
1692 (ia64_cannot_store_register): Turn into...
1693 (ia64_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-m32r-low.cc (class m32r_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (m32r_cannot_fetch_register): Turn into...
1699 (m32r_target::low_cannot_fetch_register): ...this.
1700 (m32r_cannot_store_register): Turn into...
1701 (m32r_target::low_cannot_store_register): ...this.
1702 (the_low_target): Remove the op fields.
1703 * linux-m68k-low.cc (class m68k_target)
1704 <low_cannot_fetch_register>
1705 <low_cannot_store_register>: Declare.
1706 (m68k_cannot_fetch_register): Turn into...
1707 (m68k_target::low_cannot_fetch_register): ...this.
1708 (m68k_cannot_store_register): Turn into...
1709 (m68k_target::low_cannot_store_register): ...this.
1710 (the_low_target): Remove the op fields.
1711 * linux-mips-low.cc (class mips_target)
1712 <low_cannot_fetch_register>
1713 <low_cannot_store_register>: Declare.
1714 (mips_cannot_fetch_register): Turn into...
1715 (mips_target::low_cannot_fetch_register): ...this.
1716 (mips_cannot_store_register): Turn into...
1717 (mips_target::low_cannot_store_register): ...this.
1718 (get_usrregs_info): Inline at the call sites in
1719 low_cannot_fetch_register and low_cannot_store_register,
1720 and remove.
1721 (the_low_target): Remove the op fields.
1722 * linux-nios2-low.cc (class nios2_target)
1723 <low_cannot_fetch_register>
1724 <low_cannot_store_register>: Declare.
1725 (nios2_cannot_fetch_register): Turn into...
1726 (nios2_target::low_cannot_fetch_register): ...this.
1727 (nios2_cannot_store_register): Turn into...
1728 (nios2_target::low_cannot_store_register): ...this.
1729 (the_low_target): Remove the op fields.
1730 * linux-ppc-low.cc (class ppc_target)
1731 <low_cannot_fetch_register>
1732 <low_cannot_store_register>: Declare.
1733 (ppc_cannot_fetch_register): Turn into...
1734 (ppc_target::low_cannot_fetch_register): ...this.
1735 (ppc_cannot_store_register): Turn into...
1736 (ppc_target::low_cannot_store_register): ...this.
1737 (the_low_target): Remove the op fields.
1738 * linux-riscv-low.cc (class riscv_target)
1739 <low_cannot_fetch_register>
1740 <low_cannot_store_register>: Declare.
1741 (riscv_target::low_cannot_fetch_register)
1742 (riscv_target::low_cannot_store_register): Define.
1743 (the_low_target): Remove the op fields.
1744 * linux-s390-low.cc (class s390_target)
1745 <low_cannot_fetch_register>
1746 <low_cannot_store_register>: Declare.
1747 (s390_cannot_fetch_register): Turn into...
1748 (s390_target::low_cannot_fetch_register): ...this.
1749 (s390_cannot_store_register): Turn into...
1750 (s390_target::low_cannot_store_register): ...this.
1751 (the_low_target): Remove the op fields.
1752 * linux-sh-low.cc (class sh_target)
1753 <low_cannot_fetch_register>
1754 <low_cannot_store_register>: Declare.
1755 (sh_cannot_fetch_register): Turn into...
1756 (sh_target::low_cannot_fetch_register): ...this.
1757 (sh_cannot_store_register): Turn into...
1758 (sh_target::low_cannot_store_register): ...this.
1759 (the_low_target): Remove the op fields.
1760 * linux-sparc-low.cc (class sparc_target)
1761 <low_cannot_fetch_register>
1762 <low_cannot_store_register>: Declare.
1763 (sparc_cannot_fetch_register): Turn into...
1764 (sparc_target::low_cannot_fetch_register): ...this.
1765 (sparc_cannot_store_register): Turn into...
1766 (sparc_target::low_cannot_store_register): ...this.
1767 (the_low_target): Remove the op fields.
1768 * linux-tic6x-low.cc (class tic6x_target)
1769 <low_cannot_fetch_register>
1770 <low_cannot_store_register>: Declare.
1771 (tic6x_cannot_fetch_register): Turn into...
1772 (tic6x_target::low_cannot_fetch_register): ...this.
1773 (tic6x_cannot_store_register): Turn into...
1774 (tic6x_target::low_cannot_store_register): ...this.
1775 (the_low_target): Remove the op fields.
1776 * linux-tile-low.cc (class tile_target)
1777 <low_cannot_fetch_register>
1778 <low_cannot_store_register>: Declare.
1779 (tile_cannot_fetch_register): Turn into...
1780 (tile_target::low_cannot_fetch_register): ...this.
1781 (tile_cannot_store_register): Turn into...
1782 (tile_target::low_cannot_store_register): ...this.
1783 (the_low_target): Remove the op fields.
1784 * linux-xtensa-low.cc (class xtensa_target)
1785 <low_cannot_fetch_register>
1786 <low_cannot_store_register>: Declare.
1787 (xtensa_target::low_cannot_fetch_register)
1788 (xtensa_target::low_cannot_store_register): Define.
1789 (the_low_target): Remove the op fields.
1790
aa8d21c9
TBA
17912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1792
1793 Turn the 'regs_info' linux target op into a method of
1794 linux_process_target.
1795
1796 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1797 (class linux_process_target) <get_regs_info>: Define.
1798
1799 Update the callers below.
1800
1801 * linux-low.cc (linux_process_target::fetch_registers)
1802 (linux_process_target::store_registers)
1803 * proc-service.cc (gregset_info)
1804
1805 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1806 (x86_linux_regs_info): Turn into ...
1807 (x86_target::get_regs_info): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1810 Declare.
1811 (aarch64_regs_info): Turn into ...
1812 (aarch64_target::get_regs_info): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1815 (arm_regs_info): Turn into ...
1816 (arm_target::get_regs_info): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1819 (bfin_regs_info): Turn into ...
1820 (bfin_target::get_regs_info): ...this.
1821 (the_low_target): Remove the op field.
1822 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1823 (cris_regs_info): Turn into ...
1824 (cris_target::get_regs_info): ...this.
1825 (the_low_target): Remove the op field.
1826 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1827 Declare.
1828 (crisv32_regs_info): Turn into ...
1829 (crisv32_target::get_regs_info): ...this.
1830 (the_low_target): Remove the op field.
1831 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1832 (ia64_regs_info): Turn into ...
1833 (ia64_target::get_regs_info): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1836 (m32r_regs_info): Turn into ...
1837 (m32r_target::get_regs_info): ...this.
1838 (the_low_target): Remove the op field.
1839 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1840 (m68k_regs_info): Turn into ...
1841 (m68k_target::get_regs_info): ...this.
1842 (the_low_target): Remove the op field.
1843 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1844 (mips_regs_info): Turn into ...
1845 (mips_target::get_regs_info): ...this.
1846 (the_low_target): Remove the op field.
1847 (get_usrregs_info): Update the call to the op.
1848 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1849 (nios2_regs_info): Turn into ...
1850 (nios2_target::get_regs_info): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1853 (ppc_regs_info): Turn into ...
1854 (ppc_target::get_regs_info): ...this.
1855 (the_low_target): Remove the op field.
1856 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1857 (riscv_regs_info): Turn into ...
1858 (riscv_target::get_regs_info): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1861 (s390_regs_info): Turn into ...
1862 (s390_target::get_regs_info): ...this.
1863 (the_low_target): Remove the op field.
1864 (s390_collect_ptrace_register)
1865 (s390_supply_ptrace_register)
1866 (s390_fill_gregset): Update the call to the op.
1867 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1868 (sh_regs_info): Turn into ...
1869 (sh_target::get_regs_info): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1872 (sparc_regs_info): Turn into ...
1873 (sparc_target::get_regs_info): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1876 (tic6x_regs_info): Turn into ...
1877 (tic6x_target::get_regs_info): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1880 (tile_regs_info): Turn into ...
1881 (tile_target::get_regs_info): ...this.
1882 (the_low_target): Remove the op field.
1883 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1884 Declare.
1885 (xtensa_regs_info): Turn into ...
1886 (xtensa_target::get_regs_info): ...this.
1887 (the_low_target): Remove the op field.
1888
797bcff5
TBA
18892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1890
1891 Turn the 'arch_setup' linux target op into a method of
1892 linux_process_target.
1893
1894 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1895 (class linux_process_target) <arch_setup_thread>
1896 <low_arch_setup>: New declarations.
1897 * linux-low.cc (linux_arch_setup): Delete.
1898 (linux_arch_setup_thread): Turn into...
1899 (linux_process_target::arch_setup_thread): ... this.
1900
1901 Update the callers below.
1902
1903 (linux_process_target::handle_extended_wait)
1904 (linux_process_target::post_create_inferior)
1905 (linux_process_target::filter_event)
1906
1907 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1908 declaration.
1909 (x86_linux_update_xmltarget): Turn into...
1910 (x86_target::update_xmltarget): ...this.
1911 (x86_linux_process_qsupported): Update the call to
1912 x86_linux_update_xmltarget.
1913 (x86_arch_setup): Turn into ...
1914 (x86_target::low_arch_setup): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1917 declaration.
1918 (aarch64_arch_setup): Turn into ...
1919 (aarch64_target::low_arch_setup): ...this.
1920 (the_low_target): Remove the op field.
1921 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1922 declaration.
1923 (arm_arch_setup): Turn into ...
1924 (arm_target::low_arch_setup): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1927 declaration.
1928 (bfin_arch_setup): Turn into ...
1929 (bfin_target::low_arch_setup): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1932 declaration.
1933 (cris_arch_setup): Turn into ...
1934 (cris_target::low_arch_setup): ...this.
1935 (the_low_target): Remove the op field.
1936 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1937 declaration.
1938 (crisv32_arch_setup): Turn into ...
1939 (crisv32_target::low_arch_setup): ...this.
1940 (the_low_target): Remove the op field.
1941 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1942 declaration.
1943 (ia64_arch_setup): Turn into ...
1944 (ia64_target::low_arch_setup): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1947 declaration.
1948 (m32r_arch_setup): Turn into ...
1949 (m32r_target::low_arch_setup): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1952 declaration.
1953 (m68k_arch_setup): Turn into ...
1954 (m68k_target::low_arch_setup): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1957 declaration.
1958 (mips_arch_setup): Turn into ...
1959 (mips_target::low_arch_setup): ...this.
1960 (the_low_target): Remove the op field.
1961 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1962 declaration.
1963 (nios2_arch_setup): Turn into ...
1964 (nios2_target::low_arch_setup): ...this.
1965 (the_low_target): Remove the op field.
1966 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1967 declaration.
1968 (ppc_arch_setup): Turn into ...
1969 (ppc_target::low_arch_setup): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1972 declaration.
1973 (riscv_arch_setup): Turn into ...
1974 (riscv_target::low_arch_setup): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1977 declaration.
1978 (s390_arch_setup): Turn into ...
1979 (s390_target::low_arch_setup): ...this.
1980 (the_low_target): Remove the op field.
1981 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1982 declaration.
1983 (sh_arch_setup): Turn into ...
1984 (sh_target::low_arch_setup): ...this.
1985 (the_low_target): Remove the op field.
1986 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1987 declaration.
1988 (sparc_arch_setup): Turn into ...
1989 (sparc_target::low_arch_setup): ...this.
1990 (the_low_target): Remove the op field.
1991 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1992 declaration.
1993 (tic6x_arch_setup): Turn into ...
1994 (tic6x_target::low_arch_setup): ...this.
1995 (the_low_target): Remove the op field.
1996 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1997 declaration.
1998 (tile_arch_setup): Turn into ...
1999 (tile_target::low_arch_setup): ...this.
2000 (the_low_target): Remove the op field.
2001 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2002 declaration.
2003 (xtensa_arch_setup): Turn into ...
2004 (xtensa_target::low_arch_setup): ...this.
2005 (the_low_target): Remove the op field.
2006
ef0478f6
TBA
20072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2008
2009 * linux-low.h (the_linux_target): New extern declaration.
2010 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2011 'the_target'.
2012 (the_linux_target): Remove.
2013 * linux-x86-low.cc (class x86_target): New class.
2014 (the_x86_target): New static object.
2015 (the_linux_target): Define as pointer to the_x86_target.
2016 * linux-aarch64-low.cc (class aarch64_target): New class.
2017 (the_aarch64_target): New static object.
2018 (the_linux_target): Define as pointer to the_aarch64_target.
2019 * linux-arm-low.cc (class arm_target): New class.
2020 (the_arm_target): New static object.
2021 (the_linux_target): Define as pointer to the_arm_target.
2022 * linux-bfin-low.cc (class bfin_target): New class.
2023 (the_bfin_target): New static object.
2024 (the_linux_target): Define as pointer to the_bfin_target.
2025 * linux-cris-low.cc (class cris_target): New class.
2026 (the_cris_target): New static object.
2027 (the_linux_target): Define as pointer to the_cris_target.
2028 * linux-crisv32-low.cc (class crisv32_target): New class.
2029 (the_crisv32_target): New static object.
2030 (the_linux_target): Define as pointer to the_crisv32_target.
2031 * linux-ia64-low.cc (class ia64_target): New class.
2032 (the_ia64_target): New static object.
2033 (the_linux_target): Define as pointer to the_ia64_target.
2034 * linux-m32r-low.cc (class m32r_target): New class.
2035 (the_m32r_target): New static object.
2036 (the_linux_target): Define as pointer to the_m32r_target.
2037 * linux-m68k-low.cc (class m68k_target): New class.
2038 (the_m68k_target): New static object.
2039 (the_linux_target): Define as pointer to the_m68k_target.
2040 * linux-mips-low.cc (class mips_target): New class.
2041 (the_mips_target): New static object.
2042 (the_linux_target): Define as pointer to the_mips_target.
2043 * linux-nios2-low.cc (class nios2_target): New class.
2044 (the_nios2_target): New static object.
2045 (the_linux_target): Define as pointer to the_nios2_target.
2046 * linux-ppc-low.cc (class ppc_target): New class.
2047 (the_ppc_target): New static object.
2048 (the_linux_target): Define as pointer to the_ppc_target.
2049 * linux-riscv-low.cc (class riscv_target): New class.
2050 (the_riscv_target): New static object.
2051 (the_linux_target): Define as pointer to the_riscv_target.
2052 * linux-s390-low.cc (class s390_target): New class.
2053 (the_s390_target): New static object.
2054 (the_linux_target): Define as pointer to the_s390_target.
2055 * linux-sh-low.cc (class sh_target): New class.
2056 (the_sh_target): New static object.
2057 (the_linux_target): Define as pointer to the_sh_target.
2058 * linux-sparc-low.cc (class sparc_target): New class.
2059 (the_sparc_target): New static object.
2060 (the_linux_target): Define as pointer to the_sparc_target.
2061 * linux-tic6x-low.cc (class tic6x_target): New class.
2062 (the_tic6x_target): New static object.
2063 (the_linux_target): Define as pointer to the_tic6x_target.
2064 * linux-tile-low.cc (class tile_target): New class.
2065 (the_tile_target): New static object.
2066 (the_linux_target): Define as pointer to the_tile_target.
2067 * linux-xtensa-low.cc (class xtensa_target): New class.
2068 (the_xtensa_target): New static object.
2069 (the_linux_target): Define as pointer to the_xtensa_target.
2070
d16f3f6c
TBA
20712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2072
2073 Turn some static functions in linux-low.cc into private methods of
2074 linux_process_target.
2075
2076 * linux-low.cc (handle_extended_wait): Turn into ...
2077 (linux_process_target::handle_extended_wait): ...this. Call
2078 'mourn' on 'this' object instead of 'the_target'.
2079 (maybe_move_out_of_jump_pad): Turn into...
2080 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2081 (linux_low_filter_event): Turn into...
2082 (linux_process_target::filter_event): ...this.
2083 (linux_wait_for_event_filtered): Turn into...
2084 (linux_process_target::wait_for_event_filtered): ...this.
2085 (linux_wait_for_event): Turn into...
2086 (linux_process_target::wait_for_event): ...this.
2087 (linux_wait_1): Turn into...
2088 (linux_process_target::wait_1): ...this.
2089 (wait_for_sigstop): Turn into...
2090 (linux_process_target::wait_for_sigstop): ...this.
2091 (move_out_of_jump_pad_callback): Turn into...
2092 (linux_process_target::move_out_of_jump_pad): ...this.
2093 (stop_all_lwps): Turn into...
2094 (linux_process_target::stop_all_lwps): ...this.
2095 (start_step_over): Turn into...
2096 (linux_process_target::start_step_over): ...this.
2097 (complete_ongoing_step_over): Turn into...
2098 (linux_process_target::complete_ongoing_step_over): ...this.
2099 (proceed_all_lwps): Turn into...
2100 (linux_process_target::proceed_all_lwps): ...this.
2101 (unstop_all_lwps): Turn into...
2102 (linux_process_target::unstop_all_lwps): ...this.
2103
2104 * linux-low.h (class linux_process_target)
2105 <handle_extended_wait>
2106 <maybe_move_out_of_jump_pad>
2107 filter_event>
2108 <wait_for_event_filtered>
2109 <wait_for_event>
2110 <wait_1>
2111 <wait_for_sigstop>
2112 <move_out_of_jump_pad>
2113 <stop_all_lwps>
2114 <start_step_over>
2115 <complete_ongoing_step_over>
2116 <proceed_all_lwps>
2117 <unstop_all_lwps>: Declare.
2118
2119 Update the callers below.
2120
2121 * linux-low.cc (linux_process_target::attach): Update.
2122 (linux_process_target::stabilize_threads): Ditto.
2123 (linux_process_target::wait): Ditto.
2124
a5863204
TBA
21252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2126
2127 * linux-low.h (struct linux_target_ops): Update the comment for
2128 'cannot_store_register' to return 0 or 1.
2129 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2130 of 2.
2131
c884cc46
SM
21322020-03-20 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * config.in: Re-generate.
2135 * configure: Re-generate.
2136
5a82b8a1
KR
21372020-03-17 Kamil Rytarowski <n54@gmx.com>
2138
2139 * regcache.cc (find_register_by_number): Update.
2140 * tdesc.cc (init_target_desc): Likewise.
2141 * tdesc.h (target_desc::reg_defs): Likewise.
2142
4635ff97
TT
21432020-03-12 Tom Tromey <tom@tromey.com>
2144
2145 * configure: Rebuild.
2146 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2147 (WIN32APILIBS): New subst.
2148 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2149 gdbsupport files.
2150 (gdbsupport/%.o): Remove target.
2151 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2152 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2153 (WIN32APILIBS): New variable.
2154 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2155 (gdbreplay$(EXEEXT)): Likewise.
2156
9a665d62
TT
21572020-03-12 Tom Tromey <tom@tromey.com>
2158
2159 * config.in, configure: Rebuild.
2160 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2161 * acinclude.m4: Include gettext-sister.m4.
2162 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2163 variables.
2164 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2165 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2166
272cd5a3
SM
21672020-03-12 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * acinclude.m4: Update path to selftest.m4.
2170
db6878ac
SM
21712020-03-12 Simon Marchi <simon.marchi@efficios.com>
2172
2173 * configure.ac: Don't source bfd/development.sh, move
2174 GDB_AC_COMMON higher.
2175 * configure: Re-generate.
2176
4d696a5c
SM
21772020-03-12 Simon Marchi <simon.marchi@efficios.com>
2178
2179 * configure: Re-generate.
2180
a0761e34
SM
21812020-03-11 Simon Marchi <simon.marchi@efficios.com>
2182
2183 * configure: Re-generate.
2184
20ea4a60
AB
21852020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * .dir-locals.el: New file.
2188
842806cb
TBA
21892020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2190
2191 * .gitattributes: New file.
2192
442131c1
AB
21932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2196 reply into an S reply.
2197 * server.cc (disable_packet_T): New global.
2198 (captured_main): Set new global when appropriate.
2199 * server.h (disable_packet_T): Declare.
2200
dda42c0b
TT
22012020-02-21 Tom Tromey <tom@tromey.com>
2202
2203 * Makefile.in (mostlyclean): New target.
2204
52405d85
TBA
22052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2206
2207 * target.h (struct process_stratum_target): Remove.
2208 (class process_target): Rename to ...
2209 (class process_stratum_target): ... this.
2210 * linux-low.h (class linux_process_target): Derive from
2211 'process_stratum_target'.
2212 * linux-low.cc (linux_target_ops): Remove.
2213 (initialize_low): Set the_target to the singleton instance of
2214 linux_process_target.
2215 * lynx-low.h (class lynx_process_target): Derive from
2216 'process_stratum_target'.
2217 * lynx-low.cc (lynx_target_ops): Remove.
2218 (initialize_low): Set the_target to the singleton instance of
2219 lynx_process_target.
2220 * nto-low.h (class nto_process_target): Derive from
2221 'process_stratum_target'.
2222 * nto-low.cc (nto_target_ops): Remove.
2223 (initialize_low): Set the_target to the singleton instance of
2224 nto_process_target.
2225 * win32-low.h (class win32_process_target): Derive from
2226 'process_stratum_target'.
2227 * win32-low.cc (win32_target_ops): Remove.
2228 (initialize_low): Set the_target to the singleton instance of
2229 win32_process_target.
2230
2231 Replace 'the_target->pt' with 'the_target' in the uses below.
2232
2233 * hostio.cc (hostio_error)
2234 (handle_setfs)
2235 (handle_open)
2236 (handle_unlink)
2237 (handle_readlink)
2238 * linux-aarch32-low.cc (arm_breakpoint_at)
2239 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2240 * linux-arm-low.cc (arm_sigreturn_next_pc)
2241 (arm_get_hwcap)
2242 (arm_get_syscall_trapinfo)
2243 * linux-cris-low.cc (cris_breakpoint_at)
2244 * linux-crisv32-low.cc (cris_breakpoint_at)
2245 * linux-low.cc (handle_extended_wait)
2246 (linux_wait_1)
2247 (linux_read_memory)
2248 (linux_process_target::breakpoint_kind_from_pc)
2249 (linux_get_auxv)
2250 * linux-m32r-low.cc (m32r_breakpoint_at)
2251 * linux-mips-low.cc (mips_breakpoint_at)
2252 * linux-nios2-low.cc (nios2_breakpoint_at)
2253 * linux-ppc-low.cc (ppc_breakpoint_at)
2254 * linux-s390-low.cc (s390_get_hwcap)
2255 * linux-sh-low.cc (sh_breakpoint_at)
2256 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2257 (sparc_store_gregset_from_stack)
2258 (sparc_breakpoint_at)
2259 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2260 * linux-tile-low.cc (tile_breakpoint_at)
2261 * linux-x86-low.cc (x86_breakpoint_at)
2262 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2263 * mem-break.cc (bp_size)
2264 (bp_opcode)
2265 (insert_memory_breakpoint)
2266 (set_raw_breakpoint_at)
2267 (delete_raw_breakpoint)
2268 (z_type_supported)
2269 (uninsert_raw_breakpoint)
2270 (reinsert_raw_breakpoint)
2271 (validate_inserted_breakpoint)
2272 * regcache.cc (regcache_read_pc)
2273 (regcache_write_pc)
2274 * remote-utils.cc (putpkt_binary_1)
2275 (input_interrupt)
2276 (getpkt)
2277 (prepare_resume_reply)
2278 * server.cc (handle_general_set)
2279 (handle_detach)
2280 (handle_qxfer_auxv)
2281 (handle_qxfer_exec_file)
2282 (handle_qxfer_libraries_svr4)
2283 (handle_qxfer_osdata)
2284 (handle_qxfer_siginfo)
2285 (handle_qxfer_fdpic)
2286 (handle_query)
2287 (resume)
2288 (handle_v_requests)
2289 (queue_stop_reply_callback)
2290 (captured_main)
2291 * target.cc (prepare_to_access_memory)
2292 (done_accessing_memory)
2293 (read_inferior_memory)
2294 (target_write_memory)
2295 (target_stop_and_wait)
2296 (target_wait)
2297 (target_mourn_inferior)
2298 (target_continue_no_signal)
2299 (target_continue)
2300 (target_supports_multi_process)
2301 (kill_inferior)
2302 * target.h
2303 (target_create_inferior)
2304 (target_post_create_inferior)
2305 (myattach)
2306 (target_supports_fork_events)
2307 (target_supports_vfork_events)
2308 (target_supports_exec_events)
2309 (target_handle_new_gdb_connection)
2310 (detach_inferior)
2311 (mythread_alive)
2312 (fetch_inferior_registers)
2313 (store_inferior_registers)
2314 (join_inferior)
2315 (target_supports_non_stop)
2316 (target_async)
2317 (target_process_qsupported)
2318 (target_supports_catch_syscall)
2319 (target_get_ipa_tdesc_idx)
2320 (target_supports_tracepoints)
2321 (target_supports_fast_tracepoints)
2322 (target_get_min_fast_tracepoint_insn_len)
2323 (target_thread_stopped)
2324 (target_pause_all)
2325 (target_unpause_all)
2326 (target_stabilize_threads)
2327 (target_install_fast_tracepoint_jump_pad)
2328 (target_emit_ops)
2329 (target_supports_disable_randomization)
2330 (target_supports_agent)
2331 (target_enable_btrace)
2332 (target_disable_btrace)
2333 (target_read_btrace)
2334 (target_read_btrace_conf)
2335 (target_supports_range_stepping)
2336 (target_supports_stopped_by_sw_breakpoint)
2337 (target_stopped_by_sw_breakpoint)
2338 (target_supports_stopped_by_hw_breakpoint)
2339 (target_supports_hardware_single_step)
2340 (target_stopped_by_hw_breakpoint)
2341 (target_breakpoint_kind_from_pc)
2342 (target_breakpoint_kind_from_current_state)
2343 (target_supports_software_single_step)
2344 (target_core_of_thread)
2345 (target_thread_name)
2346 (target_thread_handle)
2347 * win32-low.cc (do_initial_child_stuff)
2348
2349 Rename target op default definitions listed below.
2350
2351 * target.cc (process_target::post_create_inferior): Rename as ...
2352 (process_stratum_target::post_create_inferior): ... this.
2353 (process_target::prepare_to_access_memory): Rename as ...
2354 (process_stratum_target::prepare_to_access_memory): ... this.
2355 (process_target::done_accessing_memory): Rename as ...
2356 (process_stratum_target::done_accessing_memory): ... this.
2357 (process_target::look_up_symbols): Rename as ...
2358 (process_stratum_target::look_up_symbols): ... this.
2359 (process_target::supports_read_auxv): Rename as ...
2360 (process_stratum_target::supports_read_auxv): ... this.
2361 (process_target::read_auxv): Rename as ...
2362 (process_stratum_target::read_auxv): ... this.
2363 (process_target::supports_z_point_type): Rename as ...
2364 (process_stratum_target::supports_z_point_type): ... this.
2365 (process_target::insert_point): Rename as ...
2366 (process_stratum_target::insert_point): ... this.
2367 (process_target::remove_point): Rename as ...
2368 (process_stratum_target::remove_point): ... this.
2369 (process_target::stopped_by_sw_breakpoint): Rename as ...
2370 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2371 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2372 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2373 (process_target::stopped_by_hw_breakpoint): Rename as ...
2374 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2375 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2376 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2377 (process_target::supports_hardware_single_step): Rename as ...
2378 (process_stratum_target::supports_hardware_single_step): ... this.
2379 (process_target::stopped_by_watchpoint): Rename as ...
2380 (process_stratum_target::stopped_by_watchpoint): ... this.
2381 (process_target::stopped_data_address): Rename as ...
2382 (process_stratum_target::stopped_data_address): ... this.
2383 (process_target::supports_read_offsets): Rename as ...
2384 (process_stratum_target::supports_read_offsets): ... this.
2385 (process_target::read_offsets): Rename as ...
2386 (process_stratum_target::read_offsets): ... this.
2387 (process_target::supports_get_tls_address): Rename as ...
2388 (process_stratum_target::supports_get_tls_address): ... this.
2389 (process_target::get_tls_address): Rename as ...
2390 (process_stratum_target::get_tls_address): ... this.
2391 (process_target::hostio_last_error): Rename as ...
2392 (process_stratum_target::hostio_last_error): ... this.
2393 (process_target::supports_qxfer_osdata): Rename as ...
2394 (process_stratum_target::supports_qxfer_osdata): ... this.
2395 (process_target::qxfer_osdata): Rename as ...
2396 (process_stratum_target::qxfer_osdata): ... this.
2397 (process_target::supports_qxfer_siginfo): Rename as ...
2398 (process_stratum_target::supports_qxfer_siginfo): ... this.
2399 (process_target::qxfer_siginfo): Rename as ...
2400 (process_stratum_target::qxfer_siginfo): ... this.
2401 (process_target::supports_non_stop): Rename as ...
2402 (process_stratum_target::supports_non_stop): ... this.
2403 (process_target::async): Rename as ...
2404 (process_stratum_target::async): ... this.
2405 (process_target::start_non_stop): Rename as ...
2406 (process_stratum_target::start_non_stop): ... this.
2407 (process_target::supports_multi_process): Rename as ...
2408 (process_stratum_target::supports_multi_process): ... this.
2409 (process_target::supports_fork_events): Rename as ...
2410 (process_stratum_target::supports_fork_events): ... this.
2411 (process_target::supports_vfork_events): Rename as ...
2412 (process_stratum_target::supports_vfork_events): ... this.
2413 (process_target::supports_exec_events): Rename as ...
2414 (process_stratum_target::supports_exec_events): ... this.
2415 (process_target::handle_new_gdb_connection): Rename as ...
2416 (process_stratum_target::handle_new_gdb_connection): ... this.
2417 (process_target::handle_monitor_command): Rename as ...
2418 (process_stratum_target::handle_monitor_command): ... this.
2419 (process_target::core_of_thread): Rename as ...
2420 (process_stratum_target::core_of_thread): ... this.
2421 (process_target::supports_read_loadmap): Rename as ...
2422 (process_stratum_target::supports_read_loadmap): ... this.
2423 (process_target::read_loadmap): Rename as ...
2424 (process_stratum_target::read_loadmap): ... this.
2425 (process_target::process_qsupported): Rename as ...
2426 (process_stratum_target::process_qsupported): ... this.
2427 (process_target::supports_tracepoints): Rename as ...
2428 (process_stratum_target::supports_tracepoints): ... this.
2429 (process_target::read_pc): Rename as ...
2430 (process_stratum_target::read_pc): ... this.
2431 (process_target::write_pc): Rename as ...
2432 (process_stratum_target::write_pc): ... this.
2433 (process_target::supports_thread_stopped): Rename as ...
2434 (process_stratum_target::supports_thread_stopped): ... this.
2435 (process_target::thread_stopped): Rename as ...
2436 (process_stratum_target::thread_stopped): ... this.
2437 (process_target::supports_get_tib_address): Rename as ...
2438 (process_stratum_target::supports_get_tib_address): ... this.
2439 (process_target::get_tib_address): Rename as ...
2440 (process_stratum_target::get_tib_address): ... this.
2441 (process_target::pause_all): Rename as ...
2442 (process_stratum_target::pause_all): ... this.
2443 (process_target::unpause_all): Rename as ...
2444 (process_stratum_target::unpause_all): ... this.
2445 (process_target::stabilize_threads): Rename as ...
2446 (process_stratum_target::stabilize_threads): ... this.
2447 (process_target::supports_fast_tracepoints): Rename as ...
2448 (process_stratum_target::supports_fast_tracepoints): ... this.
2449 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2450 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2451 (process_target::emit_ops): Rename as ...
2452 (process_stratum_target::emit_ops): ... this.
2453 (process_target::supports_disable_randomization): Rename as ...
2454 (process_stratum_target::supports_disable_randomization): ... this.
2455 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2456 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2457 (process_target::qxfer_libraries_svr4): Rename as ...
2458 (process_stratum_target::qxfer_libraries_svr4): ... this.
2459 (process_target::supports_agent): Rename as ...
2460 (process_stratum_target::supports_agent): ... this.
2461 (process_target::enable_btrace): Rename as ...
2462 (process_stratum_target::enable_btrace): ... this.
2463 (process_target::disable_btrace): Rename as ...
2464 (process_stratum_target::disable_btrace): ... this.
2465 (process_target::read_btrace): Rename as ...
2466 (process_stratum_target::read_btrace): ... this.
2467 (process_target::read_btrace_conf): Rename as ...
2468 (process_stratum_target::read_btrace_conf): ... this.
2469 (process_target::supports_range_stepping): Rename as ...
2470 (process_stratum_target::supports_range_stepping): ... this.
2471 (process_target::supports_pid_to_exec_file): Rename as ...
2472 (process_stratum_target::supports_pid_to_exec_file): ... this.
2473 (process_target::pid_to_exec_file): Rename as ...
2474 (process_stratum_target::pid_to_exec_file): ... this.
2475 (process_target::supports_multifs): Rename as ...
2476 (process_stratum_target::supports_multifs): ... this.
2477 (process_target::multifs_open): Rename as ...
2478 (process_stratum_target::multifs_open): ... this.
2479 (process_target::multifs_unlink): Rename as ...
2480 (process_stratum_target::multifs_unlink): ... this.
2481 (process_target::multifs_readlink): Rename as ...
2482 (process_stratum_target::multifs_readlink): ... this.
2483 (process_target::breakpoint_kind_from_pc): Rename as ...
2484 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2485 (process_target::breakpoint_kind_from_current_state): Rename as ...
2486 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2487 (process_target::thread_name): Rename as ...
2488 (process_stratum_target::thread_name): ... this.
2489 (process_target::thread_handle): Rename as ...
2490 (process_stratum_target::thread_handle): ... this.
2491 (process_target::supports_software_single_step): Rename as ...
2492 (process_stratum_target::supports_software_single_step): ... this.
2493 (process_target::supports_catch_syscall): Rename as ...
2494 (process_stratum_target::supports_catch_syscall): ... this.
2495 (process_target::get_ipa_tdesc_idx): Rename as ...
2496 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2497
478f9adf
PA
24982020-02-20 Pedro Alves <palves@redhat.com>
2499
2500 * target.cc (set_target_ops): Simply copy the given target pointer
2501 instead of creating a copy of the pointed object.
2502
d633e831
TBA
25032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2504
2505 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2506 of process_target.
2507
2508 * target.h (struct process_stratum_target): Remove the target op.
2509 (class process_target): Add the target op.
2510 (target_get_ipa_tdesc_idx): Update the macro.
2511 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2512
2513 Update the derived classes and callers below.
2514
2515 * linux-low.cc (linux_target_ops): Update.
2516 (linux_get_ipa_tdesc_idx): Turn into ...
2517 (linux_process_target::get_ipa_tdesc_idx): ... this.
2518 * linux-low.h (class linux_process_target): Update.
2519 * lynx-low.cc (lynx_target_ops): Update.
2520 * nto-low.cc (nto_target_ops): Update.
2521 * win32-low.cc (win32_target_ops): Update.
2522
bc8d3ae4
TBA
25232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2524
2525 Turn process_stratum_target's supports_catch_syscall op into a
2526 method of process_target.
2527
2528 * target.h (struct process_stratum_target): Remove the target op.
2529 (class process_target): Add the target op.
2530 (target_supports_catch_syscall): Update the macro.
2531 * target.cc (process_target::supports_catch_syscall): Define.
2532
2533 Update the derived classes and callers below.
2534
2535 * linux-low.cc (linux_target_ops): Update.
2536 (linux_supports_catch_syscall): Turn into ...
2537 (linux_process_target::supports_catch_syscall): ... this.
2538 * linux-low.h (class linux_process_target): Update.
2539 * lynx-low.cc (lynx_target_ops): Update.
2540 * nto-low.cc (nto_target_ops): Update.
2541 * win32-low.cc (win32_target_ops): Update.
2542
5303a34f
TBA
25432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2544
2545 Turn process_stratum_target's supports_software_single_step op
2546 into a method of process_target.
2547
2548 * target.h (struct process_stratum_target): Remove the target op.
2549 (class process_target): Add the target op.
2550 (target_supports_software_single_step): Update the macro.
2551 * target.cc (process_target::supports_software_single_step): Define.
2552
2553 Update the derived classes and callers below.
2554
2555 * linux-low.cc (linux_target_ops): Update.
2556 (linux_supports_software_single_step): Turn into ...
2557 (linux_process_target::supports_software_single_step): ... this.
2558 * linux-low.h (class linux_process_target): Update.
2559 * lynx-low.cc (lynx_target_ops): Update.
2560 * nto-low.cc (nto_target_ops): Update.
2561 * win32-low.cc (win32_target_ops): Update.
2562
7f63b89b
TBA
25632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2564
2565 Turn process_stratum_target's thread_name and thread_handle ops
2566 into methods of process_target.
2567
2568 * target.h (struct process_stratum_target): Remove the target ops.
2569 (class process_target): Add the target ops.
2570 (target_thread_name): Update the macro.
2571 (target_thread_handle): Update the macro.
2572 * target.cc (process_target::thread_name): Define.
2573 (process_target::thread_handle): Define.
2574
2575 Update the derived classes and callers below.
2576
2577 * linux-low.cc (linux_target_ops): Update.
2578 (linux_process_target::thread_name): Define.
2579 (linux_process_target::thread_handle): Define.
2580 * linux-low.h (class linux_process_target): Update.
2581 * lynx-low.cc (lynx_target_ops): Update.
2582 * nto-low.cc (nto_target_ops): Update.
2583 * win32-low.cc (win32_target_ops): Update.
2584
d367006f
TBA
25852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2586
2587 Turn process_stratum_target's breakpoint_kind_from_pc,
2588 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2589 ops into methods of process_target.
2590
2591 * target.h (struct process_stratum_target): Remove the target op.
2592 (class process_target): Add the target op.
2593 (target_breakpoint_kind_from_pc): Update the macro.
2594 (target_breakpoint_kind_from_current_state): Update the macro.
2595 (default_breakpoint_kind_from_pc): Remove declaration.
2596 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2597 (process_target::breakpoint_kind_from_pc): ... this.
2598 (process_target::breakpoint_kind_from_current_state): Define.
2599
2600 Update the derived classes and callers below.
2601
2602 * mem-break.cc (bp_size): Update.
2603 (bp_opcode): Update.
2604 * linux-low.cc (linux_target_ops): Update.
2605 (linux_wait_1): Update.
2606 (linux_breakpoint_kind_from_pc): Turn into ...
2607 (linux_process_target::breakpoint_kind_from_pc): ... this.
2608 (linux_sw_breakpoint_from_kind): Turn into ...
2609 (linux_process_target::sw_breakpoint_from_kind): ... this.
2610 (linux_breakpoint_kind_from_current_state): Turn into ...
2611 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2612 * linux-low.h (class linux_process_target): Update.
2613 * lynx-low.cc (lynx_target_ops): Update.
2614 (lynx_process_target::sw_breakpoint_from_kind): Define.
2615 * lynx-low.h (class lynx_process_target): Update.
2616 * nto-low.cc (nto_target_ops): Update.
2617 (nto_sw_breakpoint_from_kind): Turn into ...
2618 (nto_process_target::sw_breakpoint_from_kind): ... this.
2619 * nto-low.h (class nto_process_target): Update.
2620 * win32-low.cc (win32_target_ops): Update.
2621 (win32_sw_breakpoint_from_kind): Turn into ...
2622 (win32_process_target::sw_breakpoint_from_kind): ... this.
2623 * win32-low.h (class win32_process_target): Update.
2624
c9b7b804
TBA
26252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2626
2627 Turn process_stratum_target's multifs_open, multifs_readlink,
2628 multifs_unlink ops into methods of process_target.
2629
2630 * target.h (struct process_stratum_target): Remove the target ops.
2631 (class process_target): Add the target ops. Also add
2632 'supports_multifs'.
2633 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2634 "sys/stat.h".
2635 (process_target::supports_multifs): Define.
2636 (process_target::multifs_open): Define.
2637 (process_target::multifs_readlink): Define.
2638 (process_target::multifs_unlink): Define.
2639
2640 Update the derived classes and callers below.
2641
2642 * hostio.cc (handle_setfs): Update.
2643 (handle_open): Update.
2644 (handle_unlink): Update.
2645 (handle_readlink): Update.
2646 * linux-low.cc (linux_target_ops): Update.
2647 (linux_process_target::supports_multifs): Define.
2648 (linux_process_target::multifs_open): Define.
2649 (linux_process_target::multifs_readlink): Define.
2650 (linux_process_target::multifs_unlink): Define.
2651 * linux-low.h (class linux_process_target): Update.
2652 * lynx-low.cc (lynx_target_ops): Update.
2653 * nto-low.cc (nto_target_ops): Update.
2654 * win32-low.cc (win32_target_ops): Update.
2655
8247b823
TBA
26562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2657
2658 Turn process_stratum_target's pid_to_exec_file op into a method
2659 of process_target.
2660
2661 * target.h (struct process_stratum_target): Remove the target op.
2662 (class process_target): Add the target op. Also add
2663 'supports_pid_to_exec_file'.
2664 * target.cc (process_target::pid_to_exec_file): Define.
2665 (process_target::supports_pid_to_exec_file): Define.
2666
2667 Update the derived classes and callers below.
2668
2669 * server.cc (handle_qxfer_exec_file): Update.
2670 (handle_query): Update.
2671 * linux-low.cc (linux_target_ops): Update.
2672 (linux_process_target::supports_pid_to_exec_file): Define.
2673 (linux_process_target::pid_to_exec_file): Define.
2674 * linux-low.h (class linux_process_target): Update.
2675 * lynx-low.cc (lynx_target_ops): Update.
2676 * nto-low.cc (nto_target_ops): Update.
2677 * win32-low.cc (win32_target_ops): Update.
2678
2526e0cd
TBA
26792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2680
2681 Turn process_stratum_target's supports_range_stepping op into a
2682 method of process_target.
2683
2684 * target.h (struct process_stratum_target): Remove the target op.
2685 (class process_target): Add the target op.
2686 (target_supports_range_stepping): Update the macro.
2687 * target.cc (process_target::supports_range_stepping): Define.
2688
2689 Update the derived classes and callers below.
2690
2691 * linux-low.cc (linux_target_ops): Update.
2692 (linux_supports_range_stepping): Turn into ...
2693 (linux_process_target::supports_range_stepping): ... this.
2694 * linux-low.h (class linux_process_target): Update.
2695 * lynx-low.cc (lynx_target_ops): Update.
2696 * nto-low.cc (nto_target_ops): Update.
2697 * win32-low.cc (win32_target_ops): Update.
2698
79597bdd
TBA
26992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2700
2701 Turn process_stratum_target's btrace-related ops (enable_btrace,
2702 disable_btrace, read_btrace, read_btrace_conf) into methods of
2703 process_target.
2704
2705 * target.h (struct process_stratum_target): Remove the target ops.
2706 (class process_target): Add the target ops.
2707 (target_enable_btrace): Update.
2708 (target_disable_btrace): Update.
2709 (target_read_btrace): Update.
2710 (target_read_btrace_conf): Update.
2711 * target.cc (process_target::enable_btrace): Define.
2712 (process_target::disable_btrace): Define.
2713 (process_target::read_btrace): Define.
2714 (process_target::read_btrace_conf): Define.
2715
2716 Update the derived classes and callers below.
2717
2718 * linux-low.cc (linux_target_ops): Update.
2719 (linux_process_target:enable_btrace): Define as a wrapper around
2720 linux_enable_btrace.
2721 (linux_low_disable_btrace): Turn into ...
2722 (linux_process_target::disable_btrace): ... this.
2723 (linux_low_read_btrace): Turn into ...
2724 (linux_process_target::read_btrace): ... this.
2725 (linux_low_btrace_conf): Turn into ...
2726 (linux_process_target::read_btrace_conf): ... this.
2727 * linux-low.h (class linux_process_target): Update.
2728 * lynx-low.cc (lynx_target_ops): Update.
2729 * nto-low.cc (nto_target_ops): Update.
2730 * win32-low.cc (win32_target_ops): Update.
2731
c0245cb9
TBA
27322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2733
2734 Turn process_stratum_target's supports_agent op into a method of
2735 process_target.
2736
2737 * target.h (struct process_stratum_target): Remove the target op.
2738 (class process_target): Add the target op.
2739 (target_supports_agent): Update the macro.
2740 * target.cc (process_target::supports_agent): Define.
2741
2742 Update the derived classes and callers below.
2743
2744 * linux-low.cc (linux_target_ops): Update.
2745 (linux_supports_agent): Turn into ...
2746 (linux_process_target::supports_agent): ... this.
2747 * linux-low.h (class linux_process_target): Update.
2748 * lynx-low.cc (lynx_target_ops): Update.
2749 * nto-low.cc (nto_target_ops): Update.
2750 * win32-low.cc (win32_target_ops): Update.
2751
974387bb
TBA
27522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2753
2754 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2755 method of process_target.
2756
2757 * target.h (struct process_stratum_target): Remove the target op.
2758 (class process_target): Add the target op. Also add
2759 'supports_qxfer_libraries_svr4'.
2760 * target.cc (process_target::qxfer_libraries_svr4): Define.
2761 (process_target::supports_qxfer_libraries_svr4): Define.
2762
2763 Update the derived classes and callers below.
2764
2765 * server.cc (handle_qxfer_libraries_svr4): Update.
2766 (handle_query): Update.
2767 * linux-low.cc (linux_target_ops): Update.
2768 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2769 (linux_qxfer_libraries_svr4): Turn into ...
2770 (linux_process_target::qxfer_libraries_svr4): ... this.
2771 * linux-low.h (class linux_process_target): Update.
2772 * lynx-low.cc (lynx_target_ops): Update.
2773 * nto-low.cc (nto_target_ops): Update.
2774 * win32-low.cc (win32_target_ops): Update.
2775
c756403b
TBA
27762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2777
2778 Turn process_stratum_target's supports_disable_randomization op
2779 into a method of process_target.
2780
2781 * target.h (struct process_stratum_target): Remove the target op.
2782 (class process_target): Add the target op.
2783 (target_supports_disable_randomization): Update the macro.
2784 * target.cc (process_target::supports_disable_randomization): Define.
2785
2786 Update the derived classes and callers below.
2787
2788 * linux-low.cc (linux_target_ops): Update.
2789 (linux_supports_disable_randomization): Turn into ...
2790 (linux_process_target::supports_disable_randomization): ... this.
2791 * linux-low.h (class linux_process_target): Update.
2792 * lynx-low.cc (lynx_target_ops): Update.
2793 * nto-low.cc (nto_target_ops): Update.
2794 * win32-low.cc (win32_target_ops): Update.
2795
345dafad
TBA
27962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2797
2798 Turn process_stratum_target's emit_ops op into a method of
2799 process_target.
2800
2801 * target.h (struct process_stratum_target): Remove the target op.
2802 (class process_target): Add the target op.
2803 (target_emit_ops): Update the macro.
2804 * target.cc (process_target::emit_ops): Define.
2805
2806 Update the derived classes and callers below.
2807
2808 * linux-low.cc (linux_target_ops): Update.
2809 (linux_emit_ops): Turn into ...
2810 (linux_process_target::emit_ops): ... this.
2811 * linux-low.h (class linux_process_target): Update.
2812 * lynx-low.cc (lynx_target_ops): Update.
2813 * nto-low.cc (nto_target_ops): Update.
2814 * win32-low.cc (win32_target_ops): Update.
2815
c23c9391
TBA
28162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2817
2818 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2819 and get_min_fast_tracepoint_insn_len ops into methods of
2820 process_target.
2821
2822 * target.h (struct process_stratum_target): Remove the target ops.
2823 (class process_target): Add the target ops. Also add
2824 'supports_fast_tracepoints'.
2825 (target_supports_fast_tracepoints): Update the macro.
2826 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2827 (install_fast_tracepoint_jump_pad): Update and rename the macro
2828 to ...
2829 (target_install_fast_tracepoint_jump_pad): ... this.
2830 * target.cc (process_target::supports_fast_tracepoints): Define.
2831 (process_target::install_fast_tracepoint_jump_pad): Define.
2832 (process_target::get_min_fast_tracepoint_insn_len): Define.
2833
2834 Update the derived classes and callers below.
2835
2836 * tracepoint.cc (install_fast_tracepoint): Update.
2837 * linux-low.cc (linux_target_ops): Update.
2838 (linux_process_target::supports_fast_tracepoints): Define.
2839 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2840 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2841 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2842 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2843 * linux-low.h (class linux_process_target): Update.
2844 * lynx-low.cc (lynx_target_ops): Update.
2845 * nto-low.cc (nto_target_ops): Update.
2846 * win32-low.cc (win32_target_ops): Update.
2847
5c9eb2f2
TBA
28482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849
2850 Turn process_stratum_target's stabilize_threads op into a
2851 method of process_target.
2852
2853 * target.h (struct process_stratum_target): Remove the target op.
2854 (class process_target): Add the target op.
2855 (target_stabilize_threads): Update the macro.
2856 * target.cc (process_target::stabilize_threads): Define.
2857
2858 Update the derived classes and callers below.
2859
2860 * server.cc (handle_status): Update.
2861 * tracepoint.cc (cmd_qtdp): Update.
2862 (cmd_qtstart): Update.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_stabilize_threads): Turn into ...
2865 (linux_process_target::stabilize_threads): ... this.
2866 (linux_wait_1): Update.
2867 * linux-low.h (class linux_process_target): Update.
2868 * lynx-low.cc (lynx_target_ops): Update.
2869 * nto-low.cc (nto_target_ops): Update.
2870 * win32-low.cc (win32_target_ops): Update.
2871
29e8dc09
TBA
28722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2873
2874 Turn process_stratum_target's pause_all and unpause_all ops
2875 into methods of process_target.
2876
2877 * target.h (struct process_stratum_target): Remove the target ops.
2878 (class process_target): Add the target ops.
2879 (pause_all): Update the macro and rename to...
2880 (target_pause_all): ... this.
2881 (unpause_all): Update the macro and rename to...
2882 (target_unpause_all): ... this.
2883 * target.cc (process_target::pause_all): Define.
2884 (process_target::unpause_all): Define.
2885
2886 Update the derived classes and callers below.
2887
2888 * server.cc (handle_status): Update.
2889 * tracepoint.cc (clear_installed_tracepoints): Update.
2890 (cmd_qtdp): Update.
2891 (cmd_qtstart): Update.
2892 (stop_tracing): Update.
2893 (cmd_qtstatus): Update.
2894 (upload_fast_traceframes): Update.
2895 (run_inferior_command): Update.
2896 * linux-low.cc (linux_target_ops): Update.
2897 (linux_pause_all): Turn into ...
2898 (linux_process_target::pause_all): ... this.
2899 (linux_unpause_all): Turn into ...
2900 (linux_process_target::unpause_all): ... this.
2901 (linux_process_target::prepare_to_access_memory): Update.
2902 (linux_process_target::done_accessing_memory): Update.
2903 * linux-low.h (class linux_process_target): Update.
2904 * lynx-low.cc (lynx_target_ops): Update.
2905 * nto-low.cc (nto_target_ops): Update.
2906 * win32-low.cc (win32_target_ops): Update.
2907
4e2e869c
TBA
29082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2909
2910 Turn process_stratum_target's get_tib_address op into a method of
2911 process_target.
2912
2913 * target.h (struct process_stratum_target): Remove the target op.
2914 (class process_target): Add the target op. Also add
2915 'supports_get_tib_address'.
2916 * target.cc (process_target::get_tib_address): Define.
2917 (process_target::supports_get_tib_address): Define.
2918
2919 Update the derived classes and callers below.
2920
2921 * server.cc (handle_query): Update.
2922 * linux-low.cc (win32_target_ops): Update.
2923 * lynx-low.cc (lynx_target_ops): Update.
2924 * nto-low.cc (nto_target_ops): Update.
2925 * win32-low.cc (win32_target_ops): Update.
2926 (win32_process_target::supports_get_tib_address): Define.
2927 (win32_get_tib_address): Turn into ...
2928 (win32_process_target::get_tib_address): ... this.
2929 * win32-low.h (class win32_process_target): Update.
2930
68119632
TBA
29312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2932
2933 Turn process_stratum_target's thread_stopped op into a method of
2934 process_target.
2935
2936 * target.h (struct process_stratum_target): Remove the target op.
2937 (class process_target): Add the target op. Also add
2938 'supports_thread_stopped'.
2939 (target_thread_stopped): Update the macro.
2940 * target.cc (process_target::thread_stopped): Define.
2941 (process_target::supports_thread_stopped): Define.
2942 (prepare_to_access_memory): Update.
2943
2944 Update the derived classes and callers below.
2945
2946 * server.cc (queue_stop_reply_callback): Update.
2947 * linux-low.cc (linux_target_ops): Update.
2948 (linux_process_target::supports_thread_stopped): Define.
2949 (linux_thread_stopped): Turn into ...
2950 (linux_process_target::thread_stopped): ... this.
2951 * linux-low.h (class linux_process_target): Update.
2952 * lynx-low.cc (lynx_target_ops): Update.
2953 * nto-low.cc (nto_target_ops): Update.
2954 * win32-low.cc (win32_target_ops): Update.
2955
770d8f6a
TBA
29562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2957
2958 Turn process_stratum_target's read_pc and write_pc ops into
2959 methods of process_target.
2960
2961 * target.h (struct process_stratum_target): Remove the target ops.
2962 (class process_target): Add the target ops.
2963 * target.cc (process_target::read_pc): Define.
2964 (process_target::write_pc): Define.
2965
2966 Update the derived classes and callers below.
2967
2968 * regcache.cc (regcache_read_pc): Update.
2969 (regcache_write_pc): Update.
2970 * linux-low.cc (linux_target_ops): Update.
2971 (linux_read_pc): Turn into ...
2972 (linux_process_target::read_pc): ... this.
2973 (linux_write_pc): Turn into ...
2974 (linux_process_target::write_pc): ... this.
2975 * linux-low.h (class linux_process_target): Update.
2976 * lynx-low.cc (lynx_target_ops): Update.
2977 * nto-low.cc (nto_target_ops): Update.
2978 * win32-low.cc (win32_target_ops): Update.
2979
290732bf
TBA
29802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2981
2982 Turn process_stratum_target's supports_tracepoints op into a
2983 method of process_target.
2984
2985 * target.h (struct process_stratum_target): Remove the target op.
2986 (class process_target): Add the target op.
2987 (target_supports_tracepoints): Update the macro.
2988 * target.cc (process_target::supports_tracepoints): Define.
2989
2990 Update the derived classes and callers below.
2991
2992 * linux-low.cc (linux_target_ops): Update.
2993 (linux_supports_tracepoints): Turn into ...
2994 (linux_process_target::supports_tracepoints): ... this.
2995 * linux-low.h (class linux_process_target): Update.
2996 * lynx-low.cc (lynx_target_ops): Update.
2997 * nto-low.cc (nto_target_ops): Update.
2998 * win32-low.cc (win32_target_ops): Update.
2999
0df28b1b
TBA
30002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3001
3002 Turn process_stratum_target's process_qsupported op into a method
3003 of process_target.
3004
3005 * target.h (struct process_stratum_target): Remove the target op.
3006 (class process_target): Add the target op.
3007 (target_process_qsupported): Update the macro.
3008 * target.cc (process_target::process_qsupported): Define.
3009
3010 Update the derived classes and callers below.
3011
3012 * linux-low.cc (linux_target_ops): Update.
3013 (linux_process_qsupported): Turn into ...
3014 (linux_process_target::process_qsupported): ... this.
3015 * linux-low.h (class linux_process_target): Update.
3016 * lynx-low.cc (lynx_target_ops): Update.
3017 * nto-low.cc (nto_target_ops): Update.
3018 * win32-low.cc (win32_target_ops): Update.
3019
9da41fda
TBA
30202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3021
3022 Turn process_stratum_target's read_loadmap op into a method of
3023 process_target.
3024
3025 * target.h (struct process_stratum_target): Remove the target op.
3026 (class process_target): Add the target op. Also add
3027 'supports_read_loadmap'.
3028 * target.cc (process_target::read_loadmap): Define.
3029 (process_target::supports_read_loadmap): Define.
3030
3031 Update the derived classes and callers below.
3032
3033 * server.cc (handle_qxfer_fdpic): Update.
3034 (handle_query): Update.
3035 * linux-low.cc (linux_target_ops): Update.
3036 (linux_process_target::supports_read_loadmap): Define.
3037 (linux_read_loadmap): Turn into ...
3038 (linux_process_target::read_loadmap): ... this.
3039 * linux-low.h (class linux_process_target): Update.
3040 * lynx-low.cc (lynx_target_ops): Update.
3041 * nto-low.cc (nto_target_ops): Update.
3042 * win32-low.cc (win32_target_ops): Update.
3043
95a45fc1
TBA
30442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3045
3046 Turn process_stratum_target's core_of_thread op into a method of
3047 process_target.
3048
3049 * target.h (struct process_stratum_target): Remove the target op.
3050 (class process_target): Add the target op.
3051 (target_core_of_thread): Update the macro.
3052 * target.cc (process_target::core_of_thread): Define.
3053
3054 Update the derived classes and callers below.
3055
3056 * linux-low.cc (linux_target_ops): Update.
3057 (linux_process_target::core_of_thread): Define.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3062
55cf3021
TBA
30632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3064
3065 Turn process_stratum_target's handle_monitor_command op into a
3066 method of process_target.
3067
3068 * target.h (struct process_stratum_target): Remove the target op.
3069 (class process_target): Add the target op.
3070 (target_handle_monitor_command): Update the macro.
3071 * target.cc (process_target::handle_monitor_command): Define.
3072
3073 Update the derived classes and callers below.
3074
3075 * server.cc (handle_query): Update.
3076 * linux-low.cc (linux_target_ops): Update.
3077 (linux_process_target::handle_monitor_command): Define.
3078 * linux-low.h (class linux_process_target): Update.
3079 * lynx-low.cc (lynx_target_ops): Update.
3080 * nto-low.cc (nto_target_ops): Update.
3081 * win32-low.cc (win32_target_ops): Update.
3082
fb00dfce
TBA
30832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3084
3085 Turn process_stratum_target's handle_new_gdb_connection op into a
3086 method of process_target.
3087
3088 * target.h (struct process_stratum_target): Remove the target op.
3089 (class process_target): Add the target op.
3090 (target_handle_new_gdb_connection): Update the macro.
3091 * target.cc (process_target::handle_new_gdb_connection): Define.
3092
3093 Update the derived classes and callers below.
3094
3095 * linux-low.cc (linux_target_ops): Update.
3096 (linux_handle_new_gdb_connection): Turn into ...
3097 (linux_process_target::handle_new_gdb_connection): ... this.
3098 * linux-low.h (class linux_process_target): Update.
3099 * lynx-low.cc (lynx_target_ops): Update.
3100 * nto-low.cc (nto_target_ops): Update.
3101 * win32-low.cc (win32_target_ops): Update.
3102
9690a72a
TBA
31032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3104
3105 Turn process_stratum_target's supports_fork_events,
3106 supports_vfork_events, and supports_exec_events ops into methods
3107 of process_target.
3108
3109 * target.h (struct process_stratum_target): Remove the target ops.
3110 (class process_target): Add the target ops.
3111 (target_supports_fork_events): Update the macro.
3112 (target_supports_vfork_events): Update the macro.
3113 (target_supports_exec_events): Update the macro.
3114 * target.cc (process_target::supports_fork_events): Define.
3115 (process_target::supports_vfork_events): Define.
3116 (process_target::supports_exec_events): Define.
3117
3118 Update the derived classes and callers below.
3119
3120 * linux-low.cc (linux_target_ops): Update.
3121 (linux_supports_fork_events): Turn into ...
3122 (linux_process_target::supports_fork_events): ... this.
3123 (linux_supports_vfork_events): Turn into ...
3124 (linux_process_target::supports_vfork_events): ... this.
3125 (linux_supports_exec_events): Turn into ...
3126 (linux_process_target::supports_exec_events): ... this.
3127 * linux-low.h (class linux_process_target): Update.
3128 * lynx-low.cc (lynx_target_ops): Update.
3129 * nto-low.cc (nto_target_ops): Update.
3130 * win32-low.cc (win32_target_ops): Update.
3131
652aef77
TBA
31322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3133
3134 Turn process_stratum_target's supports_multi_process op into a
3135 method of process_target.
3136
3137 * target.h (struct process_stratum_target): Remove the target op.
3138 (class process_target): Add the target op.
3139 * target.cc (process_target::supports_multi_process): Define.
3140 (target_supports_multi_process): Update.
3141
3142 Update the derived classes and callers below.
3143
3144 * linux-low.cc (linux_target_ops): Update.
3145 (linux_supports_multi_process): Turn into ...
3146 (linux_process_target::supports_multi_process): ... this.
3147 * linux-low.h (class linux_process_target): Update.
3148 * lynx-low.cc (lynx_target_ops): Update.
3149 * nto-low.cc (nto_target_ops): Update.
3150 * win32-low.cc (win32_target_ops): Update.
3151
0dc587d4
TBA
31522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153
3154 Turn process_stratum_target's supports_non_stop, async, and
3155 start_non_stop ops into methods of process_target.
3156
3157 * target.h (struct process_stratum_target): Remove the target ops.
3158 (class process_target): Add the target ops.
3159 (target_supports_non_stop): Update the macro.
3160 (target_async): Update the macro.
3161 (start_non_stop): Remove declaration.
3162 * target.cc (process_target::supports_non_stop): Define.
3163 (process_target::async): Define.
3164 (process_target::start_non_stop): Define.
3165 (start_non_stop): Remove.
3166
3167 Update the derived classes and callers below.
3168
3169 * server.cc (handle_qxfer_siginfo): Update.
3170 (handle_query): Update.
3171 * linux-low.cc (linux_target_ops): Update.
3172 (linux_supports_non_stop): Turn into ...
3173 (linux_process_target::supports_non_stop): ... this.
3174 (linux_async): Turn into ...
3175 (linux_process_target::async): ... this.
3176 (linux_start_non_stop): Turn into ...
3177 (linux_process_target::start_non_stop): ... this.
3178 * linux-low.h (class linux_process_target): Update.
3179 * lynx-low.cc (lynx_target_ops): Update.
3180 * nto-low.cc (nto_target_ops): Update.
3181 (nto_supports_non_stop): Remove; rely on the default behavior
3182 instead.
3183 * win32-low.cc (win32_target_ops): Update.
3184
d7abedf7
TBA
31852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3186
3187 Turn process_stratum_target's qxfer_siginfo op into a method of
3188 process_target.
3189
3190 * target.h (struct process_stratum_target): Remove the target op.
3191 (class process_target): Add the target op. Also add
3192 'supports_qxfer_siginfo'.
3193 * target.cc (process_target::qxfer_siginfo): Define.
3194 (process_target::supports_qxfer_siginfo): Define.
3195
3196 Update the derived classes and callers below.
3197
3198 * server.cc (handle_qxfer_siginfo): Update.
3199 (handle_query): Update.
3200 * linux-low.cc (linux_target_ops): Update.
3201 (linux_process_target::supports_qxfer_siginfo): Define.
3202 (linux_xfer_siginfo): Turn into ...
3203 (linux_process_target::qxfer_siginfo): ... this.
3204 * linux-low.h (class linux_process_target): Update.
3205 * lynx-low.cc (lynx_target_ops): Update.
3206 * nto-low.cc (nto_target_ops): Update.
3207 * win32-low.cc (win32_target_ops): Update.
3208
2d0795ee
TBA
32092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3210
3211 Turn process_stratum_target's qxfer_osdata op into a method of
3212 process_target.
3213
3214 * target.h (struct process_stratum_target): Remove the target op.
3215 (class process_target): Add the target op. Also add
3216 'supports_qxfer_osdata'.
3217 * target.cc (process_target::qxfer_osdata): Define.
3218 (process_target::supports_qxfer_osdata): Define.
3219
3220 Update the derived classes and callers below.
3221
3222 * server.cc (handle_qxfer_osdata): Update.
3223 (handle_query): Update.
3224 * linux-low.cc (linux_target_ops): Update.
3225 (linux_process_target::supports_qxfer_osdata): Define.
3226 (linux_qxfer_osdata): Turn into ...
3227 (linux_process_target::qxfer_osdata): ... this.
3228 * linux-low.h (class linux_process_target): Update.
3229 * lynx-low.cc (lynx_target_ops): Update.
3230 * nto-low.cc (nto_target_ops): Update.
3231 * win32-low.cc (win32_target_ops): Update.
3232
ea06bbaa
TBA
32332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3234
3235 Turn process_stratum_target's hostio_last_error op into a
3236 method of process_target.
3237
3238 * target.h (struct process_stratum_target): Remove the target op.
3239 (class process_target): Add the target op.
3240 * target.cc: Add "hostio.h" to includes.
3241 (process_target::hostio_last_error): Define.
3242
3243 Update the derived classes and callers below.
3244
3245 * hostio.cc (hostio_error): Update.
3246 * linux-low.cc: Remove "hostio.h" from includes.
3247 (linux_target_ops): Update.
3248 * lynx-low.cc (lynx_target_ops): Update.
3249 * nto-low.cc (nto_target_ops): Update.
3250 * win32-low.h (class win32_process_target): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3252 (wince_hostio_last_error): Turn into ...
3253 (win32_process_target::hostio_last_error): ... this.
3254
6e3fd7e9
TBA
32552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3256
3257 Turn process_stratum_target's get_tls_address op into a method of
3258 process_target.
3259
3260 * target.h (struct process_stratum_target): Remove the target op.
3261 (class process_target): Add the target op. Also add
3262 'supports_get_tls_address'.
3263 * target.cc (process_target::get_tls_address): Define.
3264 (process_target::supports_get_tls_address): Define.
3265
3266 Update the derived classes and callers below.
3267
3268 * server.cc (handle_query): Update.
3269 * linux-low.cc (linux_target_ops): Update.
3270 (linux_process_target::supports_get_tls_address): Define.
3271 (linux_process_target::get_tls_address): Define.
3272 * linux-low.h (class linux_process_target): Update.
3273 * lynx-low.cc (lynx_target_ops): Update.
3274 * nto-low.cc (nto_target_ops): Update.
3275 * win32-low.cc (win32_target_ops): Update.
3276
5203ae1e
TBA
32772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3278
3279 Turn process_stratum_target's read_offsets op into a method of
3280 process_target.
3281
3282 * target.h (struct process_stratum_target): Remove the target op.
3283 (class process_target): Add the target op. Also add
3284 'supports_read_offsets'.
3285 * target.cc (process_target::read_offsets): Define.
3286 (process_target::supports_read_offsets): Define.
3287
3288 Update the derived classes and callers below.
3289
3290 * server.cc (handle_query): Update.
3291 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3292 (linux_target_ops): Update.
3293 (linux_process_target::supports_read_offsets): Define.
3294 (linux_read_offsets): Turn into ...
3295 (linux_process_target::read_offsets): ... this.
3296 * linux-low.h (class linux_process_target): Update.
3297 * lynx-low.cc (lynx_target_ops): Update.
3298 * nto-low.cc (nto_target_ops): Update.
3299 * win32-low.cc (win32_target_ops): Update.
3300
6eeb5c55
TBA
33012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3302
3303 Turn process_stratum_target's stopped_by_watchpoint and
3304 stopped_data_address ops into methods of process_target.
3305
3306 * target.h (struct process_stratum_target): Remove the target ops.
3307 (class process_target): Add the target ops.
3308 * target.cc (process_target::stopped_by_watchpoint): Define.
3309 (process_target::stopped_data_address): Define.
3310
3311 Update the derived classes and callers below.
3312
3313 * remote-utils.cc (prepare_resume_reply): Update.
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_stopped_by_watchpoint): Turn into ...
3316 (linux_process_target::stopped_by_watchpoint): ... this.
3317 (linux_stopped_data_address): Turn into ...
3318 (linux_process_target::stopped_data_address): ... this.
3319 * linux-low.h (class linux_process_target): Update.
3320 * lynx-low.cc (lynx_target_ops): Update.
3321 * nto-low.cc (nto_target_ops): Update.
3322 (nto_stopped_by_watchpoint): Turn into ...
3323 (nto_process_target::stopped_by_watchpoint): ... this.
3324 (nto_stopped_data_address): Turn into ...
3325 (nto_process_target::stopped_data_address): ... this.
3326 * nto-low.h (class nto_process_target): Update.
3327 * win32-low.cc (win32_target_ops): Update.
3328 (win32_stopped_by_watchpoint): Turn into ...
3329 (win32_process_target::stopped_by_watchpoint): ... this.
3330 (win32_stopped_data_address): Turn into ...
3331 (win32_process_target::stopped_data_address): ... this.
3332 * win32-low.h (class win32_process_target): Update.
3333
22aa6223
TBA
33342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3335
3336 Turn process_stratum_target's supports_hardware_single_step op into
3337 a method of process_target.
3338
3339 * target.h (struct process_stratum_target): Remove the target op.
3340 (class process_target): Add the target op.
3341 (target_supports_hardware_single_step): Update the macro.
3342 (target_can_do_hardware_single_step): Remove declaration.
3343 * target.cc (process_target::supports_hardware_single_step): Define.
3344 (target_can_do_hardware_single_step): Remove.
3345
3346 Update the derived classes and callers below.
3347
3348 * linux-low.h (class linux_process_target): Update.
3349 * linux-low.cc (linux_target_ops): Update.
3350 (linux_supports_hardware_single_step): Turn into ...
3351 (linux_process_target::supports_hardware_single_step): ... this.
3352 * lynx-low.h (class lynx_process_target): Update.
3353 * lynx-low.cc (lynx_target_ops): Update.
3354 (lynx_process_target::supports_hardware_single_step): Define.
3355 * nto-low.h (class nto_process_target): Update.
3356 * nto-low.cc (nto_target_ops): Update.
3357 (nto_process_target::supports_hardware_single_step): Define.
3358 * win32-low.h (class win32_process_target): Update.
3359 * win32-low.cc (win32_target_ops): Update.
3360 (win32_process_target::supports_hardware_single_step): Define.
3361
93fe88b2
TBA
33622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3365 ops into methods of process_target.
3366
3367 * target.h (struct process_stratum_target): Remove the target ops.
3368 (class process_target): Add the target ops.
3369 (target_stopped_by_hw_breakpoint): Update the macro.
3370 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3371 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3372 (process_target::supports_stopped_by_hw_breakpoint): Define.
3373
3374 Update the derived classes and callers below.
3375
3376 * linux-low.cc (linux_target_ops): Update.
3377 (linux_stopped_by_hw_breakpoint): Turn into ...
3378 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3379 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3380 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3381 * linux-low.h (class linux_process_target): Update.
3382 * lynx-low.cc (lynx_target_ops): Update.
3383 * nto-low.cc (nto_target_ops): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385
84320c4e
TBA
33862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387
3388 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3389 ops into methods of process_target.
3390
3391 * target.h (struct process_stratum_target): Remove the target ops.
3392 (class process_target): Add the target ops.
3393 (target_stopped_by_sw_breakpoint): Update the macro.
3394 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3395 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3396 (process_target::supports_stopped_by_sw_breakpoint): Define.
3397
3398 Update the derived classes and callers below.
3399
3400 * linux-low.cc (linux_target_ops): Update.
3401 (linux_stopped_by_sw_breakpoint): Turn into ...
3402 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3403 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3404 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3409
7e0bde70
TBA
34102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411
3412 Turn process_stratum_target's insert_point and remove_point ops
3413 into methods of process_target.
3414
3415 * target.h (struct process_stratum_target): Remove the target ops.
3416 (class process_target): Add the target ops.
3417 * target.cc (process_target::insert_point): Define.
3418 (process_target::remove_point): Define.
3419
3420 Update the derived classes and callers below.
3421
3422 * mem-break.cc (set_raw_breakpoint_at): Update.
3423 (delete_raw_breakpoint): Update.
3424 (uninsert_raw_breakpoint): Update.
3425 (reinsert_raw_breakpoint): Update.
3426 * linux-low.cc (linux_target_ops): Update.
3427 (linux_insert_point): Turn into ...
3428 (linux_process_target::insert_point): ... this.
3429 (linux_remove_point): Turn into ...
3430 (linux_process_target::remove_point): ... this.
3431 * linux-low.h (class linux_process_target): Update.
3432 * lynx-low.cc (lynx_target_ops): Update.
3433 * nto-low.cc (nto_target_ops): Update.
3434 (nto_insert_point): Turn into ...
3435 (nto_process_target::insert_point): ... this.
3436 (nto_remove_point): Turn into ...
3437 (nto_process_target::remove_point): ... this.
3438 * nto-low.h (class nto_process_target): Update.
3439 * win32-low.cc (win32_target_ops): Update.
3440 (win32_insert_point): Turn into ...
3441 (win32_process_target::insert_point): ... this.
3442 (win32_remove_point): Turn into ...
3443 (win32_process_target::remove_point): ... this.
3444 * win32-low.h (class win32_process_target): Update.
3445
a2b2297a
TBA
34462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3447
3448 Turn process_stratum_target's supports_z_point_type op into a
3449 method of process_target.
3450
3451 * target.h (struct process_stratum_target): Remove the target op.
3452 (class process_target): Add the target op.
3453 * target.cc (process_target::supports_z_point_type): Define.
3454
3455 Update the derived classes and callers below.
3456
3457 * mem-break.cc (z_type_supported): Update.
3458 * linux-low.cc (linux_target_ops): Update.
3459 (linux_supports_z_point_type): Turn into ...
3460 (linux_process_target::supports_z_point_type): ... this.
3461 * linux-low.h (class linux_process_target): Update.
3462 * lynx-low.cc (lynx_target_ops): Update.
3463 * nto-low.cc (nto_target_ops): Update.
3464 (nto_supports_z_point_type): Turn into ...
3465 (nto_process_target::supports_z_point_type): ... this.
3466 * nto-low.h (class nto_process_target): Update.
3467 * win32-low.cc (win32_target_ops): Update.
3468 (win32_supports_z_point_type): Turn into ...
3469 (win32_process_target::supports_z_point_type): ... this.
3470 * win32-low.h (class win32_process_target): Update.
3471
eac215cc
TBA
34722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3473
3474 Turn process_stratum_target's read_auxv op into a method of
3475 process_target.
3476
3477 * target.h (class process_stratum_target): Remove the target op.
3478 (struct process_target): Add the target op. Also add
3479 'supports_read_auxv'.
3480 * target.cc (process_target::read_auxv): Define.
3481 (process_target::supports_read_auxv): Define.
3482
3483 Update the derived classes and callers below.
3484
3485 * server.cc (handle_qxfer_auxv): Update.
3486 (handle_query): Update.
3487 * linux-low.cc (linux_target_ops): Update.
3488 (linux_process_target::supports_read_auxv): Define.
3489 (linux_read_auxv): Turn into ...
3490 (linux_process_target::read_auxv): ... this.
3491 * linux-low.h (class linux_process_target): Update.
3492 * lynx-low.cc (lynx_target_ops): Update.
3493 * nto-low.cc (nto_target_ops): Update.
3494 (nto_process_target::supports_read_auxv): Define.
3495 (nto_read_auxv): Turn into ...
3496 (nto_process_target::read_auxv): ... this.
3497 * nto-low.h (class nto_process_target): Update.
3498 * win32-low.cc (win32_target_ops): Update.
3499
eb497a2a
TBA
35002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3501
3502 Turn process_stratum_target's request_interrupt op into a method of
3503 process_target.
3504
3505 * target.h (struct process_stratum_target): Remove the target op.
3506 (class process_target): Add the target op.
3507
3508 Update the derived classes and callers below.
3509
3510 * remote-utils.cc (putpkt_binary_1): Update.
3511 (input_interrupt): Update.
3512 (getpkt): Update.
3513 * server.cc (handle_v_requests): Update.
3514 * linux-low.cc (linux_target_ops): Update.
3515 (linux_request_interrupt): Turn into ...
3516 (linux_process_target::request_interrupt): ... this.
3517 * linux-low.h (class linux_process_target): Update.
3518 * lynx-low.cc (lynx_target_ops): Update.
3519 (lynx_request_interrupt): Turn into ...
3520 (lynx_process_target::request_interrupt): ... this.
3521 * lynx-low.h (class lynx_process_target): Update.
3522 * nto-low.cc (nto_target_ops): Update.
3523 (nto_request_interrupt): Turn into ...
3524 (nto_process_target::request_interrupt): ... this.
3525 * nto-low.h (class nto_process_target): Update.
3526 * win32-low.cc (win32_target_ops): Update.
3527 (win32_request_interrupt): Turn into ...
3528 (win32_process_target::request_interrupt): ... this.
3529 * win32-low.h (class win32_process_target): Update.
3530
2a31c7aa
TBA
35312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3532
3533 Turn process_stratum_target's look_up_symbols op into a method of
3534 process_target.
3535
3536 * target.h (struct process_stratum_target): Remove the target op.
3537 (class process_target): Add the target op.
3538 * target.cc (process_target::look_up_symbols): Define.
3539
3540 Update the derived classes and callers below.
3541
3542 * server.cc (handle_query): Update.
3543 * linux-low.cc (linux_target_ops): Update.
3544 (linux_look_up_symbols): Turn into ...
3545 (linux_process_target::look_up_symbols): ... this.
3546 * linux-low.h (class linux_process_target): Update.
3547 * lynx-low.cc (lynx_target_ops): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 * win32-low.cc (win32_target_ops): Update.
3550
e2558df3
TBA
35512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 Turn process_stratum_target's read_memory and write_memory
3554 ops into methods of process_target.
3555
3556 * target.h (struct process_stratum_target): Remove the target ops.
3557 (class process_target): Add the target ops.
3558
3559 Update the derived classes and callers below.
3560
3561 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3562 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3563 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3564 (arm_get_syscall_trapinfo): Update.
3565 * linux-cris-low.cc (cris_breakpoint_at): Update.
3566 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3567 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3568 * linux-mips-low.cc (mips_breakpoint_at): Update.
3569 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3570 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3571 * linux-sh-low.cc (sh_breakpoint_at): Update.
3572 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3573 (sparc_store_gregset_from_stack): Update.
3574 (sparc_breakpoint_at): Update.
3575 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3576 * linux-tile-low.cc (tile_breakpoint_at): Update.
3577 * linux-x86-low.cc (x86_breakpoint_at): Update.
3578 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3579 * mem-brea.cc (insert_memory_breakpoint): Update.
3580 (validate_inserted_breakpoint): Update.
3581 * target.cc (read_inferior_memory): Update.
3582 (target_write_memory): Update.
3583 * linux-low.cc (linux_target_ops): Update.
3584 (linux_read_memory): Make a wrapper around the read_memory target
3585 op call.
3586 (linux_process_target::read_memory): Rename from linux_read_memory.
3587 (linux_write_memory): Turn into ...
3588 (linux_process_target::write_memory): ... this.
3589 * linux-low.h (class linux_process_target): Update.
3590 * lynx-low.cc (lynx_target_ops): Update.
3591 (lynx_read_memory): Turn into ...
3592 (lynx_process_target::read_memory): ... this.
3593 (lynx_write_memory): Turn into ...
3594 (lynx_process_target::write_memory): ... this.
3595 * lynx-low.h (class lynx_process_target): Update.
3596 * nto-low.cc (nto_target_ops): Update.
3597 (nto_read_memory): Turn into ...
3598 (nto_process_target::read_memory): ... this.
3599 (nto_write_memory): Turn into ...
3600 (nto_process_target::write_memory): ... this.
3601 * nto-low.h (class nto_process_target): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3603 (win32_read_inferior_memory): Turn into ...
3604 (win32_process_target::read_memory): ... this.
3605 (win32_write_inferior_memory): Turn into ...
3606 (win32_process_target::write_memory): ... this.
3607 * win32-low.h (class win32_process_target): Update.
3608
79b44087
TBA
36092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3610
3611 Turn process_stratum_target's prepare_to_access_memory and
3612 done_accessing_memory ops into methods of process_target.
3613
3614 * target.h (struct process_stratum_target): Remove the target ops.
3615 (class process_target): Add the target ops.
3616 * target.cc (process_target::prepare_to_access_memory): Define.
3617 (process_target::done_accessing_memory): Define.
3618 (prepare_to_access_memory): Update.
3619 (done_accessing_memory): Update.
3620
3621 Update the derived classes and callers below.
3622
3623 * linux-low.cc (linux_target_ops): Update.
3624 (linux_prepare_to_access_memory): Turn into ...
3625 (linux_process_target::prepare_to_access_memory): ... this.
3626 (linux_done_accessing_memory): Turn into ...
3627 (linux_process_target::done_accessing_memory): ... this.
3628 * linux-low.h (class linux_process_target): Update.
3629 * lynx-low.cc (lynx_target_ops): Update.
3630 * nto-low.cc (nto_target_ops): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3632
a5a4d4cd
TBA
36332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 Turn process_stratum_target's fetch_registers and store_registers
3636 ops into methods of process_target.
3637
3638 * target.h (struct process_stratum_target): Remove the target ops.
3639 (class process_target): Add the target ops.
3640 (fetch_inferior_registers): Update the macro.
3641 (store_inferior_registers): Update the macro.
3642
3643 Update the derived classes and callers below.
3644
3645 * linux-low.cc (linux_target_ops): Update.
3646 (linux_fetch_registers): Turn into ...
3647 (linux_process_target::fetch_registers): ... this.
3648 (linux_store_registers): Turn into ...
3649 (linux_process_target::store_registers): ... this.
3650 * linux-low.h (class linux_process_target): Update.
3651 * lynx-low.cc (lynx_target_ops): Update.
3652 (lynx_fetch_registers): Turn into ...
3653 (lynx_process_target::fetch_registers): ... this.
3654 (lynx_store_registers): Turn into ...
3655 (lynx_process_target::store_registers): ... this.
3656 * lynx-low.h (class lynx_process_target): Update.
3657 * nto-low.cc (nto_target_ops): Update.
3658 (nto_fetch_registers): Turn into ...
3659 (nto_process_target::fetch_registers): ... this.
3660 (nto_store_registers): Turn into ...
3661 (nto_process_target::store_registers): ... this.
3662 * nto-low.h (class nto_process_target): Update.
3663 * win32-low.cc (win32_target_ops): Update.
3664 (win32_fetch_inferior_registers): Turn into ...
3665 (win32_process_target::fetch_registers): ... this.
3666 (win32_store_inferior_registers): Turn into ...
3667 (win32_process_target::store_registers): ... this.
3668 * win32-low.h (class win32_process_target): Update.
3669
6532e7e3
TBA
36702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3671
3672 Turn process_stratum_target's wait op into a method of
3673 process_target.
3674
3675 * target.h (struct process_stratum_target): Remove the target op.
3676 (class process_target): Add the target op.
3677
3678 Update the derived classes and callers below.
3679
3680 * target.cc (target_wait): Update.
3681 * linux-low.cc (linux_target_ops): Update.
3682 (linux_wait): Turn into ...
3683 (linux_process_target::wait): ... this.
3684 * linux-low.h (class linux_process_target): Update.
3685 * lynx-low.cc (lynx_target_ops): Update.
3686 (lynx_wait): Turn into ...
3687 (lynx_process_target::wait): ... this.
3688 * lynx-low.h (class lynx_process_target): Update.
3689 * nto-low.cc (nto_target_ops): Update.
3690 (nto_wait): Turn into ...
3691 (nto_process_target::wait): ... this.
3692 * nto-low.h (class nto_process_target): Update.
3693 * win32-low.cc (win32_target_ops): Update.
3694 (win32_wait): Turn into ...
3695 (win32_process_target::wait): ... this.
3696 (do_initial_child_stuff): Update.
3697 * win32-low.h (class win32_process_target): Update.
3698
0e4d7e35
TBA
36992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3700
3701 Turn process_stratum_target's resume op into a method of
3702 process_target.
3703
3704 * target.h (struct process_stratum_target): Remove the target op.
3705 (class process_target): Add the target op.
3706
3707 Update the derived classes and callers below.
3708
3709 * server.cc (resume): Update.
3710 * target.cc (target_stop_and_wait): Update.
3711 (target_continue_no_signal): Update.
3712 (target_continue): Update.
3713 * linux-low.cc (linux_target_ops): Update.
3714 (linux_resume): Turn into ...
3715 (linux_process_target::resume): ... this.
3716 * linux-low.h (class linux_process_target): Update.
3717 * lynx-low.cc (lynx_target_ops): Update.
3718 (lynx_resume): Turn into ...
3719 (lynx_process_target::resume): ... this.
3720 * lynx-low.h (class lynx_process_target): Update.
3721 * nto-low.cc (nto_target_ops): Update.
3722 (nto_resume): Turn into ...
3723 (nto_process_target::resume): ... this.
3724 * nto-low.h (class nto_process_target): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3726 (win32_resume): Turn into ...
3727 (win32_process_target::resume): ... this.
3728 (win32_process_target::detach): Update.
3729 (do_initial_child_stuff): Update.
3730 * win32-low.h (class win32_process_target): Update.
3731
13d3d99b
TBA
37322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3733
3734 Turn process_stratum_target's thread_alive op into a method of
3735 process_target.
3736
3737 * target.h (struct process_stratum_target): Remove the target op.
3738 (class process_target): Add the target op.
3739 (mythread_alive): Update the macro.
3740
3741 Update the derived classes and callers below.
3742
3743 * linux-low.cc (linux_target_ops): Update.
3744 (linux_thread_alive): Turn into ...
3745 (linux_process_target::thread_alive): ... this.
3746 (wait_for_sigstop): Update.
3747 * linux-low.h (class linux_process_target): Update.
3748 * lynx-low.cc (lynx_target_ops): Update.
3749 (lynx_thread_alive): Turn into ...
3750 (lynx_process_target::thread_alive): ... this.
3751 * lynx-low.h (class lynx_process_target): Update.
3752 * nto-low.cc (nto_target_ops): Update.
3753 (nto_thread_alive): Turn into ...
3754 (nto_process_target::thread_alive): ... this.
3755 * nto-low.h (class nto_process_target): Update.
3756 * win32-low.cc (win32_target_ops): Update.
3757 (win32_thread_alive): Turn into ...
3758 (win32_process_target::thread_alive): ... this.
3759 * win32-low.h (class win32_process_target): Update.
3760
95a49a39
TBA
37612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3762
3763 Turn process_stratum_target's join op into a method of
3764 process_target.
3765
3766 * target.h (struct process_stratum_target): Remove the target op.
3767 (class process_target): Add the target op.
3768 (join_inferior): Update the macro.
3769
3770 Update the derived classes and callers below.
3771
3772 * linux-low.cc (linux_target_ops): Update.
3773 (linux_join): Turn into ...
3774 (linux_process_target::join): ... this.
3775 * linux-low.h (class linux_process_target): Update.
3776 * lynx-low.cc (lynx_target_ops): Update.
3777 (lynx_join): Turn into ...
3778 (lynx_process_target::join): ... this.
3779 * lynx-low.h (class lynx_process_target): Update.
3780 * nto-low.cc (nto_target_ops): Update.
3781 (nto_process_target::join): Define.
3782 * nto-low.h (class nto_process_target): Update.
3783 * win32-low.cc (win32_target_ops): Update.
3784 (win32_join): Turn into ...
3785 (win32_process_target::join): ... this.
3786 * win32-low.h (class win32_process_target): Update.
3787
8adb37b9
TBA
37882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3789
3790 Turn process_stratum_target's mourn op into a method of
3791 process_target.
3792
3793 * target.h (struct process_stratum_target): Remove the target op.
3794 (class process_target): Add the target op.
3795
3796 Update the derived classes and callers below.
3797
3798 * target.cc (target_mourn_inferior): Update.
3799 * linux-low.cc (linux_target_ops): Update.
3800 (linux_mourn): Turn into ...
3801 (linux_process_target::mourn): ... this.
3802 (handle_extended_wait): Update.
3803 (linux_process_target::kill): Update.
3804 (linux_process_target::detach): Update.
3805 * linux-low.h (class linux_process_target): Update.
3806 * lynx-low.cc (lynx_target_ops): Update.
3807 (lynx_mourn): Turn into ...
3808 (lynx_process_target::mourn): ... this.
3809 * lynx-low.h (class lynx_process_target): Update.
3810 * nto-low.cc (nto_target_ops): Update.
3811 (nto_mourn): Turn into ...
3812 (nto_process_target::mourn): ... this.
3813 * nto-low.h (class nto_process_target): Update.
3814 * win32-low.cc (win32_target_ops): Update.
3815 (win32_mourn): Turn into ...
3816 (win32_process_target::mourn): ... this.
3817 * win32-low.h (class win32_process_target): Update.
3818
9061c9cf
TBA
38192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 Turn process_stratum_target's detach op into a method of
3822 process_target.
3823
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3826 (detach_inferior): Update the macro.
3827
3828 Update the derived classes and callers below.
3829
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_detach): Turn into ...
3832 (linux_process_target::detach): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 (lynx_detach): Turn into ...
3836 (lynx_process_target::detach): ... this.
3837 * lynx-low.h (class lynx_process_target): Update.
3838 * nto-low.cc (nto_target_ops): Update.
3839 (nto_detach): Turn into ...
3840 (nto_process_target::detach): ... this.
3841 * nto-low.h (class nto_process_target): Update.
3842 * win32-low.cc (win32_target_ops): Update.
3843 (win32_detach): Turn into ...
3844 (win32_process_target::detach): ... this.
3845 * win32-low.h (class win32_process_target): Update.
3846
c6885a57
TBA
38472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848
3849 Turn process_stratum_target's kill op into a method of
3850 process_target.
3851
3852 * target.h (struct process_stratum_target): Remove the target op.
3853 (class process_target): Add the target op.
3854
3855 Update the derived classes and callers below.
3856
3857 * target.cc (kill_inferior): Update.
3858 * linux-low.cc (linux_target_ops): Update.
3859 (linux_kill): Turn into ...
3860 (linux_process_target::kill): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_kill): Turn into ...
3864 (lynx_process_target::kill): ... this.
3865 * lynx-low.h (class lynx_process_target): Update.
3866 * nto-low.cc (nto_target_ops): Update.
3867 (nto_kill): Turn into ...
3868 (nto_process_target::kill): ... this.
3869 * nto-low.h (class nto_process_target): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871 (win32_kill): Turn into ...
3872 (win32_process_target::kill): ... this.
3873 * win32-low.h (class win32_process_target): Update.
3874
ef03dad8
TBA
38752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3876
3877 Turn process_stratum_target's attach op into a method of
3878 process_target.
3879
3880 * target.h (struct process_stratum_target): Remove the target op.
3881 (class process_target): Add the target op.
3882 (myattach): Update the macro.
3883
3884 Update the derived classes and callers below.
3885
3886 * linux-low.cc (linux_target_ops): Update.
3887 (linux_attach): Turn into ...
3888 (linux_process_target::attach): ... this.
3889 * linux-low.h (class linux_process_target): Update.
3890 * lynx-low.cc (lynx_target_ops): Update.
3891 (lynx_attach): Turn into ...
3892 (lynx_process_target::attach): ... this.
3893 * lynx-low.h (class lynx_process_target): Update.
3894 * nto-low.cc (nto_target_ops): Update.
3895 (nto_attach): Turn into ...
3896 (nto_process_target::attach): ... this.
3897 * nto-low.h (class nto_process_target): Update.
3898 * win32-low.cc (win32_target_ops): Update.
3899 (win32_attach): Turn into ...
3900 (win32_process_target::attach): ... this.
3901 * win32-low.h (class win32_process_target): Update.
3902
6dee9afb
TBA
39032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3904
3905 Turn process_stratum_target's post_create_inferior op into a method
3906 of process_target.
3907
3908 * target.h (struct process_stratum_target): Remove the target op.
3909 (class process_target): Add the target op.
3910 (target_post_create_inferior): Update the macro.
3911 * target.cc (process_target::post_create_inferior): Define.
3912
3913 Update the derived classes and callers below.
3914
3915 * linux-low.cc (linux_target_ops): Update.
3916 (linux_post_create_inferior): Turn into ...
3917 (linux_process_target::post_create_inferior): ... this.
3918 * linux-low.h (class linux_process_target): Update.
3919 * lynx-low.cc (lynx_target_ops): Update.
3920 * nto-low.cc (nto_target_ops): Update.
3921 * win32-low.cc (win32_target_ops): Update.
3922
15295543
TBA
39232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3924
3925 Turn process_stratum_target's create_inferior op into a method of
3926 process_target.
3927
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 (create_inferior): Rename the macro to ...
3931 (target_create_inferior): ... this.
3932
3933 Update the derived classes and callers below.
3934
3935 * server.cc (handle_v_run): Update.
3936 (captured_main): Update.
3937 (process_serial_event): Update.
3938 * linux-low.cc (linux_target_ops): Update.
3939 (linux_create_inferior): Turn into ...
3940 (linux_process_target::create_inferior): ... this.
3941 * linux-low.h (class linux_process_target): Update.
3942 * lynx-low.cc (lynx_target_ops): Update.
3943 (lynx_create_inferior): Turn into ...
3944 (lynx_process_target::create_inferior): ... this.
3945 * lynx-low.h (class lynx_process_target): Update.
3946 * nto-low.cc (nto_target_ops): Update.
3947 (nto_create_inferior): Turn into ...
3948 (nto_process_target::create_inferior): ... this.
3949 * nto-low.h (class nto_process_target): Update.
3950 * win32-low.cc (win32_target_ops): Update.
3951 (win32_create_inferior): Turn into ...
3952 (win32_process_target::create_inferior): ... this.
3953 * win32-low.h (class win32_process_target): Update.
3954
5ef9273d
TBA
39552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3956
3957 * target.h (class process_target): New class definition.
3958 (struct process_stratum_target) <pt>: New field with type
3959 'process_target*'.
3960 * linux-low.h (class linux_process_target): Define as a derived
3961 class of 'process_target'.
3962 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3963 as the 'pt' field.
3964 * lynx-low.h (class lynx_process_target): Define as a derived
3965 class of 'process_target'.
3966 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3967 as the 'pt' field.
3968 * nto-low.h (class nto_process_target): Define as a derived
3969 class of 'process_target'.
3970 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3971 as the 'pt' field.
3972 * win32-low.h (class win32_process_target): Define as a derived
3973 class of 'process_target'.
3974 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3975 as the 'pt' field.
3976
9f1528a1
AB
39772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * configure: Regenerate.
3980
bf84f706
MR
39812020-02-19 Maciej W. Rozycki <macro@wdc.com>
3982 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * linux-riscv-low.cc: New file.
3985 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3986 and nat/riscv-linux-tdesc.c.
3987 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3988 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3989 Define.
3990
1a627e7e
TT
39912020-02-14 Tom Tromey <tom@tromey.com>
3992
3993 * acinclude.m4: Don't include acx_configure_dir.m4.
3994 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3995 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3996 (all, install-only, uninstall, clean-info, clean)
3997 (maintainer-clean): Don't recurse.
3998 (subdir_do, all-lib): Remove.
3999 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4000 (GNULIB_H): Remove.
4001 (generated_files): Update.
4002 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4003 * configure: Rebuild.
4004 * configure.ac: Don't configure gnulib or libiberty.
4005 (GNULIB): Update.
4006
a9b34532
EZ
40072020-02-14 Eli Zaretskii <eliz@gnu.org>
4008
4009 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4010 preparing the command line for CreateProcess.
4011 (win32_create_inferior): Reflect the program name in debugging
4012 output that shows the process and its command line.
4013
feacfcac
SM
40142020-02-13 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * Makefile.in: Rename source files from .c to .cc.
4017 * %.c: Rename to %.cc.
4018 * configure.ac: Rename server.c to server.cc.
4019 * configure: Re-generate.
4020
06b3c5bd
SM
40212020-02-13 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4024
052793ad
HD
40252020-02-12 Hannes Domani <ssbssa@yahoo.de>
4026
4027 * win32-low.c (win32_create_inferior): Set signal_pid.
4028
f20e3e82
MR
40292020-02-12 Maciej W. Rozycki <macro@wdc.com>
4030 Pedro Alves <palves@redhat.com>
4031
4032 Skip building gdbserver in a cross-configuration.
4033 * configure.srv: Set $gdbserver_host depending on whether $target
4034 is $host. Use $gdbserver_host instead of $host.
4035
8ddd8e0e
SM
40362020-02-11 Simon Marchi <simon.marchi@efficios.com>
4037
4038 * configure: Re-generate.
4039
898e7f60
SM
40402020-02-11 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * configure: Re-generate.
4043
58df732b
SM
40442020-02-11 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * acinclude.m4: Update warning.m4 path.
4047
7928d571
HD
40482020-02-09 Hannes Domani <ssbssa@yahoo.de>
4049
4050 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4051 (handle_exception): Set siginfo_er.
4052 (win32_xfer_siginfo): New function.
4053
919adfe8
TT
40542020-02-07 Tom Tromey <tom@tromey.com>
4055 Pedro Alves <palves@redhat.com>
4056
4057 * README: Update build documentation.
4058 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4059 host, not target.
4060 * configure.ac: Update paths.
4061 * configure: Rebuild.
4062 * acinclude.m4: Update paths.
4063 * Makefile.in: Update include paths.
4064 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4065 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4066 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4067 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4068 (%-generated.c): Update paths.
4069 * Move entire directory from ../gdb/gdbserver.
4070
287c844a
MR
40712020-01-29 Maciej W. Rozycki <macro@wdc.com>
4072
4073 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4074
548a204f
PFC
40752020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4076
4077 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4078 assignment instead of srv_linux_obj.
4079
a2236a08
HD
40802020-01-28 Hannes Domani <ssbssa@yahoo.de>
4081
4082 * server.c (handle_qxfer_libraries): Write segment-address with
4083 paddress.
4084
bdaed379
HD
40852020-01-24 Hannes Domani <ssbssa@yahoo.de>
4086
4087 * Makefile.in (install-strip): New target.
4088 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4089 * aclocal.m4: Regenerate.
4090 * configure: Regenerate.
4091 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4092
42cd72aa
MR
40932020-01-24 Maciej W. Rozycki <macro@wdc.com>
4094
4095 * Makefile.in (SFILES): Adjust paths to point to real files.
4096 (OBS): Move waitstatus.o to target/waitstatus.o.
4097 (TAGS): Transform paths appropriately.
4098 (%.o): Rename to...
4099 (nat/%.o): ... this pattern rule.
4100 (%.o): Rename to...
4101 (target/%.o): ... this pattern rule.
4102 * configure.srv: Adjust paths throughout to include nat/ prefix
4103 with the revant files.
4104 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4105 * configure: Regenerate.
4106
42ba50ec
MR
41072020-01-24 Maciej W. Rozycki <macro@wdc.com>
4108
4109 * Makefile.in (TAGS): Remove config files from the recipe.
4110
05ea2a05
TT
41112020-01-14 Tom Tromey <tom@tromey.com>
4112
4113 * configure: Rebuild.
4114 * configure.ac: Remove any checks that were added to common.m4.
4115 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4116 lib-link.m4.
4117
01027315
TT
41182020-01-14 Tom Tromey <tom@tromey.com>
4119
4120 * server.h: Include config.h.
4121 * gdbreplay.c: Include config.h.
4122 * configure: Rebuild.
4123 * configure.ac: Don't source common.host.
4124 * acinclude.m4: Update path.
4125 * Makefile.in (INCSUPPORT): New variable.
4126 (INCLUDE_CFLAGS): Add INCSUPPORT.
4127 (SFILES): Update paths.
4128 (version-generated.c): Update path to create-version.sh.
4129 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4130
b2ceabe8
TT
41312020-01-14 Tom Tromey <tom@tromey.com>
4132
4133 * configure.ac (LIBS): Use WIN32APILIBS.
4134 (USE_WIN32API): Don't define.
4135 * configure: Rebuild.
4136
25c51f71
TT
41372020-01-14 Tom Tromey <tom@tromey.com>
4138
4139 * configure: Rebuild.
4140
c0bd321d
SM
41412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * Makefile.in (%-generated.c): Remove rule for files from
4144 regformats/i386.
4145
bb564c58
SM
41462020-01-13 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * configure: Re-generate.
4149
6e37c371
SM
41502020-01-13 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4153 Define to static.
4154 * tracepoint.c (stop_tracing, flush_trace_buffer,
4155 about_to_request_buffer_space, get_trace_state_variable_value,
4156 set_trace_state_variable_value, gdb_collect): Add declaration.
4157
df4a0200
SM
41582020-01-13 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4161 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4162 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4163 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4164 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4165 static.
4166
89e94ec9
SM
41672020-01-13 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * inferiors.c: Include gdbsupport/common-inferior.h.
4170
2552728a
SM
41712020-01-13 Simon Marchi <simon.marchi@efficios.com>
4172
4173 * hostio-errno.c: Include hostio.h.
4174
4025fa09
SM
41752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4178 prerequisite.
4179
c0b0a142
SM
41802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4181
4182 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4183 * linux-arm-tdesc.h: Include arch/arm.h.
4184
bb1183e2
SM
41852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4186
4187 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4188
f5df0b5f
SM
41892020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4190
4191 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4192 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4193
5b6d1e4f
PA
41942020-01-10 Pedro Alves <palves@redhat.com>
4195
4196 * fork-child.c (post_fork_inferior): Pass target down to
4197 startup_inferior.
4198 * inferiors.c (switch_to_thread): Add process_stratum_target
4199 parameter.
4200 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4201 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4202 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4203 * remote-utils.c (prepare_resume_reply): Pass the target to
4204 switch_to_thread.
4205 * target.c (the_target): Now a process_stratum_target.
4206 (done_accessing_memory): Pass the target to switch_to_thread.
4207 (set_target_ops): Ajust to use process_stratum_target.
4208 * target.h (struct target_ops): Rename to ...
4209 (struct process_stratum_target): ... this.
4210 (the_target, set_target_ops): Adjust.
4211 (prepare_to_access_memory): Adjust comment.
4212 * win32-low.c (child_xfer_memory): Adjust to use
4213 process_stratum_target.
4214 (win32_target_ops): Now a process_stratum_target.
4215
559e7e50
EZ
42162020-01-06 Eli Zaretskii <eliz@gnu.org>
4217 Pedro Alves <palves@redhat.com>
4218
4219 * win32-low.c (get_child_debug_event): Extract the fatal exception
4220 from the exit status and convert to the equivalent Posix signal
4221 number.
4222 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4223 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4224
48189bec
HD
42252020-01-01 Hannes Domani <ssbssa@yahoo.de>
4226
4227 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4228
5dd8bf88
JB
42292020-01-01 Joel Brobecker <brobecker@adacore.com>
4230
4231 * server.c (gdbserver_version): Change copyright year to 2020.
4232 * gdbreplay.c (gdbreplay_version): Likewise.
4233
0ad6b8ee
CB
42342019-12-19 Christian Biesinger <cbiesinger@google.com>
4235
4236 * configure: Regenerate.
4237 * configure.ac: Quote variable arguments of test.
4238
1ee7b812
BE
42392019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4240
4241 * Makefile.in: Fix build with GNU Make 3.81
4242
d9fa87f4
TT
42432019-12-16 Tom Tromey <tromey@adacore.com>
4244
4245 * server.c (get_exec_file): Constify result.
4246
ab7d13f0
CB
42472019-12-10 Christian Biesinger <cbiesinger@google.com>
4248
4249 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4250 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4251 * config.in: Regenerate.
4252 * configure: Regenerate.
4253 * configure.ac: Don't check for strerror.
4254 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4255 Call safe_strerror instead of strerror.
4256 * server.h (strerror): Remove this now-unnecessary declaration.
4257 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4258 strerror.
4259 (gdb_agent_helper_thread): Likewise.
4260 * utils.c (perror_with_name): Likewise.
4261
4da8c3a8
TT
42622019-11-26 Tom Tromey <tom@tromey.com>
4263
4264 * configure, config.in: Rebuild.
4265
21987b9c
TT
42662019-11-26 Tom Tromey <tom@tromey.com>
4267
4268 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4269 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4270 gdb_sigmask.
4271 * configure, config.in: Rebuild.
4272
5e030278
TT
42732019-11-26 Tom Tromey <tom@tromey.com>
4274
4275 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4276 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4277 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4278 * acinclude.m4: Include ax_pthread.m4.
4279 * config.in, configure: Rebuild.
4280
6d91ce9a
CB
42812019-11-26 Christian Biesinger <cbiesinger@google.com>
4282
4283 * debug.c (debug_set_output): Call safe_strerror instead of
4284 strerror.
4285 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4286 (linux_kill_one_lwp): Likewise.
4287 (linux_detach_one_lwp): Likewise.
4288 (linux_wait_for_event_filtered): Likewise.
4289 (store_register): Likewise.
4290 * lynx-low.c (lynx_attach): Likewise.
4291 * mem-break.c (insert_memory_breakpoint): Likewise.
4292 (remove_memory_breakpoint): Likewise.
4293 (delete_fast_tracepoint_jump): Likewise.
4294 (set_fast_tracepoint_jump): Likewise.
4295 (uninsert_fast_tracepoint_jumps_at): Likewise.
4296 (reinsert_fast_tracepoint_jumps_at): Likewise.
4297 * nto-low.c (nto_xfer_memory): Likewise.
4298 (nto_resume): Likewise.
4299
6cdd651f
LM
43002019-11-20 Luis Machado <luis.machado@linaro.org>
4301
4302 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4303 instead of register count.
4304 * tdesc.c (tdesc_contains_feature): New function.
4305 * tdesc.h (tdesc_contains_feature): New prototype.
4306
cd850b40
CB
43072019-11-15 Christian Biesinger <cbiesinger@google.com>
4308
4309 * Makefile.in: Add safe-strerror.c.
4310 * configure: Regenerate.
4311 * configure.ac: Don't source common.host.
4312
5abebf3c
CB
43132019-11-15 Christian Biesinger <cbiesinger@google.com>
4314
4315 * config.in: Regenerate.
4316 * configure: Regenerate.
4317
e06f3d6e
AB
43182019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4319
4320 * ax.c (ax_printf): Handle size_t_arg.
4321
ca3a04f6
CB
43222019-11-06 Christian Biesinger <cbiesinger@google.com>
4323
4324 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4325 * mi/mi-main.c (output_cores): Likewise.
4326 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4327 (linux_xfer_osdata_modules): Likewise.
4328 * remote.c (register_remote_support_xml): Likewise.
4329 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4330 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4331
e48f6033
CB
43322019-11-01 Christian Biesinger <cbiesinger@google.com>
4333
4334 * configure: Regenerate.
4335 * configure.ac: Remove check for strerror_r.
4336
e7e97a2e
CB
43372019-10-31 Christian Biesinger <cbiesinger@google.com>
4338
4339 * config.in: Regenerate.
4340 * configure: Regenerate.
4341 * configure.ac: Also check for strerror_r.
4342
75cafaa6
CB
43432019-10-31 Christian Biesinger <cbiesinger@google.com>
4344
4345 * ax.h (debug_agent): Remove duplicate declaration.
4346
30baf67b
TV
43472019-10-26 Tom de Vries <tdevries@suse.de>
4348
4349 * linux-aarch64-low.c: Fix typos in comments.
4350 * linux-arm-low.c: Same.
4351 * linux-low.c: Same.
4352 * linux-ppc-low.c: Same.
4353 * proc-service.c: Same.
4354 * regcache.h: Same.
4355 * server.c: Same.
4356 * tracepoint.c: Same.
4357 * win32-low.c: Same.
4358
52c64cf7
TT
43592019-10-25 Tom Tromey <tromey@adacore.com>
4360
4361 * utils.c (xstrdup): Remove.
4362
c12d372d
TT
43632019-10-23 Tom Tromey <tom@tromey.com>
4364
4365 * configure, config.in: Rebuild.
4366
4d0b984b
TT
43672019-10-23 Tom Tromey <tom@tromey.com>
4368
4369 * configure: Rebuild.
4370 * acinclude.m4: Use m4_include, not sinclude.
4371
c5adaa19
TT
43722019-10-17 Tom Tromey <tromey@adacore.com>
4373
4374 * configure: Rebuild.
4375 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4376 in AC_CONFIG_FILES invocation.
4377 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4378 invocation.
4379
fec4e896
CB
43802019-10-16 Christian Biesinger <cbiesinger@google.com>
4381
4382 * server.c: Include xml-builtin.h.
4383 (get_xml_features): Don't declare xml_builtins here.
4384
00975ff6
AB
43852019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * Makefile.in: Remove references to vec-ipa.o.
4388
0dc32745
AB
43892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4390
4391 * Makefile.in: Remove references to vec.c.
4392
3e6ec53a
CB
43932019-10-02 Christian Biesinger <cbiesinger@google.com>
4394
4395 * server.c (server_waiting): Change to bool.
4396 (extended_protocol): Likewise.
4397 (response_needed): Likewise.
4398 (exit_requested): Likewise.
4399 (run_once): Likewise.
4400 (report_no_resumed): Likewise.
4401 (non_stop): Likewise.
4402 (disable_packet_vCont): Likewise.
4403 (disable_packet_Tthread): Likewise.
4404 (disable_packet_qC): Likewise.
4405 (disable_packet_qfThreadInfo): Likewise.
4406 (handle_general_set): Update.
4407 (handle_detach): Update.
4408 (handle_monitor_command): Update.
4409 (handle_query): Update.
4410 (captured_main): Update.
4411 (process_serial_event): Update.
4412 * server.h (server_waiting): Change to bool.
4413 (disable_packet_vCont): Likewise.
4414 (disable_packet_Tthread): Likewise.
4415 (disable_packet_qC): Likewise.
4416 (disable_packet_qfThreadInfo): Likewise.
4417 (run_once): Likewise.
4418 (non_stop): Likewise.
4419 * target.c (target_stop_and_wait): Update.
4420
80fd2826
TT
44212019-10-02 Tom Tromey <tromey@adacore.com>
4422
4423 * Makefile.in (SFILES): Add common-inferior.c.
4424 (OBS): Add common-inferior.o.
4425 * server.c (startup_with_shell): Don't define.
4426
46f29a9a
AB
44272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4428
4429 * linux-low.c (linux_low_read_btrace): Update for change to
4430 std::vector.
4431
f9d949fb
CB
44322019-09-20 Christian Biesinger <cbiesinger@google.com>
4433
4434 * debug.c (debug_threads): Remove comment in favor of the header.
4435 * debug.h (using_threads): Add declaration.
4436 (debug_threads): Add comment.
4437 * linux-aarch64-low.c: Include debug.h and remove declaration of
4438 debug_threads.
4439 * nto-low.c: Likewise.
4440 * remote-utils.c: Likewise.
4441 * thread-db.c: Likewise.
4442
abf516c6
UW
44432019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4444
4445 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4446 and powerpc-cell64l-ipa.o.
4447 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4448 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4449 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4450 (spu*-*-*): Remove.
4451
4452 * spu-low.c: Remove file.
4453
4454 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4455 (parse_spufs_run): Remove.
4456 (ppc_get_pc): Remove Cell/B.E. support.
4457 (ppc_set_pc): Likewise.
4458 (ppc_breakpoint_at): Likewise.
4459 (ppc_arch_setup): Likewise.
4460 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4461 tdesc_powerpc_cell32l.
4462 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4463 or init_registers_powerpc_cell32l.
4464 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4465 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4466 or init_registers_powerpc_cell32l.
4467 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4468 (init_registers_powerpc_cell32l): Remove prototype.
4469 (init_registers_powerpc_cell64l): Likewise.
4470
4471 * target.h (struct target_ops): Remove qxfer_spu member.
4472 * server.c (handle_qxfer_spu): Remove.
4473 (qxfer_packets): Remove entry for "spu".
4474 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4475 * linux-low.c (SPUFS_MAGIC): Remove.
4476 (spu_enumerate_spu_ids): Remove.
4477 (linux_qxfer_spu): Remove.
4478 (linux_target_ops): Remove qxfer_spu member.
4479 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4480 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4481 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4482
2d41fa11
SDJ
44832019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4484
4485 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4486 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4487 * config.in: Regenerate.
4488 * configure: Regenerate.
4489
d59b55f0
TT
44902019-08-15 Tom Tromey <tromey@adacore.com>
4491
4492 * target.c (target_write_memory): Use gdb::byte_vector.
4493
4196ab2a
TT
44942019-08-15 Tom Tromey <tromey@adacore.com>
4495
4496 * tracepoint.c (write_inferior_data_pointer)
4497 (write_inferior_integer, write_inferior_int8)
4498 (write_inferior_uinteger, m_tracepoint_action_download)
4499 (r_tracepoint_action_download, x_tracepoint_action_download)
4500 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4501 (download_agent_expr, download_tracepoint_1)
4502 (download_trace_state_variables, upload_fast_traceframes): Update.
4503 * server.c (gdb_write_memory): Update.
4504 * remote-utils.c (relocate_instruction): Update.
4505 * proc-service.c (ps_pdwrite): Update.
4506 * mem-break.c (remove_memory_breakpoint)
4507 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4508 (uninsert_fast_tracepoint_jumps_at)
4509 (reinsert_fast_tracepoint_jumps_at): Update.
4510 * linux-x86-low.c (append_insns)
4511 (i386_install_fast_tracepoint_jump_pad)
4512 (amd64_write_goto_address, i386_write_goto_address): Update.
4513 * linux-s390-low.c (append_insns, s390_write_goto_address):
4514 Update.
4515 * linux-ppc-low.c (ppc_relocate_instruction)
4516 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4517 (ppc_write_goto_address): Update.
4518 * linux-aarch64-low.c (append_insns): Update.
4519 * target.h (struct target_ops): Update.
4520 (write_inferior_memory): Don't declare.
4521 * target.c (target_write_memory): Rename from
4522 write_inferior_memory. Remove old target_write_memory.
4523
c6778d00
TT
45242019-08-15 Tom Tromey <tromey@adacore.com>
4525
4526 * target.c (write_inferior_memory): Use std::vector.
4527
404f2902
FCE
45282019-08-06 Frank Ch. Eigler <fche@redhat.com>
4529
4530 PR build/24886
4531 * configure.ac: Drop enable-libmcheck support.
4532 * configure, config.in: Rebuild.
4533 * acinclude.m4: Don't include it.
4534
4c5aa8e0
AH
45352019-07-19 Alan Hayward <alan.hayward@arm.com>
4536
4537 * configure.srv: Remove Arm xml files.
4538
7cc17433
AH
45392019-07-19 Alan Hayward <alan.hayward@arm.com>
4540
4541 * configure.srv: Add new files. Remove xml generated files.
4542 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4543 registers.
4544 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4545 * linux-aarch32-tdesc.c: New file.
4546 * linux-aarch32-tdesc.h: New file.
4547 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4548 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4549 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4550 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4551 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4552 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4553 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4554 (arm_read_description): Call arm_linux_read_description.
4555 (initialize_low_arch): Don't init registers.
4556 * linux-arm-tdesc.c: New file.
4557 * linux-arm-tdesc.h: New file.
4558
166a82be
AH
45592019-07-10 Alan Hayward <alan.hayward@arm.com>
4560
4561 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4562 Move counter inside for.
4563 (arm_read_description): Check ptrace earlier.
4564 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4565
268a13a5
TT
45662019-07-09 Tom Tromey <tom@tromey.com>
4567
4568 * configure: Rebuild.
4569 * configure.ac: Change common to gdbsupport.
4570 * acinclude.m4: Change common to gdbsupport.
4571 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4572 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4573 common to gdbsupport.
4574 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4575 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4576 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4577 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4578 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4579 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4580 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4581 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4582 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4583 common to gdbsupport.
4584
350fab54
AH
45852019-07-04 Alan Hayward <alan.hayward@arm.com>
4586
4587 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4588 defines.
4589 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4590
2b40fda7
AH
45912019-07-04 Alan Hayward <alan.hayward@arm.com>
4592
4593 * configure.srv: Remove legacy xml.
4594 * linux-aarch64-low.c (initialize_low_arch): Remove
4595 initialize_low_tdesc call.
4596 * linux-aarch64-tdesc-selftest.c: Remove file.
4597 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4598 * linux-x86-low.c (initialize_low_arch): Remove
4599 initialize_low_tdesc call.
4600 * linux-x86-tdesc-selftest.c: Remove file.
4601 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4602
7d10623d
TV
46032019-06-20 Tom de Vries <tdevries@suse.de>
4604
4605 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4606 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4607
8d6a48df
TV
46082019-06-19 Tom de Vries <tdevries@suse.de>
4609
4610 * debug.h (debug_write): Change return type to ssize_t.
4611 * debug.c (debug_write): Same.
4612
73cc7272
TT
46132019-06-14 Tom Tromey <tom@tromey.com>
4614
4615 * configure.ac: Use new path to gnulib.
4616 * configure: Rebuild.
4617 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4618 to gnulib.
4619
08f10e02
TT
46202019-06-11 Tom Tromey <tom@tromey.com>
4621
4622 * Makefile.in (SFILES): Add alloc.c.
4623 (OBS): Add alloc.o.
4624 (IPA_OBJS): Add alloc-ipa.o.
4625 (alloc-ipa.o): New target.
4626 (%.o: ../%.c): New pattern rule.
4627
422186a9
TT
46282019-06-10 Tom Tromey <tromey@adacore.com>
4629
4630 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4631 end warning with a newline.
4632 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4633 newline.
4634 * thread-db.c (attach_thread): Don't end warning with a newline.
4635 (thread_db_notice_clone): Likewise.
4636 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4637 newline.
4638 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4639 end warning with a newline.
4640
b02f78f9
PA
46412019-06-04 Pedro Alves <palves@redhat.com>
4642
4643 * server.c (captured_main): Use make_unique_xstrdup.
4644
88ed7edb
TT
46452019-06-02 Tom Tromey <tom@tromey.com>
4646
4647 * gdbreplay.c (fromhex): Remove.
4648 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4649
33a6bc35
TT
46502019-05-29 Tom Tromey <tromey@adacore.com>
4651
4652 * configure: Rebuild.
4653
e90a813d
KB
46542019-05-06 Kevin Buettner <kevinb@redhat.com>
4655
4656 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4657 sign extension code on 32-bit builds.
4658
353ea2d1
EZ
46592019-05-03 Eli Zaretskii <eliz@gnu.org>
4660
4661 * remote-utils.c:
4662 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4663
b494cdff
TT
46642019-04-19 Tom Tromey <tom@tromey.com>
4665
4666 * server.c (struct vstop_notif): Derive from notif_event.
4667 <base>: Remove.
4668 (queue_stop_reply): Update.
4669 (remove_all_on_match_ptid): Change type. Rewrite.
4670 (discard_queued_stop_replies): Rewrite.
4671 (in_queued_stop_replies_ptid): Change type.
4672 (in_queued_stop_replies): Rewrite.
4673 (notif_stop): Update.
4674 (queue_stop_reply_callback): Update.
4675 (captured_main): Don't call initialize_notif.
4676 (push_stop_notification): Update.
4677 * notif.c (notif_write_event, handle_notif_ack)
4678 (notif_event_enque, notif_push): Update.
4679 (notif_event_xfree, initialize_notif): Remove.
4680 * notif.h (struct notif_event): Include <list>, not
4681 "common/queue.h".
4682 (struct notif_server) <queue>: Now a std::list.
4683 (notif_event_p): Remove typedef.
4684 (initialize_notif): Don't declare.
4685 (struct notif_event): Add virtual destructor.
4686
a7e559cc
AH
46872019-04-17 Alan Hayward <alan.hayward@arm.com>
4688
4689 * ax.c (ax_vdebug): Call debug_printf.
4690 * debug.c (debug_write): New function.
4691 * debug.h (debug_write): New declaration.
4692 * linux-low.c (sigchld_handler): Call debug_write.
4693
aeb2e706
AH
46942019-04-17 Alan Hayward <alan.hayward@arm.com>
4695
4696 * debug.c (debug_set_output): New function.
4697 (debug_vprintf): Send output to debug_file.
4698 (debug_flush): Likewise.
4699 * debug.h (debug_set_output): New declaration.
4700 * server.c (handle_monitor_command): Add debug-file option.
4701 (captured_main): Likewise.
4702
c1bc0935
AH
47032019-04-17 Alan Hayward <alan.hayward@arm.com>
4704
4705 * debug.c (remote_debug): Add definition.
4706 * debug.h (remote_debug): Add declaration.
4707 * hostio.c (remote_debug): Remove declaration.
4708 * remote-utils.c (struct ui_file): Likewise.
4709 (remote_debug): Likewise.
4710 * remote-utils.h (remote_debug): Likewise,
4711 * server.c (remote_debug): Remove definition.
4712
3f52fdbc
KB
47132019-04-10 Kevin Buettner <kevinb@redhat.com>
4714
4715 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4716 when using a 64-bit gdbserver.
4717
b0319eaa
TT
47182019-04-09 Tom Tromey <tromey@adacore.com>
4719
4720 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4721
eedc3f4f
TT
47222019-04-08 Tom Tromey <tom@tromey.com>
4723
4724 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4725 throw.
4726 (linux_resume_one_lwp): Likewise.
4727
230d2906
TT
47282019-04-08 Tom Tromey <tom@tromey.com>
4729
4730 * gdbreplay.c: Update.
4731 * linux-low.c: Update.
4732 * server.c: Update.
4733
a70b8144
TT
47342019-04-08 Tom Tromey <tom@tromey.com>
4735
4736 * server.c: Use C++ exception handling.
4737 * linux-low.c: Use C++ exception handling.
4738 * gdbreplay.c: Use C++ exception handling.
4739
3d6e9d23
TT
47402019-04-08 Tom Tromey <tom@tromey.com>
4741
4742 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4743 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4744 (captured_main, main): Update.
4745 * gdbreplay.c (main): Update.
4746
0570503d
PFC
47472019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4748
4749 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4750 value in argument pointer, return 1 if the entry is found and 0
4751 otherwise. Move comment.
4752 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4753 * linux-low.h (linux_get_auxv): Declare.
4754 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4755
227a9e65
TT
47562019-04-05 Tom Tromey <tromey@adacore.com>
4757
4758 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4759 variables.
4760
69f4c9cc
AH
47612019-03-28 Alan Hayward <alan.hayward@arm.com>
4762
4763 * linux-low.c (AT_HWCAP2): Add define if not already included.
4764
974c89e0
AH
47652019-03-26 Alan Hayward <alan.hayward@arm.com>
4766
4767 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4768 (aarch64_arch_setup): Call linux_get_hwcap.
4769 * linux-arm-low.c (arm_get_hwcap): Remove function.
4770 (arm_read_description): Call linux_get_hwcap.
4771 * linux-low.c (linux_get_auxv): New function.
4772 (linux_get_hwcap): Likewise.
4773 (linux_get_hwcap2): Likewise.
4774 * linux-low.h (linux_get_hwcap): New declaration.
4775 (linux_get_hwcap2): Likewise.
4776 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4777 (ppc_arch_setup): Call linux_get_hwcap.
4778 * linux-s390-low.c (s390_get_hwcap): Remove function.
4779 (s390_arch_setup): Call linux_get_hwcap.
4780
1ef53e6b
AH
47812019-03-22 Alan Hayward <alan.hayward@arm.com>
4782 Jiong Wang <jiong.wang@arm.com>
4783
4784 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4785 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4786 to fail.
4787 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4788
ee4fbcfa
AH
47892019-03-22 Alan Hayward <alan.hayward@arm.com>
4790 Jiong Wang <jiong.wang@arm.com>
4791
4792 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4793 (aarch64_get_hwcap): New function.
4794 (aarch64_arch_setup): Read APIA hwcap.
4795
6dc0ebde
AH
47962019-03-22 Alan Hayward <alan.hayward@arm.com>
4797 Jiong Wang <jiong.wang@arm.com>
4798
4799 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4800 (initialize_low_tracepoint): Likewise.
4801 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4802 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4803 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4804 (aarch64_linux_read_description): Likewise.
4805 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4806
1163a4b7
JB
48072019-03-12 John Baldwin <jhb@FreeBSD.org>
4808
4809 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4810 i386_create_target_description for 'segments' parameter.
4811 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4812 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4813 * win32-i386-low.c (i386_arch_setup): Likewise.
4814
d3a70e03
TT
48152019-03-12 Tom Tromey <tromey@adacore.com>
4816
4817 * linux-low.c (iterate_over_lwps): Update.
4818
37991b4f
TT
48192019-03-06 Tom Tromey <tom@tromey.com>
4820
4821 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4822 (captured_main): Use SCOPE_EXIT.
4823
45950eb6
SDJ
48242019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4825
4826 * configure.srv: Use '$enable_unittest' instead of '$development'
4827 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4828 case.
4829
43ac54fc
TT
48302019-02-27 Tom Tromey <tromey@adacore.com>
4831
4832 * gdbreplay.c (logchar): Handle \r\n.
4833
df0da8a2
AH
48342019-02-07 Alan Hayward <alan.hayward@arm.com>
4835
4836 * linux-low.c (linux_attach): Add process before lwp.
4837 * server.c (attach_inferior): Check if already attached.
4838
1a5c2598
TT
48392019-02-07 Tom Tromey <tom@tromey.com>
4840
4841 * x86-tdesc.h: Rename include guard.
4842 * x86-low.h: Add include guard.
4843 * wincecompat.h: Rename include guard.
4844 * win32-low.h: Add include guard.
4845 * utils.h: Rename include guard.
4846 * tracepoint.h: Rename include guard.
4847 * tdesc.h: Rename include guard.
4848 * target.h: Rename include guard.
4849 * server.h: Rename include guard.
4850 * remote-utils.h: Rename include guard.
4851 * regcache.h: Rename include guard.
4852 * nto-low.h: Rename include guard.
4853 * notif.h: Add include guard.
4854 * mem-break.h: Rename include guard.
4855 * lynx-low.h: Add include guard.
4856 * linux-x86-tdesc.h: Add include guard.
4857 * linux-s390-tdesc.h: Add include guard.
4858 * linux-ppc-tdesc-init.h: Add include guard.
4859 * linux-low.h: Add include guard.
4860 * linux-aarch64-tdesc.h: Add include guard.
4861 * linux-aarch32-low.h: Add include guard.
4862 * inferiors.h: Rename include guard.
4863 * i387-fp.h: Rename include guard.
4864 * hostio.h: Rename include guard.
4865 * gdbthread.h: Rename include guard.
4866 * gdb_proc_service.h: Rename include guard.
4867 * event-loop.h: Rename include guard.
4868 * dll.h: Rename include guard.
4869 * debug.h: Rename include guard.
4870 * ax.h: Rename include guard.
4871
956cc47c
SN
48722018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4873
4874 PR gdb/23985
4875 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4876 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4877
a0707f3c
TT
48782019-01-25 Tom Tromey <tom@tromey.com>
4879
4880 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4881
0747795c
TT
48822019-01-25 Tom Tromey <tom@tromey.com>
4883
4884 * win32-low.c: Fix common/ includes.
4885 * win32-i386-low.c: Fix common/ includes.
4886 * tracepoint.c: Fix common/ includes.
4887 * thread-db.c: Fix common/ includes.
4888 * target.h: Fix common/ includes.
4889 * symbol.c: Fix common/ includes.
4890 * spu-low.c: Fix common/ includes.
4891 * server.h: Fix common/ includes.
4892 * server.c: Fix common/ includes.
4893 * remote-utils.c: Fix common/ includes.
4894 * regcache.h: Fix common/ includes.
4895 * regcache.c: Fix common/ includes.
4896 * nto-x86-low.c: Fix common/ includes.
4897 * notif.h: Fix common/ includes.
4898 * mem-break.h: Fix common/ includes.
4899 * lynx-low.c: Fix common/ includes.
4900 * lynx-i386-low.c: Fix common/ includes.
4901 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4902 * linux-x86-low.c: Fix common/ includes.
4903 * linux-low.c: Fix common/ includes.
4904 * inferiors.h: Fix common/ includes.
4905 * i387-fp.c: Fix common/ includes.
4906 * hostio.c: Fix common/ includes.
4907 * hostio-errno.c: Fix common/ includes.
4908 * gdbthread.h: Fix common/ includes.
4909 * gdbreplay.c: Fix common/ includes.
4910 * fork-child.c: Fix common/ includes.
4911 * event-loop.c: Fix common/ includes.
4912 * ax.c:
4913 (enum gdb_agent_op): Fix common/ includes.
4914
be6d4f74
TT
49152019-01-21 Tom Tromey <tom@tromey.com>
4916
4917 * tracepoint.c: Fix includes.
4918 * remote-utils.c: Fix includes.
4919 * linux-x86-low.c: Fix includes.
4920
66d91b39
JB
49212019-01-01 Joel Brobecker <brobecker@adacore.com>
4922
4923 * gdbreplay.c (gdbreplay_version): Update copyright year in
4924 version message.
4925 * server.c (gdbserver_version): Likewise.
4926
754e3168
AH
49272018-12-05 Alan Hayward <alan.hayward@arm.com>
4928
4929 * linux-low.c (add_lwp): Switch ordering.
4930
d105de22
TT
49312018-11-29 Tom Tromey <tom@tromey.com>
4932
4933 * win32-low.c (win32_join): Take pid, not process.
4934 * target.h (struct target_ops) <join>: Change argument type.
4935 (join_inferior): Change argument name.
4936 * spu-low.c (spu_join): Take pid, not process.
4937 * server.c (handle_detach): Preserve pid before destroying
4938 process.
4939 * lynx-low.c (lynx_join): Take pid, not process.
4940 * linux-low.c (linux_join): Take pid, not process.
4941
50138245
AH
49422018-11-23 Alan Hayward <alan.hayward@arm.com>
4943
4944 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4945 (aarch64_cannot_fetch_register): Likewise.
4946 (struct linux_target_ops): Update references.
4947
64f57f3d
PFC
49482018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4949
4950 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4951
8d619c01
EBM
49522018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4953
4954 * configure.srv (ipa_ppc_linux_regobj): Add
4955 powerpc-isa207-htm-vsx32l-ipa.o and
4956 powerpc-isa207-htm-vsx64l-ipa.o.
4957 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4958 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4959 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4960 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4961 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4962 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4963 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4964 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4965 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4966 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4967 (init_registers_powerpc_isa207_htm_vsx32l)
4968 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4969 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4970 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4971 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4972 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4973 (ppc_store_tm_ctarregset): New functions.
4974 (ppc_regsets): Add entries for HTM regsets.
4975 (ppc_arch_setup): Set htm in features struct when needed. Set
4976 sizes for the HTM regsets.
4977 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4978 (initialize_low_arch): Call
4979 init_registers_powerpc_isa207_htm_vsx32l and
4980 init_registers_powerpc_isa207_htm_vsx64l.
4981 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4982 PPC_TDESC_ISA207_HTM_VSX.
4983 (initialize_low_tracepoint): Call
4984 init_registers_powerpc_isa207_htm_vsx32l and
4985 init_registers_powerpc_isa207_htm_vsx64l.
4986
232bfb86
EBM
49872018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4988
4989 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4990 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4991 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4992 (ppc_store_pmuregset): New functions.
4993 (ppc_regsets): Add entries for ebb and pmu regsets.
4994 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4995 pmu regsets are available. Set sizes for these regsets.
4996
f2cf6173
EBM
49972018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4998
4999 * configure.srv (ipa_ppc_linux_regobj): Add
5000 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5001 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5002 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5003 rs6000/powerpc-isa207-vsx32l.xml, and
5004 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5005 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5006 <PPC_TDESC_ISA207_VSX>: New enum value.
5007 (init_registers_powerpc_isa207_vsx32l): Declare.
5008 (init_registers_powerpc_isa207_vsx64l): Declare.
5009 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5010 (ppc_store_tarregset): New function.
5011 (ppc_regsets): Add entry for the TAR regset.
5012 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5013 size for the TAR regsets.
5014 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5015 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5016 and init_registers_powerpc_isa207_vsx64l.
5017 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5018 (initialize_low_tracepoint): Call
5019 init_registers_powerpc_isa207_vsx32l and
5020 init_registers_powerpc_isa207_vsx64l.
5021
7ca18ed6
EBM
50222018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5023 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5024
5025 * configure.srv (ipa_ppc_linux_regobj): Add
5026 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5027 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5028 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5029 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5030 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5031 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5032 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5033 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5034 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5035 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5036 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5037 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5038 (ppc_hwcap): Add comment.
5039 (ppc_hwcap2): New global.
5040 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5041 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5042 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5043 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5044 when needed. Set sizes for the the DSCR and PPR regsets.
5045 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5046 (initialize_low_arch): Call
5047 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5048 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5049 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5050 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5051 (initialize_low_tracepoint): Call
5052 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5053 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5054
5c849b22
PFC
50552018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5056
5057 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5058
8ecfd7bd
SDJ
50592018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5060 Simon Marchi <simark@simark.ca>
5061
5062 * acinclude.m4: Include "../selftest.m4".
5063 * configure: Regenerate.
5064 * configure.ac: Use "GDB_AC_SELFTEST".
5065 * configure.srv: Use "$enable_unittests" instead of
5066 "$development" when checking whether unit tests have been
5067 enabled.
5068 * server.c (captured_main): Update message informing that
5069 selftests have been disabled.
5070
96643e35
TT
50712018-10-04 Tom Tromey <tom@tromey.com>
5072
5073 * configure: Rebuild.
5074
da4ae14a
TT
50752018-10-04 Tom Tromey <tom@tromey.com>
5076
5077 * server.c (handle_status): Rename inner "thread".
5078 (process_serial_event): Declare "res" in 'm' case.
5079 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5080 (iterate_over_lwps): Rename inner "thread".
5081 (linux_qxfer_libraries_svr4): Rename inner "len".
5082 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5083
7c619dbd
GB
50842018-10-01 Gary Benson <gbenson@redhat.com>
5085
5086 * gdb_proc_service.h: Moved common code to
5087 common/gdb_proc_service.h.
5088
3795e814
GB
50892018-10-01 Gary Benson <gbenson@redhat.com>
5090
5091 * gdb_proc_service.h: Synchronize comments and whitespace with
5092 GDB's version of this file.
5093
49b036f1
TT
50942018-09-25 Tom Tromey <tom@tromey.com>
5095
5096 * configure: Rebuild.
5097 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5098
8ff03f0b
SM
50992018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5100
5101 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5102 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5103 ($(IPA_LIB)): Sort IPA_OBJS.
5104
a1cd91dc
SM
51052018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5106
5107 * Makefile.in: Remove references to $(ADD_DEPS).
5108
752312ba
TT
51092018-09-16 Tom Tromey <tom@tromey.com>
5110
5111 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5112 variables.
5113 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5114 variables.
5115
f1628857
TT
51162018-09-05 Tom Tromey <tom@tromey.com>
5117
5118 * configure: Rebuild.
5119
ad202fcc
SM
51202018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5121
5122 PR build/23399
5123 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5124
d3d8724a
TT
51252018-08-27 Tom Tromey <tom@tromey.com>
5126
5127 PR build/23087:
5128 * configure: Rebuild.
5129
b4f183d2
TT
51302018-08-27 Tom Tromey <tom@tromey.com>
5131
5132 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5133 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5134 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5135 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5136 (s390x_emit_stack_adjust): Add casts to unsigned char.
5137
4e2aa472
SM
51382018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5139
5140 PR gdb/23374
5141 PR gdb/23375
5142 * server.h (struct client_state) <disable_randomization>:
5143 Initialize to 1.
5144
cf4088a9
SM
51452018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5146
5147 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5148 variable.
5149 (mips_supply_ptrace_register): Likewise.
5150
a0de763e
TT
51512018-07-22 Tom Tromey <tom@tromey.com>
5152
5153 * configure: Rebuild.
5154
b0a7723d
TT
51552018-07-22 Tom Tromey <tom@tromey.com>
5156
5157 * win32-low.c (win32_create_inferior): Remove unused variables.
5158 * gdbreplay.c (remote_open): Remove unused variable.
5159 * remote-utils.c (remote_prepare): Remove unused variable.
5160 * x86-tdesc.h (X86_TDESC_H): Define.
5161 (amd64_expedite_regs): Define conditionally.
5162 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5163 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5164 * remote-utils.c (readchar): Remove unused variable.
5165
a780ef4f
PA
51662018-07-13 Pedro Alves <palves@redhat.com>
5167
5168 * linux-low.c (linux_kill): Change parameter to process_info
5169 pointer instead of pid. Adjust.
5170 * lynx-low.c (lynx_kill): Likewise.
5171 * nto-low.c (nto_kill): Likewise.
5172 * spu-low.c (spu_kill): Likewise.
5173 * win32-low.c (win32_kill): Likewise.
5174 * server.c (handle_v_kill, kill_inferior_callback)
5175 (detach_or_kill_for_exit): Adjust.
5176 * target.c (kill_inferior): Change parameter to process_info
5177 pointer instead of pid. Adjust.
5178 * target.h (struct target_ops) <kill>: Change parameter to
5179 process_info pointer instead of pid. Adjust all implementations
5180 and callers.
5181 (kill_inferior): Likewise.
5182
ef2ddb33
PA
51832018-07-13 Pedro Alves <palves@redhat.com>
5184
5185 * linux-low.c (linux_detach, linux_join): Change parameter to
5186 process_info pointer instead of pid. Adjust.
5187 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5188 * nto-low.c (nto_detach): Likewise.
5189 * spu-low.c (spu_detach, spu_join): Likewise.
5190 * win32-low.c (win32_detach, win32_join): Likewise.
5191 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5192 * target.h (struct target_ops) <detach, join>: Change parameter to
5193 process_info pointer instead of pid. Adjust all implementations
5194 and callers.
5195 (detach_inferior, join_inferior): Rename 'pid' parameter to
5196 'proc'.
5197
c7ab0aef
SDJ
51982018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5199 Jan Kratochvil <jan.kratochvil@redhat.com>
5200 Paul Fertser <fercerpav@gmail.com>
5201 Tsutomu Seki <sekiriki@gmail.com>
5202
5203 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5204 (OBS): Add 'common/netstuff.o'.
5205 (GDBREPLAY_OBS): Likewise.
5206 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5207 (remote_open): Implement support for IPv6
5208 connections.
5209 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5210 and 'wspiapi.h'.
5211 (handle_accept_event): Accept connections from IPv6 sources.
5212 (remote_prepare): Handle IPv6-style hostnames; implement
5213 support for IPv6 connections.
5214 (remote_open): Implement support for printing connections from
5215 IPv6 sources.
5216
31445d10
PA
52172018-07-11 Pedro Alves <palves@redhat.com>
5218
5219 PR gdb/23377
5220 * mem-break.c (any_persistent_commands): Add process_info
5221 parameter and use it instead of relying on the current process.
5222 Change return type to bool.
5223 * mem-break.h (any_persistent_commands): Add process_info
5224 parameter and change return type to bool.
5225 * server.c (handle_detach): Remove require_running_or_return call.
5226 Look up the process_info for the process we're about to detach.
5227 If not found, return back error to GDB. Adjust
5228 any_persistent_commands call to pass down a process pointer.
5229
cb197132
PA
52302018-07-11 Pedro Alves <palves@redhat.com>
5231
5232 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5233 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5234 instead of collect_register_by_name.
5235 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5236 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5237
1b919490
VB
52382018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5239 Pedro Alves <palves@redhat.com>
5240
5241 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5242
d7e15655
TT
52432018-07-03 Tom Tromey <tom@tromey.com>
5244
5245 * linux-low.c: Update.
5246 * lynx-low.c: Update.
5247 * mem-break.c: Update.
5248 * nto-low.c: Update.
5249 * remote-utils.c: Update.
5250 * server.c: Update.
5251 * spu-low.c: Update.
5252 * target.c: Update.
5253 * win32-low.c: Update.
5254
26a57c92
TT
52552018-07-03 Tom Tromey <tom@tromey.com>
5256
5257 * server.c: Update.
5258
0e998d96
TT
52592018-07-03 Tom Tromey <tom@tromey.com>
5260
5261 * linux-low.c: Update.
5262
cc6bcb54
TT
52632018-07-03 Tom Tromey <tom@tromey.com>
5264
5265 * target.c: Update.
5266
e38504b3
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 * nto-low.c: Update.
5273 * remote-utils.c: Update.
5274 * server.c: Update.
5275 * spu-low.c: Update.
5276 * target.c: Update.
5277 * thread-db.c: Update.
5278
e99b03dc
TT
52792018-07-03 Tom Tromey <tom@tromey.com>
5280
5281 * linux-low.c: Update.
5282 * linux-mips-low.c: Update.
5283 * lynx-low.c: Update.
5284 * mem-break.c: Update.
5285 * nto-low.c: Update.
5286 * remote-utils.c: Update.
5287 * server.c: Update.
5288 * spu-low.c: Update.
5289 * target.c: Update.
5290 * tracepoint.c: Update.
5291
f2907e49
TT
52922018-07-03 Tom Tromey <tom@tromey.com>
5293
5294 * linux-low.c: Update.
5295 * linux-ppc-low.c: Update.
5296 * linux-x86-low.c: Update.
5297 * proc-service.c: Update.
5298 * server.c: Update.
5299 * spu-low.c: Update.
5300 * thread-db.c: Update.
5301 * win32-low.c: Update.
5302
fd79271b
TT
53032018-07-03 Tom Tromey <tom@tromey.com>
5304
5305 * linux-low.c: Update.
5306 * lynx-low.c: Update.
5307 * nto-low.c: Update.
5308 * remote-utils.c: Update.
5309 * spu-low.c: Update.
5310 * thread-db.c: Update.
5311 * win32-low.c: Update.
5312
c0867626
SDJ
53132018-06-29 Joel Brobecker <brobecker@adacore.com>
5314
5315 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5316 parameter in call to 'amd64_create_target_description'.
5317
2512d7ef
JK
53182018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5319
5320 * x86-tdesc.h: Remove executable permission flag.
5321
d0ac1c44
SM
53222018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5323
5324 * configure.ac: Remove AC_PREREQ, add missing quoting.
5325 * configure: Re-generate.
5326 * config.in: Re-generate.
5327 * aclocal.m4: Re-generate.
5328
c4eb05ff
SM
53292018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5330
5331 * tracepoint.h (current_traceframe): Remove declaration.
5332
02895270
AH
53332018-06-18 Alan Hayward <alan.hayward@arm.com>
5334
5335 * linux-aarch64-low.c (is_sve_tdesc): New function.
5336 (aarch64_sve_regs_copy_to_regcache): Likewise.
5337 (aarch64_sve_regs_copy_from_regcache): Likewise.
5338 (aarch64_regs_info): Add SVE checks.
5339 (initialize_low_arch): Initialize SVE.
5340
e9902bfc
AH
53412018-06-18 Alan Hayward <alan.hayward@arm.com>
5342
5343 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5344
fefa175e
AH
53452018-06-11 Alan Hayward <alan.hayward@arm.com>
5346
5347 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5348 (initialize_low_tracepoint): Likewise
5349 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5350 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5351 param.
5352 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5353 checks.
5354 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5355
b91ad3ff
AH
53562018-06-11 Alan Hayward <alan.hayward@arm.com>
5357
5358 * server.h (PBUFSIZ): Increase size
5359
f868386e
AH
53602018-06-11 Alan Hayward <alan.hayward@arm.com>
5361
5362 * regcache.c (regcache::raw_compare): New function.
5363 * regcache.h (regcache::raw_compare): New declaration.
5364
9c861883
AH
53652018-06-11 Alan Hayward <alan.hayward@arm.com>
5366
5367 * regcache.c (new_register_cache): Use new.
5368 (free_register_cache): Use delete.
5369 (register_data): Use const.
5370 (supply_register): Move body inside regcache.
5371 (regcache::raw_supply): New override function.
5372 (collect_register): Move body inside regcache.
5373 (regcache::raw_collect): New override function.
5374 (regcache::get_register_status): New override function.
5375 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5376
40591844
TT
53772018-06-09 Tom Tromey <tom@tromey.com>
5378
5379 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5380 declare queue.
5381 (event_queue): Use std::queue.
5382 (gdb_event_xfree): Remove.
5383 (initialize_event_loop, process_event, wait_for_event): Update.
5384
6341380d
SC
53852018-06-08 Stan Cox <scox@redhat.com>
5386
5387 * win32-low.c (win32_create_inferior): last_ptid and last_status
5388 moved to client_state.
5389
03349c93
PA
53902018-06-08 Pedro Alves <palves@redhat.com>
5391
5392 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5393 common/common-exceptions.o, common/common-utils.o,
5394 common/errors.o, common/print-utils.o and utils.o.
5395 * gdbreplay.c: Include "common-defs.h" instead of the two
5396 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5397 string.h or alloca.h.
5398 (perror_with_name): Delete.
5399 (remote_open): Use xstrdup instead of strdup.
5400 (main): Rename to ...
5401 (captured_main): ... this.
5402 (main): New.
5403
8dcc53b3
TT
54042018-06-08 Tom Tromey <tom@tromey.com>
5405
5406 * linux-low.c (linux_low_read_btrace): Update.
5407
c12a5089
SC
54082018-06-04 Stan Cox <scox@redhat.com>
5409
5410 * server.h (struct client_state): New.
5411 * server.c (cont_thread, general_thread, multi_process)
5412 (report_fork_events, report_vfork_events, report_exec_events)
5413 (report_thread_events, swbreak_feature, hwbreak_feature)
5414 (vCont_supported, disable_randomization, pass_signals)
5415 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5416 Moved to client_state.
5417 * remote-utils.c (remote_debug, noack_mode)
5418 (transport_is_reliable): Moved to client_state.
5419 * tracepoint.c (current_traceframe): Moved to client_state.
5420
5421 Update all callers.
5422 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5423 linux-low.c, remote-utils.h, target.c: Use client_state.
5424
122394f1
AH
54252018-05-31 Alan Hayward <alan.hayward@arm.com>
5426
5427 * configure.srv: Add new c/h file.
5428
95228a0d
AH
54292018-05-31 Alan Hayward <alan.hayward@arm.com>
5430
5431 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5432 null VQ.
5433
d8dab6c3
MR
54342018-05-25 Maciej W. Rozycki <macro@mips.com>
5435
5436 * gdb.arch/mips-fpregset-core.exp: New test.
5437 * gdb.arch/mips-fpregset-core.c: New test source.
5438
81e25b7c
EK
54392018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5440
5441 PR server/23198
5442 * hostio.c (require_int): Do not report overflow for integers
5443 between 0xfffffff and 0x7fffffff.
5444
7e947ad3
MR
54452018-05-22 Maciej W. Rozycki <macro@mips.com>
5446
5447 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5448 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5449 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5450 functions.
5451 (the_low_target): Wire them.
5452
1d75a658
PFC
54532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5454
5455 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5456 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5457 mode. Call collect_register_by_name with vscr using
5458 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5459 (ppc_store_vrregset): Add and set vscr_offset variable as in
5460 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5461 vscr_offset.
5462
d078308a
PFC
54632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5464
5465 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5466 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5467 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5468
7273b5fc
PFC
54692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5470
5471 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5472 (ppc_store_vsxregset): Likewise.
5473 (ppc_fill_vrregset): Likewise.
5474 (ppc_store_vrregset): Likewise.
5475 (ppc_fill_evrregset): Likewise.
5476 (ppc_store_evrregset): Likewise.
5477 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5478 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5479 needed.
5480
2e077f5e
PFC
54812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5482
5483 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5484 wordsize of the inferior. Call ppc_linux_target_wordsize.
5485
bd64614e
PFC
54862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5487
5488 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5489 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5490 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5491 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5492 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5493 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5494 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5495 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5496 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5497 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5498 (tdesc_powerpc_e500l): Remove.
5499 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5500 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5501 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5502 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5503 linux-ppc-tdesc.h.
5504 (ppc_arch_setup): Remove target description matching code. Fill a
5505 ppc_linux_features struct and call ppc_linux_match_description
5506 with it.
5507
75d74cca
MR
55082018-05-22 Maciej W. Rozycki <macro@mips.com>
5509
5510 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5511 width of the requested register exceeds the width of the
5512 `ptrace' data type.
5513 (mips_cannot_store_register): Likewise.
5514
e4439e43
MR
55152018-05-21 Maciej W. Rozycki <macro@mips.com>
5516
5517 * linux-mips-low.c (mips_fetch_register): New function. Update
5518 preceding comment.
5519 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5520 (the_low_target): Wire `mips_fetch_register'.
5521
55271bf9
JB
55222018-05-10 Joel Brobecker <brobecker@adacore.com>
5523
5524 * lynx-i386-low.c (LYNXOS_178): New macro.
5525 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5526 the layout on LynxOS-178.
5527 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5528 handle floating point registers that are not supported by
5529 LynxOS-178.
5530
1a34f210
TT
55312018-05-10 Tom Tromey <tom@tromey.com>
5532
5533 * configure: Rebuild.
5534
190852c8
JB
55352018-05-10 Joel Brobecker <brobecker@adacore.com>
5536
5537 PR server/23158:
5538 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5539 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5540 Use it to set the expedite_regs field in the given tdesc.
5541 * x86-tdesc.h: New file.
5542 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5543 Adjust following the addition of the new expedite_regs parameter
5544 to init_target_desc.
5545 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5546 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5547 (i386_linux_read_description, amd64_linux_read_description):
5548 Adjust following the addition of the new expedite_regs parameter
5549 to init_target_desc.
5550 * lynx-i386-low.c: #include "x86-tdesc.h".
5551 (lynx_i386_arch_setup): Adjust following the addition of the new
5552 expedite_regs parameter to init_target_desc.
5553 * nto-x86-low.c: #include "x86-tdesc.h".
5554 (nto_x86_arch_setup): Adjust following the addition of the new
5555 expedite_regs parameter to init_target_desc.
5556 * win32-i386-low.c: #include "x86-tdesc.h".
5557 (i386_arch_setup): Adjust following the addition of the new
5558 expedite_regs parameter to init_target_desc.
5559
7dbac825
JB
55602018-05-10 Joel Brobecker <brobecker@adacore.com>
5561
5562 PR server/23158:
5563 * win32-low.c (win32_create_inferior): Add call to my_wait
5564 setting last_status global.
5565
906994d9
JB
55662018-05-10 Joel Brobecker <brobecker@adacore.com>
5567
5568 PR server/23158:
5569 * win32-low.c (create_process): Only call gdb_tilde_expand if
5570 inferior_cwd is not NULL.
5571
8ee22052
AB
55722018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5575 registers to the cache if their values have changed.
5576 (i387_xsave_to_cache): Provide default values for x87 control
5577 registers when these features are available, but disabled.
5578 * regcache.c (supply_register_by_name_zeroed): New function.
5579 * regcache.h (supply_register_by_name_zeroed): Declare new
5580 function.
5581
aff689d3
TT
55822018-05-07 Tom Tromey <tom@tromey.com>
5583
5584 * configure: Rebuild.
5585
85e26832
TT
55862018-05-04 Tom Tromey <tom@tromey.com>
5587
5588 * configure: Rebuild.
5589
a3b60e45
JK
55902018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5591 Pedro Alves <palves@redhat.com>
5592
5593 * linux-aarch64-low.c (aarch64_stopped_data_address):
5594 Likewise.
5595
632e107b
TT
55962018-04-27 Tom Tromey <tom@tromey.com>
5597
5598 * configure: Rebuild.
5599
458412c3
TT
56002018-04-23 Tom Tromey <tom@tromey.com>
5601
5602 * configure: Rebuild.
5603
f31c089e
SM
56042018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5605
5606 * Makefile.in (depcomp): Add "..".
5607 (all_deps_files): New and use it.
5608
b319b098
AH
56092018-04-18 Alan Hayward <alan.hayward@arm.com>
5610
5611 * configure.srv (aarch64*-*-linux*): Don't include xml.
5612 (i[34567]86-*-cygwin*): Likewise.
5613 (i[34567]86-*-linux*): Likewise.
5614 (i[34567]86-*-lynxos*): Likewise.
5615 (i[34567]86-*-mingw32ce*): Likewise.
5616 (i[34567]86-*-mingw*): Likewise.
5617 (i[34567]86-*-nto*): Likewise.
5618 (tic6x-*-uclinux): Likewise.
5619 (x86_64-*-linux*): Likewise.
5620 (x86_64-*-mingw*): Likewise.
5621 (x86_64-*-cygwin*): Likewise.
5622
3b74854b
AH
56232018-04-18 Alan Hayward <alan.hayward@arm.com>
5624
5625 * tdesc.c: Remove xml parameter.
5626
e98577a9
AH
56272018-04-18 Alan Hayward <alan.hayward@arm.com>
5628
5629 * server.c (get_features_xml): Remove cast.
5630 * tdesc.c (void target_desc::accept): Fill in function.
5631 (tdesc_get_features_xml): Remove old xml creation.
5632 (print_xml_feature::visit_pre): Add xml vistor.
5633 * tdesc.h (struct target_desc): Make xmltarget mutable.
5634 (tdesc_get_features_xml): Remove declaration.
5635
d278f585
AH
56362018-04-18 Alan Hayward <alan.hayward@arm.com>
5637
5638 * tdesc.c (tdesc_architecture_name): Add new function.
5639 (tdesc_osabi_name): Likewise.
5640 (tdesc_get_features_xml): Use new functions.
5641
eee8a18d
AH
56422018-04-18 Alan Hayward <alan.hayward@arm.com>
5643
5644 * tdesc.c (tdesc_create_flags): Remove.
5645 (tdesc_add_flag): Likewise.
5646 (tdesc_named_type): Likewise.
5647 (tdesc_create_union): Likewise.
5648 (tdesc_create_struct): Likewise.
5649 (tdesc_create_vector): Likewise.
5650 (tdesc_add_bitfield): Likewise.
5651 (tdesc_add_field): Likewise.
5652 (tdesc_set_struct_size): Likewise.
5653
82ec9bc7
AH
56542018-04-18 Alan Hayward <alan.hayward@arm.com>
5655
5656 * tdesc.c (~target_desc): Remove implictly deleted items.
5657 (init_target_desc): Iterate all features.
5658 (tdesc_get_features_xml): Use vector.
5659 (tdesc_create_feature): Create feature.
5660 * tdesc.h (tdesc_feature) Remove
5661 (target_desc): Add features.
5662
ea3e7d71
AH
56632018-04-18 Alan Hayward <alan.hayward@arm.com>
5664
5665 * Makefile.in: Add common/tdesc.c
5666 * tdesc.c (init_target_desc): init all reg_defs from register
5667 vector.
5668 (tdesc_create_reg): Create tdesc_reg.
5669 * tdesc.h (tdesc_feature): Add register vector.
5670
17d08cd4
SM
56712018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5672
5673 * tdesc.h (struct target_desc) <features>: Change type to
5674 std::vector<std::string>.
5675 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5676 changes.
5677 (tdesc_get_features_xml): Likewise.
5678 (tdesc_create_feature): Likewise.
5679
5cd3e386
AH
56802018-03-26 Alan Hayward <alan.hayward@arm.com>
5681
5682 * regcache.c (find_register_by_number): Return a ref.
5683 (find_regno): Use references.
5684 (register_size): Likewise.
5685 (register_data): Likewise.
5686 * tdesc.c (target_desc::~target_desc): Remove free calls.
5687 (target_desc::operator==): Use std::vector compare.
5688 (init_target_desc): Use reference.
5689 (tdesc_create_reg): Use reg constructors.
5690 * tdesc.h (struct target_desc): Replace pointer with object.
5691
dff7492c
AH
56922018-03-23 Alan Hayward <alan.hayward@arm.com>
5693
5694 * regcache.c (find_register_by_number): Make static.
5695 (find_regno): Use find_register_by_number
5696 * regcache.h (struct reg): Remove declaration.
5697
d80e5242
AH
56982018-03-23 Alan Hayward <alan.hayward@arm.com>
5699
5700 * tdesc.c (target_desc::~target_desc): Move to here.
5701 (target_desc::operator==): Likewise.
5702 * tdesc.h (target_desc::~target_desc): Move from here.
5703 (target_desc::operator==): Likewise.
5704
f69c5afb
AA
57052018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5706
5707 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5708
ce29f843
AA
57092018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5710
5711 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5712 S390_TDESC_GS.
5713 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5714 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5715 and init_registers_s390_gs_linux64.
5716
c49bd90b
AA
57172018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5718
5719 * linux-s390-low.c (s390_fill_gs): Remove function.
5720 (s390_fill_gsbc): Remove function.
5721 (s390_regsets): Set fill functions for the guarded storage regsets
5722 to NULL.
5723
7edb9bd3
AA
57242018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5725
5726 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5727 the word size. Add comment.
5728 (s390_get_wordsize): New function.
5729 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5730 pswm with it. Instead, use s390_get_wordsize to determine the
5731 word size first and derive the correct tdesc from that directly.
5732
39be3c7e
SM
57332018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5734
5735 * Makefile.in: Include silent-rules.mk.
5736 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5737 (COMPILE): Add ECHO_CXX.
5738 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5739 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5740 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5741 (version-generated.c): Add ECHO_GEN.
5742 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5743 (IPAGENT_COMPILE): Add ECHO_CXX.
5744 (%-generated.c): Add ECHO_REGDAT.
5745
3ae9ce5d
TT
57462018-03-14 Tom Tromey <tom@tromey.com>
5747
5748 PR cli/14977:
5749 * ax.c (ax_printf): Special case for NULL.
5750
e6a58aa8
SM
57512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * linux-low.c (linux_qxfer_libraries_svr4): Use
5754 xml_escape_text_append.
5755
f6e8a41e
SM
57562018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5759
b9671caf
SM
57602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * server.c (handle_general_set): Remove unnecessary xstrdup.
5763
e80aaf61
SM
57642018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5765
5766 * server.c (parse_debug_format_options): Adjust to
5767 delim_string_to_char_ptr_vec changes.
5768 * thread-db.c (thread_db_load_search): Adjust to
5769 dirnames_to_char_ptr_vec changes.
5770
b1223e78
MM
57712018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5772
5773 * target.h (target_enable_btrace, target_disable_btrace)
5774 (target_read_btrace, target_read_btrace_conf): Turn macro into
5775 inline function. Throw error if target method is not defined.
5776 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5777 check for btrace target method. Be prepared to handle exceptions
5778 from btrace target methods.
5779
81561546
SDJ
57802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5781
5782 * server.c (captured_main): Change order of error message printed
5783 when the current working directory cannot be found.
5784
25e3c82c
SDJ
57852018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5786
5787 * server.c: Include "filenames.h" and "pathstuff.h".
5788 (program_name): Delete variable.
5789 (program_path): New anonymous class.
5790 (get_exec_wrapper): Use "program_path" instead of
5791 "program_name".
5792 (handle_v_run): Likewise.
5793 (captured_main): Likewise.
5794 (process_serial_event): Likewise.
5795
b4987c95
SDJ
57962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5797
5798 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5799 (OBJS): Add "pathstuff.o".
5800 * server.c (current_directory): New global variable.
5801 (captured_main): Initialize "current_directory".
5802
f46cd62a
AH
58032018-02-26 Alan Hayward <alan.hayward@arm.com>
5804
5805 * tdesc.c: Use common/tdesc.h.
5806 * tdesc.h: Likewise.
5807
a543c5ca
AH
58082018-02-20 Alan Hayward <alan.hayward@arm.com>
5809 Simon Marchi <simon.marchi@ericsson.com>
5810
5811 * Makefile.in: Switch order of make rules.
5812
b5884fa7
AH
58132018-02-19 Alan Hayward <alan.hayward@arm.com>
5814
5815 * Makefile.in: Add common directory in build.
5816 * configure.ac: Add common reference.
5817 * configure: Regenerate.
5818
de6242d3
MM
58192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5820
5821 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5822 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5823 * spu-low.c (spu_target_ops): Likewise.
5824 * win32-low.c (win32_target_ops): Likewise.
5825 * server.c (supported_btrace_packets): Report packets unconditionally.
5826 * target.h (target_ops) <supports_btrace>: Remove.
5827 (target_supports_btrace): Remove.
5828
9ee23a85
MM
58292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5830
5831 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5832 (handle_btrace_disable): Change return type to void. Use exceptions
5833 to report errors.
5834 (handle_btrace_general_set): Catch exception and copy message to
5835 return message.
5836
8ce47547
TT
58372018-02-08 Tom Tromey <tom@tromey.com>
5838
5839 * linux-low.c (install_software_single_step_breakpoints): Use
5840 make_scoped_restore.
5841 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5842 (do_restore_current_thread_cleanup): Remove.
5843 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5844 declare.
5845
45dd3607
TT
58462018-02-08 Tom Tromey <tom@tromey.com>
5847
5848 * mem-break.c (set_raw_breakpoint_at): Use
5849 gdb::unique_xmalloc_ptr.
5850
e671cd59
PA
58512018-01-30 Pedro Alves <palves@redhat.com>
5852
5853 PR gdb/13211
5854 * target.c (target_terminal::terminal_state): Rename to ...
5855 (target_terminal::m_terminal_state): ... this.
5856
a0aad537
JC
58572018-01-19 James Clarke <jrtc27@jrtc27.com>
5858
5859 * linux-low.c (handle_extended_wait): Surround call to
5860 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5861
4d9b86e1
SM
58622018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5863
5864 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5865 linux_ptrace_attach_fail_reason_string now returning an
5866 std::string.
5867 (linux_attach): Likewise.
5868 * thread-db.c (attach_thread): Likewise.
5869
f517c180
EA
58702018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5871
5872 PR gdb/21559
5873 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5874 checking for fs_base/gs_base fields in struct user_regs_struct.
5875 * configure: Regenerate.
5876
9a70f35c
YQ
58772018-01-16 Yao Qi <yao.qi@linaro.org>
5878
5879 PR gdb/18749
5880 * linux-low.c (fetch_register): Call supply_register instead of
5881 error.
5882
605fd3c6
YQ
58832018-01-08 Yao Qi <yao.qi@linaro.org>
5884 Simon Marchi <simon.marchi@ericsson.com>
5885
5886 * Makefile.in (OBS): Remove selftest.o.
5887 * configure.ac: Set srv_selftest_objs if $development is true.
5888 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5889 * configure: Re-generated.
5890 * server.c (captured_main): Wrap variable selftest_filter with
5891 GDB_SELF_TEST.
5892
2cc05030
SM
58932018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * server.c (parse_debug_format_options): Return std::string.
5896 (handle_monitor_command, captured_main): Adjust.
5897
e379cee6
PA
58982018-01-05 Pedro Alves <palves@redhat.com>
5899
5900 PR gdb/18653
5901 * server.c (captured_main): Pass quiet=false to
5902 save_original_signals_state.
5903
82e1e79a
JB
59042018-01-01 Joel Brobecker <brobecker@adacore.com>
5905
5906 * gdbreplay.c (gdbreplay_version): Update copyright year in
5907 version message.
5908 * server.c (gdbserver_version): Likewise.
5909
8e481c3b
TT
59102017-12-08 Tom Tromey <tom@tromey.com>
5911
5912 * ax.c (ax_printf): Update.
5913
a8806230
YQ
59142017-12-07 Yao Qi <yao.qi@linaro.org>
5915
5916 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5917 aarch64_linux_read_description.
5918 * linux-amd64-ipa.c (idx2mask): New array.
5919 (get_ipa_tdesc): Move idx2mask out.
5920 (initialize_low_tracepoint): Initialize target descriptions.
5921 * linux-i386-ipa.c (idx2mask): New array.
5922 (get_ipa_tdesc): Move idx2mask out.
5923 (initialize_low_tracepoint): Initialize target descriptions.
5924
d4a0e8b5
SM
59252017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * tdesc.c (struct tdesc_type): Change return type.
5928 (tdesc_add_flag): Change parameter type.
5929 (tdesc_add_bitfield): Likewise.
5930 (tdesc_add_field): Likewise.
5931 (tdesc_set_struct_size): Likewise.
5932
798a7429
SM
59332017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5934
5935 * regcache.c (registers_to_string): Remove unused variable.
5936
c0e15c9b
SM
59372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5938
5939 * inferiors.c (for_each_inferior_with_data): Remove.
5940 * inferiors.h (for_each_inferior_with_data): Remove.
5941 * server.c (handle_qxfer_threads_worker): Change parameter type.
5942 (handle_qxfer_threads_proper): Use for_each_thread.
5943
f0045347
SM
59442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * inferiors.c (for_each_inferior): Remove.
5947 (clear_inferiors): Use for_each_thread.
5948 * inferiors.h (for_each_inferior): Remove.
5949 * linux-low.c (linux_wait_for_event_filtered): Use
5950 for_each_thread.
5951 (linux_stabilize_threads): Likewise.
5952 * regcache.c (regcache_release): Likewise.
5953 * server.c (gdb_wants_all_threads_stopped): Likewise.
5954 (clear_pending_status_callback): Remove.
5955 (handle_status): Use for_each_thread.
5956 (captured_main): Likewise.
5957 * win32-low.c (child_init_thread_list): Likewise.
5958 (win32_clear_inferiors): Likewise.
5959 (fake_breakpoint_event): Likewise.
5960
9521758b
SM
59612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * inferiors.h (find_inferior): Remove.
5964 * inferiors.c (find_inferior): Remove.
5965
8f86d7aa
SM
59662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * linux-low.c (resume_status_pending_p): Update comment.
5969 (need_step_over_p): Update comment.
5970
e2b44075
SM
59712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * linux-low.c (proceed_one_lwp): Return void, change parameter
5974 type.
5975 (unsuspend_and_proceed_one_lwp): Likewise.
5976 (proceed_all_lwps): Use for_each_thread.
5977 (unstop_all_lwps): Likewise.
5978
c80825ff
SM
59792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * linux-low.c (linux_resume_one_thread): Return void, take
5982 parameter directly.
5983 (linux_resume): Use for_each_thread.
5984
df3e4dbe
SM
59852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * linux-low.c (send_sigstop_callback): Return void, change
5988 parameter type. Rename to...
5989 (send_sigstop): ... this.
5990 (suspend_and_send_sigstop_callback): Return void, change parameter
5991 type. Rename to...
5992 (suspend_and_send_sigstop): ... this.
5993 (stop_all_lwps): Use for_each_thread.
5994
5a6b0a41
SM
59952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5996
5997 * linux-low.c (lwp_running): Return bool, remove unused
5998 argument.
5999 (linux_stabilize_threads): Use find_thread.
6000
39a64da5
SM
60012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6002
6003 * linux-low.c (select_singlestep_lwp_callback): Remove.
6004 (count_events_callback): Remove.
6005 (select_event_lwp_callback): Remove.
6006 (select_event_lwp): Use find_thread/for_each_thread.
6007
a1385b7b
SM
60082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * linux-low.c (not_stopped_callback): Return bool, take filter
6011 argument directly.
6012 (linux_wait_for_event_filtered): Use find_thread.
6013 (linux_wait_1): Likewise.
6014
454296a2
SM
60152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * linux-low.c (same_lwp): Remove.
6018 (find_lwp_pid): Use find_thread.
6019
6b2a85da
SM
60202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6021
6022 * linux-low.c (delete_lwp_callback): Remove.
6023 (linux_mourn): Use for_each_thread.
6024
798a38e8
SM
60252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6026
6027 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6028 args parameter, don't check for pid.
6029 (linux_detach): Use for_each_thread.
6030
e4eb0dec
SM
60312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * linux-low.c (struct counter): Remove.
6034 (second_thread_of_pid_p): Remove.
6035 (last_thread_of_process_p): Use find_thread.
6036
83e1b6c1
SM
60372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * inferiors.c (find_inferior_in_random): Remove.
6040 * inferiors.h (find_inferior_in_random): Remove.
6041 * linux-low.c (status_pending_p_callback): Return bool, accept
6042 parameter ptid directly.
6043 (linux_wait_for_event_filtered): Use find_thread_in_random.
6044 (linux_wait_1): Likewise.
6045
8dc7b443
SM
60462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * inferiors.c (find_inferior_id): Remove.
6049 (find_thread_ptid): Move implemention from find_inferior_id to
6050 here.
6051 * inferiors.h (find_inferior_id): Remove.
6052 * server.c (handle_status): Use find_thread_ptid.
6053 (process_serial_event): Likewise.
6054 * thread-db.c (find_one_thread): Likewise.
6055 (thread_db_thread_handle): Likewise.
6056 * win32-low.c (thread_rec): Likewise.
6057 (child_delete_thread): Likewise.
6058 (win32_thread_alive): Likewise.
6059 (get_child_debug_event): Likewise.
6060
da25033c
SM
60612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * linux-mips-low.c (update_watch_registers_callback): Return
6064 void, remove pid_p parameter, don't check for pid.
6065 (mips_insert_point, mips_remove_point): Use for_each_thread.
6066
c91bb56b
SM
60672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * lynx.low (lynx_delete_thread_callback): Remove.
6070 (lynx_mourn): Use for_each_thread.
6071
634a3254
SM
60722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * regcache.c (regcache_invalidate_one): Remove.
6075 (regcache_invalidate_pid): use for_each_thread.
6076
41272101
TT
60772017-11-26 Tom Tromey <tom@tromey.com>
6078
6079 * linux-low.c (linux_create_inferior): Update.
6080
f5291a6f
UW
60812017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6082
6083 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6084
6654d750
AH
60852017-11-24 Alan Hayward <alan.hayward@arm.com>
6086
6087 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6088 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6089 * linux-aarch64-tdesc-selftest.c: New file.
6090 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6091
60922017-11-24 Alan Hayward <alan.hayward@arm.com>
6093
6094 * configure.srv: Add new file.
6095 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6096 * linux-aarch64-tdesc-selftest.c: New file.
6097 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6098
49bdb7ee
AH
60992017-11-24 Alan Hayward <alan.hayward@arm.com>
6100
6101 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6102 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6103 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6104
d6d7ce56
AH
61052017-11-24 Alan Hayward <alan.hayward@arm.com>
6106
6107 * configure.srv: Add new files.
6108 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6109 aarch64_linux_read_description.
6110 * linux-aarch64-low.c (aarch64_linux_read_description):
6111 Merge with aarch64_arch_setup.
6112 (aarch64_arch_setup): Call aarch64_linux_read_description.
6113 * linux-aarch64-tdesc.c: New file.
6114 * linux-aarch64-tdesc.h: New file.
6115
506fe5f4
YQ
61162017-11-24 Yao Qi <yao.qi@linaro.org>
6117
6118 * configure.srv: Set $srv_regobj for tic6x-linux.
6119 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6120 (tic6x_read_description): Move some code to tic6x_arch_setup.
6121 (tic6x_tdesc_test): New function.
6122 (initialize_low_arch): Call selftests::register_test.
6123
29f9a567
YQ
61242017-11-22 Yao Qi <yao.qi@linaro.org>
6125
6126 * remote-utils.c (prepare_resume_reply): Use memcpy.
6127
578290ec
SM
61282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * linux-low.c (kill_one_lwp_callback): Return void, take
6131 argument directly, don't filter on pid.
6132 (linux_kill): Use for_each_thread.
6133
eca55aec
SM
61342017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * linux-low.c (need_step_over_p): Return bool, remove dummy
6137 argument.
6138 (linux_resume, proceed_all_lwps): Use find_thread.
6139
25c28b4d
SM
61402017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6141
6142 * linux-low.c (resume_status_pending_p): Return bool, remove
6143 flag_p argument.
6144 (linux_resume): Use find_thread.
6145
5fdda392
SM
61462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6147
6148 * linux-low.c (struct thread_resume_array): Remove.
6149 (linux_set_resume_request): Return void, take arguments
6150 directly.
6151 (linux_resume): Use for_each_thread.
6152
fcb056a5
SM
61532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6154
6155 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6156 return bool, remove data argument.
6157 (linux_stabilize_threads): Use find_thread.
6158
139720c5
SM
61592017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6160
6161 * linux-low.c (unsuspend_one_lwp): Remove.
6162 (unsuspend_all_lwps): Use for_each_thread, inline code from
6163 unsuspend_one_lwp.
6164
6d1e5673
SM
61652017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6166
6167 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6168 * linux-low.c (struct iterate_over_lwps_args): Remove.
6169 (iterate_over_lwps_filter): Remove.
6170 (iterate_over_lwps): Use find_thread.
6171
bbf550d5
SM
61722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6173
6174 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6175 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6176 code from reset_lwp_ptrace_options_callback.
6177
00192f77
SM
61782017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6179
6180 * linux-arm-low.c (struct update_registers_data): Remove.
6181 (update_registers_callback): Return void, take arguments
6182 directly, don't check thread's pid.
6183 (arm_insert_point, arm_remove_point): Use for_each_thread.
6184
2bee2b6c
SM
61852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6186
6187 * win32-low.c (continue_one_thread): Return void, take argument
6188 directly.
6189 (child_continue): Use for_each_thread.
6190
0b360f19
SM
61912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6192
6193 * win32-i386-low.c (update_debug_registers_callback): Rename
6194 to ...
6195 (update_debug_registers): ... this, return void, remove pid_p arg.
6196 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6197
f27866ba
SM
61982017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6199
6200 * inferiors.h (struct process_info): Add constructor, initialize
6201 fields..
6202 <syscalls_to_catch>: Change type to std::vector<int>.
6203 * inferiors.c (add_process): Allocate process_info with new.
6204 (remove_process): Free process_info with delete.
6205 * linux-low.c (handle_extended_wait): Adjust.
6206 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6207 * server.c (handle_general_set): Adjust.
6208
e849ea89
PA
62092017-11-16 Pedro Alves <palves@redhat.com>
6210
6211 * remote-utils.c (remote_close): Block SIGIO signals instead of
6212 uninstalling the SIGIO handler.
6213
1d0aa65c
AH
62142017-11-16 Alan Hayward <alan.hayward@arm.com>
6215
6216 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6217
3491a34c
YQ
62182017-11-16 Yao Qi <yao.qi@linaro.org>
6219
6220 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6221 (tic6x_store_gregset): Likewise.
6222 (tic6x_usrregs_info): Move it up.
6223
a602f924
AH
62242017-11-15 Alan Hayward <alan.hayward@arm.com>
6225
6226 * Makefile.in: Update arch rules.
6227 * configure.srv: Explicitly mark arch/ files.
6228
5616b6c3
AS
62292017-11-13 Andreas Schwab <schwab@suse.de>
6230
6231 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6232 function.
6233 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6234
d1928160
PA
62352017-11-06 Pedro Alves <palves@redhat.com>
6236
6237 * config.in, configure: Regenerate.
6238
bac608e7
SM
62392017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6240
6241 * target.c (struct thread_search): Remove.
6242 (thread_search_callback): Remove.
6243 (prepare_to_access_memory): Use for_each_thread instead of
6244 find_inferior. Inline code from thread_search_callback.
6245
eaddb425
SM
62462017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * server.c (struct visit_actioned_threads_data): Remove.
6249 (visit_actioned_threads): Change prototype to take arguments
6250 directly.
6251 (resume): Use find_thread instead of find_inferior.
6252
99078d34
SM
62532017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6254
6255 * server.c (queue_stop_reply_callback): Change prototype, return
6256 void.
6257 (find_status_pending_thread_callback): Remove.
6258 (handle_status): Replace find_inferior with find_thread and
6259 for_each_thread.
6260
cc628f3d
AH
62612017-10-25 Alan Hayward <alan.hayward@arm.com>
6262
6263 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6264 with REGNO.
6265 (aarch64_store_gregset): Likewise.
6266 (aarch64_fill_fpregset): Likewise.
6267 (aarch64_store_fpregset): Likewise.
6268
4d3bb80e
SM
62692017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6270
6271 * gdbthread.h (find_thread, for_each_thread): New functions.
6272 * inferiors.c (thread_of_pid): Remove.
6273 (find_any_thread_of_pid): Use find_thread.
6274 * linux-low.c (num_lwps): Use for_each_thread.
6275
7a7cdfa0
YQ
62762017-10-17 Yao Qi <yao.qi@linaro.org>
6277
6278 * Makefile.in: Remove one rule.
6279 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6280
e675d170
YQ
62812017-10-17 Yao Qi <yao.qi@linaro.org>
6282
6283 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6284 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6285
7eb4e0f9
YQ
62862017-10-17 Yao Qi <yao.qi@linaro.org>
6287
6288 * configure.srv: Rename arm.o with arch/arm.o.
6289
60d6cfc9
YQ
62902017-10-17 Yao Qi <yao.qi@linaro.org>
6291
6292 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6293 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6294 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6295 (arch-i386.o, arch-amd64.o): Remove rules.
6296 (arch/%.o): New rule.
6297 Update POSTCOMPILE and COMPILE.pre.
6298 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6299 * configure: Re-generated.
6300 * configure.srv: Replace arch-i386.o with arch/i386.o.
6301 Replace arch-amd64.o with arch/amd64.o.
6302
5bfda255
YQ
63032017-10-16 Yao Qi <yao.qi@linaro.org>
6304
6305 * configure: Regenerated.
6306
9c80ecd6
SM
63072017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * inferiors.h: (struct inferior_list): Remove.
6310 (struct inferior_list_entry); Remove.
6311 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6312 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6313 get_first_inferior): Remove.
6314 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6315 find_inferior_id, find_inferior_in_random): Change signature.
6316 * inferiors.c (all_threads): Change type to
6317 std::list<thread_info *>.
6318 (get_thread): Remove macro.
6319 (find_inferior, find_inferior_id): Change signature, implement
6320 using find_thread.
6321 (find_inferior_in_random): Change signature, implement using
6322 find_thread_in_random.
6323 (for_each_inferior, for_each_inferior_with_data): Change
6324 signature, implement using for_each_thread.
6325 (add_inferior_to_list, remove_inferior): Remove.
6326 (add_thread, get_first_thread, thread_of_pid,
6327 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6328 (get_first_inferior, one_inferior_p, clear_inferior_list):
6329 Remove.
6330 (clear_inferiors, get_thread_process): Update.
6331 * gdbthread.h: Include <list>.
6332 (struct thread_info) <entry>: Remove field.
6333 <id>: New field.
6334 (all_threads): Change type to std::list<thread_info *>.
6335 (get_first_inferior): Add doc.
6336 (find_thread, for_each_thread, find_thread_in_random): New
6337 functions.
6338 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6339 * linux-arm-low.c (update_registers_callback): Update.
6340 * linux-low.c (second_thread_of_pid_p): Update.
6341 (kill_one_lwp_callback, linux_detach_lwp_callback,
6342 delete_lwp_callback, status_pending_p_callback, same_lwp,
6343 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6344 iterate_over_lwps, not_stopped_callback,
6345 resume_stopped_resumed_lwps, count_events_callback,
6346 select_singlestep_lwp_callback, select_event_lwp_callback,
6347 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6348 suspend_and_send_sigstop_callback, wait_for_sigstop,
6349 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6350 lwp_running, linux_set_resume_request, resume_status_pending_p,
6351 need_step_over_p, start_step_over, linux_resume_one_thread,
6352 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6353 reset_lwp_ptrace_options_callback): Update.
6354 * linux-mips-low.c (update_watch_registers_callback): Update.
6355 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6356 Update.
6357 (free_register_cache_thread_one): Remove.
6358 (regcache_release): Update.
6359 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6360 handle_qxfer_threads_worker): Update.
6361 (handle_query): Update, use list iterator.
6362 (visit_actioned_threads, handle_pending_status,
6363 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6364 clear_pending_status_callback, set_pending_status_callback,
6365 find_status_pending_thread_callback, handle_status,
6366 process_serial_event): Update.
6367 * target.c (thread_search_callback): Update.
6368 * thread-db.c (thread_db_get_tls_address): Update.
6369 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6370 Update.
6371 * win32-i386-low.c (update_debug_registers_callback): Update.
6372 * win32-low.c (delete_thread_info, child_delete_thread,
6373 continue_one_thread, suspend_one_thread,
6374 get_child_debug_event): Adjust.
6375
9179355e
SM
63762017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6379 * inferiors.h: Include <list>.
6380 (struct process_info) <entry>: Remove field.
6381 <pid>: New field.
6382 (pid_of): Change macro to function.
6383 (ptid_of, lwpid_of): Remove macro.
6384 (all_processes): Change type to std::list<process_info *>.
6385 (ALL_PROCESSES): Remove macro.
6386 (for_each_process, find_process): New function.
6387 * inferiors.c (all_processes): Change type to
6388 std::list<process_info *>.
6389 (find_thread_process): Adjust.
6390 (add_process): Likewise.
6391 (remove_process): Likewise.
6392 (find_process_pid): Likewise.
6393 (get_first_process): Likewise.
6394 (started_inferior_callback): Remove.
6395 (have_started_inferiors_p): Adjust.
6396 (attached_inferior_callback): Remove.
6397 (have_attached_inferiors_p): Adjust.
6398 * linux-low.c (check_zombie_leaders): Likewise.
6399 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6400 (x86_linux_update_xmltarget): Adjust.
6401 * server.c (handle_query): Likewise.
6402 (gdb_reattached_process): Remove.
6403 (handle_status): Adjust.
6404 (kill_inferior_callback): Likewise.
6405 (detach_or_kill_inferior): Remove.
6406 (print_started_pid): Likewise.
6407 (print_attached_pid): Likewise.
6408 (detach_or_kill_for_exit): Update.
6409 (process_serial_event): Likewise.
6410 * linux-arm-low.c (arm_new_fork): Likewise.
6411
c9cb8905
SM
64122017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6413
6414 * dll.h: Include <list>.
6415 (struct dll_info): Add constructor.
6416 <entry>: Remove field.
6417 (all_dlls): Change type to std::list<dll_info>.
6418 * dll.c: Include <algorithm>.
6419 (get_dll): Remove macro.
6420 (all_dlls): Change type to std::list<dll_info *>.
6421 (free_one_dll): Remove.
6422 (match_dll): Likewise.
6423 (loaded_dll): Adjust.
6424 (unloaded_dll): Adjust to all_dlls type change, use
6425 std::find_if. Inline code from match_dll.
6426 (clear_dlls): Adjust to all_dlls type change.
6427 * server.c (emit_dll_description): Remove.
6428 (handle_qxfer_libraries): Adjust to all_dlls type change,
6429 integrate emit_dll_description's functionality.
6430
04ec7890
SM
64312017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6432
6433 * linux-low.h (struct linux_target_ops) <delete_process>: New
6434 field.
6435 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6436 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6437 (struct linux_target_ops): Add delete_process callback.
6438 * linux-arm-low.c (arm_delete_process): New.
6439 (struct linux_target_ops): Add delete_process callback.
6440 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6441 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6442 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6443 * linux-mips-low.c (mips_linux_delete_process): New.
6444 (struct linux_target_ops): Add delete_process callback.
6445 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6446 * linux-s390-low.c (struct linux_target_ops): Likewise.
6447 * linux-sh-low.c (struct linux_target_ops): Likewise.
6448 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6449 * linux-tile-low.c (struct linux_target_ops): Likewise.
6450 * linux-x86-low.c (x86_linux_delete_process): New.
6451 (struct linux_target_ops): Add delete_process callback.
6452 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6453
466eecee
SM
64542017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6455
6456 * linux-aarch64-low.c (the_low_target): Add thread delete
6457 callback.
6458 * linux-arm-low.c (arm_delete_thread): New function.
6459 (the_low_target): Add thread delete callback.
6460 * linux-bfin-low.c (the_low_target): Likewise.
6461 * linux-crisv32-low.c (the_low_target): Likewise.
6462 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6463 set.
6464 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6465 field.
6466 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6467 * linux-mips-low.c (mips_linux_delete_thread): New function.
6468 (the_low_target): Add thread delete callback.
6469 * linux-ppc-low.c (the_low_target): Likewise.
6470 * linux-s390-low.c (the_low_target): Likewise.
6471 * linux-sh-low.c (the_low_target): Likewise.
6472 * linux-tic6x-low.c (the_low_target): Likewise.
6473 * linux-tile-low.c (the_low_target): Likewise.
6474 * linux-x86-low.c (the_low_target): Likewise.
6475 * linux-xtensa-low.c (the_low_target): Likewise.
6476
b79f7801
YZ
64772017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6478
6479 * win32-low.c: Include "common-inferior.h".
6480
bc3b087d
SDJ
64812017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6482
6483 * inferiors.c (set_inferior_cwd): New function.
6484 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6485 (handle_query): Inform that QSetWorkingDir is supported.
6486 * win32-low.c (create_process): Pass the inferior's cwd to
6487 CreateProcess.
6488
d092c5a2
SDJ
64892017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6490
6491 * inferiors.c (current_inferior_cwd): New global variable.
6492 (get_inferior_cwd): New function.
6493 * inferiors.h (struct process_info) <cwd>: New field.
6494
7da0a886
SDJ
64952017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6496
6497 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6498 (OBS): Add gdb_tilde_expand.o.
6499
289a6840
SM
65002017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6501
6502 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6503 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6504
256642e8
PA
65052017-09-29 Pedro Alves <palves@redhat.com>
6506
6507 * ax.c (gdb_parse_agent_expr): Constify.
6508 * ax.h (gdb_parse_agent_expr): Constify.
6509 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6510 Constify.
6511 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6512 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6513 * remote-utils.h (read_ptid): Constify.
6514 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6515 (process_point_options, process_serial_event): Constify.
6516 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6517 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6518 (cmd_qtbuffer): Constify.
6519
5b9ca4d4
PA
65202017-09-29 Pedro Alves <palves@redhat.com>
6521
6522 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6523 fails.
6524
94c207e0
PA
65252017-09-29 Pedro Alves <palves@redhat.com>
6526
6527 * linux-low.c (handle_extended_wait): Pass parent thread instead
6528 of process to thread_db_notice_clone.
6529 * linux-low.h (thread_db_notice_clone): Replace parent process
6530 parameter with parent thread parameter.
6531 * thread-db.c (find_one_thread): Add comment.
6532 (thread_db_notice_clone): Replace parent process parameter with
6533 parent thread parameter. Temporarily switch to the parent thread.
6534
75352e28
SDJ
65352017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6536
6537 * gdbthread.h: Include "common-gdbthread.h".
6538 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6539 "if" when validating the ptid.
6540 * remote-utils.c: Include "gdbthread.h".
6541 (prepare_resume_reply): Use "switch_to_thread".
6542 * target.c (done_accessing_memory): Likewise.
6543
ad339634
AA
65442017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6545
6546 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6547 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6548 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6549 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6550 s390x-gs-linux64-ipa.o to ipa_obj.
6551 * linux-s390-low.c (HWCAP_S390_GS): New define.
6552 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6553 New functions.
6554 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6555 (s390_arch_setup): Check for guarded-storage support and choose
6556 appropriate tdesc.
6557 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6558 init_registers_s390x_gs_linux64.
6559 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6560 enum value.
6561 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6562 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6563
cc4d742f
SM
65642017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6565
6566 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6567
f6327dcb
KB
65682017-09-21 Kevin Buettner <kevinb@redhat.com>
6569
6570 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6571 (thread_db_thread_handle): Declare.
6572 * linux-low.c (linux_target_ops): Initialize thread_handle.
6573 * server.c (handle_qxfer_threads_worker): Add support for
6574 "handle" attribute.
6575 * target.h (struct target_ops): Add new function pointer,
6576 thread_handle.
6577 (target_thread_handle): Define.
6578 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6579 field in lwp.
6580 (thread_db_thread_handle): New function.
6581
86299109
KB
65822017-09-21 Kevin Buettner <kevinb@redhat.com>
6583
6584 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6585 * linux-low.h (thread_db_notice_clone): Declare.
6586 * thread-db.c (thread_db_notice_clone): New function.
6587
f557a88a
PA
65882017-09-21 Pedro Alves <palves@redhat.com>
6589
6590 * server.c (gdb_read_memory, handle_status, process_serial_event)
6591 (handle_serial_event, handle_target_event): Adjust to
6592 set_desired_thread prototype change.
6593 * target.c (set_desired_thread): Remove 'use_general' parameter
6594 and adjust.
6595 * target.h (set_desired_thread): Remove 'use_general' parameter.
6596
223ffa71
TT
65972017-09-20 Tom Tromey <tom@tromey.com>
6598
6599 * target.c (target_terminal::terminal_state): Define.
6600 (target_terminal::init): Rename from target_terminal_init.
6601 (target_terminal::inferior): Rename from
6602 target_terminal_inferior.
6603 (target_terminal::ours): Rename from target_terminal_ours.
6604 (target_terminal::ours_for_output, target_terminal::info): New.
6605
04fd3ba9
SM
66062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6607
6608 * server.c (accumulate_file_name_length): Remove.
6609 (emit_dll_description): Adjust to std::string change.
6610 (handle_qxfer_libraries): Use std::string to hold document.
6611
5e187554
SM
66122017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6613
6614 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6615 return type of xml_escape_text.
6616 * server.c (emit_dll_description): Likewise.
6617
1526853e
SM
66182017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6619
6620 * server.c (captured_main): Accept argument for --selftest.
6621 Update run_tests call.
6622 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6623 when registering selftests.
6624
c4dfafab
SDJ
66252017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6626
6627 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6628 instead of "VEC" for "target_desc.reg_defs".
6629 (regcache_cpy): Likewise.
6630 (registers_to_string): Likewise.
6631 (registers_from_string): Likewise.
6632 (find_regno): Likewise.
6633 (supply_regblock): Likewise.
6634 (regcache_raw_read_unsigned): Likewise.
6635 * tdesc.c (init_target_desc): Likewise.
6636 (tdesc_create_reg): Likewise.
6637 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6638 (struct target_desc) <reg_defs>: Convert to "std::vector".
6639 (target_desc): Do not initialize "reg_defs".
6640 (~target_desc): Update code to use "std::vector" instead of "VEC"
6641 for "target_desc.reg_defs".
6642 (operator==): Likewise.
6643
124aceb4
SM
66442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * inferiors.h (thread_to_gdb_id): Remove.
6647 * inferiors.c (thread_to_gdb_id): Remove.
6648 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6649 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6650 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6651 Likewise.
6652 * nto-low.c (nto_fetch_registers, nto_store_registers,
6653 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6654
96cde54f
SM
66552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6656
6657 * inferiors.h (gdb_id_to_thread_id): Remove.
6658 * inferiors.c (gdb_id_to_thread_id): Remove.
6659 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6660 removal. Move pid declaration closer to where it's used.
6661
e8ca139e
SM
66622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * server.c (handle_detach): New function.
6665 (process_serial_event): Move code out, call handle_detach.
6666
f8a4e119
SM
66672017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * server.c (require_running): Rename to ...
6670 (require_running_or_return): ... this ...
6671 (require_running_or_break): ... and this.
6672 (handle_query, process_serial_event): Adjust.
6673
0eb0a407
SM
66742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6675
6676 * linux-low.c (linux_set_resume_request): Remove unused
6677 variables.
6678
785922a5
SM
66792017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6680
6681 * server.c (first_thread_of): Remove.
6682 (process_serial_event): Replace usage of first_thread_of with
6683 find_any_thread_of_pid.
6684 * tracepoint.c (same_process_p): Remove.
6685 (gdb_agent_about_to_close): Replace usage of same_process_p with
6686 find_any_thread_of_pid.
6687 * linux-x86-low.c (same_process_callback): Remove.
6688 (x86_arch_setup_process_callback): Replace usage of
6689 same_process_callback with find_any_thread_of_pid.
6690 * thread-db.c (any_thread_of): Remove.
6691 (switch_to_process): Replace usage of any_thread_of with
6692 find_any_thread_of_pid.
6693 * inferiors.c (thread_pid_matches_callback): Remove.
6694 (find_thread_process): Adjust to use find_any_thread_of_pid.
6695
a059f00c
SDJ
66962017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6697
6698 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6699 with "!VEC_empty".
a059f00c 6700
cc397f3a
SDJ
67012017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6702
6703 * linux-low.c (handle_extended_wait): Use
6704 "allocate_target_description" instead of "XNEW".
6705 * linux-x86-low.c (initialize_low_arch): Likewise.
6706
22916b07
YQ
67072017-09-05 Yao Qi <yao.qi@linaro.org>
6708
6709 * configure.srv (srv_i386_regobj): Remove.
6710 (srv_amd64_regobj): Remove.
6711 (srv_regobj): Set it to "" for x86 non-linux targets.
6712 * linux-x86-tdesc.c (i386_linux_read_description):
6713 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6714 (init_registers_i386): Remove the declaration.
6715 (tdesc_i386): Remove the declaration.
6716 (lynx_i386_arch_setup): Call i386_create_target_description.
6717 * nto-x86-low.c: Likewise.
6718 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6719 [!__x86_64__]: include arch/i386.h.
6720 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6721
38602d55
YQ
67222017-09-05 Yao Qi <yao.qi@linaro.org>
6723
6724 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6725 i386/amd64-XXX-linux from it.
6726
44b886ff
YQ
67272017-09-05 Yao Qi <yao.qi@linaro.org>
6728
6729 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6730 false.
6731 (ipa_amd64_linux_regobj): Remove.
6732 (ipa_x32_linux_regobj): Remove.
6733
b4570e4b
YQ
67342017-09-05 Yao Qi <yao.qi@linaro.org>
6735
6736 * Makefile.in (arch-amd64.o): New rule.
6737 * configure.srv: Append arch-amd64.o.
6738 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6739 (get_ipa_tdesc): Call amd64_linux_read_description.
6740 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6741 and init_registers_amd64_XXX.
6742 * linux-x86-low.c (x86_linux_read_description): Call
6743 amd64_linux_read_description.
6744 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6745 (initialize_low_arch): Don't call init_registers_x32_XXX and
6746 init_registers_amd64_XXX.
6747 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6748 and tdesc_amd64_XXX.
6749 [__x86_64__] (amd64_tdesc_test): New function.
6750 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6751 and init_registers_amd64_XXX.
6752 * linux-x86-tdesc.c: Include arch/amd64.h.
6753 (xcr0_to_tdesc_idx): New function.
6754 (i386_linux_read_description): New function.
6755 (amd64_get_ipa_tdesc_idx): New function.
6756 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6757 (amd64_get_ipa_tdesc): Declare.
6758
d1f28ea2
YQ
67592017-09-05 Yao Qi <yao.qi@linaro.org>
6760
6761 * configure.srv (srv_i386_linux_xmlfiles): Remove
6762 i386/i386-XXX-linux.xml from it.
6763
25a93583
YQ
67642017-09-05 Yao Qi <yao.qi@linaro.org>
6765
6766 * configure.srv: Set srv_i386_linux_regobj empty if $development
6767 is false.
6768 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6769 initialize_low_tdesc.
6770 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6771 with #if initialize_low_tdesc.
6772 * linux-x86-tdesc-selftest.c: New file.
6773 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6774
5f035c07
YQ
67752017-09-05 Yao Qi <yao.qi@linaro.org>
6776
6777 * Makefile.in (arch-i386.o): New rule.
6778 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6779 (x86_64-*-linux*): Likewise.
6780 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6781 include arch/i386.h.
6782 (i386_linux_read_description): Remove code and call
6783 i386_create_target_description.
6784 * tdesc.c (allocate_target_description): New function.
6785 * tdesc.h (set_tdesc_architecture): Remove declaration.
6786 (set_tdesc_osabi): Likewise.
6787
0abe8a89
YQ
67882017-09-05 Yao Qi <yao.qi@linaro.org>
6789
6790 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6791 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6792 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6793 .xmltarget.
6794 * server.c (get_features_xml): Call tdesc_get_features_xml.
6795 * tdesc.c (set_tdesc_architecture): New function.
6796 (set_tdesc_osabi): New function.
6797 (tdesc_get_features_xml): New function.
6798 (tdesc_create_feature): Add an argument.
6799 * tdesc.h (struct target_desc) <features>: New field.
6800 <arch, osabi>: New field.
6801 (~target_desc): xfree features, arch, and osabi.
6802 (target_desc::oerator==): Don't compare .xmltarget.
6803 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6804 (set_tdesc_osabi): Likewise.
6805 (tdesc_get_features_xml): Likewise.
6806
0a188386
YQ
68072017-09-05 Yao Qi <yao.qi@linaro.org>
6808
6809 * linux-x86-tdesc.c: Include selftest.h.
6810 (i386_tdesc_test): New function.
6811 (initialize_low_tdesc): Call selftests::register_test.
6812 * tdesc.h: Include regdef.h.
6813 (target_desc): Override operator == and !=.
6814
f49ff000
YQ
68152017-09-05 Yao Qi <yao.qi@linaro.org>
6816
6817 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6818 (ipa_obj): Likewise.
6819 * linux-i386-ipa.c: Include common/x86-xstate.h
6820 (get_ipa_tdesc): Call i386_linux_read_description.
6821 (initialize_low_tracepoint): Don't call init_registers_XXX
6822 functions, call initialize_low_tdesc instead.
6823 * linux-x86-low.c (x86_linux_read_description): Call
6824 i386_linux_read_description.
6825 (initialize_low_arch): Don't call init_registers_i386_XXX
6826 functions, call initialize_low_tdesc.
6827 * linux-x86-tdesc.c: New file.
6828 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6829 (i386_get_ipa_tdesc_idx): Declare.
6830 (i386_get_ipa_tdesc): Declare.
6831 (initialize_low_tdesc): Declare.
6832
2b68ef2f
YQ
68332017-09-05 Yao Qi <yao.qi@linaro.org>
6834
6835 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6836 instead of 0.
6837
f7000548
YQ
68382017-09-05 Yao Qi <yao.qi@linaro.org>
6839
6840 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6841 * regcache.c (get_thread_regcache): Use VEC_length.
6842 (init_register_cache): Likewise.
6843 (regcache_cpy): Likewise.
6844 (registers_to_string): Iterate reg_defs via VEC_iterate.
6845 (find_regno): Likewise.
6846 (find_register_by_number): Use VEC_index.
6847 (register_size): Call find_register_by_number.
6848 (register_data): Call find_register_by_number.
6849 (supply_regblock): Use VEC_length.
6850 (regcache_raw_read_unsigned): Likewise.
6851 * tdesc.c (init_target_desc): Iterate reg_defs via
6852 VEC_iterate.
6853 (default_description): Update initializer.
6854 (copy_target_description): Don't update field num_registers.
6855 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6856 <num_registers>: Remove.
6857
50a421ac
SM
68582017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6859
6860 * Makefile.in (.SECONDARY): Define target.
6861
23fdd69e
SM
68622017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 * linux-low.c (linux_wait_1): Adjust.
6865 * server.c (queue_stop_reply_callback): Adjust.
6866
0a2dde4a
SDJ
68672017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6868
6869 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6870 QEnvironmentUnset and QEnvironmentReset packets.
6871 (handle_query): Inform remote that QEnvironmentHexEncoded,
6872 QEnvironmentUnset and QEnvironmentReset are supported.
6873
6afd337d
SM
68742017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6875
6876 * inferiors.h (inferior_target_data): Rename to ...
6877 (thread_target_data): ... this.
6878 (inferior_regcache_data): Rename to ...
6879 (thread_regcache_data): ... this.
6880 (set_inferior_regcache_data): Rename to ...
6881 (set_thread_regcache_data): ... this.
6882 * inferiors.c (inferior_target_data): Rename to ...
6883 (thread_target_data): ... this.
6884 (inferior_regcache_data): Rename to ...
6885 (thread_regcache_data): ... this.
6886 (set_inferior_regcache_data): Rename to ...
6887 (set_thread_regcache_data): ... this.
6888 (free_one_thread): Update.
6889 * linux-low.h (get_thread_lwp): Update.
6890 * regcache.c (get_thread_regcache): Update.
6891 (regcache_invalidate_thread): Update.
6892 (free_register_cache_thread): Update.
6893 * win32-i386-low.c (update_debug_registers_callback): Update.
6894 (win32_get_current_dr): Update.
6895 * win32-low.c (thread_rec): Update.
6896 (delete_thread_info): Update.
6897 (continue_one_thread): Update.
6898 (suspend_one_thread): Update.
6899
a160cc46
SM
69002017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6901
6902 * inferiors.c (set_inferior_target_data): Remove.
6903 * inferiors.h (set_inferior_target_data): Remove.
6904
6d580b63
YQ
69052017-08-18 Yao Qi <yao.qi@linaro.org>
6906
6907 * Makefile.in (OBS): Add selftest.o.
6908 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6909 * configure, config.in: Re-generated.
6910 * server.c: Include common/sefltest.h.
6911 (captured_main): Handle option --selftest.
6912
f5a29eb0
YQ
69132017-08-09 Yao Qi <yao.qi@linaro.org>
6914
6915 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6916 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6917 i386-avx-mpx.o and i386-mmx.o.
6918 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6919 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6920 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6921 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6922 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6923 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6924 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6925 i386/amd64-avx-mpx.xml.
6926
57757c2f
YQ
69272017-08-09 Yao Qi <yao.qi@linaro.org>
6928
6929 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6930 and x32-avx-avx512.o.
6931 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6932 i386/x32-avx-avx512.xml.
6933
229d26fc
SM
69342017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6935
6936 * tracepoint.h (enum class fast_tpoint_collect_result): New
6937 enumeration.
6938 (fast_tracepoint_collecting): Change return type to
6939 fast_tpoint_collect_result.
6940 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6941 * linux-low.h: Include tracepoint.h.
6942 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6943 fast_tpoint_collect_result.
6944 * linux-low.c (handle_tracepoints): Adjust.
6945 (linux_fast_tracepoint_collecting): Change return type to
6946 fast_tpoint_collect_result.
6947 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6948 linux_wait_1, stuck_in_jump_pad_callback,
6949 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6950 proceed_one_lwp): Adjust to type change.
6951
2e1e43e1
YQ
69522017-07-10 Yao Qi <yao.qi@linaro.org>
6953
6954 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6955
adc764e7
YQ
69562017-06-29 Yao Qi <yao.qi@linaro.org>
6957
6958 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6959 Remove.
6960 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6961
a206891a
SM
69622017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6963
6964 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6965
9a6c7d9c
SDJ
69662017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6967
6968 * linux-low.c (linux_create_inferior): Adjust code to access the
6969 environment information via 'gdb_environ' class.
6970 * lynx-low.c (lynx_create_inferior): Likewise.
6971 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6972 (get_environ): Return a pointer to 'our_environ'.
6973 (captured_main): Initialize 'our_environ'.
6974 * server.h (get_environ): Adjust prototype.
6975 * spu-low.c (spu_create_inferior): Adjust code to access the
6976 environment information via 'gdb_environ' class.
6977
ae3e2ccf
SM
69782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6979
6980 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6981 usage of "register" keyword.
6982
3e019bdc
SM
69832017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * configure: Re-generate.
6986
8465943a
SM
69872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6988
6989 * configure: Re-generate.
6990
cf0dd6f0
SM
69912017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6992
6993 * Makefile.in (COMPILE.pre): Add "-x c++".
6994
9845682b
SDJ
69952017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6996
6997 * fork-child.c: Conditionally include <signal.h>.
6998
aefd8b33
SDJ
69992017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7000
7001 * server.c (handle_general_set): Handle new packet
7002 "QStartupWithShell".
7003 (handle_query): Add "QStartupWithShell" to the list of supported
7004 packets.
7005 (gdbserver_usage): Add help text explaining the
7006 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7007 options.
7008 (captured_main): Recognize and act upon the presence of the new
7009 CLI options.
7010
2090129c
SDJ
70112017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7012 Pedro Alves <palves@redhat.com>
7013
7014 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7015 * configure: Regenerate.
7016 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7017 "fork-inferior.o".
7018 (i[34567]86-*-lynxos*): Likewise.
7019 (spu*-*-*): Likewise.
7020 * fork-child.c: New file.
7021 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7022 and "environ.h".
7023 (linux_ptrace_fun): New function.
7024 (linux_create_inferior): Adjust function prototype to reflect
7025 change on "target.h". Adjust function code to use
7026 "fork_inferior".
7027 (linux_request_interrupt): Delete "signal_pid".
7028 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7029 (lynx_ptrace_fun): New function.
7030 (lynx_create_inferior): Adjust function prototype to reflect
7031 change on "target.h". Adjust function code to use
7032 "fork_inferior".
7033 * nto-low.c (nto_create_inferior): Adjust function prototype and
7034 code to reflect change on "target.h". Update comments.
7035 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7036 "common-terminal.h" and "environ.h".
7037 (terminal_fd): Moved to fork-child.c.
7038 (old_foreground_pgrp): Likewise.
7039 (restore_old_foreground_pgrp): Likewise.
7040 (last_status): Make it global.
7041 (last_ptid): Likewise.
7042 (our_environ): New variable.
7043 (startup_with_shell): Likewise.
7044 (program_name): Likewise.
7045 (program_argv): Rename to...
7046 (program_args): ...this.
7047 (wrapper_argv): New variable.
7048 (start_inferior): Delete function.
7049 (get_exec_wrapper): New function.
7050 (get_exec_file): Likewise.
7051 (get_environ): Likewise.
7052 (prefork_hook): Likewise.
7053 (post_fork_inferior): Likewise.
7054 (postfork_hook): Likewise.
7055 (postfork_child_hook): Likewise.
7056 (handle_v_run): Update code to deal with arguments coming from the
7057 remote host. Update calls from "start_inferior" to
7058 "create_inferior".
7059 (captured_main): Likewise. Initialize environment variable. Call
7060 "have_job_control".
7061 * server.h (post_fork_inferior): New prototype.
7062 (get_environ): Likewise.
7063 (last_status): Declare.
7064 (last_ptid): Likewise.
7065 (signal_pid): Likewise.
7066 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7067 (spu_ptrace_fun): New function.
7068 (spu_create_inferior): Adjust function prototype to reflect change
7069 on "target.h". Adjust function code to use "fork_inferior".
7070 * target.c (target_terminal_init): New function.
7071 (target_terminal_inferior): Likewise.
7072 (target_terminal_ours): Likewise.
7073 * target.h: Include <vector>.
7074 (struct target_ops) <create_inferior>: Update prototype.
7075 (create_inferior): Update macro.
7076 * utils.c (gdb_flush_out_err): New function.
7077 * win32-low.c (win32_create_inferior): Adjust function prototype
7078 and code to reflect change on "target.h".
7079
043a4934
SDJ
70802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7081
7082 * inferiors.c (switch_to_thread): New function.
7083
15652511
SDJ
70842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7085
7086 * Makefile.in (SFILE): Add "common/job-control.c".
7087 (OBS): Add "job-control.o".
7088
21ea5acd
SDJ
70892017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7090
7091 * Makefile: Remove "@host_makefile_frag@".
7092
e13cb306
PA
70932017-05-05 Pedro Alves <palves@redhat.com>
7094
7095 * configure: Regenerate.
7096
c94fee56
SDJ
70972017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7098
7099 * configure: Regenerate.
7100
a0ff9e1a
SM
71012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7102
7103 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7104 software_single_step change of return type to
7105 std::vector<CORE_ADDR>.
7106 * linux-low.c (install_software_single_step_breakpoints):
7107 Likewise.
7108 * linux-low.h (install_software_single_step_breakpoints):
7109 Likewise.
7110
be628ab8
SDJ
71112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7112
7113 * remote-utils.c: Include "gdb_termios.h" instead of
7114 "terminal.h".
7115 * terminal.h: Delete file.
7116
7c5ded6a
SDJ
71172017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7118
7119 * server.c: Include <vector>.
7120 <program_argv, wrapper_argv>: Convert to std::vector.
7121 (start_inferior): Rewrite function to use C++.
7122 (handle_v_run): Likewise. Update code that calculates the argv
7123 based on the vRun packet; use C++.
7124 (captured_main): Likewise.
7125
436252de
SM
71262017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7127
7128 * server.c (handle_v_cont): Initialize thread_resume::thread
7129 with null_ptid.
7130
9bf2a700
PA
71312017-04-05 Pedro Alves <palves@redhat.com>
7132
7133 * configure: Regenerate.
7134
a121b7c1
PA
71352017-04-05 Pedro Alves <palves@redhat.com>
7136
7137 * gdbreplay.c (sync_error): Constify.
7138 * linux-x86-low.c (push_opcode): Constify.
7139
21c8a587
PA
71402017-04-05 Pedro Alves <palves@redhat.com>
7141
7142 * win32-low.c (get_child_debug_event)
7143 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7144 Report TARGET_WAITKIND_SPURIOUS instead.
7145
fb32b4f7
PA
71462017-04-05 Pedro Alves <palves@redhat.com>
7147
e79be6e5
SM
7148 * remote-utils.c (remote_prepare, remote_open): Constify.
7149 * remote-utils.h (remote_prepare, remote_open): Constify.
7150 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7151
65dd1e59
SM
71522017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7153
7154 * Makefile.in (clean): Clear .deps.
7155
8fa5b777
SM
71562017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7157
7158 * .gitignore: Remove generated files, replace with wildcard.
7159 * (clean): Replace removal of generated files with wildcard.
7160 (version.c): Replace with...
7161 (version-generated.c): ...this.
7162 (xml-builtin.c): Replace with...
7163 (xml-builtin-generated.c): ...this.
7164 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7165 (%.c: *regformats*): Replace with...
7166 (%-generated.c: *regformats*): ...this.
7167
a12e714b
MF
71682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7169
7170 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7171 (xtensa_fill_gregset): Call collect_register_by_name for
7172 threadptr register.
7173 (xtensa_store_gregset): Call supply_register_by_name for
7174 threadptr register.
7175
1a09b50a
MF
71762017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7177
7178 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7179 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7180 (xtensa_store_gregset): Call supply_register for all registers in
7181 a0_regnum..a0_regnum + C0_NREGS range.
7182
1a01e7c6
SM
71832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7184
7185 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7186 (ax-ipa.o: ax.c): Remove.
7187 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7188 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7189 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7190 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7191 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7192
36bc18a8
SM
71932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7196 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7197 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7198 (errors-ipa.o: ../common/errors.c): Remove.
7199 (format-ipa.o: ../common/format.c): Remove.
7200 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7201
a8ebe3d5
SM
72022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7203
7204 * Makefile.in (%-ipa.o: %.c): New rule.
7205 (tracepoint-ipa.o: tracepoint.c): Remove.
7206 (utils-ipa.o: utils.c): Remove.
7207 (remote-utils-ipa.o: remote-utils.c): Remove.
7208 (regcache-ipa.o: regcache.c): Remove.
7209 (i386-linux-ipa.o: i386-linux.c): Remove.
7210 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7211 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7212 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7213 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7214 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7215 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7216 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7217 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7218 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7219 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7220 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7221 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7222 (aarch64-ipa.o: aarch64.c): Remove.
7223 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7224 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7225 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7226 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7227 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7228 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7229 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7230 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7231 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7232 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7233 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7234 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7235 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7236 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7237 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7238 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7239 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7240 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7241 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7242 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7243 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7244 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7245 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7246 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7247 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7248 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7249 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7250 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7251 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7252 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7253 (tdesc-ipa.o: tdesc.c): Remove.
7254 (x32-linux-ipa.o: x32-linux.c): Remove.
7255 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7256 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7257
50cfacb7
SM
72582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7259
7260 * Makefile.in (%.o: ../arch/%.c): New rule.
7261 (arm.o: ../arch/arm.c): Remove.
7262 (arm-linux.o: ../arch/arm-linux.c): Remove.
7263 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7264 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7265
c5a22423
SM
72662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7267
7268 * Makefile.in (%.o: ../nat/%.c): New rule.
7269 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7270 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7271 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7272 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7273 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7274 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7275 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7276 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7277 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7278 (linux-personality.o: ../nat/linux-personality.c): Remove.
7279 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7280 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7281 (x86-linux.o: ../nat/x86-linux.c): Remove.
7282 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7283 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7284
6bda016b
SM
72852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7286
7287 * Makefile.in (%.o: ../common/%.c): New rule.
7288 (signals.o: ../common/signals.c): Remove.
7289 (print-utils.o: ../common/print-utils.c): Remove.
7290 (rsp-low.o: ../common/rsp-low.c): Remove.
7291 (common-utils.o: ../common/common-utils.c): Remove.
7292 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7293 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7294 (vec.o: ../common/vec.c): Remove.
7295 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7296 (xml-utils.o: ../common/xml-utils.c): Remove.
7297 (ptid.o: ../common/ptid.c): Remove.
7298 (buffer.o: ../common/buffer.c): Remove.
7299 (format.o: ../common/format.c): Remove.
7300 (filestuff.o: ../common/filestuff.c): Remove.
7301 (agent.o: ../common/agent.c): Remove.
7302 (errors.o: ../common/errors.c): Remove.
7303 (environ.o: ../common/environ.c): Remove.
7304 (common-debug.o: ../common/common-debug.c): Remove.
7305 (cleanups.o: ../common/cleanups.c): Remove.
7306 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7307 (fileio.o: ../common/fileio.c): Remove.
7308 (common-regcache.o: ../common/common-regcache.c): Remove.
7309 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7310 (new-op.o: ../common/new-op.c): Remove.
7311 (btrace-common.o: ../common/btrace-common.c): Remove.
7312
21122961
SM
73132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7314
7315 * Makefile.in (%.o: ../target/%.c): New rule.
7316 (waitstatus.o: ../target/waitstatus.c): Remove.
7317
c362e621
SM
73182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7319
7320 * Makefile.in
7321 (%.c: ../regformats/%.dat,
7322 (%.c: ../regformats/arm/%.dat,
7323 (%.c: ../regformats/i386/%.dat,
7324 (%.c: ../regformats/rs6000/%.dat): New rules.
7325 (aarch64.c): Remove.
7326 (reg-arm.c): Remove.
7327 (arm-with-iwmmxt.c): Remove.
7328 (arm-with-vfpv2.c): Remove.
7329 (arm-with-vfpv3.c): Remove.
7330 (arm-with-neon.c): Remove.
7331 (reg-bfin.c): Remove.
7332 (reg-cris.c): Remove.
7333 (reg-crisv32.c): Remove.
7334 (i386.c): Remove.
7335 (i386-linux.c): Remove.
7336 (i386-avx.c): Remove.
7337 (i386-avx-linux.c): Remove.
7338 (i386-avx-avx512.c): Remove.
7339 (i386-avx-avx512-linux.c): Remove.
7340 (i386-mpx.c): Remove.
7341 (i386-mpx-linux.c): Remove.
7342 (i386-avx-mpx-avx512-pku.c): Remove.
7343 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7344 (i386-avx-mpx.c): Remove.
7345 (i386-avx-mpx-linux.c): Remove.
7346 (i386-mmx.c): Remove.
7347 (i386-mmx-linux.c): Remove.
7348 (reg-ia64.c): Remove.
7349 (reg-m32r.c): Remove.
7350 (reg-m68k.c): Remove.
7351 (reg-cf.c): Remove.
7352 (mips-linux.c): Remove.
7353 (mips-dsp-linux.c): Remove.
7354 (mips64-linux.c): Remove.
7355 (mips64-dsp-linux.c): Remove.
7356 (nios2-linux.c): Remove.
7357 (powerpc-32.c): Remove.
7358 (powerpc-32l.c): Remove.
7359 (powerpc-altivec32l.c): Remove.
7360 (powerpc-cell32l.c): Remove.
7361 (powerpc-vsx32l.c): Remove.
7362 (powerpc-isa205-32l.c): Remove.
7363 (powerpc-isa205-altivec32l.c): Remove.
7364 (powerpc-isa205-vsx32l.c): Remove.
7365 (powerpc-e500l.c): Remove.
7366 (powerpc-64l.c): Remove.
7367 (powerpc-altivec64l.c): Remove.
7368 (powerpc-cell64l.c): Remove.
7369 (powerpc-vsx64l.c): Remove.
7370 (powerpc-isa205-64l.c): Remove.
7371 (powerpc-isa205-altivec64l.c): Remove.
7372 (powerpc-isa205-vsx64l.c): Remove.
7373 (s390-linux32.c): Remove.
7374 (s390-linux32v1.c): Remove.
7375 (s390-linux32v2.c): Remove.
7376 (s390-linux64.c): Remove.
7377 (s390-linux64v1.c): Remove.
7378 (s390-linux64v2.c): Remove.
7379 (s390-te-linux64.c): Remove.
7380 (s390-vx-linux64.c): Remove.
7381 (s390-tevx-linux64.c): Remove.
7382 (s390x-linux64.c): Remove.
7383 (s390x-linux64v1.c): Remove.
7384 (s390x-linux64v2.c): Remove.
7385 (s390x-te-linux64.c): Remove.
7386 (s390x-vx-linux64.c): Remove.
7387 (s390x-tevx-linux64.c): Remove.
7388 (tic6x-c64xp-linux.c): Remove.
7389 (tic6x-c64x-linux.c): Remove.
7390 (tic6x-c62x-linux.c): Remove.
7391 (reg-sh.c): Remove.
7392 (reg-sparc64.c): Remove.
7393 (reg-spu.c): Remove.
7394 (amd64.c): Remove.
7395 (amd64-linux.c): Remove.
7396 (amd64-avx.c): Remove.
7397 (amd64-avx-linux.c): Remove.
7398 (amd64-avx-avx512.c): Remove.
7399 (amd64-avx-avx512-linux.c): Remove.
7400 (amd64-mpx.c): Remove.
7401 (amd64-mpx-linux.c): Remove.
7402 (amd64-avx-mpx-avx512-pku.c): Remove.
7403 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7404 (amd64-avx-mpx.c): Remove.
7405 (amd64-avx-mpx-linux.c): Remove.
7406 (x32.c): Remove.
7407 (x32-linux.c): Remove.
7408 (x32-avx.c): Remove.
7409 (x32-avx-linux.c): Remove.
7410 (x32-avx-avx512.c): Remove.
7411 (x32-avx-avx512-linux.c): Remove.
7412 (reg-xtensa.c): Remove.
7413 (reg-tilegx.c): Remove.
7414 (reg-tilegx32.c): Remove.
7415
1672e0d9
SDJ
74162017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7417
7418 * Makefile.in (SFILES): Add "common/environ.c".
7419 (OBJS): Add "common/environ.h".
7420
239b6d10
WT
74212017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7422
7423 * configure.ac: Check if the fs_base and gs_base members of
7424 `struct user_regs_struct' exist.
7425 * config.in: Regenerated.
7426 * configure: Likewise.
7427
694b382c
AT
74282017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7429
7430 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7431 target_read_memory.
7432 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7433 (get_next_pcs_syscall_next_pc): Likewise.
7434
7dc53023
LM
74352016-12-23 Luis Machado <lgustavo@codesourcery.com>
7436
7437 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7438 * nto-x86-low.c: Likewise.
7439
ad02e4fe
SM
74402016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7441
7442 * Makefile.in: Include disable-implicit-rules.mk.
7443
dcb07cfa
PA
74442016-11-23 Pedro Alves <palves@redhat.com>
7445
7446 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7447 (debug_vprintf): Use std::chrono::steady_clock instead of
7448 gettimeofday. Use '.' instead of ':'.
7449 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7450 (get_timestamp): Use std::chrono::steady_clock instead of
7451 gettimeofday.
7452
8629c02c
SM
74532016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7454
7455 * Makefile.in: Fix whitespace formatting.
7456
b593ecca
SM
74572016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7458
7459 * Makefile.in (SFILES, OBS): Flatten list and order
7460 alphabetically.
7461
9986ba08
PA
74622016-11-23 Pedro Alves <palves@redhat.com>
7463
7464 * event-loop.c (handle_file_event): Use warning.
7465 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7466 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7467 Use warning.
7468
4eefa7bc
PA
74692016-11-23 Pedro Alves <palves@redhat.com>
7470
7471 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7472 output.
7473 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7474 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7475 debug_printf and debug_flush for debug output.
7476 * server.c (handle_general_set): Likewise.
7477 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7478 output.
7479
5443506e
SM
74802016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7481
7482 * Makefile.in (.c.o): Replace rule with ...
7483 (%.o: %.c): ... this one.
7484
3b165252
SM
74852016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7486
7487 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7488 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7489 make.
7490 * configure.ac: Remove checks for the make program.
7491 * configure: Re-generate.
7492
0bcda685
PA
74932016-10-28 Pedro Alves <palves@redhat.com>
7494
7495 * Makefile.in (CXX_DIALECT): Get from configure.
7496 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7497 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7498 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7499 * config.in: Regenerate.
7500 * configure: Regenerate.
7501
c3805894
YQ
75022016-10-27 Yao Qi <yao.qi@linaro.org>
7503
7504 * linux-low.c (linux_supports_range_stepping): Return true if
7505 can_software_single_step return true.
7506
89342618
YQ
75072016-10-27 Yao Qi <yao.qi@linaro.org>
7508
7509 * inferiors.c (find_inferior_in_random): New function.
7510 * inferiors.h (find_inferior_in_random): Declare.
7511 * linux-low.c (linux_wait_for_event_filtered): Call
7512 find_inferior_in_random instead of find_inferior.
7513
e3652c84
YQ
75142016-10-27 Yao Qi <yao.qi@linaro.org>
7515
7516 * linux-low.c (linux_wait_1): If single-step breakpoints are
7517 inserted, remove them.
7518
5a04c4cf
PA
75192016-10-26 Pedro Alves <palves@redhat.com>
7520
7521 * linux-low.c (handle_extended_wait): Link parent/child fork
7522 threads.
7523 (linux_wait_1): Unlink them.
7524 (linux_set_resume_request): Ignore resume requests for
7525 already-resumed and unhandled fork child threads.
7526 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7527 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7528 New functions.
7529 (handle_v_requests) <vCont>: Don't call require_running.
7530 * server.h (in_queued_stop_replies): New declaration.
7531
cb93dc7f
YQ
75322016-10-24 Yao Qi <yao.qi@linaro.org>
7533
7534 PR server/20733
7535 * linux-aarch64-low.c (append_insns): Cast the return value to
7536 'uint32_t *'.
7537
a1078bea
YQ
75382016-10-10 Yao Qi <yao.qi@linaro.org>
7539
7540 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7541
1fb77080
SDJ
75422016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7543
7544 * target.c (target_supports_multi_process): New function, moved
7545 from...
7546 * target.h (target_supports_multi_process): ... here. Remove
7547 macro.
7548
39b5a3b9
TT
75492016-10-05 Tom Tromey <tom@tromey.com>
7550
7551 PR remote/20655:
7552 * tracepoint.c (handle_tracepoint_bkpts): Check
7553 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7554
c1d0b70a
YQ
75552016-10-05 Yao Qi <yao.qi@linaro.org>
7556
7557 * configure.srv: Update the path of arm-*.xml files.
7558
0a69eedb
YQ
75592016-10-05 Terry Guo <terry.guo@arm.com>
7560 Yao Qi <yao.qi@linaro.org>
7561
7562 * Makefile.in: Adjust the path of rules.
7563 * configure.srv: Update the path of xml files.
7564 * regformats/arm-with-iwmmxt.dat: Regenerated.
7565 * regformats/arm-with-neon.dat: Likewise.
7566 * regformats/arm-with-vfpv2.dat: Likewise.
7567 * regformats/arm-with-vfpv3.dat Likewise.
7568
17e16485
YQ
75692016-09-30 Yao Qi <yao.qi@linaro.org>
7570
7571 PR gdbserver/20627
7572 * target.c (target_stop_and_wait): Don't call
7573 target_continue_no_signal, use resume_stop instead.
7574
edeeb602
YQ
75752016-09-26 Yao Qi <yao.qi@linaro.org>
7576
7577 * linux-low.c (linux_wait_1): Call debug_exit.
7578
503b1c39
PA
75792016-09-23 Pedro Alves <palves@redhat.com>
7580
7581 * Makefile.in (SFILES): Add common/new-op.c.
7582 (OBS): Add common/new-op.o.
7583 (new-op.o): New rule.
7584
74172ecf
SM
75852016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7586
7587 * .gitinore: Ignore more files.
7588
fc6cda2e
YQ
75892016-09-21 Yao Qi <yao.qi@linaro.org>
7590
7591 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7592 23.
7593
bc1e6c81
SDJ
75942016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7595
7596 * server.c (start_inferior): Call target_mourn_inferior instead of
7597 mourn_inferior; pass ptid_t argument to it.
7598 (resume): Likewise.
7599 (handle_target_event): Likewise.
7600 * target.c (target_mourn_inferior): New function.
7601 * target.h (mourn_inferior): Delete macro.
7602
0e00e962
AA
76032016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7604
7605 * linux-low.c (lwp_is_stepping): New function.
7606
1d8cb77d
CL
76072016-09-06 Carl Love <cel@us.ibm.com>
7608
7609 * server.c (start_inferior): Fixed comment, requested comment change
7610 didn't get updated correctly. Removed reference to ptrace () call as
7611 it is only true on Linux systems.
7612
7313bced
CL
76132016-09-06 Carl Love <cel@us.ibm.com>
7614
7615 * server.c (start_inferior): Do not call
7616 function target_post_create_inferior () if the
7617 inferior process has already exited.
7618
cf6de44d
PA
76192016-09-05 Pedro Alves <palves@redhat.com>
7620
7621 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7622 (COMPILE.pre, CC_LD): Use CXX directly.
7623 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7624 * acinclude.m4: Don't include build-with-cxx.m4.
7625 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7626 * configure: Regenerate.
7627
c1da6748
AT
76282016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7629
7630 PR gdb/19495
7631 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7632 call writing data to own_buf.
7633
f2b9e3df
SDJ
76342016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7635
7636 * target.c (mywait): Call target_wait instead of
7637 the_target->wait.
7638 (target_wait): New function.
7639
049a8570
SDJ
76402016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7641
7642 * server.c (start_inferior): New variable 'ptid'. Replace calls
7643 to the_target->resume by target_continue{,_no_signal}, depending
7644 on the case.
7645 * target.c (target_stop_and_wait): Call target_continue_no_signal
7646 instead of the_target->resume.
7647 (target_continue): New function.
7648
3aa5cfa0
AT
76492016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7650
7651 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7652
754653a7
AZ
76532016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7654
7655 PR server/20491
7656 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7657 ps_prochandle.
7658 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7659 * linux-arm-low.c (ps_get_thread_area): Likewise.
7660 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7661 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7662 * linux-mips-low.c (ps_get_thread_area): Likewise.
7663 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7664 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7665 * linux-x86-low.c (ps_get_thread_area): Likewise.
7666 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7667
ed036b40
PA
76682016-08-19 Pedro Alves <palves@redhat.com>
7669
7670 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7671
c8ef42ee
PA
76722016-08-19 Pedro Alves <palves@redhat.com>
7673
7674 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7675 comment. Use memcpy instead of casting through unsigned long.
7676
9c235a72
PA
76772016-08-19 Pedro Alves <palves@redhat.com>
7678
7679 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7680 allocating around 0x80000000.
7681
201506da
PA
76822016-08-19 Pedro Alves <palves@redhat.com>
7683
7684 PR gdb/20415
7685 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7686 (x32-avx512-linux-ipa.o): New rules.
7687 * configure.ac (x86_64-*-linux*): New x32 check.
7688 * configure.srv (ipa_x32_linux_regobj): New.
7689 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7690 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7691 descriptions.
7692 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7693 descriptions.
7694 * configure: Regenerate.
7695
f348d89a
PA
76962016-08-09 Pedro Alves <palves@redhat.com>
7697
7698 PR gdb/18653
7699 * Makefile.in (OBS): Add signals-state-save-restore.o.
7700 (signals-state-save-restore.o): New rule.
7701 * config.in: Regenerate.
7702 * configure: Regenerate.
7703 * linux-low.c: Include "signals-state-save-restore.h".
7704 (linux_create_inferior): Call
7705 restore_original_signals_state.
7706 * server.c: Include "dispositions-save-restore.h".
7707 (captured_main): Call save_original_signals_state.
7708
1baf5149
PA
77092016-08-05 Pedro Alves <palves@redhat.com>
7710
7711 * configure: Regenerate.
7712
fcd4a73d
YQ
77132016-08-04 Yao Qi <yao.qi@linaro.org>
7714
7715 * linux-low.c (regsets_fetch_inferior_registers): Check
7716 errno is ESRCH or not.
7717
979659d0
YQ
77182016-08-02 Yao Qi <yao.qi@linaro.org>
7719
7720 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7721 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7722 (thread_db_load_search): Update.
7723 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7724 td_ta_set_event and td_ta_event_getmsg.
7725
6598661d
PA
77262016-07-26 Pedro Alves <palves@redhat.com>
7727
7728 PR server/20414
7729 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7730 of unsigned long for 64-bit registers and use uint32_t instead of
7731 unsigned int for 32-bit registers.
7732
9cf12d57
PA
77332016-07-26 Pedro Alves <palves@redhat.com>
7734
7735 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7736 to 'ptrace'.
7737
305450ed
TT
77382016-07-21 Tom Tromey <tom@tromey.com>
7739
7740 * configure: Rebuild.
7741
2583da7c
YQ
77422016-07-21 Yao Qi <yao.qi@linaro.org>
7743
7744 * mem-break.c (find_gdb_breakpoint): Cast bp to
7745 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7746
21536b36
YQ
77472016-07-21 Yao Qi <yao.qi@linaro.org>
7748
7749 * server.c (handle_v_requests): Support s and S actions
7750 if target_supports_software_single_step return true.
7751
8901d193
YQ
77522016-07-21 Yao Qi <yao.qi@linaro.org>
7753
7754 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7755 is resume_step, call maybe_hw_step.
7756 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7757 and unstop them.
7758 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7759 breakpoints or not.
7760 (proceed_one_lwp): If resume request is resume_step, install
7761 reinsert breakpoints and call maybe_hw_step.
7762
0e9a339e
YQ
77632016-07-21 Yao Qi <yao.qi@linaro.org>
7764
7765 * linux-low.c (proceed_one_lwp): Declare.
7766 (linux_resume_one_thread): Remove local variable 'step'.
7767 Lift code enqueue signal. Call proceed_one_lwp instead of
7768 linux_resume_one_lwp.
7769
4281b351
YQ
77702016-07-21 Yao Qi <yao.qi@linaro.org>
7771
7772 * linux-low.c (linux_resume_one_thread): Call
7773 enqueue_pending_signal.
7774
984a2c04
YQ
77752016-07-21 Yao Qi <yao.qi@linaro.org>
7776
7777 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7778 * inferiors.c (do_restore_current_thread_cleanup): New function.
7779 (make_cleanup_restore_current_thread): Likewise.
7780 * linux-low.c (install_software_single_step_breakpoints): Call
7781 make_cleanup_restore_current_thread. Switch current_thread to
7782 thread.
7783
bec903c9
YQ
77842016-07-21 Yao Qi <yao.qi@linaro.org>
7785
7786 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7787 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7788 (clone_one_breakpoint): Likewise.
7789 (delete_reinsert_breakpoints): Change parameter to thread.
7790 Callers updated.
7791 (has_reinsert_breakpoints): Likewise.
7792 (uninsert_reinsert_breakpoints): Likewise.
7793 (reinsert_reinsert_breakpoints): Likewise.
7794 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7795 (delete_reinsert_breakpoints): Likewise.
7796 (reinsert_reinsert_breakpoints): Likewise.
7797 (uninsert_reinsert_breakpoints): Likewise.
7798 (has_reinsert_breakpoints): Likewise.
7799
63c40ec7
YQ
78002016-07-21 Yao Qi <yao.qi@linaro.org>
7801
7802 * inferiors.c (get_thread_process): Make parameter const.
7803 * inferiors.h (get_thread_process): Update declaration.
7804 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7805 Add new parameters child_thread and parent_thread. Callers
7806 updated.
7807 * mem-break.h (clone_all_breakpoints): Update declaration.
7808
9aa76cd0
YQ
78092016-07-21 Yao Qi <yao.qi@linaro.org>
7810
7811 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7812 <command_list, handler>: Remove.
7813 (struct gdb_breakpoint): New.
7814 (struct other_breakpoint): New.
7815 (struct reinsert_breakpoint): New.
7816 (is_gdb_breakpoint): New function.
7817 (any_persistent_commands): Update command_list if
7818 is_gdb_breakpoint returns true.
7819 (set_breakpoint): Create breakpoints according to their types.
7820 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7821 (set_gdb_breakpoint_1): Likewise.
7822 (set_gdb_breakpoint): Likewise.
7823 (clear_breakpoint_conditions): Change parameter type to
7824 'struct gdb_breakpoint *'.
7825 (clear_breakpoint_commands): Likewise.
7826 (clear_breakpoint_conditions_and_commands): Likewise.
7827 (add_condition_to_breakpoint): Likewise.
7828 (add_breakpoint_condition): Likewise.
7829 (add_commands_to_breakpoint): Likewise.
7830 (check_breakpoints): Check other_breakpoint.
7831 (clone_one_breakpoint): Clone breakpopint according to its type.
7832 * mem-break.h (struct gdb_breakpoint): Declare.
7833 (set_gdb_breakpoint): Update declaration.
7834 (clear_breakpoint_conditions_and_commands): Likewise.
7835 (add_breakpoint_condition): Likewise.
7836 (add_breakpoint_commands): Likewise.
7837 * server.c (process_point_options): Change parameter type to
7838 'struct gdb_breakpoint *'.
7839
811f8301
YQ
78402016-07-21 Yao Qi <yao.qi@linaro.org>
7841
7842 * mem-break.c (set_breakpoint_at): Rename it to ...
7843 (set_breakpoint_type_at): ... it.
7844 (set_breakpoint_at): Call set_breakpoint_type_at.
7845 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7846 * mem-break.h (set_breakpoint_at): Update comments.
7847
b1c51e36
CLT
78482016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7849
7850 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7851 to buf parameter.
7852 (nios2_store_gregset): Likewise.
7853
ced2dffb
PA
78542016-07-01 Pedro Alves <palves@redhat.com>
7855 Antoine Tremblay <antoine.tremblay@ericsson.com>
7856
7857 * linux-low.c: Change interface to take the target lwp_info
7858 pointer directly and return void. Handle detaching from a zombie
7859 thread.
7860 (linux_detach_lwp_callback): New function.
7861 (linux_detach): Detach from the leader thread after detaching from
7862 the clone threads.
7863
2ac09a5b
YQ
78642016-06-28 Yao Qi <yao.qi@linaro.org>
7865
7866 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7867 for variable new_offset.
7868 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7869 (aarch64_ftrace_insn_reloc_cb): Likewise.
7870 (aarch64_ftrace_insn_reloc_tb): Likewise.
7871 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7872 PRIx64 instead of PRIx32.
7873
79e7fd4f
YQ
78742016-06-28 Yao Qi <yao.qi@linaro.org>
7875
7876 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7877 (the_low_target): Install arm_get_syscall_trapinfo.
7878
061fc021
YQ
78792016-06-28 Yao Qi <yao.qi@linaro.org>
7880
7881 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7882 function.
7883 (the_low_target): Install aarch64_get_syscall_trapinfo.
7884
4cc32bec
YQ
78852016-06-28 Yao Qi <yao.qi@linaro.org>
7886
7887 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7888 Callers updated.
7889 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7890 Remove parameter sysno.
7891 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7892 sysret.
7893
782c1122
AA
78942016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7895
7896 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7897 (s390_emit_ne_goto): Likewise.
7898 (s390_emit_lt_goto): Likewise.
7899 (s390_emit_le_goto): Likewise.
7900 (s390_emit_gt_goto): Likewise.
7901 (s390_emit_ge_goto): Likewise.
7902 (s390x_emit_eq_goto): Likewise.
7903 (s390x_emit_ne_goto): Likewise.
7904 (s390x_emit_lt_goto): Likewise.
7905 (s390x_emit_le_goto): Likewise.
7906 (s390x_emit_gt_goto): Likewise.
7907 (s390x_emit_ge_goto): Likewise.
7908 (s390_emit_ops_impl): Mark variable static.
7909 (s390x_emit_ops): Likewise.
7910
2e7b624b
YQ
79112016-06-17 Yao Qi <yao.qi@linaro.org>
7912
7913 * linux-low.c (handle_extended_wait): Call
7914 uninsert_reinsert_breakpoints for the parent process. Remove
7915 reinsert breakpoints from the child process. Reinsert them to
7916 the parent process when vfork is done.
7917 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7918 (reinsert_reinsert_breakpoints): New function.
7919 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7920 (reinsert_reinsert_breakpoints): Declare.
7921
8a81c5d7
YQ
79222016-06-17 Yao Qi <yao.qi@linaro.org>
7923
7924 * linux-low.c (handle_extended_wait): If the parent is doing
7925 step-over, remove the reinsert breakpoints from the forked child.
7926
f50bf8e5
YQ
79272016-06-17 Yao Qi <yao.qi@linaro.org>
7928
7929 * linux-low.c (unsuspend_all_lwps): Declare.
7930 (linux_low_filter_event): If thread exited, call finish_step_over.
7931 If step-over is finished, unsuspend other threads.
7932
8376a3cb
YQ
79332016-06-17 Yao Qi <yao.qi@linaro.org>
7934
7935 * linux-low.c (linux_resume_one_lwp_throw): Assert
7936 has_reinsert_breakpoints returns false.
7937 * mem-break.c (delete_disabled_breakpoints): Assert
7938 bp type isn't reinsert_breakpoint.
7939
f79b145d
YQ
79402016-06-17 Yao Qi <yao.qi@linaro.org>
7941
7942 * linux-low.c (maybe_hw_step): New function.
7943 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7944 (finish_step_over): Switch current_thread to lwp temporarily,
7945 and assert has_reinsert_breakpoints returns true.
7946 (proceed_one_lwp): Call maybe_hw_step.
7947 * mem-break.c (has_reinsert_breakpoints): New function.
7948 * mem-break.h (has_reinsert_breakpoints): Declare.
7949
0ae534d2
JT
79502016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7951
7952 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7953
fcdad592
YQ
79542016-05-17 Yao Qi <yao.qi@linaro.org>
7955
7956 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7957 instead of find_inferior.
7958
9e784964
YQ
79592016-05-05 Yao Qi <yao.qi@linaro.org>
7960
7961 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7962 Initialize res to zero.
7963
cf2ebb6e
YQ
79642016-05-05 Yao Qi <yao.qi@linaro.org>
7965
7966 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7967 to uint32_t.
7968
c1aebf87
UW
79692016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7970
7971 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7972 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7973 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7974
35fd2deb 79752016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7976 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7977
7978 * tracepoint.c (write_inferior_int8): New function.
7979 (cmd_qtenable_disable): Write enable flag using
7980 write_inferior_int8.
7981
484b3c32
YQ
79822016-04-25 Yao Qi <yao.qi@linaro.org>
7983
7984 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7985 (need_step_over_p): Return zero if the LWP has pending signals
7986 can be delivered on software single step target.
7987
85ba7d86
YQ
79882016-04-25 Yao Qi <yao.qi@linaro.org>
7989
7990 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7991 return instead of error.
7992
3539aa13
YQ
79932016-04-22 Yao Qi <yao.qi@linaro.org>
7994
7995 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7996 to 23.
7997
5b061e98
YQ
79982016-04-22 Yao Qi <yao.qi@linaro.org>
7999
8000 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8001 signal when stepping over breakpoint with software single
8002 step.
8003
3451269c
PA
80042016-04-21 Pedro Alves <palves@redhat.com>
8005
8006 * linux-s390-low.c (s390_collect_ptrace_register)
8007 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8008 add casts.
8009 (s390_check_regset): Use void * instead of gdb_byte *.
8010
a2358508
PA
80112016-04-20 Pedro Alves <palves@redhat.com>
8012
8013 * configure: Renegerate.
8014
6885166d
YQ
80152016-04-20 Yao Qi <yao.qi@linaro.org>
8016
8017 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8018 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8019 number 16.
8020 (arm_store_gregset): Likewise.
8021
2b863f51
WT
80222016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8023
8024 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8025 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8026 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8027 (amd64-avx-mpx-linux.c): New rules.
8028 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8029 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8030 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8031 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8032 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8033 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8034 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8035 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8036 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8037 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8038 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8039 * linux-x86-low.c (x86_linux_read_description): Add case for
8040 X86_XSTATE_AVX_MPX_MASK.
8041 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8042 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8043 init_registers_i386_avx_mpx_linux.
8044 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8045 (initialize_low_tracepoint): Call
8046 init_registers_i386_avx_mpx_linux.
8047 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8048 (initialize_low_tracepoint): Call
8049 init_registers_amd64_avx_mpx_linux.
8050 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8051 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8052 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8053 declarations.
8054
9b30624b
PA
80552016-04-18 Pedro Alves <palves@redhat.com>
8056
8057 * configure: Regenerate.
8058
45e3745e
AT
80592016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8060
8061 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8062 (aarch64_emit_sub): Likewise.
8063
2afc13ff
PA
80642016-04-12 Pedro Alves <palves@redhat.com>
8065
8066 * utils.c (prepare_to_throw_exception): Delete.
8067
6e774b13
SM
80682016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8069
8070 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8071
4dca19f8
MK
80722016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8073
8074 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8075
d0a9981f
MK
80762016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8077
8078 * linux-aarch64-ipa.c: Add <elf.h> include.
8079 * linux-ppc-ipa.c: Add <elf.h> include.
8080 * linux-s390-ipa.c: Add <elf.h> include.
8081
252db07e
MK
80822016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8083
8084 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8085 (get_raw_reg_ptr): Likewise.
8086 (get_trace_state_variable_value_ptr): Likewise.
8087 (set_trace_state_variable_value_ptr): Likewise.
8088 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8089 char *.
8090
14e2b6d9
MK
80912016-03-31 Wei-cheng Wang <cole945@gmail.com>
8092 Marcin Kościelnicki <koriakin@0x04.net>
8093
8094 PR/17221
8095 * linux-ppc-low.c (emit_insns): New function.
8096 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8097 (ppc_emit_prologue): New function.
8098 (ppc_emit_epilogue): New function.
8099 (ppc_emit_add): New function.
8100 (ppc_emit_sub): New function.
8101 (ppc_emit_mul): New function.
8102 (ppc_emit_lsh): New function.
8103 (ppc_emit_rsh_signed): New function.
8104 (ppc_emit_rsh_unsigned): New function.
8105 (ppc_emit_ext): New function.
8106 (ppc_emit_zero_ext): New function.
8107 (ppc_emit_log_not): New function.
8108 (ppc_emit_bit_and): New function.
8109 (ppc_emit_bit_or): New function.
8110 (ppc_emit_bit_xor): New function.
8111 (ppc_emit_bit_not): New function.
8112 (ppc_emit_equal): New function.
8113 (ppc_emit_less_signed): New function.
8114 (ppc_emit_less_unsigned): New function.
8115 (ppc_emit_ref): New function.
8116 (ppc_emit_const): New function.
8117 (ppc_emit_reg): New function.
8118 (ppc_emit_pop): New function.
8119 (ppc_emit_stack_flush): New function.
8120 (ppc_emit_swap): New function.
8121 (ppc_emit_stack_adjust): New function.
8122 (ppc_emit_call): New function.
8123 (ppc_emit_int_call_1): New function.
8124 (ppc_emit_void_call_2): New function.
8125 (ppc_emit_if_goto): New function.
8126 (ppc_emit_goto): New function.
8127 (ppc_emit_eq_goto): New function.
8128 (ppc_emit_ne_goto): New function.
8129 (ppc_emit_lt_goto): New function.
8130 (ppc_emit_le_goto): New function.
8131 (ppc_emit_gt_goto): New function.
8132 (ppc_emit_ge_goto): New function.
8133 (ppc_write_goto_address): New function.
8134 (ppc_emit_ops_impl): New static variable.
8135 (ppc64v1_emit_prologue): New function.
8136 (ppc64v2_emit_prologue): New function.
8137 (ppc64_emit_epilogue): New function.
8138 (ppc64_emit_add): New function.
8139 (ppc64_emit_sub): New function.
8140 (ppc64_emit_mul): New function.
8141 (ppc64_emit_lsh): New function.
8142 (ppc64_emit_rsh_signed): New function.
8143 (ppc64_emit_rsh_unsigned): New function.
8144 (ppc64_emit_ext): New function.
8145 (ppc64_emit_zero_ext): New function.
8146 (ppc64_emit_log_not): New function.
8147 (ppc64_emit_bit_and): New function.
8148 (ppc64_emit_bit_or): New function.
8149 (ppc64_emit_bit_xor): New function.
8150 (ppc64_emit_bit_not): New function.
8151 (ppc64_emit_equal): New function.
8152 (ppc64_emit_less_signed): New function.
8153 (ppc64_emit_less_unsigned): New function.
8154 (ppc64_emit_ref): New function.
8155 (ppc64_emit_const): New function.
8156 (ppc64v1_emit_reg): New function.
8157 (ppc64v2_emit_reg): New function.
8158 (ppc64_emit_pop): New function.
8159 (ppc64_emit_stack_flush): New function.
8160 (ppc64_emit_swap): New function.
8161 (ppc64v1_emit_call): New function.
8162 (ppc64v2_emit_call): New function.
8163 (ppc64v1_emit_int_call_1): New function.
8164 (ppc64v2_emit_int_call_1): New function.
8165 (ppc64v1_emit_void_call_2): New function.
8166 (ppc64v2_emit_void_call_2): New function.
8167 (ppc64_emit_if_goto): New function.
8168 (ppc64_emit_eq_goto): New function.
8169 (ppc64_emit_ne_goto): New function.
8170 (ppc64_emit_lt_goto): New function.
8171 (ppc64_emit_le_goto): New function.
8172 (ppc64_emit_gt_goto): New function.
8173 (ppc64_emit_ge_goto): New function.
8174 (ppc64v1_emit_ops_impl): New static variable.
8175 (ppc64v2_emit_ops_impl): New static variable.
8176 (ppc_emit_ops): New function.
8177 (linux_low_target): Wire in ppc_emit_ops.
8178
a2174ba4
MK
81792016-03-31 Wei-cheng Wang <cole945@gmail.com>
8180 Marcin Kościelnicki <koriakin@0x04.net>
8181
8182 PR/17221
8183 * Makefile.in: Add powerpc-*-ipa.o
8184 * configure.srv: Add ipa_obj for powerpc*-linux.
8185 * linux-ppc-ipa.c: New file.
8186 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8187 includes.
8188 (PPC_FIELD): New macro.
8189 (PPC_SEXT): New macro.
8190 (PPC_OP6): New macro.
8191 (PPC_BO): New macro.
8192 (PPC_LI): New macro.
8193 (PPC_BD): New macro.
8194 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8195 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8196 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8197 (ppc_get_thread_area): New function.
8198 (is_elfv2_inferior): New function.
8199 (gen_ds_form): New function.
8200 (GEN_STD): New macro.
8201 (GEN_STDU): New macro.
8202 (GEN_LD): New macro.
8203 (GEN_LDU): New macro.
8204 (gen_d_form): New function.
8205 (GEN_ADDI): New macro.
8206 (GEN_ADDIS): New macro.
8207 (GEN_LI): New macro.
8208 (GEN_LIS): New macro.
8209 (GEN_ORI): New macro.
8210 (GEN_ORIS): New macro.
8211 (GEN_LWZ): New macro.
8212 (GEN_STW): New macro.
8213 (GEN_STWU): New macro.
8214 (gen_xfx_form): New function.
8215 (GEN_MFSPR): New macro.
8216 (GEN_MTSPR): New macro.
8217 (GEN_MFCR): New macro.
8218 (GEN_MTCR): New macro.
8219 (GEN_SYNC): New macro.
8220 (GEN_LWSYNC): New macro.
8221 (gen_x_form): New function.
8222 (GEN_OR): New macro.
8223 (GEN_MR): New macro.
8224 (GEN_LWARX): New macro.
8225 (GEN_STWCX): New macro.
8226 (GEN_CMPW): New macro.
8227 (gen_md_form): New function.
8228 (GEN_RLDICL): New macro.
8229 (GEN_RLDICR): New macro.
8230 (gen_i_form): New function.
8231 (GEN_B): New macro.
8232 (GEN_BL): New macro.
8233 (gen_b_form): New function.
8234 (GEN_BNE): New macro.
8235 (GEN_LOAD): New macro.
8236 (GEN_STORE): New macro.
8237 (gen_limm): New function.
8238 (gen_atomic_xchg): New function.
8239 (gen_call): New function.
8240 (ppc_relocate_instruction): New function.
8241 (ppc_install_fast_tracepoint_jump_pad): New function.
8242 (ppc_get_min_fast_tracepoint_insn_len): New function.
8243 (ppc_get_ipa_tdesc_idx): New function.
8244 (the_low_target): Wire in the new functions.
8245 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8246 tdescs.
8247 * linux-ppc-tdesc.h: New file.
8248
a13c4696
MK
82492016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8250
8251 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8252 (alloc_jump_pad_buffer): New function.
8253 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8254 (alloc_jump_pad_buffer): New function.
8255 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8256 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8257 (alloc_jump_pad_buffer): New function.
8258 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8259 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8260 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8261 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8262
1cda1512
MK
82632016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8264
8265 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8266 * linux-amd64-ipa.c: Likewise.
8267 * linux-i386-ipa.c: Likewise.
8268 * linux-s390-ipa.c: Likewise.
8269 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8270 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8271 set_trace_state_variable_value_ptr.
8272 (struct ipa_sym_addresses): Likewise.
8273 (symbol_list): Likewise.
8274 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8275 accessing gdb_collect directly.
8276 (gdb_collect_ptr_type): New typedef.
8277 (get_raw_reg_ptr_type): New typedef.
8278 (get_trace_state_variable_value_ptr_type): New typedef.
8279 (set_trace_state_variable_value_ptr_type): New typedef.
8280 (gdb_collect_ptr): New global.
8281 (get_raw_reg_ptr): New global.
8282 (get_trace_state_variable_value_ptr): New global.
8283 (set_trace_state_variable_value_ptr): New global.
8284 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8285 accessing get_raw_reg directly.
8286 (get_get_tsv_func_addr): Likewise for
8287 get_trace_state_variable_value_ptr.
8288 (get_set_tsv_func_addr): Likewise for
8289 set_trace_state_variable_value_ptr.
8290 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8291
72fb5488
SM
82922016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8293
8294 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8295
28170b88
MK
82962016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8297
8298 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8299 packets.
8300 (relocate_instruction): Remove own_buf.
8301 * server.c (own_buf): Make global.
8302 (handle_v_requests): Make global.
8303 * server.h (own_buf): New declaration.
8304 (handle_v_requests): New prototype.
8305
f39e8743
MK
83062016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8307
8308 PR 18377
8309 * linux-s390-low.c (add_insns): New function.
8310 (s390_emit_prologue): New function.
8311 (s390_emit_epilogue): New function.
8312 (s390_emit_add): New function.
8313 (s390_emit_sub): New function.
8314 (s390_emit_mul): New function.
8315 (s390_emit_lsh): New function.
8316 (s390_emit_rsh_signed): New function.
8317 (s390_emit_rsh_unsigned): New function.
8318 (s390_emit_ext): New function.
8319 (s390_emit_log_not): New function.
8320 (s390_emit_bit_and): New function.
8321 (s390_emit_bit_or): New function.
8322 (s390_emit_bit_xor): New function.
8323 (s390_emit_bit_not): New function.
8324 (s390_emit_equal): New function.
8325 (s390_emit_less_signed): New function.
8326 (s390_emit_less_unsigned): New function.
8327 (s390_emit_ref): New function.
8328 (s390_emit_if_goto): New function.
8329 (s390_emit_goto): New function.
8330 (s390_write_goto_address): New function.
8331 (s390_emit_litpool): New function.
8332 (s390_emit_const): New function.
8333 (s390_emit_call): New function.
8334 (s390_emit_reg): New function.
8335 (s390_emit_pop): New function.
8336 (s390_emit_stack_flush): New function.
8337 (s390_emit_zero_ext): New function.
8338 (s390_emit_swap): New function.
8339 (s390_emit_stack_adjust): New function.
8340 (s390_emit_set_r2): New function.
8341 (s390_emit_int_call_1): New function.
8342 (s390_emit_void_call_2): New function.
8343 (s390_emit_eq_goto): New function.
8344 (s390_emit_ne_goto): New function.
8345 (s390_emit_lt_goto): New function.
8346 (s390_emit_le_goto): New function.
8347 (s390_emit_gt_goto): New function.
8348 (s390_emit_ge_goto): New function.
8349 (s390x_emit_prologue): New function.
8350 (s390x_emit_epilogue): New function.
8351 (s390x_emit_add): New function.
8352 (s390x_emit_sub): New function.
8353 (s390x_emit_mul): New function.
8354 (s390x_emit_lsh): New function.
8355 (s390x_emit_rsh_signed): New function.
8356 (s390x_emit_rsh_unsigned): New function.
8357 (s390x_emit_ext): New function.
8358 (s390x_emit_log_not): New function.
8359 (s390x_emit_bit_and): New function.
8360 (s390x_emit_bit_or): New function.
8361 (s390x_emit_bit_xor): New function.
8362 (s390x_emit_bit_not): New function.
8363 (s390x_emit_equal): New function.
8364 (s390x_emit_less_signed): New function.
8365 (s390x_emit_less_unsigned): New function.
8366 (s390x_emit_ref): New function.
8367 (s390x_emit_if_goto): New function.
8368 (s390x_emit_const): New function.
8369 (s390x_emit_call): New function.
8370 (s390x_emit_reg): New function.
8371 (s390x_emit_pop): New function.
8372 (s390x_emit_stack_flush): New function.
8373 (s390x_emit_zero_ext): New function.
8374 (s390x_emit_swap): New function.
8375 (s390x_emit_stack_adjust): New function.
8376 (s390x_emit_int_call_1): New function.
8377 (s390x_emit_void_call_2): New function.
8378 (s390x_emit_eq_goto): New function.
8379 (s390x_emit_ne_goto): New function.
8380 (s390x_emit_lt_goto): New function.
8381 (s390x_emit_le_goto): New function.
8382 (s390x_emit_gt_goto): New function.
8383 (s390x_emit_ge_goto): New function.
8384 (s390_emit_ops): New function.
8385 (struct linux_target_ops): Fill in emit_ops hook.
8386
abd9baf9
MK
83872016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8388
8389 PR 18377
8390 * Makefile.in: Add s390 IPA files.
8391 * configure.srv: Build IPA for s390.
8392 * linux-s390-ipa.c: New file.
8393 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8394 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8395 (tdesc_s390_linux32): Likewise.
8396 (init_registers_s390_linux32v1): Likewise.
8397 (tdesc_s390_linux32v1): Likewise.
8398 (init_registers_s390_linux32v2): Likewise.
8399 (tdesc_s390_linux32v2): Likewise.
8400 (init_registers_s390_linux64): Likewise.
8401 (tdesc_s390_linux64): Likewise.
8402 (init_registers_s390_linux64v1): Likewise.
8403 (tdesc_s390_linux64v1): Likewise.
8404 (init_registers_s390_linux64v2): Likewise.
8405 (tdesc_s390_linux64v2): Likewise.
8406 (init_registers_s390_te_linux64): Likewise.
8407 (tdesc_s390_te_linux64): Likewise.
8408 (init_registers_s390_vx_linux64): Likewise.
8409 (tdesc_s390_vx_linux64): Likewise.
8410 (init_registers_s390_tevx_linux64): Likewise.
8411 (tdesc_s390_tevx_linux64): Likewise.
8412 (init_registers_s390x_linux64): Likewise.
8413 (tdesc_s390x_linux64): Likewise.
8414 (init_registers_s390x_linux64v1): Likewise.
8415 (tdesc_s390x_linux64v1): Likewise.
8416 (init_registers_s390x_linux64v2): Likewise.
8417 (tdesc_s390x_linux64v2): Likewise.
8418 (init_registers_s390x_te_linux64): Likewise.
8419 (tdesc_s390x_te_linux64): Likewise.
8420 (init_registers_s390x_vx_linux64): Likewise.
8421 (tdesc_s390x_vx_linux64): Likewise.
8422 (init_registers_s390x_tevx_linux64): Likewise.
8423 (tdesc_s390x_tevx_linux64): Likewise.
8424 (have_hwcap_s390_vx): New static variable.
8425 (s390_arch_setup): Fill have_hwcap_s390_vx.
8426 (s390_get_thread_area): New function.
8427 (s390_ft_entry_gpr_esa): New const.
8428 (s390_ft_entry_gpr_zarch): New const.
8429 (s390_ft_entry_misc): New const.
8430 (s390_ft_entry_fr): New const.
8431 (s390_ft_entry_vr): New const.
8432 (s390_ft_main_31): New const.
8433 (s390_ft_main_64): New const.
8434 (s390_ft_exit_fr): New const.
8435 (s390_ft_exit_vr): New const.
8436 (s390_ft_exit_misc): New const.
8437 (s390_ft_exit_gpr_esa): New const.
8438 (s390_ft_exit_gpr_zarch): New const.
8439 (append_insns): New function.
8440 (s390_relocate_instruction): New function.
8441 (s390_install_fast_tracepoint_jump_pad): New function.
8442 (s390_get_min_fast_tracepoint_insn_len): New function.
8443 (s390_get_ipa_tdesc_idx): New function.
8444 (struct linux_target_ops): Wire in the above functions.
8445 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8446 * linux-s390-tdesc.h: New file.
8447
a4105d04
MK
84482016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8449
8450 * linux-s390-low.c (s390_supports_tracepoints): New function.
8451 (struct linux_target_ops): Fill supports_tracepoints hook.
8452
35ac8b3e
YQ
84532016-03-18 Yao Qi <yao.qi@linaro.org>
8454
8455 * linux-low.c (lwp_signal_can_be_delivered): New function.
8456 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8457
94610ec4
YQ
84582016-03-18 Yao Qi <yao.qi@linaro.org>
8459
8460 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8461 0 if signal is enqueued. Remove 'signal' from one debugging
8462 message. Move one debugging message to some lines below.
8463 Remove code setting 'signal' to 0.
8464
80aea927
YQ
84652016-03-18 Yao Qi <yao.qi@linaro.org>
8466
8467 * linux-low.c (linux_low_filter_event): Remove redundant
8468 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8469
b04fd3be
MK
84702016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8471
8472 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8473 (struct linux_target_ops): Wire in the above.
8474
c40c8d4b
YQ
84752016-03-03 Yao Qi <yao.qi@linaro.org>
8476
8477 * linux-low.c: Update comments to start_step_over.
8478
0f8288ae
YQ
84792016-03-03 Yao Qi <yao.qi@linaro.org>
8480
8481 PR server/19736
8482 * linux-low.c (handle_extended_wait): Set child suspended
8483 if event_lwp->bp_reinsert isn't zero.
8484
fdbd04a8
YQ
84852016-03-02 Yao Qi <yao.qi@linaro.org>
8486
8487 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8488 enqueue_pending_signal.
8489
6896a8fa
MK
84902016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8491
8492 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8493 is actually loaded.
8494
ab503087
MK
84952016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8496
8497 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8498 (s390_regmap_3264) [!__s390x__]: New global.
8499 (s390_collect_ptrace_register): Skip map entries containing -1.
8500 (s390_supply_ptrace_register): Ditto.
8501 (s390_fill_gprs_high): New function.
8502 (s390_store_gprs_high): New function.
8503 (s390_regsets): Add NT_S390_HIGH_GPRS.
8504 (s390_get_hwcap): Enable on 31-bit.
8505 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8506 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8507 Detect NT_S390_HIGH_GPRS.
8508 (s390_usrregs_info_3264): Enable on 31-bit.
8509 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8510 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8511
ae91f625
MK
85122016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8513
8514 PR gdb/13808
8515 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8516 * configure.srv: Ditto.
8517 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8518 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8519 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8520 (init_registers_amd64_linux): Remove prototype.
8521 (tdesc_amd64_linux): Remove declaration.
8522 (get_ipa_tdesc): New function.
8523 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8524 initialize remaining tdescs.
8525 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8526 (init_registers_i386_linux): Remove prototype.
8527 (tdesc_i386_linux): Remove declaration.
8528 (get_ipa_tdesc): New function.
8529 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8530 initialize remaining tdescs.
8531 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8532 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8533 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8534 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8535 (x86_get_ipa_tdesc_idx): New function.
8536 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8537 * linux-x86-tdesc.h: New file.
8538 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8539 (target_get_ipa_tdesc_idx): New macro.
8540 * tracepoint.c (ipa_tdesc_idx): New macro.
8541 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8542 (symbol_list): Add ipa_tdesc_idx.
8543 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8544 (ipa_tdesc): Remove.
8545 (ipa_tdesc_idx): New variable.
8546 (get_context_regcache): Use get_ipa_tdesc.
8547 (gdb_collect): Ditto.
8548 (gdb_probe): Ditto.
8549 * tracepoint.h (get_ipa_tdesc): New prototype.
8550 (ipa_tdesc): Remove.
8551
e7ad2f14
PA
85522016-02-24 Pedro Alves <palves@redhat.com>
8553
8554 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8555 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8556 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8557 Factor out common code between the USE_SIGTRAP_SIGINFO and
8558 !USE_SIGTRAP_SIGINFO blocks.
8559 (linux_low_filter_event): Call save_stop_reason instead of
8560 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8561 Update comments.
8562 (linux_wait_1): Update comments.
8563
657f9cde
WW
85642016-02-24 Wei-cheng Wang <cole945@gmail.com>
8565
8566 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8567 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8568 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8569 ppc_insert_point, ppc_remove_point.
8570
b00b61e1
MK
85712016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8572
8573 * linux-s390-low.c (s390_supports_z_point_type): New function.
8574 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8575
553cb527
YQ
85762016-02-16 Yao Qi <yao.qi@linaro.org>
8577
8578 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8579 PC. Get pc from regcache_read_pc.
8580
a5652c21
YQ
85812016-02-12 Yao Qi <yao.qi@linaro.org>
8582
8583 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8584 or linux_get_pc_32bit.
8585 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8586
ed443b61
YQ
85872016-02-12 Yao Qi <yao.qi@linaro.org>
8588
8589 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8590 arm_linux_get_next_pcs_fixup.
8591
020ecd38
MK
85922016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8593
8594 * tracepoint.c (x_tracepoint_action_download): Change
8595 write_inferior_data_ptr to write_inferior_data_pointer.
8596 (cmd_qtstart): Likewise.
8597 (write_inferior_data_ptr): Remove.
8598 (download_agent_expr): Change write_inferior_data_ptr to
8599 write_inferior_data_pointer.
8600 (download_tracepoint_1): Likewise.
8601 (download_tracepoint): Likewise.
8602 (download_trace_state_variables): Likewise.
8603
7cae9051
WW
86042016-02-11 Wei-cheng Wang <cole945@gmail.com>
8605 Marcin Kościelnicki <koriakin@0x04.net>
8606
8607 * tracepoint.c (struct tracepoint_action_ops): Remove.
8608 (struct tracepoint_action): Remove ops.
8609 (m_tracepoint_action_download, r_tracepoint_action_download)
8610 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8611 size and offset accordingly.
8612 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8613 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8614 (tracepoint_action_send, tracepoint_action_download): New functions.
8615 Helpers for trace action handlers.
8616 (add_tracepoint_action): Remove setup actions ops.
8617 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8618
9f6a71b4
YQ
86192016-02-10 Yao Qi <yao.qi@linaro.org>
8620
8621 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8622
1e94266c
SM
86232016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8624
8625 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8626 to AC_OUTPUT.
8627 * configure: Regenerate.
8628
8adce034
SM
86292016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8630
8631 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8632 void * to gdb_byte *.
8633 * linux-low.c (siginfo_fixup): Likewise.
8634 (linux_xfer_siginfo): Likewise.
8635 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8636 Likewise.
8637 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8638
93813b37
WT
86392016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8640
8641 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8642 to srv_tgtobj.
8643 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8644 to srv_tgtobj.
8645 * linux-x86-low.c [__x86_64__]: Include
8646 "nat/amd64-linux-siginfo.h".
8647 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8648 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8649 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8650 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8651 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8652 (cpt_si_fd, si_timerid, si_overrun): Move from
8653 nat/amd64-linux-siginfo.c.
8654 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8655
8424cc97
SM
86562016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8657
8658 * server.c (skip_to_semicolon): Remove.
8659 (process_point_options): Use strchrnul instead of
8660 skip_to_semicolon.
8661
4d18591b
YQ
86622016-01-26 Yao Qi <yao.qi@linaro.org>
8663
8664 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8665 * linux-low.c (install_software_single_step_breakpoints): Don't
8666 call regcache_read_pc.
8667 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8668 argument pc.
8669
d8020970
YQ
86702016-01-26 Yao Qi <yao.qi@linaro.org>
8671
8672 * linux-low.c (install_software_single_step_breakpoints): Call
8673 regcache_read_pc instead of get_pc.
8674
8b207339
YQ
86752016-01-26 Yao Qi <yao.qi@linaro.org>
8676
8677 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8678 (unblock_async_io): Rename to ...
8679 (block_unblock_async_io): ... it. New function.
8680 (enable_async_io): Don't install SIGIO handler. Unblock it
8681 instead.
8682 (disable_async_io): Don't ignore SIGIO. Block it instead.
8683 (initialize_async_io): Install SIGIO handler. Don't call
8684 unblock_async_io.
8685
18879fef
YQ
86862016-01-26 Yao Qi <yao.qi@linaro.org>
8687
8688 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8689 first character is '\003', call *the_target->request_interrupt.
8690
a0f8e08a
YQ
86912016-01-25 Yao Qi <yao.qi@linaro.org>
8692
8693 * remote-utils.c (new_thread_notify): Remove.
8694 (dead_thread_notify): Likewise.
8695 * remote-utils.h (new_thread_notify): Remove declaration.
8696 (dead_thread_notify): Likewise.
8697
cc5fd9ab
MK
86982016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8699
8700 * gdb.trace/pending.exp: Fix expected message on continue.
8701
99e8eb11
MK
87022016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8703
8704 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8705 it works properly on big-endian machines where sizeof (CORE_ADDR)
8706 != sizeof (void *).
8707
a994041d
PA
87082016-01-21 Pedro Alves <palves@redhat.com>
8709
8710 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8711 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8712 * configure: Regenerate.
8713
f7a6a40d
YQ
87142016-01-21 Yao Qi <yao.qi@linaro.org>
8715
8716 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8717 is_thumb and set it according to CPSR saved on the stack.
8718 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8719 arm_sigreturn_next_pc.
8720
6f69e520
YQ
87212016-01-18 Yao Qi <yao.qi@linaro.org>
8722
8723 * linux-low.c (linux_set_pc_64bit): New function.
8724 (linux_get_pc_64bit): New function.
8725 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8726 Declare.
8727 * linux-sparc-low.c (debug_threads): Remove declaration.
8728 (sparc_get_pc): Remove.
8729 (the_low_target): Use linux_get_pc_64bit instead of
8730 sparc_get_pc.
8731 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8732 (the_low_target): Use linux_get_pc_64bit and
8733 linux_set_pc_64bit.
8734
276d4552
YQ
87352016-01-18 Yao Qi <yao.qi@linaro.org>
8736
8737 * linux-arm-low.c (debug_threads): Remove declaration.
8738 (arm_get_pc, arm_set_pc): Remove.
8739 (the_low_target): Use linux_get_pc_32bit and
8740 linux_set_pc_32bit.
8741 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8742 (the_low_target): Use linux_get_pc_32bit and
8743 linux_set_pc_32bit.
8744 * linux-cris-low.c (debug_threads): Remove declaration.
8745 (cris_get_pc, cris_set_pc,): Remove.
8746 (the_low_target): Use linux_get_pc_32bit and
8747 linux_set_pc_32bit.
8748 * linux-crisv32-low.c (debug_threads): Remove declaration.
8749 (cris_get_pc, cris_set_pc): Remove.
8750 (the_low_target): Use linux_get_pc_32bit and
8751 linux_set_pc_32bit.
8752 * linux-low.c: Include inttypes.h.
8753 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8754 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8755 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8756 (the_low_target): Use linux_get_pc_32bit and
8757 linux_set_pc_32bit.
8758 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8759 (the_low_target): Use linux_get_pc_32bit and
8760 linux_set_pc_32bit.
8761 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8762 (the_low_target): Use linux_get_pc_32bit and
8763 linux_set_pc_32bit.
8764 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8765 (the_low_target): Use linux_get_pc_32bit and
8766 linux_set_pc_32bit.
8767 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8768 (the_low_target): Use linux_get_pc_32bit and
8769 linux_set_pc_32bit.
8770
eb0edac8
GB
87712016-01-18 Gary Benson <gbenson@redhat.com>
8772
8773 * configure.ac (AC_FUNC_FORK): New check.
8774 * config.in: Regenerate.
8775 * configure: Likewise.
8776
1b451dda
YQ
87772016-01-14 Yao Qi <yao.qi@linaro.org>
8778
8779 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8780 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8781 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8782 arm_get_next_pcs_ctor.
8783
82075af2
JS
87842016-01-12 Josh Stone <jistone@redhat.com>
8785 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8786
8787 * inferiors.h: Include "gdb_vecs.h".
8788 (struct process_info): Add syscalls_to_catch.
8789 * inferiors.c (remove_process): Free syscalls_to_catch.
8790 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8791 syscall_return stops.
8792 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8793 * server.c (handle_general_set): Handle QCatchSyscalls.
8794 (handle_query): Report support for QCatchSyscalls.
8795 * target.h (struct target_ops): Add supports_catch_syscall.
8796 (target_supports_catch_syscall): New macro.
8797 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8798 (struct lwp_info): Add syscall_state.
8799 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8800 Maintain syscall_state and syscalls_to_catch across exec.
8801 (get_syscall_trapinfo): New function, proxy to the_low_target.
8802 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8803 (linux_low_filter_event): Toggle syscall_state entry/return for
8804 syscall traps, and set it ignored for all others.
8805 (gdb_catching_syscalls_p): New function.
8806 (gdb_catch_this_syscall_p): New function.
8807 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8808 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8809 (linux_supports_catch_syscall): New function.
8810 (linux_target_ops): Install it.
8811 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8812 (the_low_target): Install it.
8813
8f13a3ce
MF
88142016-01-12 Mike Frysinger <vapier@gentoo.org>
8815
8816 * acinclude.m4: Include new ../warning.m4 file.
8817 * configure: Regenerated.
8818 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8819
5b3da067
MF
88202016-01-12 Mike Frysinger <vapier@gentoo.org>
8821
8822 * ax.c (is_goto_target): Mark static.
8823 * linux-low.c (register_addr): Likewise.
8824 (linux_fetch_registers, linux_store_registers): Likewise.
8825 * mem-break.c (any_persistent_commands): Fix old prototype.
8826 (add_commands_to_breakpoint): Mark static.
8827 * regcache.c (find_register_by_name): Delete unused func.
8828 * remote-utils.c (hex_or_minus_one): Mark static.
8829 * server.c (monitor_show_help): Mark static.
8830 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8831 handle_v_requests): Likewise.
8832
bc504a31
PA
88332016-01-12 Pedro Alves <palves@redhat.com>
8834
8835 Remove use of the registered trademark symbol throughout.
8836
5a0dd67a
YQ
88372016-01-08 Yao Qi <yao.qi@linaro.org>
8838
8839 * remote-utils.c (getpkt): If c is '\003', call target hook
8840 request_interrupt.
8841
b2ca446f
YQ
88422016-01-06 Yao Qi <yao.qi@linaro.org>
8843
8844 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8845 linux-aarch32-low.c.
8846 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8847 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8848 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8849 (thumb2_breakpoint): Declare.
8850 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8851 linux-aarch32-low.h.
8852 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8853 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8854 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8855
edd88788
JB
88562016-01-01 Joel Brobecker <brobecker@adacore.com>
8857
8858 * gdbreplay.c (gdbreplay_version): Change copyright year in
8859 version message.
8860 * server.c (gdbserver_version): Likewise.
8861
65da7f14
PP
88622015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8863
8864 * server.c (crc32_table): Delete.
8865 (crc32): Use libiberty's xcrc32 function.
8866
4abd5ed2
JB
88672015-12-22 Joel Brobecker <brobecker@adacore.com>
8868
8869 * lynx-low.c (lynx_delete_thread_callback): New function.
8870 (lynx_mourn): Properly delete our process and all of its
8871 threads. Remove call to clear_inferiors.
8872
0e50fe5c
JB
88732015-12-22 Joel Brobecker <brobecker@adacore.com>
8874
8875 * target.c (thread_search_callback): Add check that
8876 the thread_stopped target callback is not NULL before
8877 calling it.
8878
35adc03f
YQ
88792015-12-21 Yao Qi <yao.qi@linaro.org>
8880
8881 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8882 arm breakpoint.
8883
bd2b2909
AT
88842015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8885
8886 * server.c (handle_query): Call target_supports_software_single_step.
8887
7fe5e27e
AT
88882015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8889
8890 * linux-low.c (single_step): New function.
8891 (linux_resume_one_lwp_throw): Call single_step.
8892 (start_step_over): Likewise.
8893
d9311bfa
AT
88942015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8895
8896 * Makefile.in (SFILES): Append arch/arm-linux.c,
8897 arch/arm-get-next-pcs.c.
8898 (arm-linux.o): New rule.
8899 (arm-get-next-pcs.o): New rule.
8900 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8901 arm-linux.o.
8902 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8903 to linux-aarch32-low.c.
8904 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8905 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8906 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8907 (thumb2_breakpoint_len): Likewise.
8908 (arm_is_thumb_mode): Make non-static.
8909 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8910 from linux-aarch32-low.c.
8911 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8912 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8913 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8914 (thumb2_breakpoint_len): Likewise.
8915 (arm_is_thumb_mode): New declaration.
8916 * linux-arm-low.c: Include arch/arm-linux.h
8917 aarch/arm-get-next-pcs.h, sys/syscall.h.
8918 (get_next_pcs_ops): New struct.
8919 (get_next_pcs_addr_bits_remove): New function.
8920 (get_next_pcs_is_thumb): New function.
8921 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8922 (arm_sigreturn_next_pc): Likewise.
8923 (get_next_pcs_syscall_next_pc): Likewise.
8924 (arm_gdbserver_get_next_pcs): Likewise.
8925 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8926 Initialize.
8927 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8928 * server.h: Include gdb_vecs.h.
8929
68ce2059
AT
89302015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8931
8932 * Makefile.in (SFILES): Append common/common-regcache.c.
8933 (OBS): Append common-regcache.o.
8934 (common-regcache.o): New rule.
8935 * regcache.c (init_register_cache): Initialize cache to
8936 REG_UNAVAILABLE.
8937 (regcache_raw_read_unsigned): New function.
8938 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8939 register_status enum.
8940
fa5308bd
AT
89412015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8942
8943 * linux-aarch64-low.c (the_low_targets): Rename
8944 breakpoint_reinsert_addr to get_next_pcs.
8945 * linux-arm-low.c (the_low_targets): Likewise.
8946 * linux-bfin-low.c (the_low_targets): Likewise.
8947 * linux-cris-low.c (the_low_targets): Likewise.
8948 * linux-crisv32-low.c (the_low_targets): Likewise.
8949 * linux-low.c (can_software_single_step): Likewise.
8950 (install_software_single_step_breakpoints): New function.
8951 (start_step_over): Use install_software_single_step_breakpoints.
8952 * linux-low.h: New CORE_ADDR vector.
8953 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8954 get_next_pcs.
8955 * linux-mips-low.c (the_low_targets): Likewise.
8956 * linux-nios2-low.c (the_low_targets): Likewise.
8957 * linux-sparc-low.c (the_low_targets): Likewise.
8958
4a6ed09b
PA
89592015-12-17 Pedro Alves <palves@redhat.com>
8960
8961 * linux-low.c (linux_kill_one_lwp): Remove references to
8962 LinuxThreads.
8963 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8964 to 'kill'.
8965 (linux_init_signals): Delete.
8966 (initialize_low): Adjust.
8967 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8968
7544db95
PA
89692015-12-16 Pedro Alves <palves@redhat.com>
8970
8971 * configure.ac (compiler warning flags): When testing a
8972 -Wno-foo option, check whether -Wfoo works instead.
8973 * configure: Regenerate.
8974
8020350c
DB
89752015-12-11 Don Breazeal <donb@codesourcery.com>
8976
8977 * server.c (process_serial_event): Don't exit from gdbserver
8978 in remote mode if there are still active inferiors.
8979
db91f502
YQ
89802015-12-11 Yao Qi <yao.qi@linaro.org>
8981
8982 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8983 arm_breakpoint_at if the process is 32-bit.
8984
b37a6290
YQ
89852015-12-11 Yao Qi <yao.qi@linaro.org>
8986
8987 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8988 arm breakpoint.
8989
17b1509a
YQ
89902015-12-07 Yao Qi <yao.qi@linaro.org>
8991
8992 * configure.srv: Append arm.o to srv_tgtobj for
8993 aarch64*-*-linux* target.
8994 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8995 from linux-arm-low.c.
8996 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8997 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8998 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8999 (thumb2_breakpoint_len): Likewise.
9000 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9001 (arm_breakpoint_kinds): Likewise.
9002 (arm_breakpoint_kind_from_pc): Likewise.
9003 (arm_sw_breakpoint_from_kind): Likewise.
9004 (arm_breakpoint_kind_from_current_state): Likewise.
9005 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9006 (arm_sw_breakpoint_from_kind): Declare.
9007 (arm_breakpoint_kind_from_current_state): Declare.
9008 (arm_breakpoint_at): Declare.
9009 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9010 arm_sw_breakpoint_from_kind if process is 32-bit.
9011 (aarch64_breakpoint_kind_from_pc): New function.
9012 (aarch64_breakpoint_kind_from_current_state): New function.
9013 (the_low_target): Initialize fields breakpoint_kind_from_pc
9014 and breakpoint_kind_from_current_state.
9015 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9016 linux-aarch32-low.c.
9017 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9018 (arm_breakpoint, arm_breakpoint_len): Likewise.
9019 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9020 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9021 (arm_is_thumb_mode): Likewise.
9022 (arm_breakpoint_at): Likewise.
9023 (arm_breakpoint_kind_from_pc): Likewise.
9024 (arm_sw_breakpoint_from_kind): Likewise.
9025 (arm_breakpoint_kind_from_current_state): Likewise.
9026
9027 Revert:
9028 2015-08-04 Yao Qi <yao.qi@linaro.org>
9029
9030 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9031 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9032 * server.c (extended_protocol): Remove "static".
9033 * server.h (extended_protocol): Declare it.
9034
ece66d65
JS
90352015-12-04 Josh Stone <jistone@redhat.com>
9036
9037 * target.h (struct target_ops) <arch_setup>: Rename to ...
9038 (struct target_ops) <post_create_inferior>: ... this.
9039 (target_arch_setup): Rename to ...
9040 (target_post_create_inferior): ... this, calling post_create_inferior.
9041 * server.c (start_inferior): Update target_arch_setup calls to
9042 target_post_create_inferior.
9043 * linux-low.c (linux_low_ptrace_options): Forward declare.
9044 (linux_arch_setup): Update its comment for general use.
9045 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9046 (struct linux_target_ops): Use linux_post_create_inferior.
9047 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9048 to post_create_inferior.
9049 * nto-low.c (struct nto_target_ops): Likewise.
9050 * spu-low.c (struct spu_target_ops): Likewise.
9051 * win32-low.c (struct win32_target_ops): Likewise.
9052
e58c48b4
AT
90532015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9054
9055 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9056
fbec8956
AT
90572015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9058
9059 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9060 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9061 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9062 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9063 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9064 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9065 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9066 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9067 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9068 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9069 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9070 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9071
9b4c5f87
AT
90722015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9073
9074 * linux-low.c (linux_look_up_symbols): Don't call
9075 linux_supports_traceclone.
9076 * linux-low.h (thread_db_init): Remove use_events argument.
9077 * thread-db.c (thread_db_use_event): Remove global variable.
9078 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9079 (struct thread_db) <td_create_bp>: Remove field.
9080 (thread_db_create_event): Remove function.
9081 (thread_db_enable_reporting): Likewise.
9082 (find_one_thread): Don't check for thread_db_use_events.
9083 (attach_thread): Likewise.
9084 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9085 (try_thread_db_load_1): Don't check for thread_db_use_events.
9086 (thread_db_init): Remove use_events argument and thread events
9087 handling.
9088 (remove_thread_event_breakpoints): Remove function.
9089 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9090
7d00775e
AT
90912015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9092
9093 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9094 New function.
9095 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9096 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9097 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9098 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9099 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9100 Initialize.
9101 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9102 New function.
9103 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9104 * linux-low.c (can_hardware_single_step): Use
9105 supports_hardware_single_step.
9106 (can_software_single_step): New function.
9107 (start_step_over): Call can_software_single_step.
9108 (linux_supports_hardware_single_step): New function.
9109 (struct target_ops) <supports_software_single_step>: Initialize.
9110 * linux-low.h (struct linux_target_ops)
9111 <supports_hardware_single_step>: Initialize.
9112 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9113 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9114 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9115 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9116 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9117 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9118 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9119 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9120 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9121 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9122 Initialize.
9123 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9124 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9125 Initialize.
9126 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9127 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9128 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9129 New function.
9130 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9131 * target.h (struct target_ops): <supports_software_single_step>:
9132 New field.
9133 (target_supports_software_single_step): New macro.
9134
2d97cd35
AT
91352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9136
9137 * linux-low.c (linux_wait_1): Fix pc advance condition.
9138 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9139 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9140
769ef81f
AT
91412015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9142
9143 * linux-arm-low.c (arm_is_thumb_mode): New function.
9144 (arm_breakpoint_at): Use arm_is_thumb_mode.
9145 (arm_breakpoint_kind_from_current_state): New function.
9146 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9147 Initialize.
9148 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9149 (linux_breakpoint_kind_from_current_state): New function.
9150 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9151 * linux-low.h (struct linux_target_ops)
9152 <breakpoint_kind_from_current_state>: New field.
9153 * target.h (struct target_ops): Likewise.
9154 (target_breakpoint_kind_from_current_state): New macro.
9155
1bebeeca
PA
91562015-11-30 Pedro Alves <palves@redhat.com>
9157
9158 * linux-low.c (linux_resume): Wake up the event loop before
9159 returning.
9160
a67a9fae
PA
91612015-11-30 Pedro Alves <palves@redhat.com>
9162
9163 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9164 check.
9165 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9166 to -1.
9167 * target.c (struct thread_search): New structure.
9168 (thread_search_callback): New function.
9169 (prev_general_thread): New global.
9170 (prepare_to_access_memory, done_accessing_memory): New functions.
9171 * target.h (prepare_to_access_memory, done_accessing_memory):
9172 Replace macros with function declarations.
9173
f2faf941
PA
91742015-11-30 Pedro Alves <palves@redhat.com>
9175
9176 PR 14618
9177 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9178 report TARGET_WAITKIND_NO_RESUMED.
9179 * remote-utils.c (prepare_resume_reply): Handle
9180 TARGET_WAITKIND_NO_RESUMED.
9181 * server.c (report_no_resumed): New global.
9182 (handle_query) <qSupported>: Handle "no-resumed+". Report
9183 "no-resumed+" support.
9184 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9185 return error if the client doesn't support no-resumed events.
9186 (push_stop_notification): New function.
9187 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9188 events if the client supports them.
9189
a681f9c9
PA
91902015-11-30 Pedro Alves <palves@redhat.com>
9191
9192 * linux-low.c (thread_still_has_status_pending_p): Don't check
9193 vCont;t here.
9194 (lwp_resumed): New function.
9195 (status_pending_p_callback): Return early if the LWP is not
9196 supposed to be resumed.
9197
65706a29
PA
91982015-11-30 Pedro Alves <palves@redhat.com>
9199
9200 * linux-low.c (handle_extended_wait): Assert that the LWP's
9201 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9202 thread create events, leave the new child's status pending.
9203 (linux_low_filter_event): If GDB wants to hear about thread exit
9204 events, leave the LWP marked dead and don't delete it.
9205 (linux_wait_for_event_filtered): Don't check for thread exit.
9206 (filter_exit_event): New function.
9207 (linux_wait_1): Use it, when returning an exit event.
9208 (linux_resume_one_lwp_throw): Assert that the LWP's
9209 waitstatus is TARGET_WAITKIND_IGNORE.
9210 * remote-utils.c (prepare_resume_reply): Handle
9211 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9212 * server.c (report_thread_events): New global.
9213 (handle_general_set): Handle QThreadEvents.
9214 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9215 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9216 TARGET_WAITKIND_THREAD_EXITED.
9217 * server.h (report_thread_events): Declare.
9218
56cf4bed
PA
92192015-11-30 Pedro Alves <palves@redhat.com>
9220
9221 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9222 the thread's last_resume_kind was resume_stop.
9223
500c1d85
PA
92242015-11-30 Pedro Alves <palves@redhat.com>
9225
9226 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9227 before returning.
9228
de979965
PA
92292015-11-30 Pedro Alves <palves@redhat.com>
9230
9231 * server.c (handle_v_requests): Handle vCtrlC.
9232
34c65914
PA
92332015-11-30 Pedro Alves <palves@redhat.com>
9234
9235 * gdbthread.h (find_any_thread_of_pid): Declare.
9236 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9237 functions.
9238 * server.c (handle_query): If current_thread is NULL, look for
9239 another thread of the selected process.
9240
79efa585 92412015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9242 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9243
9244 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9245 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9246 name in reply.
9247 * target.h (struct target_ops) <thread_name>: New field.
9248 (target_thread_name): New macro.
9249
80d82c19
JB
92502015-11-23 Joel Brobecker <brobecker@adacore.com>
9251
9252 * regcache.h (regcache_invalidate_pid): Add declaration.
9253 * regcache.c (regcache_invalidate_pid): New function, extracted
9254 from regcache_invalidate.
9255 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9256 Add trivial documentation comment.
9257 * lynx-low.c: Use regcache_invalidate_pid instead of
9258 regcache_invalidate.
9259
64da5dd5
JB
92602015-11-23 Joel Brobecker <brobecker@adacore.com>
9261
9262 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9263 and Elf64_auxv_t if the target is Android.
9264
37ce4055
DE
92652015-11-22 Doug Evans <xdje42@gmail.com>
9266
9267 * target.h: #include <sys/types.h>.
9268
06e03fff
PA
92692015-11-19 Pedro Alves <palves@redhat.com>
9270
9271 * linux-low.c (linux_process_qsupported): Change prototype.
9272 Adjust.
9273 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9274 Change prototype.
9275 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9276 and adjust to loop over all features.
9277 * server.c (handle_query) <qSupported>: Adjust to call
9278 target_process_qsupported once, passing it a vector of unprocessed
9279 features.
9280 * target.h (struct target_ops) <process_qsupported>: Change
9281 prototype.
9282 (target_process_qsupported): Adjust.
9283
9a084706
PA
92842015-11-19 Pedro Alves <palves@redhat.com>
9285
9286 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9287 mode.
9288 * configure: Regenerate.
9289
dad44a1f
PA
92902015-11-19 Pedro Alves <palves@redhat.com>
9291
9292 * configure: Regenerate.
9293
231c0592
YQ
92942015-11-19 Yao Qi <yao.qi@linaro.org>
9295
9296 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9297 type to uint32_t.
9298
6c1c9a8b
YQ
92992015-11-19 Yao Qi <yao.qi@linaro.org>
9300
9301 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9302 (struct aarch64_operand): Move enum out.
9303
9caa3311
YQ
93042015-11-19 Yao Qi <yao.qi@linaro.org>
9305
9306 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9307 struct user_fpsimd_state *.
9308 (aarch64_store_fpregset): Likewise.
9309
6a69a054
YQ
93102015-11-19 Yao Qi <yao.qi@linaro.org>
9311
9312 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9313 struct user_pt_regs *.
9314 (aarch64_store_gregset): Likewise.
9315
1798301e
PA
93162015-11-18 Pedro Alves <palves@redhat.com>
9317
9318 * Makefile.in (all_object_files): Add $IPA_OBJS.
9319
ce7715e2
PA
93202015-11-17 Pedro Alves <palves@redhat.com>
9321
9322 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9323 GDB_SIGNAL_0 and gdb_signal_to_string.
9324
c0879059
PA
93252015-11-17 Pedro Alves <palves@redhat.com>
9326
9327 * win32-low.c (handle_output_debug_string): Remove parameter.
9328 (win32_kill): Remove our_status local and adjust call to
9329 handle_output_debug_string.
9330 (get_child_debug_event): Adjust call to
9331 handle_output_debug_string.
9332
1996e237
SM
93332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9334
9335 * linux-mips-low.c (mips_fill_gregset): Add cast.
9336 (mips_store_gregset): Likewise.
9337 (mips_fill_fpregset): Likewise.
9338 (mips_store_fpregset): Likewise.
9339
cbec665b
SM
93402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9341
9342 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9343 priv.
9344
eb3e3c67
SM
93452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9346
9347 * linux-mips-low.c (mips_linux_new_thread): Change type of
9348 watch_type to enum target_hw_bp_type.
9349
171de4b8
SM
93502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9351
9352 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9353 Change return type to arm_hwbp_type.
9354
04248ead
SM
93552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9356
9357 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9358 (arm_store_gregset): Likewise.
9359 * linux-arm-low.c (arm_get_hwcap): Likewise.
9360 (arm_read_description): Likewise.
9361
04b3479c
SM
93622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9363
9364 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9365
2bc84e8a
SM
93662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9367
9368 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9369 (ppc_fill_vsxregset): Likewise.
9370 (ppc_store_vsxregset): Likewise.
9371 (ppc_fill_vrregset): Likewise.
9372 (ppc_store_vrregset): Likewise.
9373 (ppc_fill_evrregset): Likewise.
9374 (ppc_store_evrregset): Likewise.
9375
e6c5bb05
SM
93762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9377
9378 * linux-ppc-low.c (ppc_usrregs_info): Remove
9379 forward-declaration.
9380 (ppc_arch_setup): Move lower in file.
9381
7ea45d72
SM
93822015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9383
9384 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9385 (ps_pdwrite): Likewise.
9386
69291610
HW
93872015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9388
9389 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9390 to after assert checks.
9391
b42945fd
SM
93922015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9393
9394 * proc-service.c (ps_pdread): Add/adjust casts.
9395 (ps_pdwrite): Add/adjust casts.
9396
d6f85c84
SM
93972015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9398
9399 * server.c (handle_search_memory_1): Cast return value of
9400 memmem.
9401
f98cd059
SM
94022015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9403
9404 * server.c (write_qxfer_response): Change type of data to
9405 gdb_byte *.
9406
d2412fa5
PA
94072015-10-29 Pedro Alves <palves@redhat.com>
9408
9409 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9410
c17414a2
PA
94112015-10-29 Pedro Alves <palves@redhat.com>
9412
9413 * tracepoint.c (clear_installed_tracepoints): Add casts.
9414
e053fbc4
PA
94152015-10-29 Pedro Alves <palves@redhat.com>
9416
9417 * server.c (handle_v_cont, process_serial_event): Add enum
9418 gdb_signal casts to signal parsing code.
9419
add67df8
PA
94202015-10-29 Pedro Alves <palves@redhat.com>
9421
9422 * linux-low.h (NULL_REGSET): Define.
9423 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9424 * linux-arm-low.c (arm_regsets): Likewise.
9425 * linux-crisv32-low.c (cris_regsets): Likewise.
9426 * linux-m68k-low.c (m68k_regsets): Likewise.
9427 * linux-mips-low.c (mips_regsets): Likewise.
9428 * linux-nios2-low.c (nios2_regsets): Likewise.
9429 * linux-ppc-low.c (ppc_regsets): Likewise.
9430 * linux-s390-low.c (s390_regsets): Likewise.
9431 * linux-sh-low.c (sh_regsets): Likewise.
9432 * linux-sparc-low.c (sparc_regsets): Likewise.
9433 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9434 * linux-tile-low.c (tile_regsets): Likewise.
9435 * linux-x86-low.c (x86_regsets): Likewise.
9436 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9437
50bc912a
PA
94382015-10-29 Pedro Alves <palves@redhat.com>
9439
9440 * linux-low.h (NULL_REGSET): Define.
9441 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9442 * linux-arm-low.c (arm_regsets): Likewise.
9443 * linux-crisv32-low.c (cris_regsets): Likewise.
9444 * linux-m68k-low.c (m68k_regsets): Likewise.
9445 * linux-mips-low.c (mips_regsets): Likewise.
9446 * linux-nios2-low.c (nios2_regsets): Likewise.
9447 * linux-ppc-low.c (ppc_regsets): Likewise.
9448 * linux-s390-low.c (s390_regsets): Likewise.
9449 * linux-sh-low.c (sh_regsets): Likewise.
9450 * linux-sparc-low.c (sparc_regsets): Likewise.
9451 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9452 * linux-tile-low.c (tile_regsets): Likewise.
9453 * linux-x86-low.c (x86_regsets): Likewise.
9454 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9455
682b2546
DE
94562015-10-26 Doug Evans <dje@google.com>
9457
9458 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9459
963843d4
DE
94602015-10-26 Doug Evans <dje@google.com>
9461
9462 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9463
d41401ac
DE
94642015-10-26 Doug Evans <dje@google.com>
9465
9466 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9467 for debug_printf.
9468 (attach_thread, find_new_threads_callback): Ditto.
9469
3db28855
AT
94702015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9471
9472 * mem-break.h (set_breakpoint_data): Remove.
9473
fb78e89c
AT
94742015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9475
9476 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9477 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9478 (initialize_low): Remove set_breakpoint_data call.
9479 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9480 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9481 (initialize_low): Remove set_breakpoint_data call.
9482 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9483 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9484 (initialize_low): Remove set_breakpoint_data call.
9485
2e6ee069
AT
94862015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9487
9488 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9489 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9490 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9491 * target.h (target_breakpoint_kind_from_pc): New macro.
9492
1652a986
AT
94932015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9494
9495 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9496 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9497 the default breakpoint kind.
9498
abeead09
AT
94992015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9500
9501 * linux-arm-low.c (arm_supports_z_point_type): Add software
9502 breakpoint support.
9503
b0b4b501
AT
95042015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9505
9506 * linux-arm-low.c: Refactor breakpoint definitions.
9507 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9508 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9509
8689682c
AT
95102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9511
9512 * Makefile.in: Add arm.c/o.
9513 * configure.srv: Likewise.
9514 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9515 (arm_breakpoint_kind_from_pc): New function.
9516 (arm_sw_breakpoint_from_kind): Return proper kind.
9517 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9518
27165294
AT
95192015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9520
9521 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9522 removal.
9523 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9524 (struct raw_breakpoint) <size>: Remove.
9525 (struct raw_breakpoint) <kind>: Add.
9526 (bp_size): New function.
9527 (bp_opcode): Likewise.
9528 (find_raw_breakpoint_at): Adjust for kind.
9529 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9530 (remove_memory_breakpoint): Adjust for kind call bp_size.
9531 (set_raw_breakpoint_at): Adjust for kind.
9532 (set_breakpoint): Likewise.
9533 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9534 (delete_raw_breakpoint): Adjust for kind.
9535 (delete_breakpoint): Likewise.
9536 (find_gdb_breakpoint): Likewise.
9537 (set_gdb_breakpoint_1): Likewise.
9538 (set_gdb_breakpoint): Likewise.
9539 (delete_gdb_breakpoint_1): Likewise.
9540 (delete_gdb_breakpoint): Likewise.
9541 (uninsert_raw_breakpoint): Likewise.
9542 (reinsert_raw_breakpoint): Likewise.
9543 (set_breakpoint_data): Remove.
9544 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9545 (check_mem_read): Adjust for kind call bp_size.
9546 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9547 (clone_one_breakpoint): Adjust for kind.
9548 * mem-break.h (set_gdb_breakpoint): Likewise.
9549 (delete_gdb_breakpoint): Likewise.
9550 * server.c (process_serial_event): Likewise.
9551
dd373349
AT
95522015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9553
9554 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9560 (arm_sw_breakpoint_from_kind): New function.
9561 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9562 (struct linux_target_ops) <breakpoint>: Remove.
9563 (struct linux_target_ops) <breakpoint_len>: Remove.
9564 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9565 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9566 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9567 (struct linux_target_ops) <breakpoint>: Remove.
9568 (struct linux_target_ops) <breakpoint_len>: Remove.
9569 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9570 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9571 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9572 (struct linux_target_ops) <breakpoint>: Remove.
9573 (struct linux_target_ops) <breakpoint_len>: Remove.
9574 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9575 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9576 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9577 and sw_breakpoint_from_kind to increment the pc.
9578 (linux_breakpoint_kind_from_pc): New function.
9579 (linux_sw_breakpoint_from_kind): New function.
9580 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9581 (initialize_low): Call breakpoint_kind_from_pc and
9582 sw_breakpoint_from_kind to replace breakpoint_data/len.
9583 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9584 New field.
9585 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9586 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9587 (struct linux_target_ops) <breakpoint>: Remove.
9588 (struct linux_target_ops) <breakpoint_len>: Remove.
9589 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9590 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9591 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9592 (struct linux_target_ops) <breakpoint>: Remove.
9593 (struct linux_target_ops) <breakpoint_len>: Remove.
9594 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9595 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9596 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9597 (struct linux_target_ops) <breakpoint>: Remove.
9598 (struct linux_target_ops) <breakpoint_len>: Remove.
9599 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9600 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9601 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9602 (struct linux_target_ops) <breakpoint>: Remove.
9603 (struct linux_target_ops) <breakpoint_len>: Remove.
9604 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9605 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9606 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9607 (struct linux_target_ops) <breakpoint>: Remove.
9608 (struct linux_target_ops) <breakpoint_len>: Remove.
9609 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9610 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9611 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9612 (struct linux_target_ops) <breakpoint>: Remove.
9613 (struct linux_target_ops) <breakpoint_len>: Remove.
9614 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9615 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9616 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9617 (struct linux_target_ops) <breakpoint>: Remove.
9618 (struct linux_target_ops) <breakpoint_len>: Remove.
9619 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9620 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9621 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9622 (struct linux_target_ops) <breakpoint>: Remove.
9623 (struct linux_target_ops) <breakpoint_len>: Remove.
9624 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9625 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9626 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9627 (struct linux_target_ops) <breakpoint>: Remove.
9628 (struct linux_target_ops) <breakpoint_len>: Remove.
9629 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9630 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9631 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9632 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9633 (struct linux_target_ops) <breakpoint>: Remove.
9634 (struct linux_target_ops) <breakpoint_len>: Remove.
9635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9637 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9638 (struct linux_target_ops) <breakpoint>: Remove.
9639 (struct linux_target_ops) <breakpoint_len>: Remove.
9640 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9641 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9642
4cd98a19
AT
96432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9644
9645 * linux-cris-low.c (cris_get_pc): Remove void arg.
9646
774ee6d2
AR
96472015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9648
9649 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9650 variable name.
9651
833dcd29
AR
96522015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9653
9654 * inferiors.c (thread_pid_matches_callback): New function.
9655 (find_thread_process): New function.
9656 (remove_thread): Reset current_thread.
9657 (remove_process): Assert threads have been removed first.
9658
8d689ee5
YQ
96592015-10-15 Yao Qi <yao.qi@linaro.org>
9660
9661 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9662 if it is 3.
9663 (aarch64_remove_point): Likewise.
9664 * regcache.c (regcache_register_size): New function.
9665
1c2e1515
YQ
96662015-10-12 Yao Qi <yao.qi@linaro.org>
9667
9668 * linux-aarch64-low.c: Update all callers as emit_load_store
9669 is renamed to aarch64_emit_load_store.
9670
e1c587c3
YQ
96712015-10-12 Yao Qi <yao.qi@linaro.org>
9672
9673 * linux-aarch64-low.c: Update all callers of function renaming
9674 from emit_insn to aarch64_emit_insn.
9675
b6542f81
YQ
96762015-10-12 Yao Qi <yao.qi@linaro.org>
9677
9678 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9679 arch/aarch64-insn.h.
9680 (struct aarch64_memory_operand): Likewise.
9681 (ENCODE): Likewise.
9682 (emit_insn): Move to arch/aarch64-insn.c.
9683 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9684 (emit_load_store): Move to arch/aarch64-insn.c.
9685 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9686 (can_encode_int32): Remove.
9687
246994ce
YQ
96882015-10-12 Yao Qi <yao.qi@linaro.org>
9689
9690 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9691 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9692 (aarch64_relocate_instruction): Likewise.
9693 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9694 (struct aarch64_insn_visitor): Likewise.
9695
0badd99f
YQ
96962015-10-12 Yao Qi <yao.qi@linaro.org>
9697
9698 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9699 (struct aarch64_insn_visitor): New.
9700 (struct aarch64_insn_relocation_data): New.
9701 (aarch64_ftrace_insn_reloc_b): New function.
9702 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9703 (aarch64_ftrace_insn_reloc_cb): Likewise.
9704 (aarch64_ftrace_insn_reloc_tb): Likewise.
9705 (aarch64_ftrace_insn_reloc_adr): Likewise.
9706 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9707 (aarch64_ftrace_insn_reloc_others): Likewise.
9708 (visitor): New.
9709 (aarch64_relocate_instruction): Use visitor.
9710
dfaffe9d
YQ
97112015-10-12 Yao Qi <yao.qi@linaro.org>
9712
9713 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9714 int. Add argument buf.
9715 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9716 aarch64_relocate_instruction.
9717
70b439f0
YQ
97182015-10-12 Yao Qi <yao.qi@linaro.org>
9719
9720 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9721 argument insn. Remove local variable insn. Don't call
9722 target_read_uint32.
9723 (aarch64_install_fast_tracepoint_jump_pad): Call
9724 target_read_uint32.
9725
7781c06f
YQ
97262015-09-30 Yao Qi <yao.qi@linaro.org>
9727
9728 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9729 (emit_load_store_pair): Likewise.
9730
9a3c8263
SM
97312015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9732
9733 * dll.c (match_dll): Add cast(s).
9734 (unloaded_dll): Likewise.
9735 * linux-low.c (second_thread_of_pid_p): Likewise.
9736 (delete_lwp_callback): Likewise.
9737 (count_events_callback): Likewise.
9738 (select_event_lwp_callback): Likewise.
9739 (linux_set_resume_request): Likewise.
9740 * server.c (accumulate_file_name_length): Likewise.
9741 (emit_dll_description): Likewise.
9742 (handle_qxfer_threads_worker): Likewise.
9743 (visit_actioned_threads): Likewise.
9744 * thread-db.c (any_thread_of): Likewise.
9745 * tracepoint.c (same_process_p): Likewise.
9746 (match_blocktype): Likewise.
9747 (build_traceframe_info_xml): Likewise.
9748
224c3ddb
SM
97492015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9750
9751 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9752 assignment.
9753 (gdb_unparse_agent_expr): Likewise.
9754 * hostio.c (require_data): Likewise.
9755 (handle_pread): Likewise.
9756 * linux-low.c (disable_regset): Likewise.
9757 (fetch_register): Likewise.
9758 (store_register): Likewise.
9759 (get_dynamic): Likewise.
9760 (linux_qxfer_libraries_svr4): Likewise.
9761 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9762 (set_fast_tracepoint_jump): Likewise.
9763 (uninsert_fast_tracepoint_jumps_at): Likewise.
9764 (reinsert_fast_tracepoint_jumps_at): Likewise.
9765 (validate_inserted_breakpoint): Likewise.
9766 (clone_agent_expr): Likewise.
9767 * regcache.c (init_register_cache): Likewise.
9768 * remote-utils.c (putpkt_binary_1): Likewise.
9769 (decode_M_packet): Likewise.
9770 (decode_X_packet): Likewise.
9771 (look_up_one_symbol): Likewise.
9772 (relocate_instruction): Likewise.
9773 (monitor_output): Likewise.
9774 * server.c (handle_search_memory): Likewise.
9775 (handle_qxfer_exec_file): Likewise.
9776 (handle_qxfer_libraries): Likewise.
9777 (handle_qxfer): Likewise.
9778 (handle_query): Likewise.
9779 (handle_v_cont): Likewise.
9780 (handle_v_run): Likewise.
9781 (captured_main): Likewise.
9782 * target.c (write_inferior_memory): Likewise.
9783 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9784 * tracepoint.c (init_trace_buffer): Likewise.
9785 (add_tracepoint_action): Likewise.
9786 (add_traceframe): Likewise.
9787 (add_traceframe_block): Likewise.
9788 (cmd_qtdpsrc): Likewise.
9789 (cmd_qtdv): Likewise.
9790 (cmd_qtstatus): Likewise.
9791 (response_source): Likewise.
9792 (response_tsv): Likewise.
9793 (cmd_qtnotes): Likewise.
9794 (gdb_collect): Likewise.
9795 (initialize_tracepoint): Likewise.
9796
afbe19f8
PL
97972015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9798
9799 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9800 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9801 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9802 <NOP>: New.
9803 (enum aarch64_condition_codes): New enum.
9804 (w0): New static global.
9805 (fp): Likewise.
9806 (lr): Likewise.
9807 (struct aarch64_memory_operand) <type>: New
9808 MEMORY_OPERAND_POSTINDEX type.
9809 (postindex_memory_operand): New helper function.
9810 (emit_ret): New function.
9811 (emit_load_store_pair): New function, factored out of emit_stp
9812 with support for MEMORY_OPERAND_POSTINDEX.
9813 (emit_stp): Rewrite using emit_load_store_pair.
9814 (emit_ldp): New function.
9815 (emit_load_store): Likewise.
9816 (emit_ldr): Mention post-index instruction in comment.
9817 (emit_ldrh): New function.
9818 (emit_ldrb): New function.
9819 (emit_ldrsw): Mention post-index instruction in comment.
9820 (emit_str): Likewise.
9821 (emit_subs): New function.
9822 (emit_cmp): Likewise.
9823 (emit_and): Likewise.
9824 (emit_orr): Likewise.
9825 (emit_orn): Likewise.
9826 (emit_eor): Likewise.
9827 (emit_mvn): Likewise.
9828 (emit_lslv): Likewise.
9829 (emit_lsrv): Likewise.
9830 (emit_asrv): Likewise.
9831 (emit_mul): Likewise.
9832 (emit_sbfm): Likewise.
9833 (emit_sbfx): Likewise.
9834 (emit_ubfm): Likewise.
9835 (emit_ubfx): Likewise.
9836 (emit_csinc): Likewise.
9837 (emit_cset): Likewise.
9838 (emit_nop): Likewise.
9839 (emit_ops_insns): New helper function.
9840 (emit_pop): Likewise.
9841 (emit_push): Likewise.
9842 (aarch64_emit_prologue): New function.
9843 (aarch64_emit_epilogue): Likewise.
9844 (aarch64_emit_add): Likewise.
9845 (aarch64_emit_sub): Likewise.
9846 (aarch64_emit_mul): Likewise.
9847 (aarch64_emit_lsh): Likewise.
9848 (aarch64_emit_rsh_signed): Likewise.
9849 (aarch64_emit_rsh_unsigned): Likewise.
9850 (aarch64_emit_ext): Likewise.
9851 (aarch64_emit_log_not): Likewise.
9852 (aarch64_emit_bit_and): Likewise.
9853 (aarch64_emit_bit_or): Likewise.
9854 (aarch64_emit_bit_xor): Likewise.
9855 (aarch64_emit_bit_not): Likewise.
9856 (aarch64_emit_equal): Likewise.
9857 (aarch64_emit_less_signed): Likewise.
9858 (aarch64_emit_less_unsigned): Likewise.
9859 (aarch64_emit_ref): Likewise.
9860 (aarch64_emit_if_goto): Likewise.
9861 (aarch64_emit_goto): Likewise.
9862 (aarch64_write_goto_address): Likewise.
9863 (aarch64_emit_const): Likewise.
9864 (aarch64_emit_call): Likewise.
9865 (aarch64_emit_reg): Likewise.
9866 (aarch64_emit_pop): Likewise.
9867 (aarch64_emit_stack_flush): Likewise.
9868 (aarch64_emit_zero_ext): Likewise.
9869 (aarch64_emit_swap): Likewise.
9870 (aarch64_emit_stack_adjust): Likewise.
9871 (aarch64_emit_int_call_1): Likewise.
9872 (aarch64_emit_void_call_2): Likewise.
9873 (aarch64_emit_eq_goto): Likewise.
9874 (aarch64_emit_ne_goto): Likewise.
9875 (aarch64_emit_lt_goto): Likewise.
9876 (aarch64_emit_le_goto): Likewise.
9877 (aarch64_emit_gt_goto): Likewise.
9878 (aarch64_emit_ge_got): Likewise.
9879 (aarch64_emit_ops_impl): New static global variable.
9880 (aarch64_emit_ops): New target function, return
9881 &aarch64_emit_ops_impl.
9882 (struct linux_target_ops): Install it.
9883
bb903df0
PL
98842015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9885
9886 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9887 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9888 aarch64-ipa.o.
9889 * linux-aarch64-ipa.c: New file.
9890 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9891 and endian.h.
9892 (aarch64_get_thread_area): New target method.
9893 (extract_signed_bitfield): New helper function.
9894 (aarch64_decode_ldr_literal): New function.
9895 (enum aarch64_opcodes): New enum.
9896 (struct aarch64_register): New struct.
9897 (struct aarch64_operand): New struct.
9898 (x0): New static global.
9899 (x1): Likewise.
9900 (x2): Likewise.
9901 (x3): Likewise.
9902 (x4): Likewise.
9903 (w2): Likewise.
9904 (ip0): Likewise.
9905 (sp): Likewise.
9906 (xzr): Likewise.
9907 (aarch64_register): New helper function.
9908 (register_operand): Likewise.
9909 (immediate_operand): Likewise.
9910 (struct aarch64_memory_operand): New struct.
9911 (offset_memory_operand): New helper function.
9912 (preindex_memory_operand): Likewise.
9913 (enum aarch64_system_control_registers): New enum.
9914 (ENCODE): New macro.
9915 (emit_insn): New helper function.
9916 (emit_b): New function.
9917 (emit_bcond): Likewise.
9918 (emit_cb): Likewise.
9919 (emit_tb): Likewise.
9920 (emit_blr): Likewise.
9921 (emit_stp): Likewise.
9922 (emit_ldp_q_offset): Likewise.
9923 (emit_stp_q_offset): Likewise.
9924 (emit_load_store): Likewise.
9925 (emit_ldr): Likewise.
9926 (emit_ldrsw): Likewise.
9927 (emit_str): Likewise.
9928 (emit_ldaxr): Likewise.
9929 (emit_stxr): Likewise.
9930 (emit_stlr): Likewise.
9931 (emit_data_processing_reg): Likewise.
9932 (emit_data_processing): Likewise.
9933 (emit_add): Likewise.
9934 (emit_sub): Likewise.
9935 (emit_mov): Likewise.
9936 (emit_movk): Likewise.
9937 (emit_mov_addr): Likewise.
9938 (emit_mrs): Likewise.
9939 (emit_msr): Likewise.
9940 (emit_sevl): Likewise.
9941 (emit_wfe): Likewise.
9942 (append_insns): Likewise.
9943 (can_encode_int32_in): New helper function.
9944 (aarch64_relocate_instruction): New function.
9945 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9946 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9947 (struct linux_target_ops): Install aarch64_get_thread_area,
9948 aarch64_install_fast_tracepoint_jump_pad and
9949 aarch64_get_min_fast_tracepoint_insn_len.
9950
787749ea
PL
99512015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9952
9953 * Makefile.in (aarch64-insn.o): New rule.
9954 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9955
9812b2e6
YQ
99562015-09-21 Yao Qi <yao.qi@linaro.org>
9957
9958 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9959
18fe412b
YQ
99602015-09-21 Yao Qi <yao.qi@linaro.org>
9961
9962 * tracepoint.c (max_jump_pad_size): Remove.
9963
a0cc84cd
YQ
99642015-09-18 Yao Qi <yao.qi@linaro.org>
9965
9966 * linux-aarch64-low.c: Don't include sys/uio.h.
9967 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9968
d78908cf
WW
99692015-09-16 Wei-cheng Wang <cole945@gmail.com>
9970
9971 * tracepoint.c (eval_result_type): Change prototype.
9972 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9973
d57e0d50
PA
99742015-09-15 Pedro Alves <palves@redhat.com>
9975
9976 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9977 Check whether to report exec events instead of checking whether
9978 multiprocess is enabled.
9979
5a676acc
PA
99802015-09-15 Pedro Alves <palves@redhat.com>
9981
9982 PR remote/18965
9983 * remote-utils.c (prepare_resume_reply): Merge
9984 TARGET_WAITKIND_VFORK_DONE switch case with the
9985 TARGET_WAITKIND_FORKED case.
9986
7c5d0fad
YQ
99872015-09-15 Yao Qi <yao.qi@linaro.org>
9988
9989 * server.c (handle_query): Check string comparison using
9990 "else if" instead of "if".
9991
750ce8d1
YQ
99922015-09-15 Yao Qi <yao.qi@linaro.org>
9993
9994 * server.c (vCont_supported): New global variable.
9995 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9996 matches. Append ";vContSupported+" to own_buf.
9997 (handle_v_requests): Append ";s;S" to own_buf if target supports
9998 hardware single step or vCont_supported is false.
9999 (capture_main): Set vCont_supported to zero.
10000
70b90b91
YQ
100012015-09-15 Yao Qi <yao.qi@linaro.org>
10002
10003 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10004 it to ...
10005 (linux_supports_hardware_single_step): ... New function.
10006 (linux_target_ops): Update.
10007 * lynx-low.c (lynx_target_ops): Set field
10008 supports_hardware_single_step to target_can_do_hardware_single_step.
10009 * nto-low.c (nto_target_ops): Likewise.
10010 * spu-low.c (spu_target_ops): Likewise.
10011 * win32-low.c (win32_target_ops): Likewise.
10012 * target.c (target_can_do_hardware_single_step): New function.
10013 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10014 Remove. <supports_hardware_single_step>: New field.
10015 (target_supports_conditional_breakpoints): Remove.
10016 (target_supports_hardware_single_step): New macro.
10017 (target_can_do_hardware_single_step): Declare.
10018 * server.c (handle_query): Use target_supports_hardware_single_step
10019 instead of target_supports_conditional_breakpoints.
10020
ade90bde
YQ
100212015-09-15 Yao Qi <yao.qi@linaro.org>
10022
10023 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10024 function.
10025 (struct linux_target_ops the_low_target): Install
10026 aarch64_linux_siginfo_fixup.
10027
94585166
DB
100282015-09-11 Don Breazeal <donb@codesourcery.com>
10029 Luis Machado <lgustavo@codesourcery.com>
10030
10031 * linux-low.c (linux_mourn): Static declaration.
10032 (linux_arch_setup): Move in front of
10033 handle_extended_wait.
10034 (linux_arch_setup_thread): New function.
10035 (handle_extended_wait): Handle exec events. Call
10036 linux_arch_setup_thread. Make event_lwp argument a
10037 pointer-to-a-pointer.
10038 (check_zombie_leaders): Do not check stopped threads.
10039 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10040 (linux_low_filter_event): Add lwp and thread for exec'ing
10041 non-leader thread if leader thread has been deleted.
10042 Refactor code into linux_arch_setup_thread and call it.
10043 Pass child lwp pointer by reference to handle_extended_wait.
10044 (linux_wait_for_event_filtered): Update comment.
10045 (linux_wait_1): Prevent clobbering exec event status.
10046 (linux_supports_exec_events): New function.
10047 (linux_target_ops) <supports_exec_events>: Initialize new member.
10048 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10049 new member.
10050 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10051 * server.c (report_exec_events): New global variable.
10052 (handle_query): Handle qSupported query for exec-events feature.
10053 (captured_main): Initialize report_exec_events.
10054 * server.h (report_exec_events): Declare new global variable.
10055 * target.h (struct target_ops) <supports_exec_events>: New
10056 member.
10057 (target_supports_exec_events): New macro.
10058 * win32-low.c (win32_target_ops) <supports_exec_events>:
10059 Initialize new member.
10060
0568462b
MM
100612015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10062
10063 * linux-low.c (linux_low_enable_btrace): Remove.
10064 (linux_target_ops): Replace linux_low_enable_btrace with
10065 linux_enable_btrace.
10066
39edd165
YQ
100672015-09-03 Yao Qi <yao.qi@linaro.org>
10068
10069 * linux-aarch64-low.c (aarch64_insert_point): Call
10070 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10071 returns true.
10072
1db33b5a
UW
100732015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10074
10075 * linux-low.c (check_stopped_by_breakpoint): Use
10076 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10077
ab290430
PA
100782015-08-27 Pedro Alves <palves@redhat.com>
10079
10080 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10081
8d749320
SM
100822015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10083
6711b7f8
SM
10084 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10085 the XNEW-family equivalent.
8d749320
SM
10086 (compile_bytecodes): Likewise.
10087 * dll.c (loaded_dll): Likewise.
10088 * event-loop.c (append_callback_event): Likewise.
10089 (create_file_handler): Likewise.
10090 (create_file_event): Likewise.
10091 * hostio.c (handle_open): Likewise.
10092 * inferiors.c (add_thread): Likewise.
10093 (add_process): Likewise.
10094 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10095 * linux-arm-low.c (arm_new_process): Likewise.
10096 (arm_new_thread): Likewise.
10097 * linux-low.c (add_to_pid_list): Likewise.
10098 (linux_add_process): Likewise.
10099 (handle_extended_wait): Likewise.
10100 (add_lwp): Likewise.
10101 (enqueue_one_deferred_signal): Likewise.
10102 (enqueue_pending_signal): Likewise.
10103 (linux_resume_one_lwp_throw): Likewise.
10104 (linux_resume_one_thread): Likewise.
10105 (linux_read_memory): Likewise.
10106 (linux_write_memory): Likewise.
10107 * linux-mips-low.c (mips_linux_new_process): Likewise.
10108 (mips_linux_new_thread): Likewise.
10109 (mips_add_watchpoint): Likewise.
10110 * linux-x86-low.c (initialize_low_arch): Likewise.
10111 * lynx-low.c (lynx_add_process): Likewise.
10112 * mem-break.c (set_raw_breakpoint_at): Likewise.
10113 (set_breakpoint): Likewise.
10114 (add_condition_to_breakpoint): Likewise.
10115 (add_commands_to_breakpoint): Likewise.
10116 (clone_agent_expr): Likewise.
10117 (clone_one_breakpoint): Likewise.
10118 * regcache.c (new_register_cache): Likewise.
10119 * remote-utils.c (look_up_one_symbol): Likewise.
10120 * server.c (queue_stop_reply): Likewise.
10121 (start_inferior): Likewise.
10122 (queue_stop_reply_callback): Likewise.
10123 (handle_target_event): Likewise.
10124 * spu-low.c (fetch_ppc_memory): Likewise.
10125 (store_ppc_memory): Likewise.
10126 * target.c (set_target_ops): Likewise.
10127 * thread-db.c (thread_db_load_search): Likewise.
10128 (try_thread_db_load_1): Likewise.
10129 * tracepoint.c (add_tracepoint): Likewise.
10130 (add_tracepoint_action): Likewise.
10131 (create_trace_state_variable): Likewise.
10132 (cmd_qtdpsrc): Likewise.
10133 (cmd_qtro): Likewise.
10134 (add_while_stepping_state): Likewise.
10135 * win32-low.c (child_add_thread): Likewise.
10136 (get_image_name): Likewise.
10137
ed8b7b42
YQ
101382015-08-25 Yao Qi <yao.qi@linaro.org>
10139
10140 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10141
db3cb7cb
YQ
101422015-08-25 Yao Qi <yao.qi@linaro.org>
10143
10144 * Makefile.in (aarch64-linux.o): New rule.
10145 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10146 srv_tgtobj.
10147 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10148 (aarch64_init_debug_reg_state): Make it extern.
10149 (aarch64_linux_prepare_to_resume): Remove.
10150
f6011a1c
YQ
101512015-08-25 Yao Qi <yao.qi@linaro.org>
10152
10153 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10154 lwp_arch_private_info and ptid_of_lwp.
10155
88e2cf7e
YQ
101562015-08-25 Yao Qi <yao.qi@linaro.org>
10157
10158 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10159 Find proc_info by find_process_pid. All callers updated.
10160
5e35436e
YQ
101612015-08-25 Yao Qi <yao.qi@linaro.org>
10162
10163 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10164 Remove.
10165 (debug_reg_change_callback): Remove.
10166 (aarch64_notify_debug_reg_change): Remove.
10167
4a8a7965
YQ
101682015-08-25 Yao Qi <yao.qi@linaro.org>
10169
10170 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10171 Call current_lwp_ptid.
10172
32a271ee
YQ
101732015-08-25 Yao Qi <yao.qi@linaro.org>
10174
10175 * linux-aarch64-low.c (debug_reg_change_callback): Use
10176 debug_printf.
10177
0d51c8d7
YQ
101782015-08-25 Yao Qi <yao.qi@linaro.org>
10179
10180 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10181
31a43dd5
YQ
101822015-08-25 Yao Qi <yao.qi@linaro.org>
10183
10184 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10185
8ee52567
YQ
101862015-08-25 Yao Qi <yao.qi@linaro.org>
10187
10188 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10189 the code.
10190
ff3f0f45
YQ
101912015-08-25 Yao Qi <yao.qi@linaro.org>
10192
10193 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10194 Remove.
10195 (debug_reg_change_callback): Remove argument entry and add argument
10196 lwp. Remove local variable thread. Don't print thread id in the
10197 debugging output. Don't check whether pid of thread equals to pid.
10198 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10199 iterate_over_lwps instead find_inferior.
10200
3d40fbb5
PA
102012015-08-24 Pedro Alves <palves@redhat.com>
10202
10203 * inferiors.c (get_first_process): New function.
10204 * inferiors.h (get_first_process): New declaration.
10205 * remote-utils.c (read_ptid): Default to the first process in the
10206 list, instead of to the current thread's process.
10207
438e1e42
PA
102082015-08-24 Pedro Alves <palves@redhat.com>
10209
10210 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10211 * event-loop.c: Likewise.
10212 * remote-utils.c: Likewise.
10213 * tracepoint.c: Likewise.
10214
a8c6d4fc
PA
102152015-08-24 Pedro Alves <palves@redhat.com>
10216
10217 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10218 ptid_get_lwp.
10219
99b0bb12
PA
102202015-08-21 Pedro Alves <palves@redhat.com>
10221
10222 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10223 instead of literal 1.
10224
f8904751
PA
102252015-08-21 Pedro Alves <palves@redhat.com>
10226
10227 * tdesc.c (default_description): Explicitly zero-initialize.
10228
465a859e
PA
102292015-08-21 Pedro Alves <palves@redhat.com>
10230
10231 PR gdb/18749
10232 * inferiors.c (remove_thread): Discard any pending stop reply for
10233 this thread.
10234 * server.c (remove_all_on_match_pid): Rename to ...
10235 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10236 instead of a pid.
10237 (discard_queued_stop_replies): Change parameter to a ptid. Now
10238 extern.
10239 (handle_v_kill, kill_inferior_callback, captured_main)
10240 (process_serial_event): Adjust.
10241 * server.h (discard_queued_stop_replies): Declare.
10242
f0db101d
PA
102432015-08-21 Pedro Alves <palves@redhat.com>
10244
10245 * linux-low.c (wait_for_sigstop): Always switch to no thread
10246 selected if the previously current thread dies.
10247 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10248 process instead of the current thread's.
10249 * remote-utils.c (input_interrupt): Don't check if there's no
10250 current thread.
10251 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10252 current thread to the general thread fails, error out.
10253 (handle_qxfer_auxv, handle_qxfer_libraries)
10254 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10255 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10256 (handle_query): Check if there's a thread selected instead of
10257 checking whether there's any thread in the thread list.
10258 (handle_qxfer_threads, handle_qxfer_btrace)
10259 (handle_qxfer_btrace_conf): Don't error out early if there's no
10260 thread in the thread list.
10261 (handle_v_cont, myresume): Don't set the current thread to the
10262 continue thread.
10263 (process_serial_event) <Hg handling>: Also set thread_id if the
10264 previous general thread is still alive.
10265 (process_serial_event) <g/G handling>: If setting the current
10266 thread to the general thread fails, error out.
10267 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10268 thread's lwp instead of the current thread's.
10269 * target.c (set_desired_thread): If the desired thread was not
10270 found, leave the current thread pointing to NULL. Return an int
10271 (boolean) indicating success.
10272 * target.h (set_desired_thread): Change return type to int.
10273
40045d91
MF
102742015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10275
10276 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10277 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10278 #includes.
10279 (ps_get_thread_area): New function.
10280
45face3b
GB
102812015-08-19 Gary Benson <gbenson@redhat.com>
10282
10283 * hostio.c (handle_pread): Do not attempt to read more data
10284 than hostio_reply_with_data can fit in a packet.
10285
16d5f642
JB
102862015-08-18 Joel Brobecker <brobecker@adacore.com>
10287
10288 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10289
a738da3a
MF
102902015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10291
10292 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10293
33ebda9d
PA
102942015-08-06 Pedro Alves <palves@redhat.com>
10295
10296 * tracepoint.c (expr_eval_result): Now an int.
10297
a44892be
PA
102982015-08-06 Pedro Alves <palves@redhat.com>
10299
10300 * gdbthread.h (struct regcache): Forward declare.
10301 (struct thread_info) <regcache_data>: Now a struct regcache
10302 pointer.
10303 * inferiors.c (inferior_regcache_data)
10304 (set_inferior_regcache_data): Now work with struct regcache
10305 pointers.
10306 * inferiors.h (struct regcache): Forward declare.
10307 (inferior_regcache_data, set_inferior_regcache_data): Now work
10308 with struct regcache pointers.
10309 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10310 (free_register_cache_thread): Remove struct regcache pointer
10311 casts.
10312
608a1e46
PA
103132015-08-06 Pedro Alves <palves@redhat.com>
10314
10315 * server.c (captured_main): On error, print the exception message
10316 to stderr, and if run_once is set, throw a quit.
10317
f0ce0d3a
PA
103182015-08-06 Pedro Alves <palves@redhat.com>
10319
10320 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10321 the current thread.
10322
bf47e248
PA
103232015-08-06 Pedro Alves <palves@redhat.com>
10324
10325 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10326 reading beyond the passed in buffer length.
10327
b6b9ffcc
PL
103282015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10329
10330 * tracepoint.c (symbol_list) <required>: Remove.
10331
863d01bd
PA
103322015-08-06 Pedro Alves <palves@redhat.com>
10333
10334 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10335 count if stopping and suspending threads.
10336 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10337 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10338 (linux_detach): Complete an ongoing step-over.
10339 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10340 throughout.
10341 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10342 (linux_wait_1): If passing a signal to the inferior after
10343 finishing a step-over, unsuspend and re-resume all lwps. If we
10344 see a single-step event but the thread should be continuing, don't
10345 pass the trap to gdb.
10346 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10347 internal_error instead of gdb_assert.
10348 (enqueue_pending_signal): New function.
10349 (check_ptrace_stopped_lwp_gone): Add debug output.
10350 (start_step_over): Use internal_error instead of gdb_assert.
10351 (complete_ongoing_step_over): New function.
10352 (linux_resume_one_thread): Don't resume a suspended thread.
10353 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10354 it stepping.
10355
00db26fa
PA
103562015-08-06 Pedro Alves <palves@redhat.com>
10357
10358 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10359 (linux_thread_alive): Use lwp_is_marked_dead.
10360 (extended_event_reported): Delete.
10361 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10362 instead of extended_event_reported.
10363 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10364 as well.
10365 (lwp_is_marked_dead): New function.
10366 (lwp_running): Use lwp_is_marked_dead.
10367 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10368 comment.
10369
ad071a30
PA
103702015-08-06 Pedro Alves <palves@redhat.com>
10371
10372 * linux-low.c (linux_wait_1): Move fork event output out of the
10373 !report_to_gdb check. Pass event_child->waitstatus to
10374 target_waitstatus_to_string instead of ourstatus.
10375
524b57e6
YQ
103762015-08-04 Yao Qi <yao.qi@linaro.org>
10377
10378 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10379 if current_thread is 32 bit.
10380
6085d6f6
YQ
103812015-08-04 Yao Qi <yao.qi@linaro.org>
10382
10383 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10384 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10385 * server.c (extended_protocol): Remove "static".
10386 * server.h (extended_protocol): Declare it.
10387
8a7e4587
YQ
103882015-08-04 Yao Qi <yao.qi@linaro.org>
10389
10390 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10391 both aarch64 and aarch32.
10392 (aarch64_set_pc): Likewise.
10393
3b53ae99
YQ
103942015-08-04 Yao Qi <yao.qi@linaro.org>
10395
10396 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10397 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10398 arm-with-neon.xml to srv_xmlfiles.
10399 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10400 (is_64bit_tdesc): New function.
10401 (aarch64_linux_read_description): New function.
10402 (aarch64_arch_setup): Call aarch64_linux_read_description.
10403 (regs_info): Rename to regs_info_aarch64.
10404 (aarch64_regs_info): Return right regs_info.
10405 (initialize_low_arch): Call initialize_low_arch_aarch32.
10406
bd9e6534
YQ
104072015-08-04 Yao Qi <yao.qi@linaro.org>
10408
10409 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10410 * linux-aarch32-low.c: New file.
10411 * linux-aarch32-low.h: New file.
10412 * linux-arm-low.c (arm_fill_gregset): Move it to
10413 linux-aarch32-low.c.
10414 (arm_store_gregset): Likewise.
10415 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10416 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10417 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10418 (regs_info): Rename to regs_info_arm.
10419 (arm_regs_info): Return regs_info_aarch32 if
10420 have_ptrace_getregset is 1 and target description is
10421 arm_with_neon or arm_with_vfpv3.
10422 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10423 Call initialize_low_arch_aarch32 instead.
10424
ded48a5e
YQ
104252015-08-04 Yao Qi <yao.qi@linaro.org>
10426
10427 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10428 * linux-low.c: ... here.
10429 * linux-low.h (have_ptrace_getregset): Declare it.
10430
96e9210f
PA
104312015-08-04 Pedro Alves <palves@redhat.com>
10432
10433 * thread-db.c (struct thread_db): Use new typedefs.
10434 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10435 CHK calls.
10436 (disable_thread_event_reporting): Cast result of dlsym to
10437 destination function pointer type.
10438 (thread_db_mourn): Use td_ta_delete_ftype.
10439
af60a1ef
SL
104402015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10441
10442 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10443 arch variant.
10444 (CDX_BREAKPOINT): Define for R2.
10445 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10446 (the_low_target): Add comments.
10447
e8b41681
YQ
104482015-07-30 Yao Qi <yao.qi@linaro.org>
10449
10450 * linux-arm-low.c (arm_hwcap): Remove it.
10451 (arm_read_description): New local variable arm_hwcap. Don't
10452 set arm_hwcap to zero.
10453
89abb039
YQ
104542015-07-30 Yao Qi <yao.qi@linaro.org>
10455
10456 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10457 Use regcache->tdesc instead.
10458 (arm_store_wmmxregset): Likewise.
10459 (arm_fill_vfpregset): Likewise.
10460 (arm_store_vfpregset): Likewise.
10461
deca266c
YQ
104622015-07-30 Yao Qi <yao.qi@linaro.org>
10463
10464 * linux-arm-low.c: Include arch/arm.h.
10465 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10466 (arm_store_gregset): Likewise.
10467
aa58a496
SM
104682015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10469
10470 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10471 ptrace's 4th parameter.
10472
50904b25
YQ
104732015-07-27 Yao Qi <yao.qi@linaro.org>
10474
10475 * configure.srv (case aarch64*-*-linux*): Don't set
10476 srv_linux_usrregs.
10477
5826e159
PA
104782015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10479
10480 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10481 sys/ptrace.h.
10482 * linux-arm-low.c: Likewise.
10483 * linux-cris-low.c: Likewise.
10484 * linux-crisv32-low.c: Likewise.
10485 * linux-low.c: Likewise.
10486 * linux-m68k-low.c: Likewise.
10487 * linux-mips-low.c: Likewise.
10488 * linux-nios2-low.c: Likewise.
10489 * linux-s390-low.c: Likewise.
10490 * linux-sparc-low.c: Likewise.
10491 * linux-tic6x-low.c: Likewise.
10492 * linux-tile-low.c: Likewise.
10493 * linux-x86-low.c: Likewise.
10494
54019719
PA
104952015-07-24 Pedro Alves <palves@redhat.com>
10496
10497 * config.in: Regenerate.
10498 * configure: Regenerate.
10499
eb7aa561
PA
105002015-07-24 Pedro Alves <palves@redhat.com>
10501
10502 * acinclude.m4: Include ../ptrace.m4.
10503 * configure.ac: Call GDB_AC_PTRACE.
10504 * config.in, configure: Regenerate.
10505
55d7b841
YQ
105062015-07-24 Yao Qi <yao.qi@linaro.org>
10507
10508 * linux-low.c (linux_create_inferior): Remove setting to
10509 proc->priv->new_inferior.
10510 (linux_attach): Likewise.
10511 (linux_low_filter_event): Likewise.
10512 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10513
c06cbd92
YQ
105142015-07-24 Yao Qi <yao.qi@linaro.org>
10515
10516 * linux-low.c (linux_arch_setup): New function.
10517 (linux_low_filter_event): If proc->tdesc is NULL and
10518 proc->attached is true, call the_low_target.arch_setup.
10519 Otherwise, keep status pending, and return.
10520 (linux_resume_one_lwp_throw): Don't call get_pc if
10521 thread->while_stepping isn't NULL. Don't call
10522 get_thread_regcache if proc->tdesc is NULL.
10523 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10524 (linux_target_ops): Install arch_setup.
10525 * server.c (start_inferior): Call the_target->arch_setup.
10526 * target.h (struct target_ops) <arch_setup>: New field.
10527 (target_arch_setup): New marco.
10528 * lynx-low.c (lynx_target_ops): Update.
10529 * nto-low.c (nto_target_ops): Update.
10530 * spu-low.c (spu_target_ops): Update.
10531 * win32-low.c (win32_target_ops): Update.
10532
5ae3ebba
YQ
105332015-07-24 Yao Qi <yao.qi@linaro.org>
10534
10535 * linux-low.c (linux_add_process): Don't set
10536 proc->priv->new_inferior.
10537 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10538 (linux_attach): Likewise.
10539
eb97750b
YQ
105402015-07-24 Yao Qi <yao.qi@linaro.org>
10541
10542 * server.c (start_inferior): Code refactor.
10543
51aee833
YQ
105442015-07-24 Yao Qi <yao.qi@linaro.org>
10545
10546 * server.c (process_serial_event): Set general_thread.
10547
af1b22f3
YQ
105482015-07-21 Yao Qi <yao.qi@linaro.org>
10549
10550 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10551 aarch64_linux_get_debug_reg_capacity.
10552
554717a3
YQ
105532015-07-17 Yao Qi <yao.qi@linaro.org>
10554
10555 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10556 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10557 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10558 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10559 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10560 (AARCH64_HWP_ALIGNMENT): Likewise.
10561 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10562 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10563 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10564 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10565 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10566 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10567 (struct aarch64_debug_reg_state): Likewise.
10568 (struct arch_lwp_info): Likewise.
10569 (aarch64_align_watchpoint): Likewise.
10570 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10571 (aarch64_watchpoint_length): Likewise.
10572 (aarch64_point_encode_ctrl_reg): Likewise
10573 (aarch64_point_is_aligned): Likewise.
10574 (aarch64_align_watchpoint): Likewise.
10575 (aarch64_linux_set_debug_regs):
10576 (aarch64_dr_state_insert_one_point): Likewise.
10577 (aarch64_dr_state_remove_one_point): Likewise.
10578 (aarch64_handle_breakpoint): Likewise.
10579 (aarch64_handle_aligned_watchpoint): Likewise.
10580 (aarch64_handle_unaligned_watchpoint): Likewise.
10581 (aarch64_handle_watchpoint): Likewise.
10582
c67ca4de
YQ
105832015-07-17 Yao Qi <yao.qi@linaro.org>
10584
10585 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10586 and don't aarch64_get_debug_reg_state. All callers update.
10587 (aarch64_handle_aligned_watchpoint): Likewise.
10588 (aarch64_handle_unaligned_watchpoint): Likewise.
10589 (aarch64_handle_watchpoint): Likewise.
10590 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10591 (aarch64_remove_point): Likewise.
10592
25abf979
YQ
105932015-07-17 Yao Qi <yao.qi@linaro.org>
10594
10595 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10596 debug_printf.
10597 (aarch64_handle_unaligned_watchpoint): Likewise.
10598
db1ff28b
JK
105992015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10600
10601 Revert the previous 3 commits:
10602 Move gdb_regex* to common/
10603 Move linux_find_memory_regions_full & co.
10604 gdbserver build-id attribute generator
10605
700ca40f
JK
106062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10607 Jan Kratochvil <jan.kratochvil@redhat.com>
10608
10609 gdbserver build-id attribute generator.
10610 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10611 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10612 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10613 (find_phdr): New.
10614 (get_dynamic): Use find_pdhr to traverse program headers.
10615 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10616 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10617 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10618 (get_hex_build_id): New.
10619 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10620 to reply XML document.
10621
9904185c
JK
106222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10623 Jan Kratochvil <jan.kratochvil@redhat.com>
10624
10625 * target.c: Include target/target-utils.h and fcntl.h.
10626 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10627 (target_fileio_read_stralloc): New functions.
10628
6e5b4429
JK
106292015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 * Makefile.in (OBS): Add gdb_regex.o.
10632 (gdb_regex.o): New.
10633 * config.in: Rebuilt.
10634 * configure: Rebuilt.
10635
ddc98fbf
JK
106362015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10637 Jan Kratochvil <jan.kratochvil@redhat.com>
10638
10639 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10640 * Makefile.in (OBS): Add target-utils.o.
10641 (linux-maps.o, target-utils.o): New.
10642 * configure.srv (srv_linux_obj): Add linux-maps.o.
10643
e57bb7a0
PL
106442015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10645
10646 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10647 function, return 1.
10648 (the_low_target): Install it.
10649
586b02a9
PA
106502015-07-14 Pedro Alves <palves@redhat.com>
10651
10652 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10653 Instead, ignore ECHILD, and throw an error for other errnos.
10654
58c1b36c
PA
106552015-07-10 Pedro Alves <palves@redhat.com>
10656
10657 * event-loop.c (struct callback_event) <data>: Change type to
10658 gdb_client_data instance instead of gdb_client_data pointer.
10659 (append_callback_event): Adjust.
10660
421530db
PL
106612015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10662
10663 * linux-aarch64-low.c: Add comments for each linux_target_ops
10664 method. Remove comments already covered in target_ops and
10665 linux_target_ops definitions.
10666 (the_low_target): Add comments for each unimplemented method.
10667
c2d65f38
YQ
106682015-07-09 Yao Qi <yao.qi@linaro.org>
10669
10670 * linux-aarch64-low.c (aarch64_regmap): Remove.
10671 (aarch64_usrregs_info): Remove.
10672 (regs_info): Set field usrregs to NULL.
10673
b20a6524
MM
106742015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10675
10676 * linux-low.c: Include "rsp-low.h"
10677 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10678 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10679 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10680 (handle_btrace_enable_pt): New.
10681 (handle_btrace_general_set): Support "pt".
10682 (handle_btrace_conf_general_set): Support "pt:size".
10683
96c97461
PL
106842015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10685
10686 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10687 Z_PACKET_SW_BP.
10688
37d66942
PL
106892015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10690
10691 * linux-aarch64-low.c: Remove comment about endianness.
10692 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10693 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10694 memcmp.
10695
dc06243f
GB
106962015-06-24 Gary Benson <gbenson@redhat.com>
10697
10698 * linux-i386-ipa.c (stdint.h): Do not include.
10699 * lynx-i386-low.c (stdint.h): Likewise.
10700 * lynx-ppc-low.c (stdint.h): Likewise.
10701 * mem-break.c (stdint.h): Likewise.
10702 * thread-db.c (stdint.h): Likewise.
10703 * tracepoint.c (stdint.h): Likewise.
10704 * win32-low.c (stdint.h): Likewise.
10705
124e13d9
SM
107062015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10707
10708 * server.c (write_qxfer_response): Update call to
10709 remote_escape_output.
10710
909c2cda
JK
107112015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10712 Jan Kratochvil <jan.kratochvil@redhat.com>
10713
10714 Merge multiple hex conversions.
10715 * gdbreplay.c (tohex): Rename to 'fromhex'.
10716 (logchar): Use fromhex.
10717
24c05f46
JK
107182015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10719
10720 * server.c (handle_qxfer_libraries): Set `version' attribute for
10721 <library-list>.
10722
14d2069a
GB
107232015-06-10 Gary Benson <gbenson@redhat.com>
10724
10725 * target.h (struct target_ops) <multifs_open>: New field.
10726 <multifs_unlink>: Likewise.
10727 <multifs_readlink>: Likewise.
10728 * linux-low.c (nat/linux-namespaces.h): New include.
10729 (linux_target_ops): Initialize the_target->multifs_open,
10730 the_target->multifs_unlink and the_target->multifs_readlink.
10731 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10732 * hostio.c (hostio_fs_pid): New static variable.
10733 (hostio_handle_new_gdb_connection): New function.
10734 (handle_setfs): Likewise.
10735 (handle_open): Use the_target->multifs_open as appropriate.
10736 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10737 (handle_readlink): Use the_target->multifs_readlink as
10738 appropriate.
10739 (handle_vFile): Handle vFile:setfs packets.
10740 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10741 after target_handle_new_gdb_connection.
10742
4b8b5e72
GB
107432015-06-10 Gary Benson <gbenson@redhat.com>
10744
10745 * configure.ac (AC_CHECK_FUNCS): Add setns.
10746 * config.in: Regenerate.
10747 * configure: Likewise.
10748 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10749 (linux-namespaces.o): New rule.
10750 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10751
3ac2e371
GB
107522015-06-09 Gary Benson <gbenson@redhat.com>
10753
10754 * hostio.c (handle_open): Process mode argument with
10755 fileio_to_host_mode.
10756
ca9b78ce
YQ
107572015-06-01 Yao Qi <yao.qi@linaro.org>
10758
10759 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10760 * linux-x86-low.c: Likewise.
10761
bfacd19d
DB
107622015-05-28 Don Breazeal <donb@codesourcery.com>
10763
10764 * linux-low.c (handle_extended_wait): Initialize
10765 thread_info.last_resume_kind for new fork children.
10766
452003ef
PA
107672015-05-15 Pedro Alves <palves@redhat.com>
10768
10769 * target.h (target_handle_new_gdb_connection): Rewrite using if
10770 wrapped in do/while.
10771
1041a03c
JB
107722015-05-14 Joel Brobecker <brobecker@adacore.com>
10773
10774 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10775 * configure, config.in: Regenerate.
10776 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10777 Declare typedef.
10778
c269dbdb
DB
107792015-05-12 Don Breazeal <donb@codesourcery.com>
10780
10781 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10782 PTRACE_EVENT_VFORK_DONE.
10783 (linux_low_ptrace_options, extended_event_reported): Add vfork
10784 events.
10785 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10786 and "vforkdone" for RSP 'T' Stop Reply Packet.
10787 * server.h (report_vfork_events): Declare
10788 global variable.
10789
3a8a0396
DB
107902015-05-12 Don Breazeal <donb@codesourcery.com>
10791
10792 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10793 (the_low_target) <new_fork>: Initialize new member.
10794 * linux-arm-low.c (arm_new_fork): New function.
10795 (the_low_target) <new_fork>: Initialize new member.
10796 * linux-low.c (handle_extended_wait): Call new target function
10797 new_fork.
10798 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10799 * linux-mips-low.c (mips_add_watchpoint): New function
10800 extracted from mips_insert_point.
10801 (the_low_target) <new_fork>: Initialize new member.
10802 (mips_linux_new_fork): New function.
10803 (mips_insert_point): Call mips_add_watchpoint.
10804 * linux-x86-low.c (x86_linux_new_fork): New function.
10805 (the_low_target) <new_fork>: Initialize new member.
10806
de0d863e
DB
108072015-05-12 Don Breazeal <donb@codesourcery.com>
10808
10809 * linux-low.c (handle_extended_wait): Implement return value,
10810 rename argument 'event_child' to 'event_lwp', handle
10811 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10812 (linux_low_ptrace_options): New function.
10813 (linux_low_filter_event): Call linux_low_ptrace_options,
10814 use different argument fo linux_enable_event_reporting,
10815 use return value from handle_extended_wait.
10816 (extended_event_reported): New function.
10817 (linux_wait_1): Call extended_event_reported and set
10818 status to report fork events.
10819 (linux_write_memory): Add pid to debug message.
10820 (reset_lwp_ptrace_options_callback): New function.
10821 (linux_handle_new_gdb_connection): New function.
10822 (linux_target_ops): Initialize new structure member.
10823 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10824 * lynx-low.c: Initialize new structure member.
10825 * remote-utils.c (prepare_resume_reply): Implement stop reason
10826 "fork" for "T" stop message.
10827 * server.c (handle_query): Call handle_new_gdb_connection.
10828 * server.h (report_fork_events): Declare global flag.
10829 * target.h (struct target_ops) <handle_new_gdb_connection>:
10830 New member.
10831 (target_handle_new_gdb_connection): New macro.
10832 * win32-low.c: Initialize new structure member.
10833
ddcbc397
DB
108342015-05-12 Don Breazeal <donb@codesourcery.com>
10835
10836 * mem-break.c (APPEND_TO_LIST): Define macro.
10837 (clone_agent_expr): New function.
10838 (clone_one_breakpoint): New function.
10839 (clone_all_breakpoints): New function.
10840 * mem-break.h: Declare new functions.
10841
89245bc0
DB
108422015-05-12 Don Breazeal <donb@codesourcery.com>
10843
10844 * linux-low.c (linux_supports_fork_events): New function.
10845 (linux_supports_vfork_events): New function.
10846 (linux_target_ops): Initialize new structure members.
10847 (initialize_low): Call linux_check_ptrace_features.
10848 * lynx-low.c (lynx_target_ops): Initialize new structure
10849 members.
10850 * server.c (report_fork_events, report_vfork_events):
10851 New global flags.
10852 (handle_query): Add new features to qSupported packet and
10853 response.
10854 (captured_main): Initialize new global variables.
10855 * target.h (struct target_ops) <supports_fork_events>:
10856 New member.
10857 <supports_vfork_events>: New member.
10858 (target_supports_fork_events): New macro.
10859 (target_supports_vfork_events): New macro.
10860 * win32-low.c (win32_target_ops): Initialize new structure
10861 members.
10862
835205d0
GB
108632015-05-12 Gary Benson <gbenson@redhat.com>
10864
10865 * server.c (handle_qxfer_exec_file): Use current process
10866 if annex is empty.
10867
21e94bd9
SL
108682015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10869
10870 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10871 Remove HAVE_PTRACE_GETREGS conditionals.
10872 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10873 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10874
45614f15
YQ
108752015-05-08 Yao Qi <yao.qi@linaro.org>
10876
10877 * linux-low.c (linux_supports_conditional_breakpoints): New
10878 function.
10879 (linux_target_ops): Install new target method.
10880 * lynx-low.c (lynx_target_ops): Install NULL hook for
10881 supports_conditional_breakpoints.
10882 * nto-low.c (nto_target_ops): Likewise.
10883 * spu-low.c (spu_target_ops): Likewise.
10884 * win32-low.c (win32_target_ops): Likewise.
10885 * server.c (handle_query): Check
10886 target_supports_conditional_breakpoints.
10887 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10888 New field.
10889 (target_supports_conditional_breakpoints): New macro.
10890
80ad801e
PA
108912015-05-06 Pedro Alves <palves@redhat.com>
10892
10893 PR server/18081
10894 * server.c (start_inferior): If the process exits, mourn it.
10895
819843c7
GB
108962015-04-21 Gary Benson <gbenson@redhat.com>
10897
10898 * hostio.c (fileio_open_flags_to_host): Factored out to
10899 fileio_to_host_openflags in common/fileio.c. Single use
10900 updated.
10901
a2d5a9d7
MF
109022015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10903
10904 * linux-xtensa-low.c (xtensa_fill_gregset)
10905 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10906 XCHAL_HAVE_LOOP.
10907
deb44829
MF
109082015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10909
10910 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10911 (regs_info): Replace usrregs pointer with NULL.
10912
e57f1de3
GB
109132015-04-17 Gary Benson <gbenson@redhat.com>
10914
10915 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10916 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10917 * server.c (handle_qxfer_exec_file): New function.
10918 (qxfer_packets): Add exec-file entry.
10919 (handle_query): Report qXfer:exec-file:read as supported packet.
10920
62828379
RN
109212015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10922
10923 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10924
b88bb450
GB
109252015-04-09 Gary Benson <gbenson@redhat.com>
10926
10927 * hostio-errno.c (errno_to_fileio_error): Remove function.
10928 Update caller to use remote_fileio_to_fio_error.
10929
c8f4bfdd
YQ
109302015-04-09 Yao Qi <yao.qi@linaro.org>
10931
10932 * linux-low.c (linux_insert_point): Call
10933 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10934 (linux_remove_point): Call remove_memory_breakpoint if type is
10935 raw_bkpt_type_sw.
10936 * linux-x86-low.c (x86_insert_point): Don't call
10937 insert_memory_breakpoint.
10938 (x86_remove_point): Don't call remove_memory_breakpoint.
10939
41f98f02
PA
109402015-04-01 Pedro Alves <palves@redhat.com>
10941 Cleber Rosa <crosa@redhat.com>
10942
10943 * server.c (gdbserver_usage): Reorganize and extend the usage
10944 message.
10945
2bf6fb9d
PA
109462015-03-24 Pedro Alves <palves@redhat.com>
10947
10948 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10949 output. Also dump TRAP_TRACE.
10950 (linux_low_filter_event): In debug output, distinguish a
10951 resume_stop SIGSTOP from a delayed SIGSTOP.
10952
369f6daa
GB
109532015-03-24 Gary Benson <gbenson@redhat.com>
10954
10955 * linux-x86-low.c (x86_linux_new_thread): Moved to
10956 nat/x86-linux.c.
10957 (x86_linux_prepare_to_resume): Likewise.
10958
8e5d4070
GB
109592015-03-24 Gary Benson <gbenson@redhat.com>
10960
10961 * Makefile.in (x86-linux-dregs.o): New rule.
10962 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10963 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10964 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10965 (x86_linux_dr_get): Likewise.
10966 (x86_linux_dr_set): Likewise.
10967 (update_debug_registers_callback): Likewise.
10968 (x86_linux_dr_set_addr): Likewise.
10969 (x86_linux_dr_get_addr): Likewise.
10970 (x86_linux_dr_set_control): Likewise.
10971 (x86_linux_dr_get_control): Likewise.
10972 (x86_linux_dr_get_status): Likewise.
10973 (x86_linux_update_debug_registers): Likewise.
10974
2b95d440
GB
109752015-03-24 Gary Benson <gbenson@redhat.com>
10976
10977 * linux-x86-low.c (x86_linux_update_debug_registers):
10978 New function, factored out from...
10979 (x86_linux_prepare_to_resume): ...this.
10980
14b0bc68
GB
109812015-03-24 Gary Benson <gbenson@redhat.com>
10982
10983 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10984 (x86_linux_dr_set): Likewise.
10985 (update_debug_registers_callback): Likewise.
10986 (x86_linux_dr_set_addr): Likewise.
10987 (x86_linux_dr_get_addr): Likewise.
10988 (x86_linux_dr_set_control): Likewise.
10989 (x86_linux_dr_get_control): Likewise.
10990 (x86_linux_dr_get_status): Likewise.
10991 (x86_linux_prepare_to_resume): Likewise.
10992
5dfe6ca8
GB
109932015-03-24 Gary Benson <gbenson@redhat.com>
10994
10995 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10996 Use perror_with_name. Pass string through gettext.
10997 (x86_linux_dr_set): Likewise.
10998
d33472ad
GB
109992015-03-24 Gary Benson <gbenson@redhat.com>
11000
11001 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11002 (x86_linux_dr_set_addr): ...this.
11003 (x86_dr_low_get_addr): Rename to...
11004 (x86_linux_dr_get_addr): ...this.
11005 (x86_dr_low_set_control): Rename to...
11006 (x86_linux_dr_set_control): ...this.
11007 (x86_dr_low_get_control): Rename to...
11008 (x86_linux_dr_get_control): ...this.
11009 (x86_dr_low_get_status): Rename to...
11010 (x86_linux_dr_get_status): ...this.
11011 (x86_dr_low): Update with new function names.
11012
4b134ca1
GB
110132015-03-24 Gary Benson <gbenson@redhat.com>
11014
11015 * Makefile.in (x86-linux.o): New rule.
11016 * configure.srv: Add x86-linux.o to relevant targets.
11017 * linux-low.c (lwp_set_arch_private_info): New function.
11018 (lwp_arch_private_info): Likewise.
11019 * linux-x86-low.c: Include nat/x86-linux.h.
11020 (arch_lwp_info): Removed structure.
11021 (update_debug_registers_callback):
11022 Use lwp_set_debug_registers_changed.
11023 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11024 and lwp_set_debug_registers_changed.
11025 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11026
34c703da
GB
110272015-03-24 Gary Benson <gbenson@redhat.com>
11028
11029 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11030 * linux-arm-low.c (arm_new_thread): Likewise.
11031 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11032 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11033 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11034 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11035
cff068da
GB
110362015-03-24 Gary Benson <gbenson@redhat.com>
11037
11038 * linux-low.c (ptid_of_lwp): New function.
11039 (lwp_is_stopped): Likewise.
11040 (lwp_stop_reason): Likewise.
11041 * linux-x86-low.c (update_debug_registers_callback):
11042 Use lwp_is_stopped.
11043 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11044 lwp_stop_reason.
11045
b2f7c7e8
GB
110462015-03-24 Gary Benson <gbenson@redhat.com>
11047
11048 * linux-low.h (linux_stop_lwp): Remove declaration.
11049
6d4ee8c6
GB
110502015-03-24 Gary Benson <gbenson@redhat.com>
11051
11052 * linux-low.h: Include nat/linux-nat.h.
11053 * linux-low.c (iterate_over_lwps_args): New structure.
11054 (iterate_over_lwps_filter): New function.
11055 (iterate_over_lwps): Likewise.
11056 * linux-x86-low.c (update_debug_registers_callback):
11057 Update signature to what iterate_over_lwps expects.
11058 Remove PID check that iterate_over_lwps now performs.
11059 (x86_dr_low_set_addr): Use iterate_over_lwps.
11060 (x86_dr_low_set_control): Likewise.
11061
70a0bb6b
GB
110622015-03-24 Gary Benson <gbenson@redhat.com>
11063
11064 * linux-x86-low.c (x86_debug_reg_state): New function.
11065 (x86_linux_prepare_to_resume): Use the above.
11066
7b669087
GB
110672015-03-24 Gary Benson <gbenson@redhat.com>
11068
11069 * linux-low.c (current_lwp_ptid): New function.
11070 * linux-x86-low.c: Include nat/linux-nat.h.
11071 (x86_dr_low_get_addr): Use current_lwp_ptid.
11072 (x86_dr_low_get_control): Likewise.
11073 (x86_dr_low_get_status): Likewise.
11074
eef49a3d
PA
110752015-03-20 Pedro Alves <palves@redhat.com>
11076
11077 * tracepoint.c (cmd_qtstatus): Make "str" const.
11078
b2333d22
PA
110792015-03-20 Pedro Alves <palves@redhat.com>
11080
11081 * server.c (handle_general_set): Make "req_str" const.
11082
23f238d3
PA
110832015-03-19 Pedro Alves <palves@redhat.com>
11084
11085 * linux-low.c (linux_resume_one_lwp): Rename to ...
11086 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11087 instead call perror_with_name.
11088 (check_ptrace_stopped_lwp_gone): New function.
11089 (linux_resume_one_lwp): Reimplement as wrapper around
11090 linux_resume_one_lwp_throw that swallows errors if the LWP is
11091 gone.
11092
91baf43f
PA
110932015-03-19 Pedro Alves <palves@redhat.com>
11094
11095 * linux-low.c (count_events_callback, select_event_lwp_callback):
11096 No longer check whether the thread has resume_stop as last resume
11097 kind.
11098
8bf3b159
PA
110992015-03-19 Pedro Alves <palves@redhat.com>
11100
11101 * linux-low.c (count_events_callback, select_event_lwp_callback):
11102 Use the lwp's status_pending_p field, not the thread's.
11103
b90fc188
PA
111042015-03-19 Pedro Alves <palves@redhat.com>
11105
11106 * linux-low.c (select_event_lwp_callback): Update comments to
11107 no longer mention SIGTRAP.
11108
464b0089
GB
111092015-03-18 Gary Benson <gbenson@redhat.com>
11110
11111 * server.c (handle_query): Do not report vFile:fstat as supported.
11112
aa9e327f
GB
111132015-03-11 Gary Benson <gbenson@redhat.com>
11114
11115 * hostio.c (sys/types.h): New include.
11116 (sys/stat.h): Likewise.
11117 (common-remote-fileio.h): Likewise.
11118 (handle_fstat): New function.
11119 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11120
791c0056
GB
111212015-03-11 Gary Benson <gbenson@redhat.com>
11122
11123 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11124 struct stat.st_blocks and struct stat.st_blksize.
11125 * configure: Regenerate.
11126 * config.in: Likewise.
11127 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11128 (OBS): Add common-remote-fileio.o.
11129 (common-remote-fileio.o): New rule.
11130
9a9df970
PA
111312015-03-09 Pedro Alves <palves@redhat.com>
11132
11133 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11134 'struct sockaddr' pointer in 'accept' call.
11135
9eb1356e
PA
111362015-03-09 Pedro Alves <palves@redhat.com>
11137
11138 Revert:
11139 2015-03-07 Pedro Alves <palves@redhat.com>
11140 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11141 or <winsock2.h> here. Instead include "gdb_socket.h".
11142 (remote_open): Use union gdb_sockaddr_u.
11143 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11144 or <winsock2.h> here. Instead include "gdb_socket.h".
11145 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11146 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11147 or <sys/un.h>.
11148 (init_named_socket, gdb_agent_helper_thread): Use union
11149 gdb_sockaddr_u.
11150
aac331e4
PA
111512015-03-07 Pedro Alves <palves@redhat.com>
11152
11153 * configure.ac (build_warnings): Move
11154 -Wdeclaration-after-statement to the C-specific set.
11155 * configure: Regenerate.
11156
366c75fc
PA
111572015-03-07 Pedro Alves <palves@redhat.com>
11158
11159 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11160 or <winsock2.h> here. Instead include "gdb_socket.h".
11161 (remote_open): Use union gdb_sockaddr_u.
11162 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11163 or <winsock2.h> here. Instead include "gdb_socket.h".
11164 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11165 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11166 or <sys/un.h>.
11167 (init_named_socket, gdb_agent_helper_thread): Use union
11168 gdb_sockaddr_u.
11169
492d29ea
PA
111702015-03-07 Pedro Alves <palves@redhat.com>
11171
11172 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11173 instead.
11174
60a191ed
YQ
111752015-03-06 Yao Qi <yao.qi@linaro.org>
11176
11177 * linux-aarch64-low.c (aarch64_insert_point): Use
11178 show_debug_regs as a boolean.
11179 (aarch64_remove_point): Likewise.
11180
f5771b1d
PA
111812015-03-05 Pedro Alves <palves@redhat.com>
11182
11183 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11184 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11185 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11186 * nto-low.c (nto_target_ops): Likewise.
11187 * spu-low.c (spu_target_ops): Likewise.
11188 * win32-low.c (win32_target_ops): Likewise.
11189
3e572f71
PA
111902015-03-04 Pedro Alves <palves@redhat.com>
11191
72f4393d 11192 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11193 Decide whether a breakpoint triggered based on the SIGTRAP's
11194 siginfo.si_code.
72f4393d
L
11195 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11196 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11197 (linux_low_filter_event): Check for breakpoints before checking
11198 watchpoints.
11199 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11200 siginfo.si_code.
72f4393d
L
11201 (linux_stopped_by_sw_breakpoint)
11202 (linux_supports_stopped_by_sw_breakpoint)
11203 (linux_stopped_by_hw_breakpoint)
11204 (linux_supports_stopped_by_hw_breakpoint): New functions.
11205 (linux_target_ops): Install new target methods.
3e572f71 11206
1ec68e26
PA
112072015-03-04 Pedro Alves <palves@redhat.com>
11208
11209 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11210 * server.c (swbreak_feature, hwbreak_feature): New globals.
11211 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11212 (captured_main): Clear swbreak_feature and hwbreak_feature.
11213 * server.h (swbreak_feature, hwbreak_feature): Declare.
11214 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11215 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11216 supports_stopped_by_hw_breakpoint>: New fields.
11217 (target_supports_stopped_by_sw_breakpoint)
11218 (target_stopped_by_sw_breakpoint)
11219 (target_supports_stopped_by_hw_breakpoint)
11220 (target_stopped_by_hw_breakpoint): Declare.
11221
15c66dd6
PA
112222015-03-04 Pedro Alves <palves@redhat.com>
11223
11224 enum lwp_stop_reason -> enum target_stop_reason
11225 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11226 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11227 (linux_wait_1, stuck_in_jump_pad_callback)
11228 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11229 (linux_stopped_by_watchpoint):
11230 * linux-low.h (enum lwp_stop_reason): Delete.
11231 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11232 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11233
98fc70d6
YQ
112342015-03-04 Yao Qi <yao.qi@linaro.org>
11235
11236 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11237
dd2ac174
GB
112382015-03-03 Gary Benson <gbenson@redhat.com>
11239
11240 * hostio.c (handle_vFile): Fix prefix lengths.
11241
d68e53f4
MM
112422015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11243
11244 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11245 ptr_bits.
11246
bf2d68ab
AA
112472015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11248
11249 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11250 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11251 (clean): Add "rm -f" for above C files.
11252 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11253 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11254 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11255 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11256 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11257 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11258 (init_registers_s390x_vx_linux64)
11259 (init_registers_s390x_tevx_linux64)
11260 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11261 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11262 declarations.
11263 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11264 (s390_store_vxrs_high): New functions.
11265 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11266 NT_S390_VXRS_HIGH.
11267 (s390_arch_setup): Add logic for selecting one of the new target
11268 descriptions. Activate the new vector regsets if applicable.
11269 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11270 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11271 and init_registers_s390x_tevx_linux64.
11272
c966a859
PA
112732015-03-01 Pedro Alves <palves@redhat.com>
11274
11275 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11276 parameter.
11277
4180215b
PA
112782015-02-27 Pedro Alves <palves@redhat.com>
11279
11280 * linux-x86-low.c (u_debugreg_offset): New function.
11281 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11282
749bab01
PA
112832015-02-27 Pedro Alves <palves@redhat.com>
11284
11285 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11286 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11287 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11288 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11289 (ps_lsetfpregs, ps_getpid)
11290 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11291 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11292 (ps_lsetxregs, ps_plog): Declare.
11293
3c14e5a3
PA
112942015-02-27 Pedro Alves <palves@redhat.com>
11295
11296 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11297 IP_AGENT_EXPORT_FUNC.
11298 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11299 IP_AGENT_EXPORT_FUNC.
11300 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11301 (IP_AGENT_EXPORT): Delete.
11302 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11303 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11304 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11305 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11306 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11307 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11308 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11309 (traceframe_read_count, traceframe_write_count)
11310 (traceframes_created, trace_state_variables, get_raw_reg)
11311 (get_trace_state_variable_value, set_trace_state_variable_value)
11312 (ust_loaded, helper_thread_id, cmd_buf): Use
11313 IPA_SYM_EXPORTED_NAME.
11314 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11315 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11316 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11317 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11318 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11319 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11320 EXTERN_C_PUSH/EXTERN_C_POP.
11321 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11322 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11323 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11324 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11325 (traceframe_write_count, traceframe_read_count)
11326 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11327 (about_to_request_buffer_space, get_trace_state_variable_value)
11328 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11329 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11330 EXTERN_C_PUSH/EXTERN_C_POP.
11331 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11332 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11333 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11334 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11335 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11336 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11337 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11338 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11339 Define.
11340 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11341 (IP_AGENT_EXPORT_VAR_DECL): Define.
11342 (tracing): Declare.
11343 (gdb_agent_get_raw_reg): Declare.
11344
fe978cb0
PA
113452015-02-27 Tom Tromey <tromey@redhat.com>
11346 Pedro Alves <palves@redhat.com>
11347
11348 Rename symbols whose names are reserved C++ keywords throughout.
11349
3bc3d82a
PA
113502015-02-27 Pedro Alves <palves@redhat.com>
11351
11352 * Makefile.in (COMPILER): New, get it from autoconf.
11353 (CXX): Get from autoconf instead.
11354 (COMPILE.pre): Use COMPILER.
11355 (CC-LD): Rename to ...
11356 (CC_LD): ... this. Use COMPILER.
11357 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11358 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11359 * acinclude.m4: Include build-with-cxx.m4.
11360 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11361 Disable -Werror by default if building in C++ mode.
11362 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11363 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11364 the C++ compiler. Save/restore CXXFLAGS too.
11365 * configure: Regenerate.
11366
07697489
PA
113672015-02-27 Pedro Alves <palves@redhat.com>
11368
11369 * acinclude.m4: Include libiberty.m4.
11370 * configure.ac: Call libiberty_INIT.
11371 * config.in, configure: Regenerate.
11372
9beb7c4e
PA
113732015-02-26 Pedro Alves <palves@redhat.com>
11374
11375 * linux-low.c (linux_wait_1): When incrementing the PC past a
11376 program breakpoint always use the_low_target.breakpoint_len as
11377 increment, rather than the maximum between that and
11378 the_low_target.decr_pc_after_break.
11379
8090aef2
PA
113802015-02-23 Pedro Alves <palves@redhat.com>
11381
11382 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11383 thread was doing a step-over; always adjust the PC if
11384 we stepped over a permanent breakpoint.
11385 (linux_wait_1): If we stepped over breakpoint that was on top of a
11386 permanent breakpoint, manually advance the PC past it.
11387
bc9540e8
PA
113882015-02-23 Pedro Alves <palves@redhat.com>
11389
11390 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11391 modes.
11392 (x86_fill_gregset, x86_store_gregset): Use it when handling
11393 $orig_eax.
11394
2db9a427
PA
113952015-02-20 Pedro Alves <palves@redhat.com>
11396
11397 * thread-db.c: Include "nat/linux-procfs.h".
11398 (thread_db_init): Skip listing new threads if the kernel supports
11399 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11400
afa8d396
PA
114012015-02-20 Pedro Alves <palves@redhat.com>
11402
11403 * linux-low.c (status_pending_p_callback): Use ptid_match.
11404
c9587f88
AT
114052015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11406
11407 PR breakpoints/16812
11408 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11409 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11410 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11411
b05ec7a5
AT
114122015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11413
11414 PR breakpoints/15956
11415 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11416
d33501a5
MM
114172015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11418
11419 * linux-low.c (linux_low_btrace_conf): Print size.
11420 * server.c (handle_btrace_conf_general_set): New.
11421 (hanle_general_set): Call handle_btrace_conf_general_set.
11422 (handle_query): Report Qbtrace-conf:bts:size as supported.
11423
f4abbc16
MM
114242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11425
11426 * linux-low.c (linux_low_enable_btrace): Update parameters.
11427 (linux_low_btrace_conf): New.
11428 (linux_target_ops)<to_btrace_conf>: Initialize.
11429 * server.c (current_btrace_conf): New.
11430 (handle_btrace_enable): Rename to ...
11431 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11432 to target_enable_btrace. Update comment. Update users.
11433 (handle_qxfer_btrace_conf): New.
11434 (qxfer_packets): Add btrace-conf entry.
11435 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11436 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11437 (target_ops)<read_btrace_conf>: New.
11438 (target_enable_btrace): Update parameters.
11439 (target_read_btrace_conf): New.
11440
043c3577
MM
114412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11442
11443 * server.c (handle_btrace_general_set): Remove call to
11444 target_supports_btrace.
11445 (supported_btrace_packets): New.
11446 (handle_query): Call supported_btrace_packets.
11447 * target.h: include btrace-common.h.
11448 (btrace_target_info): Removed.
11449 (supports_btrace, target_supports_btrace): Update parameters.
11450
734b0e4b
MM
114512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * Makefile.in (SFILES): Add common/btrace-common.c.
11454 (OBS): Add common/btrace-common.o.
11455 (btrace-common.o): Add build rules.
11456 * linux-low: Include btrace-common.h.
11457 (linux_low_read_btrace): Use struct btrace_data. Call
11458 btrace_data_init and btrace_data_fini.
11459
d6c146e9
PA
114602015-02-06 Pedro Alves <palves@redhat.com>
11461
11462 * thread-db.c (find_new_threads_callback): Add debug output.
11463
20ba1ce6
PA
114642015-02-04 Pedro Alves <palves@redhat.com>
11465
11466 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11467 (resume_stopped_resumed_lwps): New function.
11468 (linux_wait_for_event_filtered): Use it.
11469
8cc73a39
SDJ
114702015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11471
11472 * Makefile.in (SFILES): Add linux-personality.c.
11473 (linux-personality.o): New rule.
11474 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11475 list of objects to be built.
11476 * linux-low.c: Include nat/linux-personality.h.
11477 (linux_create_inferior): Remove code to disable address space
11478 randomization (moved to ../nat/linux-personality.c). Create
11479 cleanup to disable address space randomization.
11480
fb23d554
SDJ
114812015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11482
11483 * Makefile.in (posix-strerror.o): New rule.
11484 (mingw-strerror.o): Likewise.
11485 * configure: Regenerated.
11486 * configure.ac: Source file ../common/common.host. Initialize new
11487 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11488
cdf43629
YQ
114892015-01-14 Yao Qi <yao@codesourcery.com>
11490
11491 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11492 (ppc-linux.o): New rule.
11493 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11494 * configure.ac: AC_CHECK_FUNCS(getauxval).
11495 * config.in: Re-generated.
11496 * configure: Re-generated.
11497 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11498 ppc64_64bit_inferior_p
11499
514c5338
YQ
115002015-01-14 Yao Qi <yao@codesourcery.com>
11501
11502 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11503 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11504 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11505 (PT_ORIG_R3, PT_TRAP): Likewise.
11506 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11507 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11508 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11509
3368c1e5
JB
115102015-01-10 Joel Brobecker <brobecker@adacore.com>
11511
11512 * i387-fp.c (i387_cache_to_xsave): In look over
11513 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11514 zmmh_low_space field by use of zmmh_high_space.
11515
582511be
PA
115162015-01-09 Pedro Alves <palves@redhat.com>
11517
11518 * linux-low.c (step_over_bkpt): Move higher up in the file.
11519 (handle_extended_wait): Don't store the stop_pc here.
11520 (get_stop_pc): Adjust comments and rename to ...
11521 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11522 stopped for a software breakpoint or hardware breakpoint.
11523 (thread_still_has_status_pending_p): New function.
11524 (status_pending_p_callback): Use
11525 thread_still_has_status_pending_p. If the event is no longer
11526 interesting, resume the LWP.
11527 (handle_tracepoints): Add assert.
11528 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11529 (wstatus_maybe_breakpoint): New function.
11530 (cancel_breakpoint): Delete function.
11531 (check_stopped_by_watchpoint): New function, factored out from
11532 linux_low_filter_event.
11533 (lp_status_maybe_breakpoint): Delete function.
11534 (linux_low_filter_event): Remove filter_ptid argument.
11535 Leave thread group exits pending here. Store the LWP's stop PC.
11536 Always leave events pending.
11537 (linux_wait_for_event_filtered): Pull all events out of the
11538 kernel, and leave them all pending.
11539 (count_events_callback, select_event_lwp_callback): Consider all
11540 events.
11541 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11542 (select_event_lwp): Only give preference to the stepping LWP in
11543 all-stop mode. Adjust comments.
11544 (ignore_event): New function.
11545 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11546 references to cancel_breakpoints. Adjust to renames. Also give
11547 equal priority to all LWPs that have had events in non-stop mode.
11548 If reporting a software breakpoint event, unadjust the LWP's PC.
11549 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11550 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11551 Adjust.
11552 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11553 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11554 (linux_stopped_by_watchpoint): Adjust.
11555 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11556 * linux-low.h (enum lwp_stop_reason): New.
11557 (struct lwp_info) <stop_pc>: Adjust comment.
11558 <stopped_by_watchpoint>: Delete field.
11559 <stop_reason>: New field.
11560 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11561 * mem-break.c (software_breakpoint_inserted_here)
11562 (hardware_breakpoint_inserted_here): New function.
11563 * mem-break.h (software_breakpoint_inserted_here)
11564 (hardware_breakpoint_inserted_here): Declare.
11565 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11566 (cancel_breakpoints): Delete.
11567 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11568 (upload_fast_traceframes): Remove references to
11569 cancel_breakpoints.
11570
a33e3959
PA
115712015-01-09 Pedro Alves <palves@redhat.com>
11572
11573 * thread-db.c (find_new_threads_callback): Ignore thread if the
11574 kernel thread ID is -1.
11575
8784d563
PA
115762015-01-09 Pedro Alves <palves@redhat.com>
11577
11578 * linux-low.c (linux_attach_fail_reason_string): Move to
11579 nat/linux-ptrace.c, and rename.
11580 (linux_attach_lwp): Update comment.
11581 (attach_proc_task_lwp_callback): New function.
11582 (linux_attach): Adjust to rename and use
11583 linux_proc_attach_tgid_threads.
11584 (linux_attach_fail_reason_string): Delete declaration.
11585
76f2b779
JB
115862015-01-01 Joel Brobecker <brobecker@adacore.com>
11587
11588 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11589 * server.c (gdbserver_version): Likewise.
11590
fafcc06a
SDJ
115912014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11592
11593 * remote-utils.c: Include ctype.h.
11594 (input_interrupt): Explicitly handle the case when the char
11595 received is the NUL byte. Improve the printing of non-ASCII
11596 characters.
11597
beed38b8
JB
115982014-12-16 Joel Brobecker <brobecker@adacore.com>
11599
11600 * linux-low.c (linux_low_filter_event): Update call to
11601 linux_enable_event_reporting following the addition of
11602 a new parameter to that function.
11603
bf330350
CU
116042014-12-16 Catalin Udma <catalin.udma@freescale.com>
11605
11606 PR server/17457
11607 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11608 (AARCH64_FPCR_REGNO): Likewise.
11609 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11610 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11611 (aarch64_store_fpregset): Likewise.
11612
5227d625
JB
116132014-12-15 Joel Brobecker <brobecker@adacore.com>
11614
11615 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11616 Remove FIXME comment about assumption about N.
11617
f93b65a0
JB
116182014-12-13 Joel Brobecker <brobecker@adacore.com>
11619
11620 * configure.ac: If large-file support is disabled in GDBserver,
11621 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11622 * configure: Regenerate.
11623
e5a9158d
AA
116242014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11625
11626 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11627 warning upon ENODATA from ptrace.
11628 * linux-s390-low.c (s390_store_tdb): New.
11629 (s390_regsets): Add regset for NT_S390_TDB.
11630
feea5f36
AA
116312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11632
11633 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11634 without a fill_function.
11635 * linux-s390-low.c (s390_fill_last_break): Remove.
11636 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11637 (s390_arch_setup): Use regset's size instead of fill_function for
11638 loop end condition.
11639
098dbe61
AA
116402014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11641
11642 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11643 the regset's store function when ptrace returned an error.
11644 * regcache.c (get_thread_regcache): Invalidate register cache
11645 before fetching inferior's registers.
11646
28eef672
AA
116472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11648
11649 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11650 while-loop as for-loop.
11651 (regsets_store_inferior_registers): Likewise.
11652
bdca27a2
YQ
116532014-11-28 Yao Qi <yao@codesourcery.com>
11654
11655 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11656 * config.in, configure: Re-generate.
11657 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11658 is defined.
11659
9c232dda
YQ
116602014-11-21 Yao Qi <yao@codesourcery.com>
11661
11662 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11663 (AC_CHECK_HEADERS): Remove malloc.h.
11664 * configure: Re-generated.
11665 * config.in: Re-generated.
11666 * server.h: Don't include alloca.h and malloc.h.
11667 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11668 Don't include malloc.h.
11669
43968415
JB
116702014-11-17 Joel Brobecker <brobecker@adacore.com>
11671
11672 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11673 corresponding ERRNO check in same block.
11674
40e91bc7
PA
116752014-11-12 Pedro Alves <palves@redhat.com>
11676
11677 * server.c (cont_thread): Update comment.
11678 (start_inferior, attach_inferior): No longer clear cont_thread.
11679 (handle_v_cont): No longer set cont_thread.
11680 (captured_main): Clear cont_thread each time a GDB connects.
11681
c2c118cf
PA
116822014-11-12 Pedro Alves <palves@redhat.com>
11683
11684 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11685 thread, and don't resume all threads if the Hc thread has exited.
11686
78708b7c
PA
116872014-11-12 Pedro Alves <palves@redhat.com>
11688
11689 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11690 the process group instead of to a specific LWP.
11691
a2abc7de
PA
116922014-10-15 Pedro Alves <palves@redhat.com>
11693
11694 PR server/17487
11695 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11696 parameter.
11697 (arm_set_thread_context): Delete.
11698 (the_low_target): Adjust.
11699 * win32-i386-low.c (debug_registers_changed)
11700 (debug_registers_used): Delete.
11701 (update_debug_registers_callback): New function.
11702 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11703 needing to update their debug registers.
11704 (win32_get_current_dr): New function.
11705 (x86_dr_low_get_addr, x86_dr_low_get_control)
11706 (x86_dr_low_get_status): Fetch the debug register from the thread
11707 record's context.
11708 (i386_initial_stuff): Adjust.
11709 (i386_get_thread_context): Remove current_event parameter. Don't
11710 clear debug_registers_changed nor copy DR values to
11711 debug_reg_state.
11712 (i386_set_thread_context): Delete.
11713 (i386_prepare_to_resume): New function.
11714 (i386_thread_added): Mark the thread as needing to update irs
11715 debug registers.
11716 (the_low_target): Remove i386_set_thread_context and install
11717 i386_prepare_to_resume.
11718 * win32-low.c (win32_get_thread_context): Adjust.
11719 (win32_set_thread_context): Use SetThreadContext
11720 directly.
11721 (win32_prepare_to_resume): New function.
11722 (win32_require_context): New function, factored out from ...
11723 (thread_rec): ... this.
11724 (continue_one_thread): Call win32_prepare_to_resume on each thread
11725 we're about to continue.
11726 (win32_resume): Call win32_prepare_to_resume on the event thread.
11727 * win32-low.h (struct win32_thread_info)
11728 <debug_registers_changed>: New field.
11729 (struct win32_target_ops): Change prototype of set_thread_context,
11730 delete set_thread_context and add prepare_to_resume.
11731 (win32_require_context): New declaration.
11732
a442d071
GB
117332014-10-08 Gary Benson <gbenson@redhat.com>
11734
11735 * server.h: Do not include common-exceptions.h.
11736
6f1947e8
GB
117372014-10-08 Gary Benson <gbenson@redhat.com>
11738
11739 * server.h: Do not include cleanups.h.
11740
63b434a4
JH
117412014-09-30 James Hogan <james.hogan@imgtec.com>
11742
11743 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11744 mips64-dsp-linux.c.
11745
c4d9ceb6
YQ
117462014-09-23 Yao Qi <yao@codesourcery.com>
11747
11748 * linux-low.c (lp_status_maybe_breakpoint): New function.
11749 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11750 (count_events_callback): Likewise.
11751 (select_event_lwp_callback): Likewise.
11752 (cancel_breakpoints_callback): Likewise.
11753
89a5711c
DB
117542014-09-19 Don Breazeal <donb@codesourcery.com>
11755
11756 * linux-low.c (handle_extended_wait): Call
11757 linux_ptrace_get_extended_event.
11758 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11759 linux_is_extended_waitstatus.
11760
bffc0964
JB
117612014-09-16 Joel Brobecker <brobecker@adacore.com>
11762
11763 * Makefile.in (CPPFLAGS): Define.
11764 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11765 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11766
0bfdf32f
GB
117672014-09-16 Gary Benson <gbenson@redhat.com>
11768
11769 * inferiors.h (current_inferior): Renamed as...
11770 (current_thread): New variable. All uses updated.
11771 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11772 (maybe_move_out_of_jump_pad): Likewise.
11773 (cancel_breakpoint): Likewise.
11774 (linux_low_filter_event): Likewise.
11775 (wait_for_sigstop): Likewise.
11776 (linux_resume_one_lwp): Likewise.
11777 (need_step_over_p): Likewise.
11778 (start_step_over): Likewise.
11779 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11780 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11781 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11782 and save_inferior as saved_thread.
11783 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11784 saved_thread.
11785 (regcache_invalidate_thread): Likewise.
11786 * remote-utils.c (prepare_resume_reply): Likewise.
11787 * thread-db.c (thread_db_get_tls_address): Likewise.
11788 (disable_thread_event_reporting): Likewise.
11789 (remove_thread_event_breakpoints): Likewise.
11790 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11791 as saved_thread.
11792 * target.h (set_desired_inferior): Renamed as...
11793 (set_desired_thread): New declaration. All uses updated.
11794 * server.c (myresume): Updated comment to reference thread instead
11795 of inferior.
11796 (handle_serial_event): Likewise.
11797 (handle_target_event): Likewise.
11798
361c8ade
GB
117992014-09-12 Tom Tromey <tromey@redhat.com>
11800 Gary Benson <gbenson@redhat.com>
11801
11802 * regcache.h: Include common-regcache.h.
11803 (regcache_read_pc): Don't declare.
11804 * regcache.c (get_thread_regcache_for_ptid): New function.
11805
bd9269f7
GB
118062014-09-11 Tom Tromey <tromey@redhat.com>
11807 Gary Benson <gbenson@redhat.com>
11808
11809 * symbol.c: New file.
11810 * Makefile.in (SFILES): Add symbol.c.
11811 (OBS): Add symbol.o.
11812
f8c1d06b
GB
118132014-09-11 Gary Benson <gbenson@redhat.com>
11814
11815 * target.c (target_stop_ptid, target_continue_ptid): New
11816 functions.
11817
721ec300
GB
118182014-09-11 Tom Tromey <tromey@redhat.com>
11819 Gary Benson <gbenson@redhat.com>
11820
11821 * target.h: Include target/target.h.
11822 * target.c (target_read_memory, target_read_uint32)
11823 (target_write_memory): New functions.
11824
c5e92cca
GB
118252014-09-11 Gary Benson <gbenson@redhat.com>
11826
11827 * server.h (debug_hw_points): Don't declare.
11828 * server.c (debug_hw_points): Don't define. Replace all uses
11829 with show_debug_regs.
11830 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11831 all uses with show_debug_regs.
11832
2e4bb98a
EBM
118332014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11834
11835 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11836 endianness into account.
11837 (ppc_supply_ptrace_register): Likewise.
11838
ac740bc7
JH
118392014-09-03 James Hogan <james.hogan@imgtec.com>
11840
11841 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11842 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11843
97ea6506
GB
118442014-09-03 Gary Benson <gbenson@redhat.com>
11845
11846 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11847 ALL_DEBUG_ADDRESS_REGISTERS.
11848
df7e5265
GB
118492014-09-02 Gary Benson <gbenson@redhat.com>
11850
11851 * i386-low.h: Renamed as...
11852 * x86-low.h: New file. All type, function and variable name
11853 prefixes changed from "i386_" to "x86_". All references updated.
11854 * i386-low.c: Renamed as...
11855 * x86-low.c: New file. All type, function and variable name
11856 prefixes changed from "i386_" to "x86_". All references updated.
11857
ed859da7
GB
118582014-09-02 Gary Benson <gbenson@redhat.com>
11859
11860 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11861 (x86_linux_new_thread): Likewise.
11862
860789c7
GB
118632014-08-29 Gary Benson <gbenson@redhat.com>
11864
11865 * server.h (setjmp.h): Do not include.
11866 (toplevel): Do not declare.
11867 (common-exceptions.h): Include.
11868 (cleanups.h): Likewise.
11869 * server.c (toplevel): Do not define.
11870 (exit_code): New static global.
11871 (detach_or_kill_for_exit_cleanup): New function.
11872 (main): New function. Original main renamed to...
11873 (captured_main): New function.
11874 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11875
ff55e1b5
GB
118762014-08-29 Gary Benson <gbenson@redhat.com>
11877
11878 * Makefile.in (SFILES): Add common/common-exceptions.c.
11879 (OBS): Add common-exceptions.o.
11880 (common-exceptions.o): New rule.
11881 * utils.c (prepare_to_throw_exception): New function.
11882
e9bcb658
GB
118832014-08-29 Gary Benson <gbenson@redhat.com>
11884
11885 * config.in: Regenerate.
11886 * configure: Likewise.
11887
e3180625
GB
118882014-08-29 Gary Benson <gbenson@redhat.com>
11889
11890 * Makefile.in (SFILES): Add common/cleanups.c.
11891 (OBS): cleanups.o.
11892 (cleanups.o): New rule.
11893
e3d6ba5d
GB
118942014-08-29 Gary Benson <gbenson@redhat.com>
11895
11896 * utils.c (internal_vwarning): New function.
11897
7096e886
GB
118982014-08-28 Gary Benson <gbenson@redhat.com>
11899
11900 * utils.h (fatal): Remove declaration.
11901 * utils.c (fatal): Remove function.
11902
14ce3192
GB
119032014-08-28 Gary Benson <gbenson@redhat.com>
11904
11905 * tracepoint.c (gdb_agent_init): Replace fatal with
11906 perror_with_name.
11907 (initialize_tracepoint): Likewise.
11908
50278d59
GB
119092014-08-28 Gary Benson <gbenson@redhat.com>
11910
11911 * remote-utils.c (remote_prepare): Replace fatal with error.
11912
aa96c426
GB
119132014-08-28 Gary Benson <gbenson@redhat.com>
11914
11915 * linux-low.c (linux_async): Replace fatal with warning.
11916 Tidy up and return.
11917 (linux_start_non_stop): Return -1 if linux_async failed.
11918
f7160e97
GB
119192014-08-28 Gary Benson <gbenson@redhat.com>
11920
11921 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11922 gdb_assert.
11923 (i386_dr_low_get_addr): Remove vague comment.
11924 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11925 gdb_assert.
11926
38e08fca
GB
119272014-08-28 Gary Benson <gbenson@redhat.com>
11928
11929 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11930 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11931 internal_error.
11932 (linux_resume_one_lwp): Likewise.
11933 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11934 gdb_assert.
11935 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11936 with internal_error.
11937 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11938 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11939 (find_register_by_name): Replace fatal with internal_error.
11940 (find_regno): Likewise.
11941 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11942 * thread-db.c (thread_db_create_event): Likewise.
11943 (thread_db_load_search): Likewise.
11944 (try_thread_db_load_1): Likewise.
11945 * tracepoint.c (get_jump_space_head): Replace fatal with
11946 internal_error.
11947 (claim_trampoline_space): Likewise.
11948 (have_fast_tracepoint_trampoline_buffer): Likewise.
11949 (cmd_qtstart): Likewise.
11950 (stop_tracing): Likewise.
11951 (fast_tracepoint_collecting): Likewise.
11952 (target_malloc): Likewise.
11953 (download_tracepoint): Likewise.
11954 (download_trace_state_variables): Replace check with gdb_assert.
11955 (upload_fast_traceframes): Replace fatal with internal_error.
11956
34abf635
GB
119572014-08-19 Tom Tromey <tromey@redhat.com>
11958 Gary Benson <gbenson@redhat.com>
11959
11960 * Makefile.in (SFILES): Add common/common-debug.c.
11961 (OBS): Add common-debug.o.
11962 (common-debug.o): New rule.
11963 * debug.h (debug_printf): Don't declare.
11964 * debug.c (debug_printf): Renamed and rewritten as...
11965 (debug_vprintf): New function.
11966
f6e94d78
GB
119672014-08-19 Gary Benson <gbenson@redhat.com>
11968
11969 * utils.h: Do not include print-utils.h.
11970
9239eeab
GB
119712014-08-19 Tom Tromey <tromey@redhat.com>
11972 Gary Benson <gbenson@redhat.com>
11973
11974 * server.h: Add static assertion.
11975 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11976
ef87c8bb
GB
119772014-08-19 Tom Tromey <tromey@redhat.com>
11978 Gary Benson <gbenson@redhat.com>
11979
11980 * Makefile.in (SFILES): Add common/errors.c.
11981 (OBS): Add errors.o.
11982 (IPA_OBS): Add errors-ipa.o.
11983 (errors.o): New rule.
11984 (errors-ipa.o): Likewise.
11985 * utils.h (perror_with_name, error, warning): Don't declare.
11986 * utils.c (warning): Renamed and rewritten as...
11987 (vwarning): New function.
11988 (error): Renamed and rewritten as...
11989 (verror): New function.
11990 (internal_error): Renamed and rewritten as...
11991 (internal_verror): New function.
11992
bb974a24
GB
119932014-08-07 Gary Benson <gbenson@redhat.com>
11994
11995 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11996 * configure: Regenerate.
11997 * config.in: Likewise.
11998 * server.h: Do not include errno.h.
11999 * event-loop.c: Likewise.
12000 * hostio-errno.c: Likewise.
12001 * linux-low.c: Likewise.
12002 * remote-utils.c: Likewise.
12003 * spu-low.c: Likewise.
12004 * utils.c: Likewise.
12005 * gdbreplay.c: Unconditionally include errno.h.
12006
6d3d12eb
GB
120072014-08-07 Gary Benson <gbenson@redhat.com>
12008
12009 * server.h: Do not include string.h.
12010 * event-loop.c: Likewise.
12011 * linux-low.c: Likewise.
12012 * regcache.c: Likewise.
12013 * remote-utils.c: Likewise.
12014 * spu-low.c: Likewise.
12015 * utils.c: Likewise.
12016
dccbb609
GB
120172014-08-07 Gary Benson <gbenson@redhat.com>
12018
12019 * server.h: Do not include gdb_assert.h.
12020
e76df0d0
GB
120212014-08-07 Gary Benson <gbenson@redhat.com>
12022
12023 * server.h: Do not include common-utils.h.
12024
4cb9c816
GB
120252014-08-07 Gary Benson <gbenson@redhat.com>
12026
12027 * server.h: Do not include ptid.h.
12028 * notif.h: Likewise.
12029
3995eeee
GB
120302014-08-07 Gary Benson <gbenson@redhat.com>
12031
12032 * server.h: Do not include gdb_locale.h.
12033
cb9f1a9b
GB
120342014-08-07 Gary Benson <gbenson@redhat.com>
12035
12036 * server.h: Do not include gdb/signals.h.
12037 * win32-low.c: Likewise.
12038
a5fceff8
GB
120392014-08-07 Gary Benson <gbenson@redhat.com>
12040
12041 * server.h: Do not include pathmax.h.
12042
b9391142
GB
120432014-08-07 Gary Benson <gbenson@redhat.com>
12044
12045 * server.h: Do not include libiberty.h.
12046 * linux-bfin-low.c: Likewise.
12047
0e443c87
GB
120482014-08-07 Gary Benson <gbenson@redhat.com>
12049
12050 * server.h: Do not include ansidecl.h.
12051
8ebb3f56
GB
120522014-08-07 Gary Benson <gbenson@redhat.com>
12053
12054 * linux-x86-low.c: Do not include stddef.h.
12055 * lynx-ppc-low.c: Likewise.
12056 * tracepoint.c: Likewise.
12057
8980bdf6
GB
120582014-08-07 Gary Benson <gbenson@redhat.com>
12059
12060 * server.h: Do not include stdarg.h.
12061 * nto-low.c: Likewise.
12062
d7096f71
GB
120632014-08-07 Gary Benson <gbenson@redhat.com>
12064
12065 * server.h: Do not include stdlib.h.
12066 * inferiors.c: Likewise.
12067 * linux-low.c: Likewise.
12068 * regcache.c: Likewise.
12069 * spu-low.c: Likewise.
12070 * tracepoint.c: Likewise.
12071 * utils.c: Likewise.
12072
d02f550d
GB
120732014-08-07 Gary Benson <gbenson@redhat.com>
12074
12075 * server.h: Do not include stdio.h.
12076 * linux-low.c: Likewise.
12077 * remote-utils.c: Likewise.
12078 * spu-low.c: Likewise.
12079 * utils.c: Likewise.
12080 * wincecompat.c: Likewise.
12081
87f6c4e3
GB
120822014-08-06 Gary Benson <gbenson@redhat.com>
12083
12084 * regcache.c (init_register_cache): Move conditionals inside if.
12085
7089dca4
GB
120862014-08-06 Gary Benson <gbenson@redhat.com>
12087
12088 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12089
462f517e
GB
120902014-07-31 Gary Benson <gbenson@redhat.com>
12091
12092 * ax.h: Do not include server.h.
12093 * gdbthread.h: Likewise.
12094 * lynx-low.h: Likewise.
12095 * notif.h: Likewise.
12096
976411d6
GB
120972014-07-30 Gary Benson <gbenson@redhat.com>
12098
12099 * server.h: Include common-defs.h.
12100 Do not include config.h or build-gnulib-gdbserver/config.h.
12101
d41f6d8e
GB
121022014-07-30 Gary Benson <gbenson@redhat.com>
12103
12104 * hostio-errno.c: Move server.h to top of includes list.
12105 * inferiors.c: Likewise.
12106 * linux-x86-low.c: Likewise.
12107 * notif.c: Include server.h.
12108
314c6a35
TT
121092014-07-24 Tom Tromey <tromey@redhat.com>
12110 Gary Benson <gbenson@redhat.com>
12111
12112 * server.h (CORE_ADDR): Now unsigned.
12113
69ff6be5
PA
121142014-07-16 Pedro Alves <palves@redhat.com>
12115
12116 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12117
ce9e3fe7
PA
121182014-07-15 Pedro Alves <palves@redhat.com>
12119
12120 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12121 copy.
12122
e76126e8
PA
121232014-07-11 Pedro Alves <palves@redhat.com>
12124
12125 * linux-low.c (kill_wait_lwp): New function, based on
12126 kill_one_lwp_callback, but use my_waitpid directly.
12127 (kill_one_lwp_callback, linux_kill): Use it.
12128
8e9db26e
PA
121292014-06-23 Pedro Alves <palves@redhat.com>
12130
12131 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12132 before setting DR0..DR3.
12133
698b3e08
GB
121342014-06-20 Gary Benson <gbenson@redhat.com>
12135
12136 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12137 * configure: Regenerated.
12138 * config.in: Likewise.
12139
125f8a3d
GB
121402014-06-20 Gary Benson <gbenson@redhat.com>
12141
12142 * Makefile.in (SFILES): Update locations for files moved
12143 from common to nat.
12144 (object file files): Reordered.
12145
42995dbd
GB
121462014-06-20 Gary Benson <gbenson@redhat.com>
12147
12148 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12149 (i386_dr_low_set_addr): Likewise.
12150 (i386_dr_low_get_addr): Likewise.
12151 (i386_dr_low_can_set_control): Likewise.
12152 (i386_dr_low_set_control): Likewise.
12153 (i386_dr_low_get_control): Likewise.
12154 (i386_dr_low_get_status): Likewise.
12155 (i386_get_debug_register_length): Likewise.
12156 * linux-x86-low.c (i386_dr_low_set_addr):
12157 Changed signature. Made static.
12158 (i386_dr_low_get_addr): Likewise.
12159 (i386_dr_low_set_control): Likewise.
12160 (i386_dr_low_get_control): Likewise.
12161 (i386_dr_low_get_status): Likewise.
12162 (i386_dr_low): New global variable.
12163 * win32-i386-low.c (i386_dr_low_set_addr):
12164 Changed signature. Made static.
12165 (i386_dr_low_get_addr): Likewise.
12166 (i386_dr_low_set_control): Likewise.
12167 (i386_dr_low_get_control): Likewise.
12168 (i386_dr_low_get_status): Likewise.
12169 (i386_dr_low): New global variable.
12170
e1d2394b
MS
121712014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12172
12173 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12174 * Makefile.in (AR, AR_FLAGS): Define.
12175 * configure: Regenerate.
12176
3a8ee006
GB
121772014-06-19 Gary Benson <gbenson@redhat.com>
12178
12179 * Makefile.in (i386-dregs.o): New rule.
12180 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12181 * i386-low.c (target.h): Remove include.
12182 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12183 (DR_CONTROL_SHIFT): Likewise.
12184 (DR_CONTROL_SIZE): Likewise.
12185 (DR_RW_EXECUTE): Likewise.
12186 (DR_RW_WRITE): Likewise.
12187 (DR_RW_READ): Likewise.
12188 (DR_RW_IORW): Likewise.
12189 (DR_LEN_1): Likewise.
12190 (DR_LEN_2): Likewise.
12191 (DR_LEN_4): Likewise.
12192 (DR_LEN_8): Likewise.
12193 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12194 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12195 (DR_ENABLE_SIZE): Likewise.
12196 (DR_LOCAL_SLOWDOWN): Likewise.
12197 (DR_GLOBAL_SLOWDOWN): Likewise.
12198 (DR_CONTROL_RESERVED): Likewise.
12199 (I386_DR_CONTROL_MASK): Likewise.
12200 (I386_DR_VACANT): Likewise.
12201 (I386_DR_LOCAL_ENABLE): Likewise.
12202 (I386_DR_GLOBAL_ENABLE): Likewise.
12203 (I386_DR_DISABLE): Likewise.
12204 (I386_DR_SET_RW_LEN): Likewise.
12205 (I386_DR_GET_RW_LEN): Likewise.
12206 (I386_DR_WATCH_HIT): Likewise.
12207 (i386_wp_op_t): Likewise.
12208 (i386_show_dr): Likewise.
12209 (i386_length_and_rw_bits): Likewise.
12210 (i386_insert_aligned_watchpoint): Likewise.
12211 (i386_remove_aligned_watchpoint): Likewise.
12212 (i386_handle_nonaligned_watchpoint): Likewise.
12213 i386_update_inferior_debug_regs(): Likewise.
12214 (i386_dr_insert_watchpoint): Likewise.
12215 (i386_dr_remove_watchpoint): Likewise.
12216 (i386_dr_region_ok_for_watchpoint): Likewise.
12217 (i386_dr_stopped_data_address): Likewise.
12218 (i386_dr_stopped_by_watchpoint): Likewise.
12219
8f26655c
GB
122202014-06-19 Gary Benson <gbenson@redhat.com>
12221
12222 * i386-low.c (i386_dr_show): Renamed to
12223 i386_show_dr and made static. All uses updated.
12224 (i386_dr_length_and_rw_bits): Renamed to
12225 i386_length_and_rw_bits and made static.
12226 All uses updated.
12227 (i386_dr_insert_aligned_watchpoint): Renamed to
12228 i386_insert_aligned_watchpoint and made static.
12229 All uses updated.
12230 (i386_dr_remove_aligned_watchpoint): Renamed to
12231 i386_remove_aligned_watchpoint and made static.
12232 All uses updated.
12233 (i386_dr_update_inferior_debug_regs): Renamed to
12234 i386_update_inferior_debug_regs and made static.
12235 All uses updated.
12236
b9228891
GB
122372014-06-18 Gary Benson <gbenson@redhat.com>
12238
5171def3
GB
12239 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12240 (i386_dr_low_can_set_control): Likewise.
12241 (i386_get_debug_register_length): Likewise.
12242 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12243 (i386_dr_low_can_set_control): Likewise.
12244 (i386_get_debug_register_length): Likewise.
12245
122462014-06-17 Gary Benson <gbenson@redhat.com>
12247
b9228891
GB
12248 * i386-low.h (i386-dregs.h): New include.
12249 (DR_FIRSTADDR): Now in i386-dregs.h.
12250 (DR_LASTADDR): Likewise.
12251 (DR_NADDR): Likewise.
12252 (DR_STATUS): Likewise.
12253 (DR_CONTROL): Likewise.
12254 (i386_debug_reg_state): Likewise.
12255 (i386_dr_insert_watchpoint): Likewise.
12256 (i386_dr_remove_watchpoint): Likewise.
12257 (i386_dr_region_ok_for_watchpoint): Likewise.
12258 (i386_dr_stopped_data_address): Likewise.
12259 (i386_dr_stopped_by_watchpoint): Likewise.
12260 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12261
4be83cc2
GB
122622014-06-18 Gary Benson <gbenson@redhat.com>
12263
12264 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12265 i386_dr_insert_watchpoint.
12266 (i386_low_remove_watchpoint): Renamed to
12267 i386_dr_remove_watchpoint.
12268 (i386_low_region_ok_for_watchpoint): Renamed to
12269 i386_dr_region_ok_for_watchpoint.
12270 (i386_low_stopped_data_address): Renamed to
12271 i386_dr_stopped_data_address.
12272 (i386_low_stopped_by_watchpoint): Renamed to
12273 i386_dr_stopped_by_watchpoint.
12274 * i386-low.c (i386_show_dr): Renamed to
12275 i386_dr_show and made nonstatic. All uses updated.
12276 (i386_length_and_rw_bits): Renamed to
12277 i386_dr_length_and_rw_bits and made nonstatic.
12278 All uses updated.
12279 (i386_insert_aligned_watchpoint): Renamed to
12280 i386_dr_insert_aligned_watchpoint and made nonstatic.
12281 All uses updated.
12282 (i386_remove_aligned_watchpoint): Renamed to
12283 i386_dr_remove_aligned_watchpoint and made nonstatic.
12284 All uses updated.
12285 (i386_update_inferior_debug_regs): Renamed to
12286 i386_dr_update_inferior_debug_regs and made nonstatic.
12287 All uses updated.
12288 (i386_low_insert_watchpoint): Renamed to
12289 i386_dr_insert_watchpoint. All uses updated.
12290 (i386_low_remove_watchpoint): Renamed to
12291 i386_dr_remove_watchpoint. All uses updated.
12292 (i386_low_region_ok_for_watchpoint): Renamed to
12293 i386_dr_region_ok_for_watchpoint. All uses updated.
12294 (i386_low_stopped_data_address): Renamed to
12295 i386_dr_stopped_data_address. All uses updated.
12296 (i386_low_stopped_by_watchpoint): Renamed to
12297 i386_dr_stopped_by_watchpoint. All uses updated.
12298
131aa0d4
GB
122992014-06-18 Gary Benson <gbenson@redhat.com>
12300
12301 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12302 (i386_dr_low_can_set_control): Likewise.
12303 (i386_insert_aligned_watchpoint): New check.
12304
d9305f7f
GB
123052014-06-18 Gary Benson <gbenson@redhat.com>
12306
12307 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12308 Renamed to state.
12309
e927c9fc
GB
123102014-06-18 Gary Benson <gbenson@redhat.com>
12311
12312 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12313 instead of fatal and error.
12314 (i386_handle_nonaligned_watchpoint): Likewise.
12315
1b6d4134
GB
123162014-06-18 Gary Benson <gbenson@redhat.com>
12317
12318 * i386-low.c (i386_get_debug_register_length): New macro.
12319 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12320 (i386_show_dr): Use debug_printf instead of fprintf. Use
12321 phex to format values.
12322
6e62758f
GB
123232014-06-18 Gary Benson <gbenson@redhat.com>
12324
12325 * i386-low.h: Comment changes.
12326 * i386-low.c: Likewise.
12327
fc6e2f03
GB
123282014-06-18 Gary Benson <gbenson@redhat.com>
12329
12330 * i386-low.c: Whitespace changes.
12331
f9d1eeed
TT
123322014-06-12 Tom Tromey <tromey@redhat.com>
12333
12334 * utils.c (freeargv): Remove.
12335
0b04e523
TT
123362014-06-12 Tom Tromey <tromey@redhat.com>
12337
12338 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12339 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12340 (parse_debug_format_options): Likewise.
12341 (gdbserver_usage): Likewise.
12342 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12343 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12344 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12345 against libiberty.
12346 ($(LIBGNU)): Depend on libiberty.
12347 (all-lib): Recurse into all subdirs.
12348 (install-only): Invoke "install" target in subdirs.
12349 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12350 targets.
12351 * configure: Rebuild.
12352 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12353 for vasprintf, vsnprintf, or gettimeofday.
12354 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12355 srv_tgtobj.
12356
270c9937
JB
123572014-06-05 Joel Brobecker <brobecker@adacore.com>
12358
12359 * development.sh: Delete.
12360 * Makefile.in (config.status): Adjust dependency on development.sh.
12361 * configure.ac: Adjust development.sh source call.
12362 * configure: Regenerate.
12363
0a261ed8
PA
123642014-06-02 Pedro Alves <palves@redhat.com>
12365
12366 * ax.c (gdb_free_agent_expr): New function.
12367 * ax.h (gdb_free_agent_expr): New declaration.
12368 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12369 list.
12370 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12371 static.
12372 (clear_breakpoint_conditions_and_commands): New function.
12373 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12374 (clear_breakpoint_conditions_and_commands): New declaration.
12375
e9dae05e
RR
123762014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12377
12378 * linux-aarch64-low.c (asm/ptrace.h): Include.
12379
5876f503
JK
123802014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12381
12382 Fix TLS access for -static -pthread.
12383 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12384 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12385 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12386
802e8e6d
PA
123872014-05-20 Pedro Alves <palves@redhat.com>
12388
12389 * linux-aarch64-low.c (aarch64_insert_point)
12390 (aarch64_remove_point): No longer check whether the type is
12391 supported here. Adjust to new interface.
12392 (the_low_target): Install aarch64_supports_z_point_type as
12393 supports_z_point_type method.
12394 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12395 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12396 instead of a Z packet char. Adjust.
12397 (arm_supports_z_point_type): New function.
12398 (arm_insert_point, arm_remove_point): Adjust to new interface.
12399 (the_low_target): Install arm_supports_z_point_type.
12400 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12401 (cris_insert_point, cris_remove_point): Adjust to new interface.
12402 Don't check whether the type is supported here.
12403 (the_low_target): Install cris_supports_z_point_type.
12404 * linux-low.c (linux_supports_z_point_type): New function.
12405 (linux_insert_point, linux_remove_point): Adjust to new interface.
12406 * linux-low.h (struct linux_target_ops) <insert_point,
12407 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12408 raw_breakpoint pointer parameter.
12409 <supports_z_point_type>: New method.
12410 * linux-mips-low.c (mips_supports_z_point_type): New function.
12411 (mips_insert_point, mips_remove_point): Adjust to new interface.
12412 Use mips_supports_z_point_type.
12413 (the_low_target): Install mips_supports_z_point_type.
12414 * linux-ppc-low.c (the_low_target): Install NULL as
12415 supports_z_point_type method.
12416 * linux-s390-low.c (the_low_target): Install NULL as
12417 supports_z_point_type method.
12418 * linux-sparc-low.c (the_low_target): Install NULL as
12419 supports_z_point_type method.
12420 * linux-x86-low.c (x86_supports_z_point_type): New function.
12421 (x86_insert_point): Adjust to new insert_point interface. Use
12422 insert_memory_breakpoint. Adjust to new
12423 i386_low_insert_watchpoint interface.
12424 (x86_remove_point): Adjust to remove_point interface. Use
12425 remove_memory_breakpoint. Adjust to new
12426 i386_low_remove_watchpoint interface.
12427 (the_low_target): Install x86_supports_z_point_type.
12428 * lynx-low.c (lynx_target_ops): Install NULL as
12429 supports_z_point_type callback.
12430 * nto-low.c (nto_supports_z_point_type): New.
12431 (nto_insert_point, nto_remove_point): Adjust to new interface.
12432 (nto_target_ops): Install nto_supports_z_point_type.
12433 * mem-break.c: Adjust intro comment.
12434 (struct raw_breakpoint) <raw_type, size>: New fields.
12435 <inserted>: Update comment.
12436 <shlib_disabled>: Delete field.
12437 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12438 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12439 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12440 (raw_bkpt_type_to_target_hw_bp_type): New function.
12441 (find_enabled_raw_code_breakpoint_at): New function.
12442 (find_raw_breakpoint_at): New type and size parameters. Use them.
12443 (insert_memory_breakpoint): New function, based off
12444 set_raw_breakpoint_at.
12445 (remove_memory_breakpoint): New function.
12446 (set_raw_breakpoint_at): Reimplement.
12447 (set_breakpoint): New, based on set_breakpoint_at.
12448 (set_breakpoint_at): Reimplement.
12449 (delete_raw_breakpoint): Go through the_target->remove_point
12450 instead of assuming memory breakpoints.
12451 (find_gdb_breakpoint_at): Delete.
12452 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12453 (find_gdb_breakpoint): New function.
12454 (set_gdb_breakpoint_at): Delete.
12455 (z_type_supported): New function.
12456 (set_gdb_breakpoint_1): New function, loosely based off
12457 set_gdb_breakpoint_at.
12458 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12459 (delete_gdb_breakpoint_at): Delete.
12460 (delete_gdb_breakpoint_1): New function, loosely based off
12461 delete_gdb_breakpoint_at.
12462 (delete_gdb_breakpoint): New function.
12463 (clear_gdb_breakpoint_conditions): Rename to ...
12464 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12465 breakpoint.
12466 (add_condition_to_breakpoint): Make static.
12467 (add_breakpoint_condition): Take a struct breakpoint pointer
12468 instead of an address. Adjust.
12469 (gdb_condition_true_at_breakpoint): Rename to ...
12470 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12471 z_type parameter.
12472 (gdb_condition_true_at_breakpoint): Reimplement.
12473 (add_breakpoint_commands): Take a struct breakpoint pointer
12474 instead of an address. Adjust.
12475 (gdb_no_commands_at_breakpoint): Rename to ...
12476 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12477 parameter. Return true if no breakpoint was found. Change debug
12478 output.
12479 (gdb_no_commands_at_breakpoint): Reimplement.
12480 (run_breakpoint_commands): Rename to ...
12481 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12482 and change return type to boolean.
12483 (run_breakpoint_commands): New function.
12484 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12485 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12486 breakpoint. Go through the_target->remove_point instead of
12487 assuming memory breakpoint.
12488 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12489 software and hardware breakpoints.
12490 (reinsert_raw_breakpoint): Go through the_target->insert_point
12491 instead of assuming memory breakpoint.
12492 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12493 software and hardware breakpoints.
12494 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12495 Check both software and hardware breakpoints.
12496 (validate_inserted_breakpoint): Assert the breakpoint is a
12497 software breakpoint. Set the inserted flag to -1 instead of
12498 setting shlib_disabled.
12499 (delete_disabled_breakpoints): Adjust.
12500 (validate_breakpoints): Only validate software breakpoints.
12501 Adjust to inserted flag change.
12502 (check_mem_read, check_mem_write): Skip breakpoint types other
12503 than software breakpoints. Adjust to inserted flag change.
12504 * mem-break.h (enum raw_bkpt_type): New enum.
12505 (raw_breakpoint, struct process_info): Forward declare.
12506 (Z_packet_to_target_hw_bp_type): Delete declaration.
12507 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12508 (set_gdb_breakpoint, delete_gdb_breakpoint)
12509 (clear_breakpoint_conditions): New declarations.
12510 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12511 (breakpoint_inserted_here): Update comment.
12512 (add_breakpoint_condition, add_breakpoint_commands): Replace
12513 address parameter with a breakpoint pointer parameter.
12514 (gdb_breakpoint_here): Update comment.
12515 (delete_gdb_breakpoint_at): Delete.
12516 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12517 * server.c (process_point_options): Take a struct breakpoint
12518 pointer instead of an address. Adjust.
12519 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12520 delete_gdb_breakpoint.
12521 * spu-low.c (spu_target_ops): Install NULL as
12522 supports_z_point_type method.
12523 * target.h: Include mem-break.h.
12524 (struct target_ops) <prepare_to_access_memory>: Update comment.
12525 <supports_z_point_type>: New field.
12526 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12527 instead of a char. Also take a raw breakpoint pointer.
12528 * win32-arm-low.c (the_low_target): Install NULL as
12529 supports_z_point_type.
12530 * win32-i386-low.c (i386_supports_z_point_type): New function.
12531 (i386_insert_point, i386_remove_point): Adjust to new interface.
12532 (the_low_target): Install i386_supports_z_point_type.
12533 * win32-low.c (win32_supports_z_point_type): New function.
12534 (win32_insert_point, win32_remove_point): Adjust to new interface.
12535 (win32_target_ops): Install win32_supports_z_point_type.
12536 * win32-low.h (struct win32_target_ops):
12537 <supports_z_point_type>: New method.
12538 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12539 instead of a char. Also take a raw breakpoint pointer.
12540
932539e3
PA
125412014-05-20 Pedro Alves <palves@redhat.com>
12542
12543 * mem-break.h: Include break-common.h.
12544 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12545 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12546 (Z_packet_to_target_hw_bp_type): New declaration.
12547 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12548 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12549 (Z_PACKET_ACCESS_WP): Delete macros.
12550 (Z_packet_to_hw_type): Delete function.
12551 * i386-low.h: Don't include break-common.h here.
12552 (Z_packet_to_hw_type): Delete declaration.
12553 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12554 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12555 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12556 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12557 * linux-aarch64-low.c: Don't include break-common.h here.
12558 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12559 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12560 (Z_packet_to_target_hw_bp_type): Delete function.
12561 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12562 function.
12563 (mips_insert_point, mips_remove_point): Use
12564 Z_packet_to_target_hw_bp_type.
12565
4ff0d3d8
PA
125662014-05-20 Pedro Alves <palves@redhat.com>
12567
12568 * linux-aarch64-low.c: Include break-common.h.
12569 (enum target_point_type): Delete.
12570 (Z_packet_to_point_type): Rename to ...
12571 (Z_packet_to_target_hw_bp_type): ... this, and return a
12572 target_hw_bp_type instead.
12573 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12574 instead of an enum target_point_type.
12575 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12576 breakpoint type.
12577 (aarch64_dr_state_insert_one_point)
12578 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12579 (aarch64_handle_aligned_watchpoint)
12580 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12581 Take an enum target_hw_bp_type instead of an enum
12582 target_point_type.
12583 (aarch64_supports_z_point_type): New function.
12584 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12585 use Z_packet_to_target_hw_bp_type.
12586
786dc519
JB
125872014-05-20 Joel Brobecker <brobecker@adacore.com>
12588
12589 * configure.ac: Only use -Werror by default when DEVELOPMENT
12590 is true.
12591 * configure: Regenerate.
12592
9e0aa64f
JK
125932014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12594
12595 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12596 * linux-x86-low.c (X86_64_USER_REGS): New.
12597 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12598
2b577b92
YQ
125992014-04-28 Yao Qi <yao@codesourcery.com>
12600
12601 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12602 name.
12603
94611da2
PA
126042014-04-25 Pedro Alves <palves@redhat.com>
12605
12606 PR server/16255
12607 * linux-low.c (linux_attach_fail_reason_string): New function.
12608 (linux_attach_lwp): Delete.
12609 (linux_attach_lwp_1): Rename to ...
12610 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12611 argument. Remove "initial" parameter. Return int instead of
12612 void. Don't error or warn here.
12613 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12614 failure to attach to the tgid. Call warning when failing to
12615 attach to an lwp.
12616 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12617 argument. Remove "initial" parameter. Return int instead of
12618 void. Don't error or warn here.
12619 (linux_attach_fail_reason_string): New declaration.
12620 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12621 interface change. Use linux_attach_fail_reason_string.
12622
01f9f808
MS
126232014-04-24 Michael Sturm <michael.sturm@mintel.com>
12624 Walfred Tedeschi <walfred.tedeschi@intel.com>
12625
12626 * Makefile.in: Added rules to handle new files
12627 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12628 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12629 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12630 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12631 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12632 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12633 x32-avx512-linux.o.
12634 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12635 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12636 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12637 i386/x32-avx512.xml.
12638 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12639 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12640 i386/x32-avx512-linux.xml.
12641 * i387-fp.c (num_avx512_k_registers): New constant for number
12642 of K registers.
12643 (num_avx512_zmmh_low_registers): New constant for number of
12644 lower ZMM registers (0-15).
12645 (num_avx512_zmmh_high_registers): New constant for number of
12646 higher ZMM registers (16-31).
12647 (num_avx512_ymmh_registers): New contant for number of higher
12648 YMM registers (ymm16-31 added by avx521 on x86_64).
12649 (num_avx512_xmm_registers): New constant for number of higher
12650 XMM registers (xmm16-31 added by AVX512 on x86_64).
12651 (struct i387_xsave): Add space for AVX512 registers.
12652 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12653 Add code to handle AVX512 registers.
12654 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12655 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12656 prototypei from generated file.
12657 (tdesc_amd64_avx512_linux): Likewise.
12658 (init_registers_x32_avx512_linux): Likewise.
12659 (tdesc_x32_avx512_linux): Likewise.
12660 (init_registers_i386_avx512_linux): Likewise.
12661 (tdesc_i386_avx512_linux): Likewise.
12662 (x86_64_regmap): Add AVX512 registers.
12663 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12664 mask.
12665 (initialize_low_arch): Add code to initialize AVX512 registers.
12666
51aa91f9
PA
126672014-04-23 Pedro Alves <palves@redhat.com>
12668
12669 * mem-break.c (find_gdb_breakpoint_at): Make static.
12670 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12671
a4165e94
PA
126722014-04-23 Pedro Alves <palves@redhat.com>
12673
12674 * i386-low.c: Don't include break-common.h here.
12675 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12676 prototype to take target_hw_bp_type as argument instead of a Z
12677 packet char.
12678 * i386-low.h: Include break-common.h here.
12679 (Z_packet_to_hw_type): Declare.
12680 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12681 prototypes.
12682 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12683 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12684 (x86_remove_point): Convert the packet number to a
12685 target_hw_bp_type before calling i386_low_remove_watchpoint.
12686 * win32-i386-low.c (i386_insert_point): Convert the packet number
12687 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12688 (i386_remove_point): Convert the packet number to a
12689 target_hw_bp_type before calling i386_low_remove_watchpoint.
12690
b8acf843
PA
126912014-04-23 Pedro Alves <palves@redhat.com>
12692
12693 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12694
d708bcd1
PA
126952014-04-10 Pedro Alves <palves@redhat.com>
12696
12697 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12698 Check if the condition or command is NULL before checking if the
12699 breakpoint is known. On success, return true.
12700 * mem-break.h (add_breakpoint_condition): Document return.
12701 (add_breakpoint_commands): Add describing comment.
12702 * server.c (skip_to_semicolon): New function.
12703 (process_point_options): Use it.
12704
2eec7d5b
PA
127052014-04-09 Pedro Alves <palves@redhat.com>
12706
12707 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12708 to lwpid_of.
12709
fa96cb38
PA
127102014-02-27 Pedro Alves <palves@redhat.com>
12711
12712 PR 12702
12713 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12714 macros.
12715 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12716 output.
12717 (last_thread_of_process_p): Take a PID argument instead of a
12718 thread pointer.
12719 (linux_wait_for_lwp): Delete.
12720 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12721 functions.
12722 (linux_low_filter_event): New function, party factored out from
12723 linux_wait_for_event.
12724 (linux_wait_for_event): Rename to ...
12725 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12726 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12727 sigsuspend. Check for zombie leaders.
12728 (linux_wait_for_event): Reimplement as wrapper around
12729 linux_wait_for_event_filtered.
12730 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12731 a normal or signal exit is seen, it's the whole process exiting.
12732 (wait_for_sigstop): No longer a for_each_inferior callback.
12733 Rewrite on top of linux_wait_for_event_filtered.
12734 (stop_all_lwps): Call wait_for_sigstop directly.
12735 * server.c (resume, handle_target_event): Handle
12736 TARGET_WAITKIND_NO_RESUMED.
12737
d763de10
JB
127382014-02-26 Joel Brobecker <brobecker@adacore.com>
12739
12740 * win32-low.c (psapi_get_dll_name,
12741 * win32_CreateToolhelp32Snapshot): Delete.
12742 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12743 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12744 Delete.
12745 (handle_load_dll): Add function description.
12746 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12747
850a0f76
JB
127482014-02-26 Joel Brobecker <brobecker@adacore.com>
12749
12750 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12751 Add comment.
12752 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12753 base address when calling win32_add_one_solib.
12754 (handle_load_dll): Delete local variable load_addr.
12755 Remove 0x1000 offset applied to DLL base address when calling
12756 win32_add_one_solib.
12757 (handle_unload_dll): Add comment.
12758
f25b3fc3
JB
127592014-02-26 Joel Brobecker <brobecker@adacore.com>
12760
12761 * win32-low.c (win32_add_all_dlls): Renames
12762 win32_ensure_ntdll_loaded. Rewrite function documentation.
12763 Adjust implementation to always load all DLLs.
12764 Add 0x1000 offset to DLL base address when calling
12765 win32_add_one_solib.
12766 (child_initialization_done): New static global.
12767 (do_initial_child_stuff): Set child_initialization_done to
12768 zero during child initialization, and 1 after. Replace call
12769 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12770 Add comment.
12771 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12772 (handle_unload_dll): Add function documentation.
12773 (get_child_debug_event): Ignore load and unload DLL events
12774 during child initialization.
12775
d86d4aaf
DE
127762014-02-20 Doug Evans <dje@google.com>
12777
3bc32da3 12778 Remove global all_lwps.
d86d4aaf
DE
12779 * inferiors.h (ptid_of): Move here from linux-low.h.
12780 (pid_of, lwpid_of): Ditto.
12781 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12782 parameter is a struct thread_info * now.
12783 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12784 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12785 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12786 directly.
12787 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12788 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12789 * linux-arm-low.c (update_registers_callback): Update, "entry"
12790 parameter is a struct thread_info * now.
12791 Fetch lwpid from current_inferior directly.
12792 (arm_insert_point): Pass &all_threads to find_inferior instead of
12793 &all_lwps.
12794 (arm_remove_point): Ditto.
12795 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12796 (arm_prepare_to_resume): Fetch pid from thread.
12797 (arm_read_description): Fetch lwpid from current_inferior directly.
12798 * linux-low.c (all_lwps): Delete.
12799 (delete_lwp): Delete call to remove_inferior.
12800 (handle_extended_wait): Fetch lwpid from thread.
12801 (add_lwp): Don't set lwp->entry.id. Remove call to
12802 add_inferior_to_list.
12803 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12804 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12805 (kill_one_lwp_callback): Ditto.
12806 (linux_kill): Don't dereference NULL pointer.
12807 Fetch ptid,lwpid from thread.
12808 (get_detach_signal): Fetch ptid from thread.
12809 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12810 Simplify call to regcache_invalidate_thread.
12811 (delete_lwp_callback): Update, "entry" parameter is a
12812 struct thread_info * now. Fetch pid from thread.
12813 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12814 (status_pending_p_callback): Update, "entry" parameter is a
12815 struct thread_info * now. Fetch ptid from thread.
12816 (find_lwp_pid): Update, "entry" parameter is a
12817 struct thread_info * now.
12818 (linux_wait_for_lwp): Fetch pid from thread.
12819 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12820 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12821 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12822 (dequeue_one_deferred_signal): Ditto.
12823 (cancel_breakpoint): Fetch ptid from current_inferior.
12824 (linux_wait_for_event): Pass &all_threads to find_inferior,
12825 not &all_lwps. Fetch ptid, lwpid from thread.
12826 (count_events_callback): Update, "entry" parameter is a
12827 struct thread_info * now.
12828 (select_singlestep_lwp_callback): Ditto.
12829 (select_event_lwp_callback): Ditto.
12830 (cancel_breakpoints_callback): Ditto.
12831 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12832 not &all_lwps.
12833 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12834 (unsuspend_one_lwp): Update, "entry" parameter is a
12835 struct thread_info * now.
12836 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12837 not &all_lwps.
12838 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12839 Fetch lwpid from thread, not lwp.
12840 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12841 Pass &all_threads to find_inferior, not &all_lwps.
12842 (send_sigstop): Fetch lwpid from thread, not lwp.
12843 (send_sigstop_callback): Update, "entry" parameter is a
12844 struct thread_info * now.
12845 (suspend_and_send_sigstop_callback): Ditto.
12846 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12847 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12848 struct thread_info * now.
12849 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12850 from thread, lwp.
12851 (lwp_running): Update, "entry" parameter is a
12852 struct thread_info * now.
12853 (stop_all_lwps): Fetch ptid from thread.
12854 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12855 (linux_resume_one_lwp): Fetch lwpid from thread.
12856 (linux_set_resume_request): Update, "entry" parameter is a
12857 struct thread_info * now. Fetch pid, lwpid from thread.
12858 (resume_status_pending_p): Update, "entry" parameter is a
12859 struct thread_info * now.
12860 (need_step_over_p): Ditto. Fetch lwpid from thread.
12861 (start_step_over): Fetch lwpid from thread.
12862 (linux_resume_one_thread): Update, "entry" parameter is a
12863 struct thread_info * now. Fetch lwpid from thread.
12864 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12865 (proceed_one_lwp): Update, "entry" parameter is a
12866 struct thread_info * now. Fetch lwpid from thread.
12867 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12868 struct thread_info * now.
12869 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12870 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12871 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12872 directly.
12873 (regsets_store_inferior_registers): Ditto.
12874 (fetch_register, store_register): Ditto.
12875 (linux_read_memory, linux_write_memory): Ditto.
12876 (linux_request_interrupt): Ditto.
12877 (linux_read_auxv): Ditto.
12878 (linux_xfer_siginfo): Ditto.
12879 (linux_qxfer_spu): Ditto.
12880 (linux_qxfer_libraries_svr4): Ditto.
12881 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12882 moved to inferiors.h.
12883 (get_lwp): Delete.
12884 (get_thread_lwp): Update.
12885 (struct lwp_info): Delete member "entry". Simplify comment for
12886 member "thread".
12887 (all_lwps): Delete.
12888 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12889 current_inferior directly.
12890 (update_watch_registers_callback): Update, "entry" parameter is a
12891 struct thread_info * now. Fetch pid from thread.
12892 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12893 (mips_insert_point): Fetch lwpid from current_inferior.
12894 Pass &all_threads to find_inferior, not &all_lwps.
12895 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12896 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12897 directly.
12898 (mips_stopped_data_address): Ditto.
12899 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12900 directly.
12901 * linux-tile-low.c (tile_arch_setup): Ditto.
12902 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12903 (update_debug_registers_callback): Update, "entry" parameter is a
12904 struct thread_info * now. Fetch pid from thread.
12905 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12906 Pass &all_threads to find_inferior, not &all_lwps.
12907 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12908 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12909 Pass &all_threads to find_inferior, not &all_lwps.
12910 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12911 (i386_dr_low_get_status): Ditto.
12912 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12913 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12914 (x86_linux_read_description): Ditto.
12915 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12916
3b8361aa
DE
129172014-02-20 Doug Evans <dje@google.com>
12918
12919 * inferiors.c (get_first_inferior): Fix buglet.
12920
f7667f0d
DE
129212014-02-19 Doug Evans <dje@google.com>
12922
12923 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12924 * inferiors.c (add_thread): Change result type to struct thread_info *.
12925 All callers updated.
12926 (add_lwp): Call add_thread here instead of in callers.
12927 All callers updated.
12928 * linux-low.h (get_lwp_thread): Rewrite.
12929 (struct lwp_info): New member "thread".
12930
b3312d80
DE
129312014-02-19 Doug Evans <dje@google.com>
12932
12933 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12934 All callers updated.
12935
ecc6f45c
DE
129362014-02-19 Doug Evans <dje@google.com>
12937
12938 * inferiors.c (add_thread): Fix whitespace.
12939
649ebbca
DE
129402014-02-19 Doug Evans <dje@google.com>
12941
12942 * dll.c (clear_dlls): Replace accessing list implemention details
12943 with API function.
12944 * gdbthread.h (get_first_thread): Declare.
12945 * inferiors.c (for_each_inferior_with_data): New function.
12946 (get_first_thread): New function.
12947 (find_thread_ptid): Simplify.
12948 (get_first_inferior): New function.
12949 (clear_list): Delete.
12950 (one_inferior_p): New function.
12951 (clear_inferior_list): New function.
12952 (clear_inferiors): Update.
12953 * inferiors.h (for_each_inferior_with_data): Declare.
12954 (clear_inferior_list): Declare.
12955 (one_inferior_p): Declare.
12956 (get_first_inferior): Declare.
12957 * linux-low.c (linux_wait_for_event): Replace accessing list
12958 implemention details with API function.
12959 * server.c (target_running): Ditto.
12960 (accumulate_file_name_length): New function.
12961 (emit_dll_description): New function.
12962 (handle_qxfer_libraries): Replace accessing list implemention
12963 details with API function.
12964 (handle_qxfer_threads_worker): New function.
12965 (handle_qxfer_threads_proper): Replace accessing list implemention
12966 details with API function.
12967 (handle_query): Ditto.
12968 (visit_actioned_threads_callback_ftype): New typedef.
12969 (visit_actioned_threads_data): New struct.
12970 (visit_actioned_threads): Rewrite to be find_inferior callback.
12971 (resume): Call find_inferior.
12972 (handle_status): Replace accessing list implemention
12973 details with API function.
12974 (process_serial_event): Replace accessing list implemention details
12975 with API function.
12976 * target.c (set_desired_inferior): Replace accessing list implemention
12977 details with API function.
12978 * tracepoint.c (same_process_p): New function.
12979 (gdb_agent_about_to_close): Replace accessing list implemention
12980 details with API function.
12981 * win32-low.c (child_delete_thread): Replace accessing list
12982 implemention details with API function.
12983 (match_dll_by_basename): New function.
12984 (dll_is_loaded_by_basename): New function.
12985 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12986 details call to dll_is_loaded_by_basename.
12987
80894984
DE
129882014-02-19 Doug Evans <dje@google.com>
12989
12990 * dll.h (struct dll_info): Add comment.
12991 * gdbthread.h (struct thread_info): Add comment.
12992 (current_ptid): Simplify.
12993 * inferiors.c (add_process): Update.
12994 (remove_process): Update.
12995 * inferiors.h (struct process_info): Rename member "head" to "entry".
12996 * linux-low.c (delete_lwp): Update.
12997 (add_lwp): Update.
12998 (last_thread_of_process_p): Update.
12999 (kill_one_lwp_callback, linux_kill): Update.
13000 (status_pending_p_callback): Update.
13001 (wait_for_sigstop): Update. Simplify read of ptid.
13002 (start_step_over): Update.
13003 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13004 (get_lwp_thread): Update.
13005 (struct lwp_info): Rename member "head" to "entry".
13006 * regcache.h (inferior_list_entry): Delete.
13007 * server.c (kill_inferior_callback): Update.
13008 (detach_or_kill_inferior_callback): Update.
13009 (print_started_pid): Update.
13010 (print_attached_pid): Update.
13011 (process_serial_event): Simplify read of ptid.
13012 * thread-db.c (thread_db_create_event): Update.
13013 (thread_db_get_tls_address): Update.
13014 * win32-low.c (current_inferior_ptid): Simplify.
13015
46917d26
TT
130162014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13019 argument.
13020 (target_supports_btrace): Update.
13021
0759a81e
YQ
130222014-02-14 Yao Qi <yao@codesourcery.com>
13023
13024 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13025 (rsp-low-ipa.o): New target.
13026
a7191e8b
TT
130272014-02-12 Tom Tromey <tromey@redhat.com>
13028
13029 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13030 convert_ascii_to_int.
13031 * regcache.c (registers_to_string): Likewise.
13032 * remote-utils.c (decode_M_packet): Likewise.
13033 * server.c (process_serial_event): Likewise.
13034
ff0e980e
TT
130352014-02-12 Tom Tromey <tromey@redhat.com>
13036
13037 * server.c (handle_query, handle_v_run): Use hex2bin, not
13038 unhexify.
13039 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13040
e9371aff
TT
130412014-02-12 Tom Tromey <tromey@redhat.com>
13042
13043 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13044 convert_int_to_ascii.
13045 * regcache.c (registers_to_string, collect_register_as_string):
13046 Likewise.
13047 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13048 Likewise.
13049 * server.c (process_serial_event): Likewise.
13050 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13051 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13052
971dc0b8
TT
130532014-02-12 Tom Tromey <tromey@redhat.com>
13054
13055 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13056 bin2hex, not hexify.
13057 * tracepoint.c (cmd_qtstatus): Likewise.
13058
0a822afb
TT
130592014-02-12 Tom Tromey <tromey@redhat.com>
13060
13061 * remote-utils.c (monitor_output): Pass explicit length to
13062 hexify.
13063
9c3d6531
TT
130642014-02-12 Tom Tromey <tromey@redhat.com>
13065
13066 * tracepoint.c: Include rsp-low.h.
13067 * server.c: Include rsp-low.h.
13068 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13069 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13070 declare.
13071 * remote-utils.c: Include rsp-low.h.
13072 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13073 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13074 (convert_int_to_ascii, convert_ascii_to_int): Move to
13075 common/rsp-low.c.
13076 * regcache.c: Include rsp-low.h.
13077 * ax.c: Include rsp-low.h.
13078 * Makefile.in (SFILES): Add common/rsp-low.c.
13079 (OBS): Add rsp-low.o.
13080 (rsp-low.o): New target.
13081
01fd3ea5
TT
130822014-02-12 Tom Tromey <tromey@redhat.com>
13083
13084 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13085 Include print-utils.h.
13086 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13087 (plongest, thirty_two, phex_nz): Remove.
13088 * Makefile.in (SFILES): Add common/print-utils.c.
13089 (OBS): Add print-utils.o.
13090 (print-utils-ipa.o): New target.
13091 (print-utils.o): New target.
13092 (IPA_OBJS): Add print-utils-ipa.o.
13093
e99dc820
TT
130942014-02-06 Tom Tromey <tromey@redhat.com>
13095
13096 * Makefile.in (SFILES): Fix indentation.
13097
ee1e2d4f
DE
130982014-02-05 Doug Evans <dje@google.com>
13099
13100 * linux-low.c (linux_wait_for_event): Improve comment.
13101 (linux_wait_1): Keep current_inferior in sync with event_child.
13102
f5a02773
DE
131032014-01-22 Doug Evans <dje@google.com>
13104
13105 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13106
87ce2a04
DE
131072014-01-22 Doug Evans <dje@google.com>
13108
13109 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13110 * configure: Regenerate.
13111 * config.in: Regenerate.
13112 * Makefile.in (SFILES): Add debug.c.
13113 (OBS): Add debug.o.
13114 * debug.c: New file.
13115 * debug.h: New file.
13116 * linux-aarch64-low.c (*): Update all debugging printfs to use
13117 debug_printf instead of fprintf.
13118 * linux-arm-low.c (*): Ditto.
13119 * linux-cris-low.c (*): Ditto.
13120 * linux-crisv32-low.c (*): Ditto.
13121 * linux-m32r-low.c (*): Ditto.
13122 * linux-sparc-low.c (*): Ditto.
13123 * linux-x86.c (*): Ditto.
13124 * linux-low.c (*): Ditto.
13125 (linux_wait_1): Add calls to debug_enter, debug_exit.
13126 (linux_wait): Remove redundant debugging printf.
13127 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13128 (linux_resume, unstop_all_lwps): Ditto.
13129 * mem-break.c (*): Update all debugging printfs to use
13130 debug_printf instead of fprintf.
13131 * remote-utils.c (*): Ditto.
13132 * thread-db.c (*): Ditto.
13133 * server.c #include <ctype.h>, "gdb_vecs.h".
13134 (debug_threads): Moved to debug.c.
13135 (*): Update all debugging printfs to use debug_printf instead of
13136 fprintf.
13137 (start_inferior): Replace call to fflush with call to debug_flush.
13138 (monitor_show_help): Mention set debug-format.
13139 (parse_debug_format_options): New function.
13140 (handle_monitor_command): Handle "monitor set debug-format".
13141 (gdbserver_usage): Mention --debug-format.
13142 (main): Parse --debug-format.
13143 * server.h (debug_threads): Declaration moved to debug.h.
13144 #include "debug.h".
13145 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13146 trace_debug_1 that uses debug_printf.
13147 (tracepoint_look_up_symbols): Update all debugging printfs to use
13148 debug_printf instead of fprintf.
13149
e671835b
BS
131502014-01-20 Baruch Siach <baruch@tkos.co.il>
13151
13152 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13153 sys/ptrace.h.
13154
b5737fa9
PA
131552014-01-17 Pedro Alves <palves@redhat.com>
13156
ea38d2a9 13157 PR build/16445
c7faa97a
PA
13158 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13159 defined after including gdb_proc_service.h.
b5737fa9 13160
40ed484e
DE
131612014-01-16 Doug Evans <dje@google.com>
13162
13163 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13164 (match_dll): Use it.
13165
969c39fb
MM
131662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13167
13168 * target.h (target_ops) <read_btrace>: Change parameters and
13169 return type to allow error reporting.
13170 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13171 trace reading errors on.
13172 * linux-low.c (linux_low_read_btrace): Pass trace reading
13173 errors on.
13174 (linux_low_disable_btrace): New.
13175
ab7f45ba
DE
131762014-01-15 Doug Evans <dje@google.com>
13177
13178 * inferiors.c (thread_id_to_gdb_id): Delete.
13179 * inferiors.h (thread_id_to_gdb_id): Delete.
13180
66af0f44
EZ
131812014-01-13 Eli Zaretskii <eliz@gnu.org>
13182
13183 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13184 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13185 versions.
13186
9939e131
PA
131872014-01-08 Pedro Alves <palves@redhat.com>
13188
13189 * server.c (handle_status): Don't discard previous queued stop
13190 replies or thread's pending status here.
13191 (main) <disconnection>: Do it here instead.
13192
b7ea362b
PA
131932014-01-08 Pedro Alves <palves@redhat.com>
13194
13195 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13196 * server.c (visit_actioned_threads, handle_pending_status): New
13197 function.
13198 (handle_v_cont): Factor out parts to ...
13199 (resume): ... this new function. If in all-stop, and a thread
13200 being resumed has a pending status, report it without actually
13201 resuming.
13202 (myresume): Adjust to use the new 'resume' function.
13203 (clear_pending_status_callback, set_pending_status_callback)
13204 (find_status_pending_thread_callback): New functions.
13205 (handle_status): Handle the case of multiple threads having
13206 interesting statuses to report. Report threads' real last signal
13207 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13208 with an interesting thread to report the status for, instead of
13209 always reporting the status of the first thread.
13210
28498c42
JB
132112014-01-01 Joel Brobecker <brobecker@adacore.com>
13212
13213 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13214 * gdbreplay.c (gdbreplay_version): Likewise.
13215
f45c82da
YZ
132162013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13217
13218 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13219 iov.iov_len with the real length in use.
13220
379a5e2d
JB
132212013-12-13 Joel Brobecker <brobecker@adacore.com>
13222
13223 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13224 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13225 for all targets that use win32-low.c.
13226 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13227 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13228
4210d83e
PA
132292013-12-13 Pedro Alves <palves@redhat.com>
13230
13231 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13232 if equal to TARGET_WAITKIND_LOADED.
13233 * win32-low.c (cached_status): New static global.
13234 (win32_wait): Add declaration.
13235 (do_initial_child_stuff): Flush all initial pending debug events
13236 up to the initial breakpoint.
13237 (win32_wait): If CACHED_STATUS was set, return that instead
13238 of doing a real wait. Remove the code resuming the execution
13239 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13240 during the initial phase. Also remove the code changing
13241 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13242 TARGET_WAITKIND_STOPPED.
13243
e7f0d979
YQ
132442013-12-11 Yao Qi <yao@codesourcery.com>
13245
13246 * notif.c (handle_notif_ack): Return 0 if no notification
13247 matches.
13248
ebcf782c
DE
132492013-11-20 Doug Evans <dje@google.com>
13250
13251 * linux-low.c (linux_set_resume_request): Fix comment.
13252
20ad9378
DE
132532013-11-20 Doug Evans <dje@google.com>
13254
13255 * linux-low.c (resume_status_pending_p): Tweak comment.
13256
a196ebeb
WT
132572013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13258
13259 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13260 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13261 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13262 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13263 (srv_amd64_regobj): Add amd64-mpx.o.
13264 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13265 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13266 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13267 * i387-fp.c (num_pl_bnd_register) Added constant.
13268 (num_pl_bnd_cfg_registers) Added constant.
13269 (struct i387_xsave) Added reserved area and MPX fields.
13270 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13271 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13272 function.
13273 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13274 (init_registers_amd64_mpx_linux): Declare new function.
13275 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13276 (x86_64_regmap): Add MPX registers.
13277 (x86_linux_read_description): Add MPX case.
13278 (initialize_low_arch): Initialize MPX targets.
13279
0080a2f6
TT
132802013-11-18 Tom Tromey <tromey@redhat.com>
13281
13282 * configure: Rebuild.
13283 * configure.ac: Don't check for stdlib.h.
13284 * gdbreplay.c: Unconditionally include stdlib.h.
13285
2978b111
TT
132862013-11-18 Tom Tromey <tromey@redhat.com>
13287
13288 * config.in: Rebuild.
13289 * configure: Rebuild.
13290 * configure.ac: Don't use AC_HEADER_DIRENT.
13291
a3d08894
TT
132922013-11-18 Tom Tromey <tromey@redhat.com>
13293
13294 * server.h: Don't check HAVE_STRING_H.
13295 * gdbreplay.c: Don't check HAVE_STRING_H.
13296 * configure: Rebuild.
13297
0a5dd17d
TT
132982013-11-18 Tom Tromey <tromey@redhat.com>
13299
13300 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13301 LIBGNU.
13302
1bd2f0ba
TT
133032013-11-08 Tom Tromey <tromey@redhat.com>
13304
13305 * configure, config.in: Rebuild.
13306 * configure.ac: Remove unused configury.
13307
3266f10b
TT
133082013-11-08 Tom Tromey <tromey@redhat.com>
13309
13310 * acinclude.m4: Include common.m4, codeset.m4.
13311 * configure, config.in: Rebuild.
13312 * configure.ac: Use GDB_AC_COMMON.
13313
6682d959
AA
133142013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13315
13316 * linux-s390-low.c (HWCAP_S390_TE): New define.
13317 (s390_arch_setup): Consider the TE field in the HWCAP for
13318 determining 'have_regset_tdb'.
13319
fd0a4d76
SDJ
133202013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13321
13322 PR gdb/16014
13323 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13324 call to sizeof.
13325
1a3d890b
PA
133262013-10-02 Pedro Alves <palves@redhat.com>
13327
13328 * server.c (process_serial_event): Don't output "GDBserver
13329 exiting" if GDB is connected through stdio.
13330 * target.c (mywait): Likewise, be silent if GDB is connected
13331 through stdio.
13332
97ad4581
JB
133332013-10-01 Joel Brobecker <brobecker@adacore.com>
13334
13335 * lynx-low.c (lynx_add_threads_after_attach): New function.
13336 (lynx_attach): Remove call to add_thread. Add call to
13337 lynx_add_threads_after_attach instead.
13338
5b4e221c
MF
133392013-09-28 Mike Frysinger <vapier@gentoo.org>
13340
13341 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13342 * config.in, configure: Regenerated.
13343
ee47b2f8
YQ
133442013-09-18 Yao Qi <yao@codesourcery.com>
13345
13346 PR server/15959
13347 * server.c (start_inferior): Clear 'resume_info'.
13348
d6707650 133492013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13350
d6707650
JW
13351 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13352 for each register.
13353
9243dd0e 133542013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13355
9243dd0e
JW
13356 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13357 linux-tile-low.o to srv_tgtobj.
13358
c623a6ef
WN
133592013-09-16 Will Newton <will.newton@linaro.org>
13360
13361 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13362 out regs.
13363
fb71d39e
PA
133642013-09-06 Pedro Alves <palves@redhat.com>
13365
13366 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13367 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13368 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13369 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13370 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13371 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13372
8e7e9910
PA
133732013-09-06 Pedro Alves <palves@redhat.com>
13374
13375 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13376 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13377
7c3a12ca
PA
133782013-09-06 Pedro Alves <palves@redhat.com>
13379
13380 * linux-amd64-ipa.c: Include tracepoint.h.
13381 * linux-i386-ipa.c: Include tracepoint.h.
13382
8eb3d7b6
RW
133832013-09-06 Ricard Wanderlof <ricardw@axis.com>
13384
13385 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13386 (ps_get_thread_area): New function.
13387
eddddb9d
RW
133882013-09-06 Ricard Wanderlof <ricardw@axis.com>
13389
13390 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13391 (initialize_low_arch): Call init_registers_crisv32 rather than
13392 init_register_crisv32.
13393
533b0600
PA
133942013-09-05 Pedro Alves <palves@redhat.com>
13395
13396 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13397 to ...
13398 * hostio.h: ... this new file.
13399 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13400 win32-low.c: Include hostio.h.
13401
0ce3d3b5
PA
134022013-09-05 Pedro Alves <palves@redhat.com>
13403
13404 * server.h (gdb_client_data, handler_func, callback_handler_func)
13405 (delete_file_handler, add_file_handler, append_callback_event)
13406 (delete_callback_event, start_event_loop, initialize_event_loop):
13407 Move to event-loop.h and include it.
13408 * event-loop.h: New file.
13409
799cdc37
PA
134102013-09-05 Pedro Alves <palves@redhat.com>
13411
13412 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13413 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13414 (loaded_dll, unloaded_dll): Move to ...
13415 * dll.h: ... this new file.
13416 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13417
6a6bbd9d
PA
134182013-09-05 Pedro Alves <palves@redhat.com>
13419
13420 * server.h (current_process, get_thread_process, all_processes)
13421 (add_inferior_to_list, for_each_inferior, current_inferior)
13422 (remove_inferior, add_process, remove_process, find_process_pid)
13423 (have_started_inferiors_p, have_attached_inferiors_p)
13424 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13425 (clear_inferiors, find_inferior, find_inferior_id)
13426 (inferior_target_data, set_inferior_target_data)
13427 (inferior_regcache_data, set_inferior_regcache_data): Move to
13428 inferiors.h, and include it.
13429 * inferiors.h: New file.
13430
f699aaba
PA
134312013-09-05 Pedro Alves <palves@redhat.com>
13432
13433 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13434 Move ...
72f4393d 13435 * ax.h: ... here.
f699aaba 13436
c144c7a0
PA
134372013-09-05 Pedro Alves <palves@redhat.com>
13438
13439 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13440 tracepoint.h.
13441 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13442 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13443 (handle_tracepoint_general_set, handle_tracepoint_query)
13444 (tracepoint_finished_step, tracepoint_was_hit)
13445 (release_while_stepping_state_list, current_traceframe)
13446 (in_readonly_region, traceframe_read_mem)
13447 (fetch_traceframe_registers, traceframe_read_sdata)
13448 (traceframe_read_info, struct fast_tpoint_collect_status)
13449 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13450 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13451 (supply_fast_tracepoint_registers)
13452 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13453 (ipa_tdesc, claim_trampoline_space)
13454 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13455 (agent_mem_read, agent_get_trace_state_variable_value)
13456 (agent_set_trace_state_variable_value, agent_tsv_read)
13457 (agent_mem_read_string, get_raw_reg_func_addr)
13458 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13459 * tracepoint.h: ... this new file.
13460
ff42e6ab
PA
134612013-09-05 Pedro Alves <palves@redhat.com>
13462
13463 * server.h (perror_with_name, error, fatal, warning, paddress)
13464 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13465 include it.
13466 * utils.h: New file.
13467
541af0f4
PA
134682013-09-05 Pedro Alves <palves@redhat.com>
13469
13470 * server.h (remote_debug, noack_mode, transport_is_reliable)
13471 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13472 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13473 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13474 (write_enn, initialize_async_io, enable_async_io)
13475 (disable_async_io, check_remote_input_interrupt_request)
13476 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13477 (dead_thread_notify, prepare_resume_reply)
13478 (decode_address_to_semicolon, decode_address, decode_m_packet)
13479 (decode_M_packet, decode_X_packet, decode_xfer_write)
13480 (decode_search_memory_packet, unhexify, hexify)
13481 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13482 (look_up_one_symbol, relocate_instruction)
13483 (monitor_output): Move to remote-utils.h, and include it.
13484 * remote-utils.h: New file.
13485
eebdf26b
PA
134862013-09-05 Pedro Alves <palves@redhat.com>
13487
13488 * server.h (_): Delete.
13489
3aafd2ff
PA
134902013-09-02 Pedro Alves <palves@redhat.com>
13491
13492 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13493 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13494 allocated.
13495 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13496
cee83bcb
PM
134972013-09-02 Pierre Muller <muller@sourceware.org>
13498
13499 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13500 or WriteProcessMemory complete successfully and handle
13501 ERROR_PARTIAL_COPY error.
13502
9a13b2fa
PA
135032013-09-02 Pedro Alves <palves@redhat.com>
13504
13505 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13506 error instead of EIO.
13507
602e3198
JK
135082013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13509
13510 PR server/15604
13511 * linux-low.c: Include filestuff.h.
13512 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13513 * lynx-low.c: Include filestuff.h.
13514 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13515 * server.c: Include filestuff.h.
13516 (main): Call notice_open_fds.
13517 * spu-low.c: Include filestuff.h.
13518 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13519
96d7229d
LM
135202013-08-22 Luis Machado <lgustavo@codesourcery.com>
13521
13522 * Makefile.in: Explain why ../target and ../nat are not
13523 listed as include file search paths.
13524 (linux-waitpid.o): New object file rule.
13525 * configure.srv (srv_native_linux_obj): New variable.
13526 Replace all occurrences of linux native object files with
13527 $srv_native_linux_obj.
13528 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13529 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13530 (linux_enable_event_reporting): Remove declaration.
13531 (my_waitpid): Moved to common/linux-waitpid.c.
13532 (linux_wait_for_event): Pass ptid when calling
13533 linux_enable_event_reporting.
13534 (linux_supports_tracefork_flag): Remove.
13535 (linux_enable_event_reporting): Likewise.
13536 (linux_tracefork_grandchild): Remove.
13537 (STACK_SIZE): Moved to common/linux-ptrace.c.
13538 (linux_tracefork_child): Remove.
13539 (linux_test_for_tracefork): Remove.
13540 (linux_look_up_symbols): Call linux_supports_traceclone.
13541 (initialize_low): Remove call to linux_test_for_tracefork.
13542 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13543 common/linux-ptrace.h.
13544 (PTRACE_TYPE_ARG4): Likewise.
13545 Include linux-ptrace.h.
13546
32940073
PA
135472013-08-21 Pedro Alves <palves@redhat.com>
13548
13549 * config.in: Renegerate.
13550
33b60d58 135512013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13552
33b60d58
LM
13553 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13554 (SFILES): Remove $(srcdir)/common/target-common.c and
13555 add $(srcdir)/target/waitstatus.c.
13556 (OBS): Remove target-common.o and add waitstatus.o.
13557 (server_h): Remove $(srcdir)/../common/target-common.h and
13558 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13559 and $(srcdir)/../target/waitstatus.h.
13560 (target-common.o): Remove.
13561 (waitstatus.o): New target object file.
13562 * target.h: Do not include target-common.h and
13563 include target/resume.h, target/wait.h and
13564 target/waitstatus.h.
13565
b8e1b30e
LM
135662013-08-13 Luis Machado <lgustavo@codesourcery.com>
13567
13568 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13569 to PTRACE_TYPE_ARG3.
13570 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13571 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13572 PTRACE_TYPE_ARG4.
13573 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13574 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13575
7a60ad40
YQ
135762013-07-27 Jie Zhang <jie@codesourcery.com>
13577 Daniel Jacobowitz <dan@codesourcery.com>
13578 Yao Qi <yao@codesourcery.com>
13579
13580 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13581 (mips-linux-watch.o): New rule.
13582 (mips_linux_watch_h): New variable.
13583 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13584 srv_tgtobj.
13585 * linux-mips-low.c: Include mips-linux-watch.h.
13586 (struct arch_process_info, struct arch_lwp_info): New.
13587 (update_watch_registers_callback): New function.
13588 (mips_linux_new_process, mips_linux_new_thread) New functions.
13589 (mips_linux_prepare_to_resume, mips_insert_point): New
13590 functions.
13591 (mips_remove_point, mips_stopped_by_watchpoint): New
13592 functions.
13593 (rsp_bp_type_to_target_hw_bp_type): New function.
13594 (mips_stopped_data_address): New function.
13595 (the_low_target): Add watchpoint support functions.
13596
de6f69ad
YQ
135972013-07-27 Yao Qi <yao@codesourcery.com>
13598
13599 * i386-low.c: Include break-common.h.
13600 (enum target_hw_bp_type): Remove.
13601
3360c0bf
LM
136022013-07-24 Luis Machado <lgustavo@codesourcery.com>
13603
13604 * Makefile.in (SFILES): /common/target-common.c.
13605 (OBS): Add target-common.o.
13606 (server_h): Add $(srcdir)/../common/target-common.h.
13607 (target-common.o): New target.
13608 * server.c (queue_stop_reply_callback): Free
13609 status string after use.
13610 * target.c (target_waitstatus_to_string): Remove.
13611 * target.h: Include target-common.h.
13612 (resume_kind): Likewise.
13613 (target_waitkind): Likewise.
13614 (target_waitstatus): Likewise.
13615 (TARGET_WNOHANG): Likewise.
13616
bd885420
YQ
136172013-07-04 Yao Qi <yao@codesourcery.com>
13618
13619 * Makefile.in (host_alias): Use @host_noncanonical@.
13620 (target_alias): Use @target_noncanonical@.
13621 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13622 ACX_NONCANONICAL_HOST.
13623 * configure: Regenerated.
13624
13625 Revert:
13626 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13627
13628 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13629 * configure: Rebuild.
13630 * Makefile.in (version_host, version_target): Get from configure.
13631 (version.c): Use $(version_host) and $(version_target).
13632
17ef446e
PA
136332013-07-03 Pedro Alves <palves@redhat.com>
13634
13635 * Makefile.in (config.status): Depend on development.sh.
13636 * acinclude.m4: Include libmcheck.m4.
13637 * configure: Regenerate.
13638
7a9a7487
MG
136392013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13640
13641 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13642 attribute inside the parentheses.
13643 (winapi_DebugSetProcessKillOnExit): Ditto.
13644 (winapi_DebugBreakProcess): Ditto.
13645 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13646
49b64de6
MG
136472013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13648
13649 * notif.h (notif_event): Add a dummy member to avoid compiler
13650 errors.
13651
d5749ee7
PA
136522013-07-01 Pedro Alves <palves@redhat.com>
13653
13654 * hostio.c (HOSTIO_PATH_MAX): Define.
13655 (require_filename, handle_open, handle_unlink, handle_readlink):
13656 Use it.
13657
d8d2a3ee
PA
136582013-07-01 Pedro Alves <palves@redhat.com>
13659
13660 * server.h: Include "pathmax.h".
13661 * linux-low.c: Don't include sys/param.h.
13662 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13663 MAXPATHLEN.
13664 * win32-low.c: Don't include sys/param.h.
13665 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13666
bc7dea8d
PA
136672013-07-01 Pedro Alves <palves@redhat.com>
13668
13669 * event-loop.c: Don't check HAVE_UNISTD_H before including
13670 <unistd.h>.
13671 * gdbreplay.c: Likewise.
13672 * remote-utils.c: Likewise.
13673 * server.c: Likewise.
13674 * configure.ac: Don't check for unistd.h.
13675 * configure: Regenerate.
13676
d6c2da54
TT
136772013-06-28 Tom Tromey <tromey@redhat.com>
13678
13679 * Makefile.in (version.c): Use version.in, not
13680 common/version.in.
13681
257b6bec
MG
136822013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13683
13684 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13685 * configure: Rebuild.
13686 * Makefile.in (version_host, version_target): Get from configure.
13687 (version.c): Use $(version_host) and $(version_target).
13688
86ebe149
DK
136892013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13690
13691 Fix trace-status to output user name without trailing colon.
13692 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13693
f30aa5af
DK
136942013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13695
13696 Fix trace-status to output proper start-time and stop-time.
13697 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13698 output start time and stop time in hex as gdb expects.
13699
28a93511
YQ
137002013-06-26 Pedro Alves <pedro@codesourcery.com>
13701
13702 * tracepoint.c (build_traceframe_info_xml): Output trace state
13703 variables present in the trace buffer.
13704
01208463
TT
137052013-06-24 Tom Tromey <tromey@redhat.com>
13706
13707 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13708 create-version.sh.
13709 (version.o): Remove.
13710 * gdbreplay.c: Include version.h.
13711 (version, host_name): Don't declare.
13712 * server.h: Include version.h.
13713 (version, host_name): Don't declare.
13714
760256f9
PA
137152013-06-12 Pedro Alves <palves@redhat.com>
13716
13717 * linux-x86-low.c (linux_is_elf64): Delete global.
13718 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13719 with local linux_pid_exe_is_elf_64_file use.
13720
030031ee
PA
137212013-06-11 Pedro Alves <palves@redhat.com>
13722
13723 * linux-low.c (regset_disabled, disable_regset): New functions.
13724 (regsets_fetch_inferior_registers)
13725 (regsets_store_inferior_registers): Use them.
13726 (initialize_regsets_info); Don't allocate the disabled_regsets
13727 array here.
13728 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13729 comment.
13730
5da6eb0a
PA
137312013-06-11 Pedro Alves <palves@redhat.com>
13732
13733 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13734 xmalloc.
13735
7e5aaa09
PA
137362013-06-11 Pedro Alves <palves@redhat.com>
13737
13738 * linux-x86-low.c (initialize_low_arch): Call
13739 init_registers_x32_avx_linux.
13740
d878444c
JK
137412013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13742
13743 Fix compatibility with Android Bionic.
13744 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13745 it is not empty.
13746
3aee8918
PA
137472013-06-07 Pedro Alves <palves@redhat.com>
13748
5f2b57b5 13749 PR server/14823
3aee8918
PA
13750 * Makefile.in (OBS): Add tdesc.o.
13751 (IPA_OBJS): Add tdesc-ipa.o.
13752 (tdesc-ipa.o): New rule.
13753 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13754 interface.
13755 * linux-low.c (new_inferior): Delete.
13756 (disabled_regsets, num_regsets): Delete.
13757 (linux_add_process): Adjust to set the new per-process
13758 new_inferior flag.
13759 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13760 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13761 was a stop. When calling arch_setup, switch the current inferior
13762 to the thread that got an event.
13763 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13764 (regsets_fetch_inferior_registers)
13765 (regsets_store_inferior_registers): New regsets_info parameter.
13766 Adjust to use it.
13767 (linux_register_in_regsets): New regs_info parameter. Adjust to
13768 use it.
13769 (register_addr, fetch_register, store_register): New usrregs_info
13770 parameter. Adjust to use it.
13771 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13772 parameter regs_info. Adjust to use it.
13773 (linux_fetch_registers): Get the current inferior's regs_info, and
13774 adjust to use it.
13775 (linux_store_registers): Ditto.
13776 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13777 (initialize_low): Don't initialize the target_regsets here. Call
13778 initialize_low_arch.
13779 * linux-low.h (target_regsets): Delete declaration.
13780 (struct regsets_info): New.
13781 (struct usrregs_info): New.
13782 (struct regs_info): New.
13783 (struct process_info_private) <new_inferior>: New field.
13784 (struct linux_target_ops): Delete the num_regs, regmap, and
13785 regset_bitmap fields. New field regs_info.
13786 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13787 * i387-fp.c (num_xmm_registers): Delete.
13788 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13789 calls to new interface.
13790 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13791 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13792 Infer the number of xmm registers from the regcache's target
13793 description.
13794 * i387-fp.h (num_xmm_registers): Delete.
13795 * inferiors.c (add_thread): Don't install the thread's regcache
13796 here.
13797 * proc-service.c (gregset_info): Fetch the current inferior's
13798 regs_info. Adjust to use it.
13799 * regcache.c: Include tdesc.h.
13800 (register_bytes, reg_defs, num_registers)
13801 (gdbserver_expedite_regs): Delete.
13802 (get_thread_regcache): If the thread doesn't have a regcache yet,
13803 create one, instead of aborting gdbserver.
13804 (regcache_invalidate_one): Rename to ...
13805 (regcache_invalidate_thread): ... this.
13806 (regcache_invalidate_one): New.
13807 (regcache_invalidate): Only invalidate registers of the current
13808 process.
13809 (init_register_cache): Add target_desc parameter, and use it.
13810 (new_register_cache): Ditto. Assert the target description has a
13811 non zero registers_size.
13812 (regcache_cpy): Add assertions. Adjust.
13813 (realloc_register_cache, set_register_cache): Delete.
13814 (registers_to_string, registers_from_string): Adjust.
13815 (find_register_by_name, find_regno, find_register_by_number)
13816 (register_cache_size): Add target_desc parameter, and use it.
13817 (free_register_cache_thread, free_register_cache_thread_one)
13818 (regcache_release, register_cache_size): New.
13819 (register_size): Add target_desc parameter, and use it.
13820 (register_data, supply_register, supply_register_zeroed)
13821 (supply_regblock, supply_register_by_name, collect_register)
13822 (collect_register_as_string, collect_register_by_name): Adjust.
13823 * regcache.h (struct target_desc): Forward declare.
13824 (struct regcache) <tdesc>: New field.
13825 (init_register_cache, new_register_cache): Add target_desc
13826 parameter.
13827 (regcache_invalidate_thread): Declare.
13828 (regcache_invalidate_one): Delete declaration.
13829 (regcache_release): Declare.
13830 (find_register_by_number, register_cache_size, register_size)
13831 (find_regno): Add target_desc parameter.
13832 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13833 declarations.
13834 * remote-utils.c: Include tdesc.h.
13835 (outreg, prepare_resume_reply): Adjust.
13836 * server.c: Include tdesc.h.
13837 (gdbserver_xmltarget): Delete declaration.
13838 (get_features_xml, process_serial_event): Adjust.
13839 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13840 declare.
13841 (struct process_info) <tdesc>: New field.
13842 (ipa_tdesc): Declare.
13843 * tdesc.c: New file.
13844 * tdesc.h: New file.
13845 * tracepoint.c: Include tdesc.h.
13846 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13847 (get_context_regcache): Adjust to pass ipa_tdesc down.
13848 (do_action_at_tracepoint): Adjust to get the register cache size
13849 from the context regcache's description.
13850 (traceframe_walk_blocks): Adjust to get the register cache size
13851 from the current trace frame's description.
13852 (traceframe_get_pc): Adjust to get current trace frame's
13853 description and pass it down.
13854 (gdb_collect): Adjust to get the register cache size from the
13855 IPA's description.
13856 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13857 (gdbserver_xmltarget): Delete.
13858 (initialize_low_tracepoint): Set the ipa's target description.
13859 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13860 (initialize_low_tracepoint): Set the ipa's target description.
13861 * linux-x86-low.c: Include tdesc.h.
13862 [__x86_64__] (is_64bit_tdesc): New.
13863 (ps_get_thread_area, x86_get_thread_area): Use it.
13864 (i386_cannot_store_register): Rename to ...
13865 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13866 (i386_cannot_fetch_register): Rename to ...
13867 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13868 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13869 to new interface.
13870 (target_regsets): Rename to ...
13871 (x86_regsets): ... this.
13872 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13873 interface.
13874 (x86_siginfo_fixup): Use is_64bit_tdesc.
13875 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13876 (tdesc_x32_avx_linux, tdesc_x32_linux)
13877 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13878 Declare.
13879 (x86_linux_update_xmltarget): Delete.
13880 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13881 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13882 (AMD64_LINUX_USER64_CS): New.
13883 (x86_linux_read_description): New, based on
13884 x86_linux_update_xmltarget.
13885 (same_process_callback): New.
13886 (x86_arch_setup_process_callback): New.
13887 (x86_linux_update_xmltarget): New.
13888 (x86_regsets_info): New.
13889 (amd64_linux_regs_info): New.
13890 (i386_linux_usrregs_info): New.
13891 (i386_linux_regs_info): New.
13892 (x86_linux_regs_info): New.
13893 (x86_arch_setup): Reimplement.
13894 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13895 (x86_emit_ops): Ditto.
13896 (the_low_target): Adjust. Install x86_linux_regs_info,
13897 x86_cannot_fetch_register, and x86_cannot_store_register.
13898 (initialize_low_arch): New.
13899 * linux-ia64-low.c (tdesc_ia64): Declare.
13900 (ia64_fetch_register): Adjust.
13901 (ia64_usrregs_info, regs_info): New globals.
13902 (ia64_regs_info): New function.
13903 (the_low_target): Adjust.
13904 (initialize_low_arch): New function.
13905 * linux-sparc-low.c (tdesc_sparc64): Declare.
13906 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13907 Adjust.
13908 (sparc_arch_setup): New function.
13909 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13910 (the_low_target): Adjust.
13911 (initialize_low_arch): New function.
13912 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13913 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13914 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13915 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13916 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13917 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13918 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13919 (tdesc_powerpc_isa205_vsx64l): Declare.
13920 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13921 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13922 (ppc_set_pc, ppc_get_hwcap): Adjust.
13923 (ppc_usrregs_info): Forward declare.
13924 (!__powerpc64__) ppc_regmap_adjusted: New global.
13925 (ppc_arch_setup): Adjust to the current process'es target
13926 description.
13927 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13928 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13929 (ppc_store_evrregset): Adjust.
13930 (target_regsets): Rename to ...
13931 (ppc_regsets): ... this, and make static.
13932 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13933 (ppc_regs_info): New function.
13934 (the_low_target): Adjust.
13935 (initialize_low_arch): New function.
13936 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13937 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13938 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13939 (tdesc_s390x_linux64v2): Declare.
13940 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13941 (s390_fill_gregset, s390_store_last_break): Adjust.
13942 (target_regsets): Rename to ...
13943 (s390_regsets): ... this, and make static.
13944 (s390_get_pc, s390_set_pc): Adjust.
13945 (s390_get_hwcap): New target_desc parameter, and use it.
13946 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13947 (s390_arch_setup): Adjust to set the current process'es target
13948 description. Don't adjust the regmap.
13949 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13950 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13951 (regs_info_3264): New globals.
13952 (s390_regs_info): New function.
13953 (the_low_target): Adjust.
13954 (initialize_low_arch): New function.
13955 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13956 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13957 [__mips64] (init_registers_mips_linux)
13958 (init_registers_mips_dsp_linux): Delete defines.
13959 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13960 (have_dsp): New global.
13961 (mips_read_description): New, based on mips_arch_setup.
13962 (mips_arch_setup): Reimplement.
13963 (get_usrregs_info): New function.
13964 (mips_cannot_fetch_register, mips_cannot_store_register)
13965 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13966 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13967 (target_regsets): Rename to ...
13968 (mips_regsets): ... this, and make static.
13969 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13970 (dsp_regs_info, regs_info): New globals.
13971 (mips_regs_info): New function.
13972 (the_low_target): Adjust.
13973 (initialize_low_arch): New function.
13974 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13975 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13976 Declare.
13977 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13978 (arm_read_description): New, with bits factored from
13979 arm_arch_setup.
13980 (arm_arch_setup): Reimplement.
13981 (target_regsets): Rename to ...
13982 (arm_regsets): ... this, and make static.
13983 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13984 (arm_regs_info): New function.
13985 (the_low_target): Adjust.
13986 (initialize_low_arch): New function.
13987 * linux-m68k-low.c (tdesc_m68k): Declare.
13988 (target_regsets): Rename to ...
13989 (m68k_regsets): ... this, and make static.
13990 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13991 (m68k_regs_info): New function.
13992 (m68k_arch_setup): New function.
13993 (the_low_target): Adjust.
13994 (initialize_low_arch): New function.
13995 * linux-sh-low.c (tdesc_sharch): Declare.
13996 (target_regsets): Rename to ...
13997 (sh_regsets): ... this, and make static.
13998 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13999 (sh_regs_info, sh_arch_setup): New functions.
14000 (the_low_target): Adjust.
14001 (initialize_low_arch): New function.
14002 * linux-bfin-low.c (tdesc_bfin): Declare.
14003 (bfin_arch_setup): New function.
14004 (bfin_usrregs_info, regs_info): New globals.
14005 (bfin_regs_info): New function.
14006 (the_low_target): Adjust.
14007 (initialize_low_arch): New function.
14008 * linux-cris-low.c (tdesc_cris): Declare.
14009 (cris_arch_setup): New function.
14010 (cris_usrregs_info, regs_info): New globals.
14011 (cris_regs_info): New function.
14012 (the_low_target): Adjust.
14013 (initialize_low_arch): New function.
14014 * linux-cris-low.c (tdesc_crisv32): Declare.
14015 (cris_arch_setup): New function.
14016 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14017 (cris_regs_info): New function.
14018 (the_low_target): Adjust.
14019 (initialize_low_arch): New function.
14020 * linux-m32r-low.c (tdesc_m32r): Declare.
14021 (m32r_arch_setup): New function.
14022 (m32r_usrregs_info, regs_info): New globals.
14023 (m32r_regs_info): Adjust.
14024 (initialize_low_arch): New function.
14025 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14026 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14027 (tic6x_usrregs_info): Forward declare.
14028 (tic6x_read_description): New function, based on ...
14029 (tic6x_arch_setup): ... this. Reimplement.
14030 (target_regsets): Rename to ...
14031 (tic6x_regsets): ... this, and make static.
14032 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14033 (tic6x_regs_info): New function.
14034 (the_low_target): Adjust.
14035 (initialize_low_arch): New function.
14036 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14037 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14038 (target_regsets): Rename to ...
14039 (xtensa_regsets): ... this, and make static.
14040 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14041 globals.
14042 (xtensa_arch_setup, xtensa_regs_info): New functions.
14043 (the_low_target): Adjust.
14044 (initialize_low_arch): New function.
14045 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14046 (nios2_arch_setup): Set the current process'es tdesc.
14047 (target_regsets): Rename to ...
14048 (nios2_regsets): ... this.
14049 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14050 (nios2_regs_info): New function.
14051 (the_low_target): Adjust.
14052 (initialize_low_arch): New function.
a261b8f5
PA
14053 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14054 (aarch64_arch_setup): Set the current process'es tdesc.
14055 (target_regsets): Rename to ...
14056 (aarch64_regsets): ... this.
14057 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14058 (aarch64_regs_info): New function.
14059 (the_low_target): Adjust.
14060 (initialize_low_arch): New function.
3aee8918
PA
14061 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14062 globals.
14063 (target_regsets): Rename to ...
14064 (tile_regsets): ... this.
14065 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14066 (tile_regs_info): New function.
14067 (tile_arch_setup): Set the current process'es tdesc.
14068 (the_low_target): Adjust.
14069 (initialize_low_arch): New function.
14070 * spu-low.c (tdesc_spu): Declare.
14071 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14072 * win32-arm-low.c (tdesc_arm): Declare.
14073 (arm_arch_setup): New function.
14074 (the_low_target): Install arm_arch_setup instead of
14075 init_registers_arm.
14076 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14077 (init_windows_x86): Rename to ...
14078 (i386_arch_setup): ... this. Set `win32_tdesc'.
14079 (the_low_target): Adjust.
14080 * win32-low.c (win32_tdesc): New global.
14081 (child_add_thread): Don't create the thread cache here.
14082 (do_initial_child_stuff): Set the new process'es tdesc.
14083 * win32-low.h (struct target_desc): Forward declare.
14084 (win32_tdesc): Declare.
14085 * lynx-i386-low.c (tdesc_i386): Declare global.
14086 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14087 * lynx-low.c (lynx_tdesc): New global.
14088 (lynx_add_process): Set the new process'es tdesc.
14089 * lynx-low.h (struct target_desc): Forward declare.
14090 (lynx_tdesc): Declare global.
14091 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14092 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14093 * nto-low.c (nto_tdesc): New global.
14094 (do_attach): Set the new process'es tdesc.
14095 * nto-low.h (struct target_desc): Forward declare.
14096 (nto_tdesc): Declare.
14097 * nto-x86-low.c (tdesc_i386): Declare.
14098 (nto_x86_arch_setup): Set `nto_tdesc'.
14099
b1fbec62
GB
141002013-06-04 Gary Benson <gbenson@redhat.com>
14101
14102 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14103 to qSupported response when appropriate.
14104 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14105 with nonzero-length annex.
14106 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14107 arguments supplied in annex.
14108
d1ec4ce7
DE
141092013-05-31 Doug Evans <dje@google.com>
14110
ac44adcb 14111 PR server/15594
d1ec4ce7
DE
14112 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14113 64 bits in 64-cross-32 environment.
14114
9b25f2d3
PA
141152013-05-28 Pedro Alves <palves@redhat.com>
14116
14117 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14118 (aarch64-without-fpu.c): Delete rule.
14119 * configure.srv (aarch64*-*-linux*): Remove references to
14120 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14121 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14122 declaration.
14123
6740dc9c
PA
141242013-05-24 Pedro Alves <palves@redhat.com>
14125
14126 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14127 instead of strchr/decode_address. Error if the range isn't split
14128 with a ','. Don't assume there's be a ':' in the action.
14129
c2d6af84
PA
141302013-05-23 Yao Qi <yao@codesourcery.com>
14131 Pedro Alves <palves@redhat.com>
14132
14133 * linux-low.c (lwp_in_step_range): New function.
14134 (linux_wait_1): If the thread was range stepping and stopped
14135 outside the stepping range, report the stop to GDB. Otherwise,
14136 continue stepping. Add range stepping debug output.
14137 (linux_set_resume_request): Copy the step range from the resume
14138 request to the lwp.
14139 (linux_supports_range_stepping): New.
14140 (linux_target_ops) <supports_range_stepping>: Set to
14141 linux_supports_range_stepping.
14142 * linux-low.h (struct linux_target_ops)
14143 <supports_range_stepping>: New field.
14144 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14145 * linux-x86-low.c (x86_supports_range_stepping): New.
14146 (the_low_target) <supports_range_stepping>: Set to
14147 x86_supports_range_stepping.
14148 * server.c (handle_v_cont): Handle 'r' action.
14149 (handle_v_requests): Append ";r" if the target supports range
14150 stepping.
14151 * target.h (struct thread_resume) <step_range_start,
14152 step_range_end>: New fields.
14153 (struct target_ops) <supports_range_stepping>:
14154 New field.
14155 (target_supports_range_stepping): New macro.
14156
58794e1a
JB
141572013-05-17 Joel Brobecker <brobecker@adacore.com>
14158
14159 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14160 confusion in comment.
14161
d631c5a7
JB
141622013-05-17 Joel Brobecker <brobecker@adacore.com>
14163
14164 * lynx-low.c (struct process_info_private): New type.
14165 (lynx_add_process): New function.
14166 (lynx_create_inferior, lynx_attach): Replace calls to
14167 add_process by calls to lynx_add_process.
14168 (lynx_resume): If PTID is null, then try using
14169 current_process()->private->last_wait_event_ptid.
14170 Add comments.
14171 (lynx_clear_inferiors): Delete. The contents of that function
14172 has been inlined in lynx_mourn;
14173 (lynx_wait_1): Save the ptid in the process's private data.
14174 (lynx_mourn): Free the process' private data. Replace call
14175 to lynx_clear_inferiors by call to clear_inferiors.
14176
96f7a20f
YQ
141772013-05-17 Yao Qi <yao@codesourcery.com>
14178
14179 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14180 the right place.
14181
db0dfaa0
LM
141822013-05-16 Luis Machado <lgustavo@codesourcery.com>
14183
14184 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14185 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14186 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14187 PT_TEXT_END_ADDR guards. Update comments.
14188 (linux_target_op) <read_offsets>: Conditionally define to
14189 linux_read_offsets if the target is UCLIBC and if it defines
14190 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14191
68f5f838
SL
141922013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14193 Andrew Jenner <andrew@codesourcery.com>
14194
14195 * Makefile.in (SFILES): Add linux-nios2-low.c.
14196 (clean): Add action to delete nios2-linux.c.
14197 (nios2-linux.c): New rule.
14198 * configure.srv: Add nios2*-*-linux*.
14199 * linux-nios2-low.c: New.
14200
1ebff1fd
HAQ
142012013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14202
14203 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14204
f6150862
HZ
142052013-04-25 Hui Zhu <hui@codesourcery.com>
14206
14207 PR gdb/15186
f6150862
HZ
14208 * ax.c (ax_printf): Add fflush.
14209
614c279d
TT
142102013-04-22 Tom Tromey <tromey@redhat.com>
14211
14212 * Makefile.in (SFILES): Add filestuff.c.
14213 (OBS): Add filestuff.o.
14214 (filestuff.o): New target.
14215 * config.in, configure: Rebuild.
14216 * configure.ac: Check for fdwalk, pipe2.
14217
7d4e5717
PA
142182013-04-17 Pedro Alves <palves@redhat.com>
14219
14220 * configure.ac (USE_THREAD_DB): Delete variable.
14221 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14222 Don't AC_SUBST USE_THREAD_DB.
14223 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14224 * config.in, configure: Regenerate.
14225
d5c93e41
PA
142262013-04-16 Pedro Alves <palves@redhat.com>
14227
14228 * linux-low.h (struct lwp_info) <thread_known>: Move under
14229 the USE_THREAD_DB #ifdef.
14230
04f5fe89
PA
142312013-04-16 Pedro Alves <palves@redhat.com>
14232
14233 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14234 (linux-low.o): Delete rule.
14235 * linux-low.h: Always include "gdb_thread_db.h" instead of
14236 conditionally including thread_db.h.
14237 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14238 HAVE_THREAD_DB_H.
14239
480b27bf
JK
142402013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14241
14242 * Makefile.in (install-only): Fix make install regression.
14243
43662968
JK
142442013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14245
14246 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14247 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14248 installation.
14249 * gdbserver.1: Remove.
14250
3e74e146
PA
142512013-03-22 Pedro Alves <palves@redhat.com>
14252
14253 * linux-low.c (handle_extended_wait): Don't call
14254 linux_enable_event_reporting.
14255
a8347a2a
TT
142562013-03-15 Tony Theodore <tonyt@logyst.com>
14257
14258 PR build/9098:
14259 * Makefile.in (SHELL): Use @SHELL@.
14260
eeb56fa7
SDJ
142612013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14262
14263 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14264 compiler warning.
14265
4fa7e2ff
JB
142662013-03-13 Joel Brobecker <brobecker@adacore.com>
14267
14268 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14269 Remove extraneous NULL element.
14270
8ddb1965
YQ
142712013-03-13 Yao Qi <yao@codesourcery.com>
14272
14273 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14274 'V' block in trace frame.
14275
9accd112
MM
142762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14277
14278 * target.h (struct target_ops): Add btrace ops.
14279 (target_supports_btrace): New macro.
14280 (target_enable_btrace): New macro.
14281 (target_disable_btrace): New macro.
14282 (target_read_btrace): New macro.
14283 * gdbthread.h (struct thread_info): Add btrace field.
14284 * server.c: Include btrace-common.h.
14285 (handle_btrace_general_set): New function.
14286 (handle_btrace_enable): New function.
14287 (handle_btrace_disable): New function.
14288 (handle_general_set): Call handle_btrace_general_set.
14289 (handle_qxfer_btrace): New function.
14290 (struct qxfer qxfer_packets[]): Add btrace entry.
14291 * inferiors.c (remove_thread): Disable btrace.
14292 * linux-low: Include linux-btrace.h.
14293 (linux_low_enable_btrace): New function.
14294 (linux_low_read_btrace): New function.
14295 (linux_target_ops): Add btrace ops.
14296 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14297 Add srv_linux_btrace=yes.
14298 (x86_64-*-linux*): Add linux-btrace.o.
14299 Add srv_linux_btrace=yes.
14300 * configure.ac: Define HAVE_LINUX_BTRACE.
14301 * config.in: Regenerated.
14302 * configure: Regenerated.
14303
5cc22e4c
MM
143042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14305
14306 * server.c (handle_qxfer): Preserve error message if -3 is
14307 returned.
14308 (qxfer): Document the -3 return value.
14309
7c97f91e
MM
143102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14311
14312 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14313 (linux_btrace_h): New variable.
14314 (linux-btrace.o): New rule.
14315
be9a119c 143162013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14317 Hafiz Abid Qadeer <abidh@codesourcery.com>
14318
14319 * tracepoint.c (trace_buffer_size): New global.
14320 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14321 (init_trace_buffer): Change to one-argument function. Allocate
14322 trace buffer memory.
14323 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14324 handle QTBuffer:size packet.
14325 (cmd_bigqtbuffer_size): New function.
14326 (initialize_tracepoint): Call init_trace_buffer with
14327 DEFAULT_TRACE_BUFFER_SIZE.
14328 * server.c (handle_query): Add QTBuffer:size in the
14329 supported packets.
14330
e64f7499
YQ
143312013-03-07 Yao Qi <yao@codesourcery.com>
14332
14333 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14334 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14335 of -1.
14336 (cmd_qtsp): Adjust condition. Do post increment.
14337 Set cur_action and cur_step_action back to 0.
14338
f0ae6fc3
PA
143392013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14340
14341 PR server/15236
14342 * linux-low.c (linux_write_memory): Return early success if LEN is
14343 zero.
14344
b5b0b0af
CV
143452013-03-05 Corinna Vinschen <vinschen@redhat.de>
14346
334ad4a8 14347 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14348
589bc927
TT
143492013-02-28 Tom Tromey <tromey@redhat.com>
14350
14351 * configure.ac: Invoke AC_SYS_LARGEFILE.
14352 * configure, config.in: Rebuild.
14353
dfe07582
CV
143542013-02-28 Corinna Vinschen <vinschen@redhat.com>
14355
14356 * win32-low.c: Throughout, fix format strings and casts of
14357 printf-like functions to avoid type related warnings on all
14358 platforms.
14359 (get_child_debug_event): Print dwDebugEventCode as hex since
14360 that's how it's usually documented.
14361
736cd585
YQ
143622013-02-28 Yao Qi <yao@codesourcery.com>
14363
14364 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14365 pulongest.
14366
e1f58301
JW
143672013-02-27 Jiong Wang <jiwang@tilera.com>
14368
14369 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14370 (reg-tilegx32.c): New rule.
14371 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14372 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14373 different register info initializer according to elf class.
14374 (init_registers_tilgx32): New function. The tilegx32 register info
14375 initializer.
14376 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14377 (tile_store_gregset): Likewise.
14378
d171ca78
YQ
143792013-02-27 Yao Qi <yao@codesourcery.com>
14380
14381 * server.c (process_point_options): Print debug message when
14382 debug_threads is true.
14383
282bbdf3
YQ
143842013-02-26 Yao Qi <yao@codesourcery.com>
14385
14386 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14387
aca22551
PA
143882013-02-19 Pedro Alves <palves@redhat.com>
14389 Kai Tietz <ktietz@redhat.com>
14390
14391 PR gdb/15161
14392
14393 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14394 instead of strtoul to extract address from packet.
14395 (process_serial_event) <'z'>: Likewise.
14396
4f3cee1c
YQ
143972013-02-18 Yao Qi <yao@codesourcery.com>
14398
14399 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14400
8e1d55a3
PA
144012013-02-14 Pedro Alves <palves@redhat.com>
14402
14403 Plug memory leak.
14404
14405 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14406 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14407
458820da
PA
144082013-02-14 Pedro Alves <palves@redhat.com>
14409
14410 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14411
baea0dae
PA
144122013-02-14 Pedro Alves <palves@redhat.com>
14413
14414 * tracepoint.c (save_string): Delete.
14415 (add_tracepoint_action): Use savestring instead of save_string.
14416
0b1afbb3
PA
144172013-02-12 Pedro Alves <palves@redhat.com>
14418
14419 * linux-xtensa-low.c: Ditto.
14420 * xtensa-xtregs.c: Ditto.
14421
8a4ac37e
PA
144222013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14423
14424 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14425 thread_db.
14426
148de6bb
MS
144272013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14428
14429 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14430 aarch64_num_wp_regs and aarch64_num_bp_regs to
14431 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14432
55fac6e0
MS
144332013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14434
14435 * linux-aarch64-low.c (ps_get_thread_area): Replace
14436 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14437
176eb98c
MS
144382013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14439 Marcus Shawcroft <marcus.shawcroft@arm.com>
14440 Nigel Stephens <nigel.stephens@arm.com>
14441 Yufeng Zhang <yufeng.zhang@arm.com>
14442
14443 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14444 (aarch64.c, aarch64-without-fpu.c): New targets.
14445 * configure.srv (aarch64*-*-linux*): New.
14446 * linux-aarch64-low.c: New file.
14447
56f7af9c
MS
144482013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14449
43aaf8b6 14450 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14451 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14452 (dequeue_one_deferred_signal, linux_resume_one_thread)
14453 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14454 (linux_tracefork_grandchild, linux_test_for_tracefork)
14455 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14456 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14457 where the argument is 0.
14458
60f662b0
YQ
144592013-01-25 Yao Qi <yao@codesourcery.com>
14460
14461 * event-loop.c: Include "queue.h".
14462 (gdb_event_p): New typedef.
14463 (struct gdb_event) <next_event>: Remove.
14464 (event_queue): Change to QUEUE(gdb_event_p).
14465 (async_queue_event): Remove.
14466 (gdb_event_xfree): New.
14467 (initialize_event_loop): New.
14468 (process_event): Use API from QUEUE.
14469 (wait_for_event): Likewise.
14470 * server.c (main): Call initialize_event_loop.
14471 * server.h (initialize_event_loop): Declare.
14472
5ae4861a
YQ
144732013-01-18 Yao Qi <yao@codesourcery.com>
14474
14475 * ax.h (struct eval_agent_expr_context): New.
14476 (gdb_eval_agent_expr): Update declaration.
14477 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14478 TFRAME. Add new argument CTX.
14479 * server.h (struct eval_agent_expr_context): Declare.
14480 (agent_mem_read, agent_tsv_read): Update declaration.
14481 (agent_mem_read_string): Likewise.
14482 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14483 (add_traceframe_block): Add new argument TPOINT.
14484 Increase TPOINT->traceframe_usage.
14485 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14486 eval_tracepoint_agent_expr.
14487 (condition_true_at_tracepoint): Likewise.
14488 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14489 (agent_mem_read_string, agent_tsv_read): Likewise.
14490
85e00e85
YQ
144912013-01-16 Yao Qi <yao@codesourcery.com>
14492
14493 * linux-low.c (linux_resume_one_lwp): Don't check
14494 'lwp->bp_reinsert != 0'.
14495
4039cf45
JB
144962013-01-07 Joel Brobecker <brobecker@adacore.com>
14497 Pedro Alves <palves@redhat.com>
14498
14499 * lynx-low.c (ptrace_request_to_str): Define a temporary
14500 macro and use it to simplify this function's implementation.
14501
9044dee2
JB
145022013-01-07 Joel Brobecker <brobecker@adacore.com>
14503
14504 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14505 sets errno.
14506
e6352c8f
JB
145072013-01-07 Joel Brobecker <brobecker@adacore.com>
14508
14509 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14510
50681a27
JB
145112013-01-07 Joel Brobecker <brobecker@adacore.com>
14512
14513 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14514
3f6e77ef
JB
145152013-01-07 Joel Brobecker <brobecker@adacore.com>
14516
14517 * lynx-low.c (lynx_resume): Use the resume_info parameter
14518 to determine the ptid for the lynx_ptrace call, unless
14519 it is equal to minus_one_ptid, in which case we use the
14520 ptid of the current_inferior.
14521 (lynx_wait_1): After having received a thread create/exit
14522 event, resume the inferior's execution using the signaling
14523 thread's ptid, rather than the old ptid.
14524
7fda33ae
JB
145252013-01-07 Joel Brobecker <brobecker@adacore.com>
14526
14527 * lynx-low.c (lynx_resume): Delete variable ret.
14528
b9786c74
JB
145292013-01-01 Joel Brobecker <brobecker@adacore.com>
14530
14531 * gdbreplay.c (gdbreplay_version): Update copyright year.
14532 * server.c (gdbserver_version): Likewise.
14533
8b93d60f
JB
145342012-12-17 Joel Brobecker <brobecker@adacore.com>
14535
14536 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14537 new thread.
14538
037335a7
JB
145392012-12-17 Joel Brobecker <brobecker@adacore.com>
14540
14541 * lynx-low.c (ptrace_request_to_str): Add handling for
14542 PTRACE_GETTRACESIG.
14543
52d4cbd8
JB
145442012-12-17 Joel Brobecker <brobecker@adacore.com>
14545
14546 * lynx-low.c (lynx_attach): Delete variable new_process.
14547
ab8f6ca9
JB
145482012-12-17 Joel Brobecker <brobecker@adacore.com>
14549
14550 * lynx-low.c (lynx_create_inferior): Delete variable
14551 new_process.
14552
78cbc024
JB
145532012-12-17 Joel Brobecker <brobecker@adacore.com>
14554
14555 * lynx-low.c (ptrace_request_to_str): Do not handle
14556 PTRACE_GETTHREADLIST if this macro does not exist.
14557
14a00470
YQ
145582012-12-15 Yao Qi <yao@codesourcery.com>
14559
14560 * Makefile.in (OBS): Add notif.o.
14561 * notif.c, notif.h: New.
14562 * server.c: Include "notif.h".
14563 (struct vstop_notif) <next>: Remove.
14564 <base>: New field.
14565 (queue_stop_reply): Update.
14566 (push_event, send_next_stop_reply): Remove.
14567 (discard_queued_stop_replies): Update.
14568 (notif_stop): New variable.
14569 (handle_v_stopped): Remove.
14570 (handle_v_requests): Don't call handle_v_stopped. Call
14571 handle_ack_notif instead.
14572 (queue_stop_reply_callback): Call notif_event_enque instead
14573 of queue_stop_reply.
14574 (handle_status): Don't call send_next_stop_reply, call
14575 notif_write_event instead.
14576 (kill_inferior_callback): Likewise.
14577 (detach_or_kill_inferior_callback): Likewise.
14578 (main): Call initialize_notif.
14579 (process_serial_event): Call QUEUE_is_empty.
14580 (handle_target_event): Call notif_push instead of push event.
14581 * server.h (push_event): Remove declaration.
14582
61c125b9
TT
145832012-12-10 Tom Tromey <tromey@redhat.com>
14584
14585 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14586 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14587 macros.
14588 (.c.o): Rewrite.
14589 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14590 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14591 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14592 (amd64-linux-ipa.o, ax.o): Rewrite.
14593 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14594 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14595 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14596 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14597 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14598 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14599 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14600 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14601 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14602 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14603 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14604 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14605 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14606 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14607 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14608 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14609 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14610 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14611 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14612 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14613 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14614 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14615 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14616 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14617 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14618 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14619 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14620 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14621 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14622 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14623 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14624 (reg-tilegx.o): Remove.
14625 (all_object_files): New macro.
14626 Include .deps files.
14627 * aclocal.m4, configure: Rebuild.
14628 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14629 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14630 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14631
e90e9ad9
TT
146322012-12-05 Tom Tromey <tromey@redhat.com>
14633
14634 PR gdb/14917:
14635 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14636
02d403bf 146372012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14638
14639 * configure.ac: Check for linux/perf_event.h.
14640 * config.in: Regenerated.
14641 * configure: Regenerated.
14642
0270a750
PA
146432012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14644
14645 * hostio.c (handle_readlink): Decrease buffer size
14646 parameter passed to readlink by one byte.
14647
8c29b58e
YQ
146482012-11-26 Yao Qi <yao@codesourcery.com>
14649
14650 * configure.ac (build_warnings): Append '-Wempty-body'.
14651 * configure: Regenerated.
14652 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14653 body.
14654
8bdce1ff
PM
146552012-11-15 Pierre Muller <muller@sourceware.org>
14656
14657 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14658 * config.in: Regenerate.
14659 * configure: Regenerate.
14660 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14661 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14662 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14663 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14664 header.
14665 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14666 instead of <sys/wait.h> header.
14667 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14668
02d403bf 146692012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14670
14671 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14672 (various make rules): Remove -DGDBSERVER
14673
fbd5db48
YQ
146742012-11-09 Yao Qi <yao@codesourcery.com>
14675
14676 * spu-low.c (current_ptid): Move it to ..
14677 * gdbthread.h: ... here. New.
14678 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14679 * server.c (myresume, process_serial_event): Likewise.
14680 * thread-db.c (thread_db_find_new_threads): Likewise.
14681 * tracepoint.c (run_inferior_command): Likewise.
14682
b3dc46ff
AB
146832012-10-01 Andrew Burgess <aburgess@broadcom.com>
14684
14685 * server.c (handle_search_memory_1): Include access length in
14686 warning message.
14687
07c04788
HPN
146882012-09-05 Michael Brandt <michael.brandt@axis.com>
14689
14690 * linux-crisv32-low.c: Fix compile errors.
14691
918d227b
YQ
146922012-09-04 Yao Qi <yao@codesourcery.com>
14693
14694 * tracepoint.c (cmd_qtsv): Adjust debug message.
14695 Don't check CUR_TPOINT.
14696
18c1b81a
YQ
146972012-08-28 Yao Qi <yao@codesourcery.com>
14698
14699 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14700 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14701 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14702 Remove declarations of xmalloc, xreallloc, xstrdup and
14703 freeargv.
14704 * Makefile.in (libiberty_h): New.
14705 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14706 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14707
dc82f37b
YQ
147082012-08-23 Yao Qi <yao@codesourcery.com>
14709
14710 * server.h: Remove declaration of 'xsnprintf'.
14711
406b1477
KS
147122012-08-22 Keith Seitz <keiths@redhat.com>
14713
14714 * server.h: Include build-gnulib-gbserver/config.h.
14715 * gdbreplay.c: Likewise.
14716
e6712ff1
DE
147172012-08-08 Doug Evans <dje@google.com>
14718
14719 * Makefile.in (SFILES): Add gdb_vecs.c.
14720 (OBS): Add gdb_vecs.o.
14721 (gdb_vecs_h, host_defs_h): New variables.
14722 (thread-db.o): Add $(gdb_vecs_h) dependency.
14723 (gdb_vecs.o): New rule.
14724 * thread-db.c: #include "gdb_vecs.h".
14725 (thread_db_load_search): Use a vector to iterate over path elements.
14726 Handle text appearing after "$pdir".
14727
14728 * configure.ac: Add check for strstr.
14729 * config.in: Regenerate.
14730 * configure: Regenerate.
14731
7c3270ae
UW
147322012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14733
14734 * hostio.c (handle_pread): If pread fails, fall back to attempting
14735 lseek/read.
14736 (handle_pwrite): Likewise for pwrite.
14737
b62e2b27
UW
147382012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14739
14740 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14741 between unsupported TYPE and unimplementable ADDR/LEN combination.
14742 (arm_insert_point): Act on new return value.
14743
78a99e91
PA
147442012-07-31 Pedro Alves <palves@redhat.com>
14745
14746 * server.c (process_point_options): Only skip tokens if we find
14747 one that is unrecognized. Don't treat 'X' specially while
14748 skipping unrecognized tokens.
14749
fcf303ab
UW
147502012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14751
14752 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14753 to 4-byte-align HW breakpoint addresses for Thumb.
14754
7255706c
YQ
147552012-07-27 Yao Qi <yao@codesourcery.com>
14756
14757 PR remote/14161.
14758
14759 * server.h: Declare gdb_agent_about_to_close.
14760 * target.c (kill_inferior): Include "agent.h".
14761 New. Send command 'kill'.
14762 * target.h (kill_inferior): Removed macro.
14763 * tracepoint.c (gdb_agent_about_to_close): New.
14764 (gdb_agent_helper_thread): Handle command 'close'.
14765 Wait endlessly until the inferior stops.
14766 Install gdb_agent_remove_socket to atexit hook.
14767 (agent_socket_name): New static variable.
14768 (gdb_agent_socket_init): Replace local variable 'name' with
14769 'agent_socket_name'.
14770 (gdb_agent_remove_socket): New.
14771
5a3f286f
YQ
147722012-07-27 Yao Qi <yao@codesourcery.com>
14773
14774 * server.c (process_point_options): Stop at 'X' when parsing.
14775
961bd387
ME
147762012-07-19 Michael Eager <eager@eagercon.com>
14777
a261b8f5 14778 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14779 to hw_execute.
14780 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14781 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14782 hardware breakpoint.
14783
aa7c7447
JK
147842012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14785
14786 * gdbserver/linux-low.c (initialize_low): Call
14787 linux_ptrace_init_warnings.
14788
7f216e7c
DE
147892012-07-02 Doug Evans <dje@google.com>
14790
14791 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14792 pointer to int.
14793
d3ce09f5
SS
147942012-07-02 Stan Shebs <stan@codesourcery.com>
14795
14796 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14797 (ax.o): Add it to build rule.
14798 (ax-ipa.o): Ditto.
14799 (OBS): Add format.o.
14800 (IPA_OBS): Add format.o.
14801 * server.c (handle_query): Claim support for breakpoint commands.
14802 (process_point_options): Add command case.
14803 (process_serial_event): Leave running if there are printfs in
14804 effect.
14805 * mem-break.h (any_persistent_commands): Declare.
14806 (add_breakpoint_commands): Declare.
14807 (gdb_no_commands_at_breakpoint): Declare.
14808 (run_breakpoint_commands): Declare.
14809 * mem-break.c (struct point_command_list): New struct.
14810 (struct breakpoint): New field command_list.
14811 (any_persistent_commands): New function.
14812 (add_commands_to_breakpoint): New function.
14813 (add_breakpoint_commands): New function.
14814 (gdb_no_commands_at_breakpoint): New function.
14815 (run_breakpoint_commands): New function.
14816 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14817 locally.
14818 * ax.c: Include format.h.
14819 (ax_printf): New function.
14820 (gdb_eval_agent_expr): Add printf opcode.
14821
2f8f6aed
YQ
148222012-06-13 Yao Qi <yao@codesourcery.com>
14823
14824 * server.c (start_inferior): Remove duplicated writes to fields
14825 'last_resume_kind' and 'last_status' of 'current_inferior'.
14826
0c9070b3
YQ
148272012-06-12 Yao Qi <yao@codesourcery.com>
14828 Pedro Alves <palves@redhat.com>
14829
14830 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14831 comment.
14832 * server.c (handle_v_cont): Extend comment.
14833
c52daf70
YQ
148342012-06-11 Yao Qi <yao@codesourcery.com>
14835
14836 * linux-low.c (linux_attach): Add 'static'.
14837
d38bbb0a
YQ
148382012-06-06 Yao Qi <yao@codesourcery.com>
14839
14840 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14841
89dc0afd
JK
148422012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14843
14844 Fix gcc -flto compilation warning.
14845 * server.c (main): Make variable multi_mode and attach volatile.
14846
75f62ce7
TJB
148472012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14848
14849 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14850 if the platform doesn't know about it.
14851
65f479b6
PA
148522012-05-30 Jeff Kenton <jkenton@tilera.com>
14853
14854 * Makefile.in (SFILES): Add linux-tile-low.c.
14855 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14856 * configure.srv: Handle tilegx-*-linux*.
14857 * linux-tile-low.c: New file.
14858
0c5bf5a9
JK
148592012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14860
14861 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14862
a493e3e2
PA
148632012-05-24 Pedro Alves <palves@redhat.com>
14864
14865 PR gdb/7205
14866
43aaf8b6 14867 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14868
2ea28649
PA
148692012-05-24 Pedro Alves <palves@redhat.com>
14870
14871 PR gdb/7205
14872
14873 Replace target_signal with gdb_signal throughout.
14874
8d409d16
MR
148752012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14876
14877 * linux-low.c (linux_store_registers): Avoid the copying sequence
14878 when no data has been retrieved by ptrace.
14879
23512c01
MGD
148802012-05-22 Will Deacon <will.deacon@arm.com>
14881
14882 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14883 Include asm/ptrace.h.
14884 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14885 already defined.
14886
4934b29e
MR
148872012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14888
14889 * linux-low.c (linux_store_registers): Don't re-retrieve data
14890 with ptrace that has already been obtained from /proc. Always
14891 copy any data retrieved with ptrace to the buffer supplied.
14892
bde24c0a
PA
148932012-05-11 Yao Qi <yao@codesourcery.com>
14894 Pedro Alves <palves@redhat.com>
14895
14896 * linux-low.c (enum stopping_threads_kind): New.
14897 (stopping_threads): Change type to `enum stopping_threads_kind'.
14898 (handle_extended_wait): If stopping and suspending threads, leave
14899 the new_lwp suspended too.
14900 (linux_wait_for_event): Adjust.
14901 (stop_all_lwps): Set `stopping_threads' to
14902 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14903 whether we're suspending threads or just stopping them. Assert no
14904 recursion happens.
14905
623b6bdf
YQ
149062012-04-29 Yao Qi <yao@codesourcery.com>
14907
14908 * server.h: Move some code to ...
14909 * gdbthread.h: ... here. New.
14910 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14911 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14912 (nto-low.o, win32-low.o): Likewise.
14913 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14914 * regcache.c, remote-utils.c, server.c: Likewise.
14915 * target.c, tracepoint.c, win32-low.c: Likewise.
14916
f15f9948
TJB
149172012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14918
14919 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14920 (PTRACE_ARG4_TYPE): Likewise.
14921 (PTRACE_XFER_TYPE): Likewise.
14922 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14923 ptrace to PTRACE_ARG3_TYPE.
14924 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14925 (PTRACE_ARG4_TYPE): Likewise.
14926 (PTRACE_XFER_TYPE): Likewise.
14927 (linux_detach_one_lwp): Cast fourth argument of
14928 ptrace to long then PTRACE_ARG4_TYPE.
14929 (regsets_fetch_inferior_registers): Cast third argument of
14930 ptrace to long then PTRACE_ARG3_TYPE.
14931 (regsets_store_inferior_registers): Likewise.
14932
38ea300a
PA
149332012-04-20 Pedro Alves <palves@redhat.com>
14934
14935 * configure: Regenerate.
14936
c971b7fa
PA
149372012-04-19 Pedro Alves <palves@redhat.com>
14938
43aaf8b6 14939 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14940 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14941 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14942 (all, install-only, uninstall, clean-info, all-lib, clean): No
14943 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14944 (maintainer-clean realclean distclean): Use subdir_do.
14945 (subdir_do): New.
14946 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14947 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14948 * acinclude.m4: Include acx_configure_dir.m4.
14949 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14950 calls. Call AC_PROG_RANLIB. Configure gnulib using
14951 ACX_CONFIGURE_DIR.
14952 (GNULIB): New.
14953 (GNULIB_STDINT_H): Adjust.
14954 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14955 * gdbreplay.c: Include build-gnulib/config.h.
14956 * server.h: Likewise.
14957 * aclocal.m4: Regenerate.
14958 * config.in: Regenerate.
14959 * configure: Regenerate.
c971b7fa 14960
809277f8
PA
149612012-04-19 Pedro Alves <palves@redhat.com>
14962
14963 * Makefile.in (LIBGNU, INCGNU): Adjust.
14964 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14965 (all, install-only, uninstall, clean-info, all-lib, clean)
14966 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14967 * configure.ac: Adjust AC_OUTPUT output.
14968 * aclocal.m4: Regenerate.
14969 * configure: Regenerate.
14970
fd9bb8b8
PA
149712012-04-19 Pedro Alves <palves@redhat.com>
14972
14973 * Makefile.in (generated_files): New.
14974 (server_h): Remove the explicit dependency on config.h, and depend
14975 on $generated_files.
14976
1c298c66
PA
149772012-04-19 Pedro Alves <palves@redhat.com>
14978
14979 * Makefile.in (INCGNU): Add -Ignulib.
14980
57c4b50b
PA
149812012-04-19 Pedro Alves <palves@redhat.com>
14982
14983 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14984 (INCGNU): ... this, and spell out -I here.
14985 (GNULIB_LIB): Rename to ...
14986 (LIBGNU): ... this.
14987 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14988
1030e047
PA
149892012-04-19 Pedro Alves <palves@redhat.com>
14990
14991 * config.in: Regenerate.
14992
447d4319
PA
149932012-04-19 Pedro Alves <palves@redhat.com>
14994
14995 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14996 * server.h (memmem): Remove declaration.
14997 * config.in: Regenerate.
14998 * configure: Regenerate.
14999
aad9eab9
YQ
150002012-04-19 Yao Qi <yao@codesourcery.com>
15001
15002 * Makefile.in (SFILES): Add common/vec.c.
15003 (OBS): Add vec.o.
15004 (vec.o): New rule.
15005
3e10640f
YQ
150062012-04-19 Yao Qi <yao@codesourcery.com>
15007
15008 * remote-utils.c (prepare_resume_reply): Replace with macro
15009 target_core_of_thread.
15010 * server.c (handle_qxfer_threads_proper): Likewise.
15011 * target.h (traget_core_of_thread): New macro.
15012
71622373
PA
150132012-04-18 Pedro Alves <palves@redhat.com>
15014
15015 * aclocal.m4: Regenerate.
15016 * configure: Regenerate.
15017
80d26939
YQ
150182012-04-16 Yao Qi <yao@codesourcery.com>
15019
15020 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15021 duplicated on address.
15022
42476b70
YQ
150232012-04-16 Yao Qi <yao@codesourcery.com>
15024
15025 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15026 (struct tracepoint_action_ops) <send>: New field.
15027 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15028 (agent_expr_send, x_tracepoint_action_send): New.
15029 (l_tracepoint_action_send): New.
15030 (cmd_qtdp): Download and install tracepoint
15031 according to `use_agent'.
15032 (run_inferior_command): Add one more parameter `len'.
15033 Update callers.
15034 (tracepoint_send_agent): New.
15035 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15036
7bc83639
YQ
150372012-04-16 Yao Qi <yao@codesourcery.com>
15038
15039 * tracepoint.c (download_tracepoints): Moved to ...
15040 (cmd_qtstart): ... here.
15041
5f18041e
YQ
150422012-04-14 Yao Qi <yao@codesourcery.com>
15043
15044 * tracepoint.c: Include inttypes.h.
15045 (struct collect_memory_action): Use sized types.
15046 (struct tracepoint): Likewise.
15047 (cmd_qtdp, stop_tracing): Update print specifiers.
15048 (cmd_qtp, response_tracepoint): Likewise.
15049 (collect_data_at_tracepoint): Likewise.
15050 (collect_data_at_step): Likewise.
15051
55a8c076
YQ
150522012-04-14 Yao Qi <yao@codesourcery.com>
15053
15054 Import gnulib module inttypes.
15055 * aclocal.m4, config.in, configure: Regenerated.
15056
dc750257
YQ
150572012-04-14 Yao Qi <yao@codesourcery.com>
15058
15059 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15060 Makefile and config.status at last.
15061
0ab5faf9
YQ
150622012-04-13 Yao Qi <yao@codesourcery.com>
15063
15064 * tracepoint.c: Include stdint.h unconditionally.
15065
18f5fd81
TJB
150662012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15067
15068 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15069 on BFD_HAVE_SYS_PROCFS_TYPE.
15070 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15071 * configure: Regenerate.
15072 * config.in: Likewise.
15073
4d47af5c
L
150742012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15075
15076 * Makefile.in (clean): Also remove x32.c x32-linux.c
15077 x32-avx.c x32-avx-linux.c.
15078 (x32.o): New target.
15079 (x32.c): Likewise.
15080 (x32-linux.o): Likewise.
15081 (x32-linux.c): Likewise.
15082 (x32-avx.o): Likewise.
15083 (x32-avx.c): Likewise.
15084 (x32-avx-linux.o): Likewise.
15085 (x32-avx-linux.c): Likewise.
15086
15087 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15088 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15089 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15090 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15091 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15092 i386/x32-avx-linux.xml.
15093
15094 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15095 (init_registers_x32_avx_linux): Likwise.
15096 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15097 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15098
ecedbe58
PA
150992012-04-13 Pedro Alves <palves@redhat.com>
15100
15101 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15102 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15103 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15104 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15105 the sub-make.
15106
c92b5177
L
151072012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15108
15109 * linux-x86-low.c (compat_x32_clock_t): New.
15110 (compat_x32_siginfo_t): Likewise.
15111 (compat_x32_siginfo_from_siginfo): Likewise.
15112 (siginfo_from_compat_x32_siginfo): Likewise.
15113 (linux_is_elf64): Likewise.
15114 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15115 and siginfo_from_compat_x32_siginfo for x32.
15116 (x86_arch_setup): Set linux_is_elf64.
15117
214d508e
L
151182012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15119
15120 PR gdb/13969
15121 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15122 e_machine field.
15123 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15124 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15125 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15126 compatible with process.
15127
c9a1864a
YQ
151282012-04-12 Yao Qi <yao@codesourcery.com>
15129
15130 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15131 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15132 (install-only, install-info, clean): Handle sub dir gnulib.
15133 (all-lib, am--refresh): New targets.
15134 (memmem.o): Remove target.
15135 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15136 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15137 (AC_REPLACE_FUNCS): Remove memmem.
15138 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15139 (AC_OUTPUT): Generate Makefile in gnulib/.
15140 * aclocal.m4, config.in, configure: Regenerated.
15141
367ba2c2
MR
151422012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15143
15144 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15145
9d236627
PA
151462012-04-05 Pedro Alves <palves@redhat.com>
15147
15148 -Werror=strict-aliasing
15149
15150 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15151 pointer.
15152
111217b3
PA
151532012-04-04 Pedro Alves <palves@redhat.com>
15154
15155 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15156 (sparc_store_gregset_from_stack, sparc_store_gregset)
15157 (sparc_breakpoint_at): Fix formatting.
15158
8365dcf5
TJB
151592012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15160
15161 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15162 are available.
15163 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15164 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15165 * config.in: Regenerate.
15166 * configure: Likewise.
15167
689cc2ae
PA
151682012-03-29 Pedro Alves <palves@redhat.com>
15169
15170 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15171 Correct ptrace arguments.
15172
c14dfd32
PA
151732012-03-28 Pedro Alves <palves@redhat.com>
15174
15175 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15176 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15177 (IA64_FR1_REGNUM): New defines.
15178 (ia64_fetch_register): New.
15179 (the_low_target): Install it.
15180 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15181 field.
15182 * linux-low.c (linux_fetch_registers): Try the
15183 the_low_target.fetch_register hook first.
15184
15185 * linux-arm-low.c (the_low_target): Adjust.
15186 * linux-bfin-low.c (the_low_target): Adjust.
15187 * linux-cris-low.c (the_low_target): Adjust.
15188 * linux-crisv32-low.c (the_low_target): Adjust.
15189 * linux-m32r-low.c (the_low_target): Adjust.
15190 * linux-m68k-low.c (the_low_target): Adjust.
15191 * linux-mips-low.c (the_low_target): Adjust.
15192 * linux-ppc-low.c (the_low_target): Adjust.
15193 * linux-s390-low.c (the_low_target): Adjust.
15194 * linux-sh-low.c (the_low_target): Adjust.
15195 * linux-sparc-low.c (the_low_target): Adjust.
15196 * linux-tic6x-low.c (the_low_target): Adjust.
15197 * linux-x86-low.c (the_low_target): Adjust.
15198 * linux-xtensa-low.c (the_low_target): Adjust.
15199
63c88e13
PA
152002012-03-26 Pedro Alves <palves@redhat.com>
15201
15202 * server.c (handle_qxfer_libraries): Don't bail early if
15203 the_target->qxfer_libraries_svr4 is not NULL.
15204
fb723180
PA
152052012-03-26 Pedro Alves <palves@redhat.com>
15206
15207 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15208
0afae3cf
PA
152092012-03-23 Pedro Alves <palves@redhat.com>
15210
15211 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15212 "library-list-svr4" element's start tag when the the DSO list is
15213 empty.
15214
485f1ee4
PA
152152012-03-23 Pedro Alves <palves@redhat.com>
15216
15217 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15218 a variable whose type size is the same as the inferior's pointer
15219 size.
15220
a5362b9a
TS
152212012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15222
15223 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15224 struct siginfo.
15225 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15226 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15227 * linux-low.h: Include <signal.h>.
15228 (struct siginfo): Remove forward declaration.
15229 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15230 struct siginfo.
15231
d226c142
MF
152322012-03-21 Mike Frysinger <vapier@gentoo.org>
15233
15234 * .gitignore: Ignore more files.
15235
122f36ef
PA
152362012-03-19 Pedro Alves <palves@redhat.com>
15237 Jan Kratochvil <jan.kratochvil@redhat.com>
15238
15239 * server.c (cont_thread, general_thread): Add describing comments.
15240 (start_inferior): Clear `cont_thread'.
15241 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15242 of a process.
15243
fc3e5175
YQ
152442012-03-15 Yao Qi <yao@codesourcery.com>
15245
15246 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15247 handling to ...
15248 (cmd_qtdp): ... here.
15249
8d0d92cd
YQ
152502012-03-15 Yao Qi <yao@codesourcery.com>
15251
15252 * tracepoint.c (struct tracepoint_action_ops): New.
15253 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15254 (m_tracepoint_action_download): New.
15255 (r_tracepoint_action_download): New.
15256 (x_tracepoint_action_download): New.
15257 (l_tracepoint_action_download): New.
15258 (add_tracepoint_action): Install `action->ops' according type.
15259 (download_tracepoint_1): Move code `download' function pointer
15260 of various tracepoint_action_ops.
15261
87b0bb13
JK
152622012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15263
15264 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15265 linux_ptrace_attach_warnings.
15266
5f572dec
JK
152672012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15268
15269 * Makefile.in (linux-ptrace.o): New.
15270 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15271 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15272 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15273 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15274 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15275 of these targets.
15276 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15277
f4647387
YQ
152782012-03-08 Yao Qi <yao@codesourcery.com>
15279 Pedro Alves <palves@redhat.com>
15280
15281 Fix PR server/13392.
15282 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15283 offset of JMP insn.
15284 * tracepoint.c (remove_tracepoint): New.
15285 (cmd_qtdp): Call remove_tracepoint when failed to install.
15286
9b224c5e
PA
152872012-03-07 Pedro Alves <palves@redhat.com>
15288
15289 * linux-low.c (get_detach_signal): New.
15290 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15291 Pass on pending signals to PTRACE_DETACH. Check the result of the
15292 ptrace call.
15293 * server.c (program_signals, program_signals_p): New.
15294 (handle_general_set): Handle QProgramSignals.
15295 * server.h (program_signals, program_signals_p): Declare.
15296
e237a7e2
JK
152972012-03-05 Pedro Alves <palves@redhat.com>
15298 Jan Kratochvil <jan.kratochvil@redhat.com>
15299
15300 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15301 New comment why.
15302
5808517f
YQ
153032012-03-03 Yao Qi <yao@codesourcery.com>
15304
15305 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15306 agent_look_up_symbols.
15307
58b4daa5
YQ
153082012-03-03 Yao Qi <yao@codesourcery.com>
15309
15310 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15311 (linux-x86-low.o): Likewise.
15312 * server.h: Remove in_process_agent_loaded.
15313 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15314 common/agent.c.
15315 Update callers.
15316
8ffcbaaf
YQ
153172012-03-03 Yao Qi <yao@codesourcery.com>
15318
15319 * tracepoint.c (gdb_agent_capability): New global.
15320 (in_process_agent_loaded_ust): Renamed to
15321 `in_process_agent_supports_ust'.
15322 Update callers.
15323 (in_process_agent_supports_ust): Call agent_capability_check.
15324 (clear_installed_tracepoints): Assert that agent supports
15325 agent.
15326
d1feda86
YQ
153272012-03-03 Yao Qi <yao@codesourcery.com>
15328
15329 * linux-low.c (linux_supports_agent): New.
15330 (linux_target_ops): Initialize field `supports_agent' with
15331 linux_supports_agent.
15332 * target.h (struct target_ops) <supports_agent>: New.
15333 (target_supports_agent): New macro.
15334 * server.c (handle_general_set): Handle packet 'QAgent'.
15335 (handle_query): Send `QAgent+'.
15336 * Makefile.in (server.o): Depends on agent.h.
15337
2fa291ac
YQ
153382012-03-03 Yao Qi <yao@codesourcery.com>
15339
15340 * Makefile.in (OBS): Add agent.o.
15341 Add new rule for agent.o.
15342 Track dependence of tracepoint.c on agent.h.
15343 * tracepoint.c (run_inferior_command_1):
15344 (run_inferior_command): Call agent_run_command.
15345 (gdb_ust_connect_sync_socket): Deleted. Move it to
15346 common/agent.c.
15347 (resume_thread, stop_thread): Likewise.
15348 (gdb_ust_socket_init): Renamed to ...
15349 (gdb_agent_socket_init): ... New.
15350 (gdb_ust_thread): Renamed to ...
15351 (gdb_agent_helper_thread): ... New.
15352 (gdb_ust_init): Move some code to ...
15353 (gdb_agent_init): ... here. New.
15354 [HAVE_UST]: Call gdb_ust_init.
15355 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15356 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15357 * config.in, configure: Regenerated.
15358
05044653
PA
153592012-03-02 Pedro Alves <palves@redhat.com>
15360
15361 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15362 * linux-low.c (struct simple_pid_list): New.
15363 (stopped_pids): New a struct simple_pid_list pointer.
15364 (add_to_pid_list, pull_pid_from_list): New.
15365 (handle_extended_wait): Don't assume the first signal new children
15366 report is SIGSTOP. Adjust call to pull_pid_from_list.
15367 (linux_wait_for_lwp): Adjust.
15368
8d00225b
YQ
153692012-03-02 Yao Qi <yao@codesourcery.com>
15370
15371 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15372 debug log.
15373
19560ba5
YQ
153742012-03-02 Yao Qi <yao@codesourcery.com>
15375
15376 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15377 `stop_pc' and `tpoint'. Update caller.
15378
1faeff08
MR
153792012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15380
15381 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15382 * linux-low.c (use_linux_regsets): New macro.
15383 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15384 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15385 (linux_register_in_regsets): New function.
15386 (usr_fetch_inferior_registers): Skip registers covered by
15387 regsets.
15388 (usr_store_inferior_registers): Likewise.
15389 (usr_fetch_inferior_registers): New macro.
15390 (usr_store_inferior_registers): Likewise.
15391 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15392 (linux_store_registers): Likewise.
15393 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15394 prototype.
15395 (init_registers_mips64_dsp_linux): Likewise.
15396 (init_registers_mips_linux): New macro.
15397 (init_registers_mips_dsp_linux): Likewise.
15398 (mips_dsp_num_regs): Likewise.
15399 (DSP_BASE, DSP_CONTROL): New fallback macros.
15400 (mips_base_regs): New macro.
15401 (mips_regmap): Use it. Fix the size.
15402 (mips_dsp_regmap): New variable.
15403 (mips_dsp_regset_bitmap): Likewise.
15404 (mips_arch_setup): New function.
15405 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15406 than mips_regmap.
15407 (mips_cannot_store_register): Likewise.
15408 (the_low_target): Update .arch_setup, .num_regs and .regmap
15409 initializers. Add .regset_bitmap initializer.
15410 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15411 initializer.
15412 * linux-bfin-low.c (the_low_target): Likewise.
15413 * linux-cris-low.c (the_low_target): Likewise.
15414 * linux-crisv32-low.c (the_low_target): Likewise.
15415 * linux-ia64-low.c (the_low_target): Likewise.
15416 * linux-m32r-low.c (the_low_target): Likewise.
15417 * linux-m68k-low.c (the_low_target): Likewise.
15418 * linux-ppc-low.c (the_low_target): Likewise.
15419 * linux-s390-low.c (the_low_target): Likewise.
15420 * linux-sh-low.c (the_low_target): Likewise.
15421 * linux-sparc-low.c (the_low_target): Likewise.
15422 * linux-tic6x-low.c (the_low_target): Likewise.
15423 * linux-x86-low.c (the_low_target): Likewise.
15424 * linux-xtensa-low.c (the_low_target): Likewise.
15425 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15426 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15427 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15428 srv_xmlfiles.
15429 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15430 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15431
c03e6ccc
YQ
154322012-02-29 Yao Qi <yao@codesourcery.com>
15433 Pedro Alves <palves@redhat.com>
15434
15435 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15436 `step_over_finished' is true.
15437
644cebc9
PA
154382012-02-27 Pedro Alves <palves@redhat.com>
15439
15440 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15441 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15442
c14d7ab2
PA
154432012-02-27 Pedro Alves <palves@redhat.com>
15444
15445 PR server/9684
15446 * linux-low.c (pid_is_stopped): New.
15447 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15448
412c89dd
LM
154492012-02-25 Luis Machado <lgustavo@codesourcery.com>
15450
15451 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15452 of conditions.
15453
b745defe
MR
154542012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15455
15456 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15457
9f3a5c85
LM
154582012-02-24 Luis Machado <lgustavo@codesourcery>
15459
15460 * server.c (handle_query): Advertise support for target-side
15461 breakpoint condition evaluation.
15462 (process_point_options): New function.
15463 (process_serial_event): When inserting a breakpoint, check for
15464 a target-side condition that should be evaluated.
15465
15466 * mem-break.c: Include regcache.h and ax.h.
15467 (point_cond_list_t): New data structure.
15468 (breakpoint) <cond_list>: New field.
15469 (find_gdb_breakpoint_at): Make non-static.
15470 (delete_gdb_breakpoint_at): Clear any target-side
15471 conditions.
15472 (clear_gdb_breakpoint_conditions): New function.
15473 (add_condition_to_breakpoint): Likewise.
15474 (add_breakpoint_condition): Likewise.
15475 (gdb_condition_true_at_breakpoint): Likewise.
15476 (gdb_breakpoint_here): Return result directly instead
15477 of going through a local variable.
15478
15479 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15480 (clear_gdb_breakpoint_conditions): Likewise.
15481 (add_breakpoint_condition): Likewise.
15482 (gdb_condition_true_at_breakpoint): Likewise.
15483
15484 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15485 (need_step_over_p): Take target-side breakpoint condition into
15486 consideration.
15487
5e1dc496
LM
154882012-02-24 Luis Machado <lgustavo@codesourcery>
15489
15490 * server.h: Include tracepoint.h.
15491 (agent_mem_read, agent_get_trace_state_variable_value,
15492 agent_set_trace_state_variable_value,
15493 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15494 get_set_tsv_func_addr): New prototypes.
15495
15496 * ax.h: New include file.
15497 * ax.c: New source file.
15498
15499 * tracepoint.c: Include ax.h.
15500 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15501 agent_expr, eval_result_type): Move to ax.h.
15502 (parse_agent_expr): Rename to ...
15503 (gdb_parse_agent_expr): ... this, make it non-static and move
15504 to ax.h.
15505 (unparse_agent_expr) Rename to ...
15506 (gdb_unparse_agent_expr): ... this, make it non-static and move
15507 to ax.h.
15508 (eval_agent_expr): Rename to ...
15509 (eval_tracepoint_agent_expr): ... this.
15510 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15511 forward declarations.
15512 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15513 (agent_get_trace_state_variable_value): New function.
15514 (agent_set_trace_state_variable_value): New function.
15515 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15516 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15517 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15518 (condition_true_at_tracepoint): Likewise.
15519 (parse_agent_expr): Rename to ...
15520 (gdb_parse_agent_expr): ... this and move to ax.c.
15521 (unparse_agent_expr): Rename to ...
15522 (gdb_unparse_agent_expr): ... this and move to ax.c.
15523 (gdb_agent_op_name): Move to ax.c.
15524 (eval_agent_expr): Rename to ...
15525 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15526 and move to ax.c.
15527 (eval_tracepoint_agent_expr): New function.
15528 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15529 non-static.
5e1dc496
LM
15530 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15531 ax.c.
15532 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15533 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15534 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15535 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15536 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15537 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15538 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15539 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15540 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15541 (compile_bytecodes): Remove forward declaration.
15542 (is_goto_target): Move to ax.c.
15543 (compile_bytecodes): Move to ax.c and call
15544 agent_get_trace_state_variable_value (...) and
15545 agent_set_trace_state_variable_value (...).
15546
15547 * Makefile.in: Update ax.c and IPA dependencies.
15548
277e4e52
PA
155492012-02-24 Pedro Alves <palves@redhat.com>
15550
15551 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15552 (cmd_bigqtbuffer_circular): ... this. Only handle
15553 'QTBuffer:circular:'.
15554 (handle_tracepoint_general_set): Adjust.
15555
bf4c19f7
YQ
155562012-02-16 Yao Qi <yao@codesourcery.com>
15557
15558 * inferiors.c: Move code to ...
15559 * dll.c: .... here. New.
15560 * server.h: Declare clear_dlls.
15561 * Makefile.in (SFILES): Add dll.c.
15562 (OBS): Add dll.o
15563 (dll.o): New rule.
15564
d73f2619
YQ
155652012-02-11 Yao Qi <yao@codesourcery.com>
15566
15567 * server.c: (handle_monitor_command): Add a new parameter
15568 `own_buf'.
15569 (handle_query): Update caller.
15570
f8255c2a
JB
155712012-02-09 Joel Brobecker <brobecker@adacore.com>
15572
15573 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15574 * configure, config.in: Regenerate.
15575 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15576 is not defined.
15577
da84f473
PA
155782012-02-02 Pedro Alves <palves@redhat.com>
15579
15580 Try SIGKILL first, then PTRACE_KILL.
15581 * linux-low.c (linux_kill_one_lwp): New.
15582 (linux_kill_one_lwp): Rename to ...
15583 (kill_one_lwp_callback): ... this. Use the new
15584 linux_kill_one_lwp.
15585
e886a173
PA
155862012-02-02 Pedro Alves <palves@redhat.com>
15587
15588 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15589 inferior.
15590
be07f1a2
PA
155912012-01-27 Pedro Alves <palves@redhat.com>
15592
15593 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15594 (elf_64_file_p): Make static.
15595 (linux_pid_exe_is_elf_64_file): New.
15596 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15597 Delete declarations.
15598 (linux_pid_exe_is_elf_64_file): Declare.
15599 * linux-x86-low.c (x86_arch_setup): Use
15600 linux_pid_exe_is_elf_64_file.
15601
d8301ad1
JK
156022012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15603
15604 * linux-low.c (linux_wait_for_event_1): Rename to ...
15605 (linux_wait_for_event): ... here and merge it with former
15606 linux_wait_for_event - new variable wait_ptid, use it.
15607 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15608
01b17894
PA
156092012-01-23 Pedro Alves <palves@redhat.com>
15610
15611 * server.c (main): Avoid yet another case of infinite loop while
15612 detaching/killing after a longjmp.
15613
e825046f
JK
156142012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15615
15616 Code cleanup.
15617 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15618
b9e7b9c3
UW
156192012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15620
15621 * hostio.c (handle_readlink): New function.
15622 (handle_vFile): Call it to handle "vFile:readlink" packets.
15623
901f9912
UW
156242012-01-20 Pedro Alves <palves@redhat.com>
15625 Ulrich Weigand <ulrich.weigand@linaro.org>
15626
15627 * server.c (handle_v_requests): Only support vAttach and vRun to
15628 start multiple processes when in extended protocol mode.
15629
fc1ab1a0
PA
156302012-01-17 Pedro Alves <palves@redhat.com>
15631
15632 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15633 memalign plus mprotect to allocate the scratch buffer.
15634
7d5d4e98
PA
156352012-01-13 Pedro Alves <palves@redhat.com>
15636
15637 * server.c (attach_inferior): Clear `cont_thread'.
15638
f128d5e9
PA
156392012-01-13 Pedro Alves <palves@redhat.com>
15640
15641 * server.c (main): Avoid infinite loop while detaching/killing
15642 after a longjmp.
15643
06db92f0
DE
156442012-01-09 Doug Evans <dje@google.com>
15645
15646 * server.c (start_inferior): Set last_ptid in --wrapper case.
15647
32d92999
YQ
156482012-01-06 Yao Qi <yao@codesourcery.com>
15649
15650 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15651 defined.
15652 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15653
5e0a92a9
YQ
156542012-01-04 Yao Qi <yao@codesourcery.com>
15655
15656 * tracepoint.c (cmd_qtdp): Print debug message
15657 for static tracepoint.
15658
ae639e8c
YQ
156592012-01-04 Yao Qi <yao@codesourcery.com>
15660
15661 * tracepoint.c (trace_vdebug): Differentiate debug message
15662 between gdbserver and IPA.
15663
f72429c5
YQ
156642012-01-03 Yao Qi <yao@codesourcery.com>
15665
15666 * tracepoint.c (tracepoint_was_hit): Don't collect for
15667 static tracepoint.
15668
12c3e59c
JB
156692012-01-02 Joel Brobecker <brobecker@adacore.com>
15670
15671 * terminal.h: Reformat copyright header.
15672
67827812
JB
156732012-01-02 Joel Brobecker <brobecker@adacore.com>
15674
15675 * server.c (gdbserver_version): Update copyright year.
15676 * gdbreplay.c (gdbreplay_version): Likewise.
15677
3e52c33d
JK
156782011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15679
15680 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15681
15682 Revert:
15683 2011-12-18 Hui Zhu <teawater@gmail.com>
15684 * linux-low.c (linux_create_inferior): Save return value to ret.
15685
66f1260e
HZ
156862011-12-18 Hui Zhu <teawater@gmail.com>
15687
15688 * linux-low.c (linux_create_inferior): Save return value to ret.
15689
e77616d7
DE
156902011-12-16 Doug Evans <dje@google.com>
15691
e7b06c57
DE
15692 * linux-low.c (linux_create_inferior): If stdio connection,
15693 redirect stdin from /dev/null, stdout to stderr.
15694 * remote-utils.c (remote_is_stdio): New static global.
15695 (remote_connection_is_stdio): New function.
15696 (remote_prepare): Handle stdio connection.
15697 (remote_open): Ditto.
15698 (remote_close): Don't close stdin for stdio connections.
15699 (read_prim,write_prim): New functions. Replace all calls to
15700 read/write to these.
15701 * server.c (main): Watch for "-" argument. Move call to
15702 remote_prepare before start_inferior.
15703 * server.h (STDIO_CONNECTION_NAME): New macro.
15704 (remote_connection_is_stdio): Declare.
15705
e77616d7
DE
15706 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15707 in debugging output.
15708
82067193
YQ
157092011-12-15 Yao Qi <yao@codesourcery.com>
15710
15711 * tracepoint.c: Include sys/syscall.h.
15712 (gdb_ust_thread): Remove preprocessor conditional.
15713
82bfbe7e
PA
157142011-12-14 Pedro Alves <pedro@codesourcery.com>
15715
15716 * linux-low.c (linux_detach_one_lwp): Call
15717 the_low_target.prepare_to_resume before detaching.
15718
712c6575
YQ
157192011-12-14 Yao Qi <yao@codesourcery.com>
15720
15721 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15722 of write.
15723
d54d1edf
YQ
157242011-12-14 Yao Qi <yao@codesourcery.com>
15725
15726 * i386-low.c (i386_low_stopped_data_address): Initialize local
15727 variable `control'.
15728
6210a125
PA
157292011-12-13 Pedro Alves <pedro@codesourcery.com>
15730
15731 PR remote/13492
15732
15733 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15734 DR_CONTROL unless necessary. Extend comments.
15735 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15736 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15737
2ece8244
YQ
157382011-12-13 Yao Qi <yao@codesourcery.com>
15739
15740 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15741 macros.
15742 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15743
784867a5
JK
157442011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15745
15746 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15747 Print new debug message for such case.
15748
6bf36717
JK
157492011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15750
15751 Fix overlapping memcpy.
15752 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15753 the read_inferior_memory transfer.
15754 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15755 write_inferior_memory transfer.
15756 (set_fast_tracepoint_jump): New variable buf. Use it for the
15757 read_inferior_memory and write_inferior_memory transfers.
15758 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15759 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15760 Use it for the write_inferior_memory transfer.
15761 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15762 buffers.
15763
50275556
MR
157642011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15765
15766 * linux-low.c (fetch_register, store_register): Make code
15767 consistent, fix formatting.
15768
7325beb4
MR
157692011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15770
15771 * linux-low.c (usr_store_inferior_registers): Factor out code
15772 to handle individual registers into...
15773 (store_register): ... this new function.
15774
c642a434
UW
157752011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15776
15777 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15778 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15779 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15780 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15781 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15782 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15783 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15784 (srv_xmlfiles): Add new XML files.
15785
15786 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15787 and <sys/uio.h>.
15788 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15789 (init_registers_s390_linux32v1): Add prototype.
15790 (init_registers_s390_linux32v2): Likewise.
15791 (init_registers_s390_linux64v1): Likewise.
15792 (init_registers_s390_linux64v2): Likewise.
15793 (init_registers_s390x_linux64v1): Likewise.
15794 (init_registers_s390x_linux64v2): Likewise.
15795 (s390_num_regs): Increment to 52.
15796 (s390_regmap): Add orig_r2 register.
15797 (s390_num_regs_3264): Increment to 68.
15798 (s390_regmap_3264): Add orig_r2 register.
15799 (s390_collect_ptrace_register): Handle orig_r2 register.
15800 (s390_supply_ptrace_register): Likewise.
15801 (s390_fill_last_break): New function.
15802 (s390_store_last_break): Likewise.
15803 (s390_fill_system_call): New function.
15804 (s390_store_system_call): Likewise.
15805 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15806 register sets.
15807 (s390_check_regset): New function.
15808 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15809 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15810 Update target_regsets for available register sets.
15811
2268b414
JK
158122011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15813 Jan Kratochvil <jan.kratochvil@redhat.com>
15814
15815 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15816 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15817 New.
15818 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15819 * linux-low.h (struct process_info_private): New member r_debug.
15820 * server.c (handle_qxfer_libraries): Call
15821 the_target->qxfer_libraries_svr4.
15822 (handle_qxfer_libraries_svr4): New function.
15823 (qxfer_packets): New entry "libraries-svr4".
15824 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15825 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15826 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15827 PACKET_qXfer_libraries_svr4.
15828
d6db1fab
UW
158292011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15830
15831 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15832 PSW address/mask between 8-byte and 16-byte formats.
15833 (s390_supply_ptrace_register): Likewise.
15834 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15835 basic addressing mode bit.
15836
242f5f1c
SS
158372011-11-24 Stan Shebs <stan@codesourcery.com>
15838
15839 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15840
f196051f
SS
158412011-11-17 Stan Shebs <stan@codesourcery.com>
15842
15843 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15844 (tracing_start_time): New global.
15845 (tracing_stop_time): New global.
15846 (tracing_user_name): New global.
15847 (tracing_notes): New global.
15848 (tracing_stop_note): New global.
15849 (cmd_qtstart): Set traceframe_usage, start_time.
15850 (stop_tracing): Set stop_time.
15851 (cmd_qtstatus): Report additional status.
15852 (cmd_qtp): New function.
15853 (handle_tracepoint_query): Call it.
15854 (cmd_qtnotes): New function.
15855 (handle_tracepoint_general_set): Call it.
15856 (get_timestamp): Rename from tsv_get_timestamp.
15857
405f8e94
SS
158582011-11-14 Stan Shebs <stan@codesourcery.com>
15859 Kwok Cheung Yeung <kcy@codesourcery.com>
15860
15861 * linux-x86-low.c (small_jump_insn): New.
15862 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15863 trampoline and error message, build a trampoline and issue a small
15864 jump instruction to it.
15865 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15866 trampoline and error message.
15867 (x86_get_min_fast_tracepoint_insn_len): New.
15868 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15869 * linux-low.h (struct linux_target_ops): Add arguments to
15870 install_fast_tracepoint_jump_pad operation, add new operation.
15871 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15872 arguments.
15873 (linux_get_min_fast_tracepoint_insn_len): New function.
15874 (linux_target_op): Add new operation.
15875 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15876 (gdb_trampoline_buffer_end): Ditto.
15877 (gdb_trampoline_buffer_error): Ditto.
15878 (struct ipa_sym_addresses): Add fields for new IPA variables.
15879 (symbol_list): Add entries for new IPA variables.
15880 (struct tracepoint): Add fields to hold the address range of the
15881 trampoline used by the tracepoint.
15882 (trampoline_buffer_head): New static variable.
15883 (trampoline_buffer_tail): Ditto.
15884 (claim_trampoline_space): New function.
15885 (have_fast_tracepoint_trampoline_buffer): New function.
15886 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15887 structure.
15888 (install_fast_tracepoint): Ditto, also add error buffer argument.
15889 (cmd_qtminftpilen): New function.
15890 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15891 (fast_tracepoint_from_trampoline_address): New function.
15892 (fast_tracepoint_collecting): Handle trampoline as part of jump
15893 pad space.
15894 (set_trampoline_buffer_space): New function.
15895 (initialize_tracepoint): Initialize new IPA variables.
15896 * target.h (struct target_ops): Add arguments to
15897 install_fast_tracepoint_jump_pad operation, add new
15898 get_min_fast_tracepoint_insn_len operation.
15899 (target_get_min_fast_tracepoint_insn_len): New.
15900 (install_fast_tracepoint_jump_pad): Add arguments.
15901 * server.h (IPA_BUFSIZ): Define.
15902 * linux-i386-ipa.c: Include extra header files.
15903 (initialize_fast_tracepoint_trampoline_buffer): New function.
15904 (initialize_low_tracepoint): Call it.
15905 * server.h (set_trampoline_buffer_space): Declare.
15906 (claim_trampoline_space): Ditto.
15907 (have_fast_tracepoint_trampoline_buffer): Ditto.
15908
1e4d1764
YQ
159092011-11-14 Yao Qi <yao@codesourcery.com>
15910
15911 * server.c (handle_query): Handle InstallInTrace for qSupported.
15912 * tracepoint.c (add_tracepoint): Sort list.
15913 (install_tracepoint, download_tracepoint): New.
15914 (cmd_qtdp): Call them to install and download tracepoints.
15915 (sort_tracepoints): Removed.
15916 (cmd_qtstart): Update.
15917
5c73ff4e
YQ
159182011-11-14 Yao Qi <yao@codesourcery.com>
15919
15920 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15921 * mem-break.h: Declare.
15922 * tracepoint.c (cmd_qtstart): Move some code to ...
15923 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15924 New.
15925 (download_tracepoints): Move some code to ...
15926 (download_tracepoint_1): ... here. New.
15927
86a30030
YQ
159282011-11-08 Yao Qi <yao@codesourcery.com>
15929
15930 * remote-utils.c (relocate_instruction): A comment fix.
15931
8d26e50c
JB
159322011-11-07 Joel Brobecker <brobecker@adacore.com>
15933
15934 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15935 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15936 dr_status_mirror and dr_control_mirror from debug_reg_state.
15937 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15938 (i386_initial_stuff): Remove use of deleted globals.
15939 (i386_get_thread_context, i386_set_thread_context,
15940 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15941 from debug_reg_state.
15942
a59306a3
YQ
159432011-11-05 Yao Qi <yao@codesourcery.com>
15944
15945 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15946 address as TPOINT's.
15947
3065dfb6
SS
159482011-11-02 Stan Shebs <stan@codesourcery.com>
15949
15950 * tracepoint.c (agent_mem_read_string): New function.
15951 (eval_agent_expr): Call it for tracenz.
15952 * server.c (handle_query): Report support for tracenz.
15953
fd0d8c7c
YQ
159542011-11-02 Yao Qi <yao@codesourcery.com>
15955
15956 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15957
609086b1
YQ
159582011-11-02 Yao Qi <yao@codesourcery.com>
15959
15960 * target.h: Fix a typo in comment.
15961
b9fd1791
PA
159622011-10-31 Pedro Alves <pedro@codesourcery.com>
15963
15964 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15965 clobber the breakpoints' shadows with fast tracepoint jumps.
15966 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15967 * target.c (write_inferior_memory): Also pass MYADDR down to
15968 check_mem_write.
15969
03583c20
UW
159702011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15971
15972 * configure.ac: Check support for personality routine.
15973 * configure: Regenerate.
15974 * config.in: Likewise.
15975 * linux-low.c: Include <sys/personality.h>.
15976 Define ADDR_NO_RANDOMIZE if necessary.
15977 (linux_create_inferior): Disable address space randomization when
15978 forking inferior, if requested.
15979 (linux_supports_disable_randomization): New function.
15980 (linux_target_ops): Install it.
15981 * server.h (disable_randomization): Declare.
15982 * server.c (disable_randomization): New global variable.
15983 (handle_general_set): Handle QDisableRandomization.
15984 (handle_query): Likewise for qSupported.
15985 (main): Support --disable-randomization and --no-disable-randomization
15986 command line arguments.
15987 * target.h (struct target_ops): Add supports_disable_randomization.
15988 (target_supports_disable_randomization): New macro.
15989
723b724b
MF
159902011-09-29 Mike Frysinger <vapier@gentoo.org>
15991
15992 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15993 ifdef check.
15994 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15995 [!PT_GETDSBT] (target_loadmap): New definition.
15996 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15997 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15998 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15999 and PT_GETDSBT to LINUX_LOADMAP.
16000 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16001 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16002
55329a5c 160032011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16004
16005 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16006 (arm_linux_hwbp_cap): New static variable.
16007 (arm_linux_get_hwbp_cap): Replace by ...
16008 (arm_linux_init_hwbp_cap): ... this new function.
16009 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16010 (arm_linux_get_hw_watchpoint_count): Likewise.
16011 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16012 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16013 (arm_prepare_to_resume): Use perror_with_name instead of error.
16014
55329a5c 160152011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16016
16017 * linux-arm-low.c: Include <signal.h>.
16018 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16019 (struct arm_linux_hwbp_cap): New data type.
16020 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16021 (struct arm_linux_hw_breakpoint): New data type.
16022 (MAX_BPTS, MAX_WPTS): Define.
16023 (struct arch_process_info, struct arch_lwp_info): New data types.
16024 (arm_linux_get_hwbp_cap): New function.
16025 (arm_linux_get_hw_breakpoint_count): Likewise.
16026 (arm_linux_get_hw_watchpoint_count): Likewise.
16027 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16028 (arm_hwbp_control_initialize): Likewise.
16029 (arm_hwbp_control_is_enabled): Likewise.
16030 (arm_hwbp_control_is_initialized): Likewise.
16031 (arm_hwbp_control_disable): Likewise.
16032 (arm_linux_hw_breakpoint_equal): Likewise.
16033 (arm_linux_hw_point_initialize): Likewise.
16034 (struct update_registers_data): New data structure.
16035 (update_registers_callback: New function.
16036 (arm_insert_point): Likewise.
16037 (arm_remove_point): Likewise.
16038 (arm_stopped_by_watchpoint): Likewise.
16039 (arm_stopped_data_address): Likewise.
16040 (arm_new_process): Likewise.
16041 (arm_new_thread): Likewise.
16042 (arm_prepare_to_resume): Likewise.
16043 (the_low_target): Register arm_insert_point, arm_remove_point,
16044 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16045 arm_new_thread, and arm_prepare_to_resume.
16046
6b9801d4
SS
160472011-09-15 Stan Shebs <stan@codesourcery.com>
16048
16049 * server.h (struct emit_ops): Add compare-goto fields.
16050 * tracepoint.c (gdb_agent_op_sizes): New table.
16051 (emit_eq_goto): New function.
16052 (emit_ne_goto): New function.
16053 (emit_lt_goto): New function.
16054 (emit_le_goto): New function.
16055 (emit_gt_goto): New function.
16056 (emit_ge_goto): New function.
16057 (is_goto_target): New function.
16058 (compile_bytecodes): Recognize special cases of compare-goto
16059 combinations and call specialized emitters for them.
16060 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16061 (amd64_emit_ne_goto): New function.
16062 (amd64_emit_lt_goto): New function.
16063 (amd64_emit_le_goto): New function.
16064 (amd64_emit_gt_goto): New function.
16065 (amd64_emit_ge_goto): New function.
16066 (amd64_emit_ops): Add the new functions.
16067 (i386_emit_eq_goto): New function.
16068 (i386_emit_ne_goto): New function.
16069 (i386_emit_lt_goto): New function.
16070 (i386_emit_le_goto): New function.
16071 (i386_emit_gt_goto): New function.
16072 (i386_emit_ge_goto): New function.
16073 (i386_emit_ops): Add the new functions.
16074
bf15cbda
SS
160752011-09-08 Stan Shebs <stan@codesourcery.com>
16076
16077 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16078 (i386_emit_epilogue): Restore %ebx.
16079
943ca1dd
JZ
160802011-08-31 Jie Zhang <jzhang918@gmail.com>
16081
16082 * server.c (step_thread): Remove definition.
16083 (process_serial_event): Don't handle Hs.
16084 * server.h (step_thread): Remove declaration.
16085 * target.c (set_desired_inferior): Remove use of step_thread.
16086
e3deef73
LM
160872011-08-24 Luis Machado <lgustavo@codesourcery.com>
16088
16089 * linux-low.c: Include linux-procfs.h.
16090 (linux_attach_lwp_1): Update comments.
16091 (linux_attach): Scan for existing threads when attaching to a
16092 process that is the tgid.
16093 * Makefile.in: Update dependencies.
16094
13da1c97
LM
160952011-08-24 Luis Machado <lgustavo@codesourcery.com>
16096
16097 * configure.srv: Add linux-procfs.o dependencies.
16098
881127c9
YQ
160992011-08-14 Yao Qi <yao@codesourcery.com>
16100
16101 * target.h (struct target_ops): Fix indent.
16102 * win32-low.c (win32_target_ops): Fix comment.
16103
58dbd541
YQ
161042011-08-14 Andrew Jenner <andrew@codesourcery.com>
16105 Yao Qi <yao@codesourcery.com>
16106
16107 * Makefile.in (clean): Remove tic6x-*.c files.
16108 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16109 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16110 (tic6x-c64xp-linux.c): Likewise.
16111 * configure.srv: Add support for tic6x-*-uclinux.
16112 * linux-tic6x-low.c: New.
16113 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16114
78d85199
YQ
161152011-08-14 Andrew Stubbs <ams@codesourcery.com>
16116 Yao Qi <yao@codesourcery.com>
16117
16118 * target.h (struct target_ops): Add read_loadmap.
16119 * linux-low.c (struct target_loadseg): New type.
16120 (struct target_loadmap): New type.
16121 (linux_read_loadmap): New function.
16122 (linux_target_ops): Add linux_read_loadmap.
16123 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16124 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16125 to NULL.
78d85199 16126
a959a88d
EZ
161272011-08-05 Eli Zaretskii <eliz@gnu.org>
16128
16129 * win32-low.c: Include <stdint.h>.
16130
1ced966e
PA
161312011-07-22 Pedro Alves <pedro@codesourcery.com>
16132
16133 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16134 to the inferior here.
16135 (i386_remove_aligned_watchpoint): Ditto.
16136 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16137 fit part of the watchpoint in the debug registers.
16138 (i386_update_inferior_debug_regs): New.
16139 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16140 registers, and only update the inferior on success.
16141 (i386_low_remove_watchpoint): Ditto.
16142
d26e3629
KY
161432011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16144
16145 * linux-low.c (compare_ints, unique, list_threads, show_process,
16146 linux_core_of_thread): Delete.
16147 (linux_target_ops): Change linux_core_of_thread to
16148 linux_common_core_of_thread.
16149 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16150 * utils.c (malloc_failure): Change type of argument.
16151 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16152 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16153 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16154 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16155 (IPA_OBJS): Add common-utils-ipa.o.
16156 (ptid_h, linux_osdata_h): New macros.
16157 (server_h): Add common/common-utils.h, common/xml-utils.h,
16158 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16159 common/ptid.h.
16160 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16161 ptid.o, buffer.o): New rules.
16162 (linux-low.o): Add common/linux-osdata.h as a dependency.
16163 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16164 * configure.ac: Add AC_HEADER_DIRENT check.
16165 * config.in: Regenerate.
16166 * configure: Regenerate.
16167 * remote-utils.c (xml_escape_text): Delete.
16168 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16169 buffer_xml_printf): Move to common/buffer.c.
16170 * server.c (main): Remove call to initialize_inferiors.
16171 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16172 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16173 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16174 internal_error, gdb_assert, gdb_assert_fail): Delete.
16175 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16176 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16177 common/buffer.h.
16178 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16179 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16180 initialize_inferiors): Delete.
16181
2275a1a7
PA
161822011-07-20 Pedro Alves <pedro@codesourcery.com>
16183
16184 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16185 symbol error.
16186
0a5b1e09
PA
161872011-05-31 Pedro Alves <pedro@codesourcery.com>
16188
16189 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16190 assertion.
16191 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16192
6938fd34
YQ
161932011-05-26 Yao Qi <yao@codesourcery.com>
16194
16195 * Makefile.in (thread-db.o): Track dependence to
16196 common/gdb_thread_db.h.
16197 * thread-db.c: include gdb_thread_db.h from right place.
16198
b481f9e0
TT
161992011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16200
16201 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16202 __FILE__ and __LINE__ to internal_error.
16203
98a5dd13
DE
162042011-05-13 Doug Evans <dje@google.com>
16205
16206 * thread-db.c (try_thread_db_load_from_sdir): New function.
16207 (try_thread_db_load_from_dir): New function.
16208 (thread_db_load_search): Handle $sdir, ignore $pdir.
16209 Remove trying of system directories if search of
16210 libthread-db-search-path fails, that is now done via $sdir.
16211
d248b706
KY
162122011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16213
16214 * server.c (handle_query): Add EnableDisableTracepoints to the list
16215 of supported features.
43aaf8b6 16216 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16217 tracepoints.
43aaf8b6
PA
16218 (cmd_qtenable_disable): New.
16219 (cmd_qtstart): Install tracepoints even if disabled.
16220 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16221 receiving a QTEnable or QTDisable packet.
16222 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16223 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16224 tracepoints.
16225 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16226
84e578fb
DE
162272011-05-10 Doug Evans <dje@google.com>
16228
16229 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16230
71f55dd8
DE
162312011-05-04 Doug Evans <dje@google.com>
16232
16233 * linux-low.c (linux_join): Skip process lookup.
16234 * spu-low.c (spu_join): Ditto.
16235 * server.c (join_inferiors_callback): Delete.
16236 (process_serial_event): For 'D' packet (detach) call join_inferior
16237 directly.
16238
4d393d60
JM
162392011-05-04 Joseph Myers <joseph@codesourcery.com>
16240
16241 * README: Don't mention xscale*-*-linux*.
16242 * configure.srv (xscale*-*-linux*): Don't handle target.
16243
b00ad6ff
NF
162442011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16245
16246 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16247 casting pointers.
16248 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16249 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16250 (i386_emit_void_call_2): Likewise.
16251
af96c192
YQ
162522011-04-26 Yao Qi <yao@codesourcery.com>
16253
43aaf8b6
PA
16254 * linux-low.c: Move common macros to linux-ptrace.h.
16255 Include linux-ptrace.h.
af96c192
YQ
16256 * Makefile.in (linux_ptrace_h): New.
16257 (linux-low.o): Depends on linux-ptrace.h.
16258
03f2bd59
JK
162592011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16260
16261 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16262 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16263 (remote_prepare): New function with most of the TCP code from ...
16264 (remote_open): ... here. Detect PORT here unconditionally. Move also
16265 setting transport_is_reliable.
16266 * server.c (run_once): New variable.
16267 (gdbserver_usage): Document it.
16268 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16269 the first run if RUN_ONCE.
16270 * server.h (run_once, remote_prepare): New declarations.
16271
7a9dd1b2
TT
162722011-04-19 Tom Tromey <tromey@redhat.com>
16273
16274 * win32-low.c (handle_load_dll): Remove duplicate "the".
16275
81239425
PM
162762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16277
16278 Remove support for old Cygwin 1.5 versions.
16279 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16280 function to avoid warning.
16281 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16282 warning.
16283
9e0627f1
PM
162842011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16285
16286 * gdbserver/server.h (Macro _): Define it if not available.
16287
588eebee
MS
162882011-03-14 Michael Snyder <msnyder@vmware.com>
16289
348af9f7 16290 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16291
43f70d4c
JB
162922011-03-10 Joel Brobecker <brobecker@adacore.com>
16293
16294 * Makefile.in (maintainer-clean realclean distclean): Remove
16295 "make ... subdir_do" command.
16296
348af9f7
MS
162972011-03-10 Michael Snyder <msnyder@vmware.com>
16298
16299 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16300
16301 * server.c (handle_v_run): Free alloced buffer on early return.
16302
e637a4f5
YQ
163032011-03-09 Yao Qi <yao@codesourcery.com>
16304
16305 Revert:
16306 2011-03-04 Yao Qi <yao@codesourcery.com>
16307
16308 * Makefile.in: Remove GNU make feature --directory.
16309
16310 2011-03-05 Yao Qi <yao@codesourcery.com>
16311
16312 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16313 (subdir_do): New make target. Copied from gdb/Makefile.
16314 (maintainer-clean, realclean, distclean, clean): Call corresponding
16315 make targets in common/Makefile.
16316
16317 2011-02-11 Yao Qi <yao@codesourcery.com>
16318
16319 * configure.ac: Call AC_PROG_RANLIB.
16320 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16321 * configure: Regenerate.
16322
e6edda56
JK
163232011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16324
16325 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16326
e5141119
JB
163272011-03-06 Yao Qi <yao@codesourcery.com>
16328
16329 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16330
64794aa4
JB
163312011-03-05 Yao Qi <yao@codesourcery.com>
16332
16333 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16334 (subdir_do): New make target. Copied from gdb/Makefile.
16335 (maintainer-clean, realclean, distclean, clean): Call corresponding
16336 make targets in common/Makefile.
16337
7a762829
YQ
163382011-03-04 Yao Qi <yao@codesourcery.com>
16339
16340 * Makefile.in: Remove GNU make feature --directory.
16341
348af9f7
MS
163422011-03-04 Michael Snyder <msnyder@vmware.com>
16343
16344 * server.c (queue_stop_reply): Call xmalloc not malloc.
16345
163462011-03-02 Michael Snyder <msnyder@vmware.com>
16347
16348 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16349
9f72fee2
MS
163502011-02-28 Michael Snyder <msnyder@vmware.com>
16351
588eebee
MS
16352 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16353 (cmd_qtframe): Ditto.
16354 (cmd_qtbuffer): Ditto.
16355 (cmd_bigqtbuffer): Ditto.
16356
9f72fee2
MS
16357 * utils.c (decimal2str): Initialize 'width' to nine, then
16358 don't mess with it.
16359
8040bd49
UW
163602011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16361
16362 * hostio.c (require_data): Free *data, not data.
16363
7e52cbd0
JK
163642011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16365
16366 * hostio.c (require_data): Use free, not xfree.
16367
9130f83e
MS
163682011-02-27 Michael Snyder <msnyder@vmware.com>
16369
4b812f4e
MS
16370 * server.c (handle_query): Discard unused value.
16371
9130f83e
MS
16372 * hostio.c (require_data): Free malloc memory before returning
16373 error.
16374
69d37113
MS
163752011-02-26 Michael Snyder <msnyder@vmware.com>
16376
16377 * linux-low.c (list_threads): Call closedir for dirent.
16378
35f5825a
MS
163792011-02-27 Michael Snyder <msnyder@vmware.com>
16380
2a589cef
MS
16381 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16382 a case statement falls through.
16383
0adea5f7
MS
16384 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16385
35f5825a
MS
16386 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16387 in comparison.
16388
238f1c74
MS
163892011-02-26 Michael Snyder <msnyder@vmware.com>
16390
16391 * utils.c (decimal2str): Eliminate dead code and dead param.
16392 (pulongest): Drop dead param from call to decimal2str.
16393 (plongest): Ditto.
16394
633ff500
JB
163952011-02-24 Joel Brobecker <brobecker@adacore.com>
16396
16397 Revert the following patch (not approved yet):
16398 2011-02-21 Hui Zhu <teawater@gmail.com>
16399 * tracepoint.c (tp_printf): New function.
16400 (eval_agent_expr): Handle gdb_agent_op_printf.
16401
f9c6ff72
HZ
164022011-02-21 Hui Zhu <teawater@gmail.com>
16403
16404 * tracepoint.c (tp_printf): New function.
16405 (eval_agent_expr): Handle gdb_agent_op_printf.
16406
94d5e490
TT
164072011-02-18 Tom Tromey <tromey@redhat.com>
16408
16409 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16410 (tracepoint.o): Likewise.
16411 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16412 (gdb_agent_op_names): Likewise.
16413
c7f96d2b
TT
164142011-02-18 Tom Tromey <tromey@redhat.com>
16415
16416 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16417 gdb_agent_op_rot>: New constants.
16418 (gdb_agent_op_names): Add pick and roll.
16419 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16420 cases.
16421
0feedb2c
JK
164222011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16423
16424 * aclocal.m4: Regenerated with aclocal-1.11.1.
16425
b3b9301e
PA
164262011-02-14 Pedro Alves <pedro@codesourcery.com>
16427
16428 * server.c (handle_qxfer_traceframe_info): New.
16429 (qxfer_packets): Register "traceframe-info".
16430 (handle_query): Report support for qXfer:traceframe-info:read+.
16431 * tracepoint.c (match_blocktype): New.
16432 (traceframe_find_block_type): Rename to ...
16433 (traceframe_walk_blocks): ... this. Add callback filter argument,
16434 and use it.
16435 (traceframe_find_block_type): New, reimplemented on top of
16436 traceframe_walk_blocks.
16437 (build_traceframe_info_xml): New.
16438 (traceframe_read_info): New.
16439 * server.h (traceframe_read_info): Declare.
16440
4f3e6fb7
YQ
164412011-02-11 Yao Qi <yao@codesourcery.com>
16442
16443 * configure.ac: Call AC_PROG_RANLIB.
16444 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16445 * configure: Regenerate.
16446
764880b7
PA
164472011-02-07 Pedro Alves <pedro@codesourcery.com>
16448
16449 * server.c (gdb_read_memory): Change return semantics to allow
16450 partial transfers.
16451 (handle_search_memory_1): Adjust.
16452 (process_serial_event) <'m' packet>: Handle partial transfers.
16453 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16454
1c79eb8a
PA
164552011-01-28 Pedro Alves <pedro@codesourcery.com>
16456
16457 * regcache.c (init_register_cache): Initialize
16458 regcache->register_status.
16459 (free_register_cache): Release regcache->register_status.
16460 (regcache_cpy): Copy register_status.
16461 (registers_to_string): Print 'x's for unavailable registers.
16462 (supply_register): Mark the register's status valid or
16463 unavailable, depending on whether a buffer was passed in or not.
16464 (supply_register_zeroed): New.
16465 (supply_regblock): Mark the registers' status valid or
16466 unavailable, depending on whether a buffer was passed in or not.
16467 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16468 (struct regcache): New `register_status' field.
16469 (supply_register_zeroed): Declare.
16470 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16471 supply_register_zeroed, rather than passing a NULL buffer to
16472 supply_register.
16473 * tracepoint.c (fetch_traceframe_registers): Update comment.
16474
85724a0e
PA
164752011-01-28 Pedro Alves <pedro@codesourcery.com>
16476
16477 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16478 buffer explicit.
16479
d08aafef
PA
164802011-01-25 Pedro Alves <pedro@codesourcery.com>
16481
16482 * server.h (decode_xfer_write): Change prototype.
16483 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16484 and don't extract the annex here.
16485 * server.c (decode_xfer_read): Remove `annex' parameter,
16486 and don't extract the annex here.
16487 (decode_xfer): New.
16488 (struct qxfer): New.
16489 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16490 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16491 (handle_qxfer_statictrace): New functions, abstracted out from
16492 handle_query, and made to use the struct qxfer interface.
16493 (handle_threads_qxfer_proper): Rename to ...
16494 (handle_qxfer_threads_proper): ... this.
16495 (handle_threads_qxfer): Rename to ...
16496 (handle_qxfer_threads): ... this. Adjust.
16497 (qxfer_packets): New array.
16498 (handle_qxfer): New function.
16499 (handle_query): Use handle_qxfer.
16500
493e2a69
MS
165012011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16502
16503 * gdbreplay.c: Shorten lines of >= 80 columns.
16504 * linux-low.c: Ditto.
16505 * linux-ppc-low.c: Ditto.
16506 * linux-s390-low.c: Ditto.
16507 * linux-sparc-low.c: Ditto.
16508 * linux-x86-low.c: Ditto.
16509 * linux-xtensa-low.c: Ditto.
16510 * mem-break.c: Ditto.
16511 * nto-low.c: Ditto.
16512 * regcache.h: Ditto.
16513 * remote-utils.c: Ditto.
16514 * server.c: Ditto.
16515 * server.h: Ditto.
16516 * thread-db.c: Ditto.
16517 * tracepoint.c: Ditto.
16518 * utils.c: Ditto.
16519 * win32-low.h: Ditto.
16520
44944448
JB
165212011-01-05 Joel Brobecker <brobecker@adacore.com>
16522
16523 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16524 update.
16525
71ce852c
JB
165262011-01-01 Joel Brobecker <brobecker@adacore.com>
16527
16528 * server.c (gdbserver_version): Update copyright year in version
16529 output.
16530 * gdbreplay.c (gdbreplay_version): Ditto.
16531
eb826dc6
MF
165322010-12-29 Jie Zhang <jie.zhang@analog.com>
16533
16534 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16535 * linux-bfin-low.c: New file.
16536 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16537 PT_DATA_ADDR for BFIN targets.
16538 * Makefile.in (SFILES): Add linux-bfin-low.c.
16539 (clean): Remove reg-bfin.c.
16540 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16541 * README: Mention supported Blackfin targets.
16542
39ab222a
MF
165432010-12-23 Mike Frysinger <vapier@gentoo.org>
16544
16545 * .gitignore: New file.
16546
a1f2ce7d
MF
165472010-11-16 Mike Frysinger <vapier@gentoo.org>
16548
16549 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16550
f474844c
JZ
165512010-10-22 Jie Zhang <jie@codesourcery.com>
16552
16553 * Makefile.in: Add FLAGS_TO_PASS variable.
16554 (install): Remove dependency of install-only and recursively
16555 invoke make for install-only.
16556
f1048712
DE
165572010-10-04 Doug Evans <dje@google.com>
16558
16559 * Makefile.in (uninstall): Use $(DESTDIR).
16560
b53a1623
PA
165612010-09-24 Pedro Alves <pedro@codesourcery.com>
16562
e6ee044d
PA
16563 PR gdb/11842
16564
b53a1623
PA
16565 * linux-x86-low.c (compat_siginfo_from_siginfo)
16566 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16567 si_code is < 0. Check for si_code == SI_TIMER before checking for
16568 si_code < 0.
16569
fa1bd1e4
JB
165702010-09-13 Joel Brobecker <brobecker@adacore.com>
16571
16572 * lynx-i386-low.c: New file.
16573 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16574
47fac8f8
JB
165752010-09-13 Joel Brobecker <brobecker@adacore.com>
16576
16577 * lynx-low.c (ptrace_request_to_str): Remove handling for
16578 request values that have been removed in LynxOS 5.x.
16579
1adfc54d
JB
165802010-09-13 Joel Brobecker <brobecker@adacore.com>
16581
16582 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16583 <ptrace.h>
16584
c2a66c29
NS
165852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16586
16587 * configure.ac: Add --enable-inprocess-agent option.
16588 * configure: Rebuilt.
16589
32fcada3
YQ
165902010-09-06 Yao Qi <yao@codesourcery.com>
16591
16592 * linux-low.c (linux_kill): Remove unused variable.
16593 (linux_stabilize_threads): Likewise.
16594 * server.c (start_inferior): Likewise.
16595 (queue_stop_reply_callback): Likewise.
16596 * tracepoint.c (do_action_at_tracepoint): Likewise.
16597
0cccb683
YQ
165982010-09-06 Yao Qi <yao@codesourcery.com>
16599
16600 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16601 on return.
16602
423ec54c
JK
166032010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16604
16605 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16606
12ac6819
PA
166072010-09-06 Pedro Alves <pedro@codesourcery.com>
16608
16609 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16610 "$(IPA_DEPFILES)".
16611
8ed54b31
JB
166122010-09-01 Joel Brobecker <brobecker@adacore.com>
16613
16614 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16615 gdbserver/lynx-ppc-low.c: New files.
16616 * Makefile.in (lynx_low_h): New variable.
16617 (lynx-low.o, lynx-ppc-low.o): New rules.
16618 * configure.ac: On LynxOS, link with -lnetinet.
16619 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16620 * configure: regenerate.
16621
bb0116a4
JB
166222010-09-01 Joel Brobecker <brobecker@adacore.com>
16623
16624 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16625 * configure.ac: Add check for vasprintf and vsnprintf.
16626 * configure, config.in: Regenerate.
16627 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16628
a778ab81 166292010-09-01 Joel Brobecker <brobecker@adacore.com>
16630
16631 * gdbreplay.c: Move include of alloca.h up, next to include of
16632 malloc.h.
16633 * server.h: Add include of malloc.h.
16634 * mem-break.c: Remove include of malloc.h.
16635 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16636
8b034a19 166372010-09-01 Joel Brobecker <brobecker@adacore.com>
16638
16639 * Makefile.in (memmem.o): Build with -Wno-error.
16640
166412010-09-01 Joel Brobecker <brobecker@adacore.com>
16642
16643 * utils.c (xsnprintf): Make non-static.
16644 * server.h: Add xsnprintf declaration.
16645 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16646 replace calls to snprintf by calls to xsnprintf throughout.
16647
166482010-09-01 Joel Brobecker <brobecker@adacore.com>
16649
16650 * configure.ac: Add configure check for alloca.
16651 * configure, config.in: Regenerate.
16652 * server.h: Include alloca.h if it exists.
16653 * gdbreplay.c: Include alloca.h if it exists.
16654
1a981360
PA
166552010-08-28 Pedro Alves <pedro@codesourcery.com>
16656
16657 * linux-low.c (__SIGRTMIN): Define if not already defined.
16658 (linux_create_inferior): Check for __ANDROID__ rather than
16659 __SIGRTMIN.
16660 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16661 are already deferred.
16662 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16663 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16664 stopped and already has a pending signal to report.
16665 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16666 a pending signal to report or is moving out of a jump pad.
16667 (linux_init_signals): Check for __ANDROID__ rather than
16668 __SIGRTMIN.
16669
b4d51a55
PA
166702010-08-28 Pedro Alves <pedro@codesourcery.com>
16671
16672 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16673 debug_threads check. Avoid a linear search when not doing debug
16674 output.
16675
ec48365d
PA
166762010-08-27 Pedro Alves <pedro@codesourcery.com>
16677
16678 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16679 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16680 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16681 (process_event): Change local fd's type to gdb_fildes_t.
16682 (create_file_handler): Adjust prototype.
16683 (delete_file_handler): Adjust prototype.
16684 (handle_file_event): Adjust prototype. Use pfildes.
16685 (create_file_event): Adjsut prototype.
16686 * remote-utils.c (remote_desc, listen_desc): Change type to
16687 gdb_fildes_t.
16688 * server.h: New gdb_fildes_t typedef.
16689 [USE_WIN32API]: Include winsock2.h.
16690 (delete_file_handler, add_file_handler): Adjust prototypes.
16691 (pfildes): Declare.
16692 * utils.c (pfildes): New.
16693
854d88f0
PA
166942010-08-27 Pedro Alves <pedro@codesourcery.com>
16695
16696 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16697 * configure: Regenerate.
16698
0146f85b
PA
166992010-08-27 Pedro Alves <pedro@codesourcery.com>
16700
16701 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16702 (linux_done_accessing_memory): ... this.
16703 (linux_target_ops): Adjust.
16704 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16705 * nto-low.c (nto_target_ops): Adjust comment.
16706 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16707 * spu-low.c (spu_target_ops): Adjust comment.
16708 * target.h (target_ops): Rename unprepare_to_access_memory field
16709 to done_accessing_memory.
16710 (unprepare_to_access_memory): Rename to ...
16711 (done_accessing_memory): ... this.
16712
90d74c30
PA
167132010-08-26 Pedro Alves <pedro@codesourcery.com>
16714
16715 * linux-low.c (linux_prepare_to_access_memory): New.
16716 (linux_unprepare_to_access_memory): New.
16717 (linux_target_ops): Install them.
16718 * server.c (read_memory): Rename to ...
16719 (gdb_read_memory): ... this. Use
16720 prepare_to_access_memory/prepare_to_access_memory.
16721 (write_memory): Rename to ...
16722 (gdb_write_memory): ... this. Use
16723 prepare_to_access_memory/prepare_to_access_memory.
16724 (handle_search_memory_1): Adjust.
16725 (process_serial_event): Adjust.
16726 * target.h (struct target_ops): New fields
16727 prepare_to_access_memory and unprepare_to_access_memory.
16728 (prepare_to_access_memory, unprepare_to_access_memory): New.
16729 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16730 prepare_to_access_memory/prepare_to_access_memory.
16731 * nto-low.c (nto_target_ops): Adjust.
16732 * spu-low.c (spu_target_ops): Adjust.
16733 * win32-low.c (win32_target_ops): Adjust.
16734
fd467969
PA
167352010-08-26 Pedro Alves <pedro@codesourcery.com>
16736
16737 * Makefile.in (WARN_CFLAGS): Get it from configure.
16738 (WERROR_CFLAGS): New.
16739 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16740 * configure.ac: Introduce --enable-werror, which adds -Werror to
16741 the compiler command line. Enabled by default. Disable with
16742 --disable-werror. Add -Wdeclaration-after-statement
16743 Wpointer-arith and -Wformat-nonliteral to warning flags.
16744 * configure: Regenerate.
16745
331e2f5f
PA
167462010-08-26 Pedro Alves <pedro@codesourcery.com>
16747
16748 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16749
e581f2b4
PA
167502010-08-26 Pedro Alves <pedro@codesourcery.com>
16751
16752 * gdbreplay.c (remote_error): New.
16753 (gdbchar): New.
16754 (expect): Use gdbchar. Check for error reading from GDB.
16755 Clarify sync error output.
16756 (play): Check for errors writing to GDB.
16757 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16758 * remote-utils.c (getpkt): Check for errors writing to the remote
16759 descriptor.
16760
3c11dd79
PA
167612010-08-25 Pedro Alves <pedro@codesourcery.com>
16762
16763 * linux-low.c (linux_wait_1): Move non-debugging code out of
16764 `debug_threads' control.
16765
d20a8ad9
PA
167662010-08-25 Pedro Alves <pedro@codesourcery.com>
16767
16768 * linux-low.c (linux_wait_1): Don't set last_status here.
16769 * server.c (push_event, queue_stop_reply_callback): Assert we're
16770 not pushing a TARGET_WAITKIND_IGNORE event.
16771 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16772 (myresume, handle_target_event): Set the thread's last_resume_kind
16773 and last_status from the target returned status.
16774
964e4306
PA
167752010-08-25 Pedro Alves <pedro@codesourcery.com>
16776
16777 PR threads/10729
16778
16779 * linux-x86-low.c (update_debug_registers_callback): New.
16780 (i386_dr_low_set_addr): Use it.
16781 (i386_dr_low_get_addr): New.
16782 (i386_dr_low_set_control): Use update_debug_registers_callback.
16783 (i386_dr_low_get_control): New.
16784 (i386_dr_low_get_status): Adjust.
16785 * linux-low.c (linux_stop_lwp): New.
16786 * linux-low.h (linux_stop_lwp): Declare.
16787
16788 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16789 argument instead of a i386_debug_reg_state.
16790 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16791 a i386_debug_reg_state.
16792 (i386_insert_aligned_watchpoint): Adjust.
16793 (i386_remove_aligned_watchpoint): Adjust.
16794 (i386_low_stopped_data_address): Read the debug registers from the
16795 inferior instead of from the mirrors.
16796 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16797 (i386_dr_low_get_addr): Declare.
16798 (i386_dr_low_get_control): Declare.
16799 (i386_dr_low_get_status): Change prototype.
16800
16801 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16802 (i386_dr_low_get_addr): New.
16803 (i386_dr_low_get_control): New.
16804 (i386_dr_low_get_status): Adjust prototype. Return
16805 dr_status_mirror.
16806 (i386_initial_stuff): Clear dr_status_mirror and
16807 dr_control_mirror.
16808 (i386_get_thread_context): Adjust.
16809 (i386_set_thread_context): Adjust.
16810 (i386_thread_added): Adjust.
16811
5f21a75b
PA
168122010-08-24 Pedro Alves <pedro@codesourcery.com>
16813
16814 * linux-low.h (linux_thread_area): Delete declaration.
16815
3e4c1235
TS
168162010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16817
16818 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16819 after its termination.
16820
1971b033
PA
168212010-08-09 Pedro Alves <pedro@codesourcery.com>
16822
16823 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16824 (gdb_wants_all_stopped): Delete.
16825 (linux_wait_1): Don't call them.
16826 * server.c (handle_v_cont): Tag all threads as want-stopped.
16827 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16828 stopped as "client-wants-stopped".
16829
310444ac
PA
168302010-07-31 Pedro Alves <pedro@codesourcery.com>
16831
16832 * Makefile.in (signals_h): New.
16833 (server_h): Depend on it.
16834 (server.o): Don't depend on $(signals_def).
16835 (signals.o): Depend on $(signals_def).
16836
a19cae16
JK
168372010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16838
16839 * Makefile.in (signals_def): New.
16840 (server_h): Append include/gdb/signals.h and signals_def.
16841 (server.o): Append signals_def.
16842
30d50328
JK
168432010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16844
16845 * server.c (handle_target_event): Use target_signal_to_host for
16846 resume_info.sig initialization.
16847 * target.h (struct thread_resume) <sig>: New comment.
16848
5c3216e2
OS
168492010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16850
c6f46ca0
OS
16851 * server.c (handle_query): strcpy() the returned string from paddress()
16852 instead of sprintf().
5c3216e2
OS
16853 * utils.c (paddress): Return phex_nz().
16854
6bd31874
JB
168552010-07-07 Joel Brobecker <brobecker@adacore.com>
16856
16857 * server.c (handle_v_cont): Call mourn_inferior if process
16858 just exited.
16859 (myresume): Likewise.
16860
0fb4aa4b
PA
168612010-07-01 Pedro Alves <pedro@codesourcery.com>
16862
16863 Static tracepoints, and integration with UST.
16864
16865 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16866 * mem-break.c (uninsert_all_breakpoints)
16867 (reinsert_all_breakpoints): New.
16868 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16869 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16870 (gdb_agent_ust_loaded, helper_thread_id)
16871 (gdb_agent_helper_thread_id): New macros.
16872 (struct ipa_sym_addresses): Add addr_ust_loaded,
16873 addr_helper_thread_id, addr_cmd_buf.
16874 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16875 (in_process_agent_loaded_ust): New.
16876 (write_e_ust_not_loaded): New.
16877 (maybe_write_ipa_ust_not_loaded): New.
16878 (struct collect_static_trace_data_action): New.
16879 (enum tracepoint_type) <static_tracepoint>: New.
16880 (struct tracepoint) <handle>: Mention static tracepoints.
16881 (struct static_tracepoint_ctx): New.
16882 (CMD_BUF_SIZE): New.
16883 (add_tracepoint_action): Handle static tracepoint actions.
16884 (unprobe_marker_at): New.
16885 (clear_installed_tracepoints): Handle static tracepoints.
16886 (cmd_qtdp): Handle static tracepoints.
16887 (probe_marker_at): New.
16888 (cmd_qtstart): Handle static tracepoints.
16889 (response_tracepoint): Handle static tracepoints.
16890 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16891 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16892 (get_context_regcache): Handle static tracepoints.
16893 (do_action_at_tracepoint): Handle static tracepoint actions.
16894 (traceframe_find_block_type): Handle static trace data blocks.
16895 (traceframe_read_sdata): New.
16896 (download_tracepoints): Download static tracepoint actions.
16897 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16898 (GDB_PROBE_NAME): New.
16899 (ust_ops): New.
16900 (GET_UST_SYM): New.
16901 (USTF): New.
16902 (dlsym_ust): New.
16903 (ust_marker_to_static_tracepoint): New.
16904 (gdb_probe): New.
16905 (collect_ust_data_at_tracepoint): New.
16906 (gdb_ust_probe): New.
16907 (UNIX_PATH_MAX, SOCK_DIR): New.
16908 (gdb_ust_connect_sync_socket): New.
16909 (resume_thread, stop_thread): New.
16910 (run_inferior_command): New.
16911 (init_named_socket): New.
16912 (gdb_ust_socket_init): New.
16913 (cstr_to_hexstr): New.
16914 (next_st): New.
16915 (first_marker, next_marker): New.
16916 (response_ust_marker): New.
16917 (cmd_qtfstm, cmd_qtsstm): New.
16918 (unprobe_marker_at, probe_marker_at): New.
16919 (cmd_qtstmat, gdb_ust_thread): New.
16920 (gdb_ust_init): New.
16921 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16922 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16923 (ST_REGENTRY): New.
16924 (x86_64_st_collect_regmap): New.
16925 (X86_64_NUM_ST_COLLECT_GREGS): New.
16926 (AMD64_RIP_REGNUM): New.
16927 (supply_static_tracepoint_registers): New.
16928 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16929 (ST_REGENTRY): New.
16930 (i386_st_collect_regmap): New.
16931 (i386_NUM_ST_COLLECT_GREGS): New.
16932 (supply_static_tracepoint_registers): New.
16933 * server.c (handle_query): Handle qXfer:statictrace:read.
16934 <qSupported>: Report support for StaticTracepoints, and
16935 qXfer:statictrace:read features.
16936 * server.h (traceframe_read_sdata)
16937 (supply_static_tracepoint_registers): Declare.
16938 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16939 (unpack_varlen_hex): Include in IPA build.
16940 * Makefile.in (ustlibs, ustinc): New.
16941 (IPA_OBJS): Add remote-utils-ipa.o.
16942 ($(IPA_LIB)): Link -ldl and -lpthread.
16943 (UST_CFLAGS): New.
16944 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16945 * config.in, configure: Regenerate.
16946
9e4344e5
PA
169472010-06-20 Ian Lance Taylor <iant@google.com>
16948 Pedro Alves <pedro@codesourcery.com>
16949
16950 * linux-x86-low.c (always_true): Delete.
16951 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16952 trying to fool the compiler with always_true.
16953
c6beb2cb
PA
169542010-06-20 Pedro Alves <pedro@codesourcery.com>
16955
16956 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16957 conditions in gdbserver.
16958
d2ed6730
UW
169592010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16960
16961 * spu-low.c (spu_read_memory): Wrap around local store limit.
16962 (spu_write_memory): Likewise.
16963
4e29fb54
PA
169642010-06-15 Pedro Alves <pedro@codesourcery.com>
16965
16966 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16967 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16968 LONGEST uses.
16969 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16970 uses.
16971 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16972 uses with LONGEST uses.
16973
6a271cae
PA
169742010-06-14 Stan Shebs <stan@codesourcery.com>
16975 Pedro Alves <pedro@codesourcery.com>
16976
16977 Bytecode compiler.
16978
16979 * linux-x86-low.c: Include limits.h.
16980 (add_insns): New.
16981 (always_true): New.
16982 (EMIT_ASM): New.
16983 (EMIT_ASM32): New.
16984 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16985 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16986 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16987 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16988 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16989 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16990 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16991 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16992 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16993 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16994 (amd64_emit_void_call_2): New.
16995 (amd64_emit_ops): New.
16996 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16997 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16998 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16999 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17000 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17001 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17002 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17003 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17004 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17005 (i386_emit_stack_adjust, i386_emit_int_call_1)
17006 (i386_emit_void_call_2): New.
17007 (i386_emit_ops): New.
17008 (x86_emit_ops): New.
17009 (the_low_target): Install x86_emit_ops.
17010 * server.h (struct emit_ops): New.
17011 (get_raw_reg_func_addr): Declare.
17012 (current_insn_ptr, emit_error): Declare.
17013 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17014 (set_trace_state_variable_value): New defines.
17015 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17016 addr_get_trace_state_variable_value and
17017 addr_set_trace_state_variable_value.
17018 (symbol_list): New fields for get_raw_reg,
17019 get_trace_state_variable_value and set_trace_state_variable_value.
17020 (condfn): New typedef.
17021 (struct tracepoint): New field `compiled_cond'.
17022 (do_action_at_tracepoint): Clear compiled_cond.
17023 (get_trace_state_variable_value, set_trace_state_variable_value):
17024 Export in the IPA.
17025 (condition_true_at_tracepoint): If there's a compiled condition,
17026 run that.
17027 (current_insn_ptr, emit_error): New globals.
17028 (struct bytecode_address): New.
17029 (get_raw_reg_func_addr): New.
17030 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17031 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17032 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17033 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17034 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17035 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17036 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17037 (compile_tracepoint_condition, compile_bytecodes): New.
17038 * target.h (emit_ops): Forward declare.
17039 (struct target_ops): New field emit_ops.
17040 (target_emit_ops): New.
17041 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17042 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17043 * linux-low.c (linux_emit_ops): New.
17044 (linux_target_ops): Install it.
17045 * linux-low.h (struct linux_target_ops): New field emit_ops.
17046
92b72907
UW
170472010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17048
17049 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17050 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17051
fa593d66
PA
170522010-06-01 Pedro Alves <pedro@codesourcery.com>
17053 Stan Shebs <stan@codesourcery.com>
17054
17055 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17056 (all): Depend on $(extra_libraries).
17057 (install-only): Install the IPA.
17058 (IPA_OBJS, IPA_LIB): New.
17059 (clean): Remove the IPA lib.
17060 (IPAGENT_CFLAGS): New.
17061 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17062 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17063 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17064 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17065 * configure.ac: Check for atomic builtins support in the compiler.
17066 (IPA_DEPFILES, extra_libraries): Define.
17067 * configure.srv (ipa_obj): Add description.
17068 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17069 (i[34567]86-*-linux*): Set ipa_obj.
17070 (x86_64-*-linux*): Set ipa_obj.
17071 * linux-low.c (stabilizing_threads): New.
17072 (supports_fast_tracepoints): New.
17073 (linux_detach): Stabilize threads before detaching.
17074 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17075 the lwp is either not stabilizing, or is moving out of a jump pad.
17076 (linux_fast_tracepoint_collecting): New.
17077 (maybe_move_out_of_jump_pad): New.
17078 (enqueue_one_deferred_signal): New.
17079 (dequeue_one_deferred_signal): New.
17080 (linux_wait_for_event_1): If moving out of a jump pad, defer
17081 pending signals to later.
17082 (linux_stabilize_threads): New.
17083 (linux_wait_1): Check if threads need moving out of jump pads, and
17084 do it if so.
17085 (stuck_in_jump_pad_callback): New.
17086 (move_out_of_jump_pad_callback): New.
17087 (lwp_running): New.
17088 (linux_resume_one_lwp): Handle moving out of jump pads.
17089 (linux_set_resume_request): Dequeue deferred signals.
17090 (need_step_over_p): Also step over fast tracepoint jumps.
17091 (start_step_over): Also uninsert fast tracepoint jumps.
17092 (finish_step_over): Also reinsert fast tracepoint jumps.
17093 (linux_install_fast_tracepoint_jump): New.
17094 (linux_target_ops): Install linux_stabilize_threads and
17095 linux_install_fast_tracepoint_jump_pad.
17096 * linux-low.h (linux_target_ops) <get_thread_area,
17097 install_fast_tracepoint_jump_pad>: New fields.
17098 (struct lwp_info) <collecting_fast_tracepoint,
17099 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17100 (linux_get_thread_area): Declare.
17101 * linux-x86-low.c (jump_insn): New.
17102 (x86_get_thread_area): New.
17103 (append_insns): New.
17104 (push_opcode): New.
17105 (amd64_install_fast_tracepoint_jump_pad): New.
17106 (i386_install_fast_tracepoint_jump_pad): New.
17107 (x86_install_fast_tracepoint_jump_pad): New.
17108 (the_low_target): Install x86_get_thread_area and
17109 x86_install_fast_tracepoint_jump_pad.
17110 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17111 (struct fast_tracepoint_jump): New.
17112 (fast_tracepoint_jump_insn): New.
17113 (fast_tracepoint_jump_shadow): New.
17114 (find_fast_tracepoint_jump_at): New.
17115 (fast_tracepoint_jump_here): New.
17116 (delete_fast_tracepoint_jump): New.
17117 (set_fast_tracepoint_jump): New.
17118 (uninsert_fast_tracepoint_jumps_at): New.
17119 (reinsert_fast_tracepoint_jumps_at): New.
17120 (set_breakpoint_at): Use write_inferior_memory.
17121 (uninsert_raw_breakpoint): Use write_inferior_memory.
17122 (check_mem_read): Mask out fast tracepoint jumps.
17123 (check_mem_write): Mask out fast tracepoint jumps.
17124 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17125 (set_fast_tracepoint_jump): Declare.
17126 (delete_fast_tracepoint_jump)
17127 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17128 (reinsert_fast_tracepoint_jumps_at): Declare.
17129 * regcache.c: Don't compile many functions when building the
17130 in-process agent library.
17131 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17132 the register buffer in the heap.
17133 (free_register_cache): If the register buffer isn't owned by the
17134 regcache, don't free it.
17135 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17136 pre-existing register caches.
17137 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17138 type.
17139 (convert_ascii_to_int): : Constify `from' parameter type.
17140 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17141 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17142 the needed buffer in-place.
17143 (relocate_instruction): New.
17144 * server.c (handle_query) <qSymbols>: If the target supports
17145 tracepoints, give it a chance of looking up symbols. Report
17146 support for fast tracepoints.
17147 (handle_status): Stabilize threads.
17148 (process_serial_event): Adjust.
17149 * server.h (struct fast_tracepoint_jump): Forward declare.
17150 (struct process_info) <fast_tracepoint_jumps>: New field.
17151 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17152 (decode_X_packet, decode_M_packet): Adjust.
17153 (relocate_instruction): Declare.
17154 (in_process_agent_loaded): Declare.
17155 (tracepoint_look_up_symbols): Declare.
17156 (struct fast_tpoint_collect_status): Declare.
17157 (fast_tracepoint_collecting): Declare.
17158 (force_unlock_trace_buffer): Declare.
17159 (handle_tracepoint_bkpts): Declare.
17160 (initialize_low_tracepoint)
17161 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17162 * target.h (struct target_ops) <stabilize_threads,
17163 install_fast_tracepoint_jump_pad>: New fields.
17164 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17165 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17166 [HAVE_STDINT_H]: Include stdint.h.
17167 (trace_debug_1): Rename to ...
17168 (trace_vdebug): ... this.
17169 (trace_debug): Rename to ...
17170 (trace_debug_1): ... this. Add `level' parameter.
17171 (trace_debug): New.
17172 (ATTR_USED, ATTR_NOINLINE): New.
17173 (IP_AGENT_EXPORT): New.
17174 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17175 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17176 (about_to_request_buffer_space, trace_buffer_is_full)
17177 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17178 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17179 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17180 (traceframe_write_count, traceframes_created)
17181 (trace_state_variables)
17182 New renaming defines.
17183 (struct ipa_sym_addresses): New.
17184 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17185 (symbol_list): New.
17186 (ipa_sym_addrs): New.
17187 (all_tracepoint_symbols_looked_up): New.
17188 (in_process_agent_loaded): New.
17189 (write_e_ipa_not_loaded): New.
17190 (maybe_write_ipa_not_loaded): New.
17191 (tracepoint_look_up_symbols): New.
17192 (debug_threads) [IN_PROCESS_AGENT]: New.
17193 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17194 (UNKNOWN_SIDE_EFFECTS): New.
17195 (stop_tracing): New.
17196 (flush_trace_buffer): New.
17197 (stop_tracing_bkpt): New.
17198 (flush_trace_buffer_bkpt): New.
17199 (read_inferior_integer): New.
17200 (read_inferior_uinteger): New.
17201 (read_inferior_data_pointer): New.
17202 (write_inferior_data_pointer): New.
17203 (write_inferior_integer): New.
17204 (write_inferior_uinteger): New.
17205 (struct collect_static_trace_data_action): Delete.
17206 (enum tracepoint_type): New.
17207 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17208 <actions_str, step_actions, step_actions_str>: Only include in
17209 GDBserver.
fa593d66
PA
17210 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17211 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17212 (tracepoints): Use IP_AGENT_EXPORT.
17213 (last_tracepoint): Don't include in the IPA.
17214 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17215 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17216 (alloced_trace_state_variables): New.
17217 (trace_state_variables): Use IP_AGENT_EXPORT.
17218 (traceframe_t): Delete unused variable.
17219 (circular_trace_buffer): Don't include in the IPA.
17220 (trace_buffer_start): Delete.
17221 (struct trace_buffer_control): New.
17222 (trace_buffer_free): Delete.
17223 (struct ipa_trace_buffer_control): New.
17224 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17225 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17226 New.
17227 (trace_buffer_ctrl): New.
17228 (TRACE_BUFFER_CTRL_CURR): New.
17229 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17230 Reimplement as macros.
17231 (trace_buffer_wrap): Delete.
17232 (traceframe_write_count, traceframe_read_count)
17233 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17234 (struct tracepoint_hit_ctx) <type>: New field.
17235 (struct fast_tracepoint_ctx): New.
17236 (memory_barrier): New.
17237 (cmpxchg): New.
17238 (record_tracepoint_error): Update atomically in the IPA.
17239 (clear_inferior_trace_buffer): New.
17240 (about_to_request_buffer_space): New.
17241 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17242 updating the same buffer.
17243 (add_tracepoint): Default the tracepoint's type to trap
17244 tracepoint, and orig_size to -1.
17245 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17246 internal variables.
17247 (create_trace_state_variable): New parameter `gdb'. Handle it.
17248 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17249 (cmd_qtdp): Handle fast tracepoints.
17250 (cmd_qtdv): Adjust.
17251 (max_jump_pad_size): New.
17252 (gdb_jump_pad_head): New.
17253 (get_jump_space_head): New.
17254 (claim_jump_space): New.
17255 (sort_tracepoints): New.
17256 (MAX_JUMP_SIZE): New.
17257 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17258 IPA.
17259 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17260 support. Upload fast traceframes, and delete internal IPA
17261 breakpoints.
17262 (stop_tracing_handler): New.
17263 (flush_trace_buffer_handler): New.
17264 (cmd_qtstop): Upload fast tracepoints.
17265 (response_tracepoint): Handle fast tracepoints.
17266 (tracepoint_finished_step): Upload fast traceframes. Set the
17267 tracepoint hit context's tracepoint type.
17268 (handle_tracepoint_bkpts): New.
17269 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17270 type. Add comment about fast tracepoints.
17271 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17272 non-existing action_str field.
17273 (get_context_regcache): Handle fast tracepoints.
17274 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17275 to the regcache.
17276 (fast_tracepoint_from_jump_pad_address): New.
17277 (fast_tracepoint_from_ipa_tpoint_address): New.
17278 (collecting_t): New.
17279 (force_unlock_trace_buffer): New.
17280 (fast_tracepoint_collecting): New.
17281 (collecting): New.
17282 (gdb_collect): New.
17283 (write_inferior_data_ptr): New.
17284 (target_tp_heap): New.
17285 (target_malloc): New.
17286 (download_agent_expr): New.
17287 (UALIGN): New.
17288 (download_tracepoints): New.
17289 (download_trace_state_variables): New.
17290 (upload_fast_traceframes): New.
17291 (IPA_FIRST_TRACEFRAME): New.
17292 (IPA_NEXT_TRACEFRAME_1): New.
17293 (IPA_NEXT_TRACEFRAME): New.
17294 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17295 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17296 (gdb_jump_pad_buffer_end): New.
17297 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17298 (initialize_tracepoint): Adjust.
17299 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17300 buffer. Initialize the low module.
17301 * utils.c (PREFIX, TOOLNAME): New.
17302 (malloc_failure): Use PREFIX.
17303 (error): In the IPA, an error causes an exit.
17304 (fatal, warning): Use PREFIX.
17305 (internal_error): Use TOOLNAME.
17306 (NUMCELLS): Increase to 10.
17307 * configure, config.in: Regenerate.
17308
d149dd1d
PA
173092010-06-01 Pedro Alves <pedro@codesourcery.com>
17310
17311 * server.c (handle_query) <qSupported>: Do two passes over the
17312 qSupported string to avoid nesting strtok.
17313
f6528abd
JK
173142010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17315
17316 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17317 (CDEPS): New.
17318 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17319 -Wl,--dynamic-list.
17320 * configure: Regenerate.
17321 * proc-service.list: New.
17322
ca2a87a0
JK
173232010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17324
17325 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17326 New comment.
17327
363a6e9f
OS
173282010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17329
17330 * gdbreplay.c (remote_open): Check error return from socket() call by
17331 its equality to -1 not by it being negative.
17332 * remote-utils.c (remote_open): Likewise.
17333
d23b6cb1
PA
173342010-05-23 Pedro Alves <pedro@codesourcery.com>
17335
17336 * config.h: Regenerate.
17337
28d3cf85
MK
173382010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17339
17340 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17341 doesn't provide PTRACE_GET_THREAD_AREA.
17342
fea36a59
MK
173432010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17344
17345 * linux-m68k-low.c: Include <asm/ptrace.h>
17346 (ps_get_thread_area): Implement.
17347
24b066ba
DE
173482010-05-03 Doug Evans <dje@google.com>
17349
17350 * event-loop.c (struct callback_event): New struct.
17351 (callback_list): New global.
17352 (append_callback_event, delete_callback_event): New functions.
17353 (process_callback): New function.
17354 (start_event_loop): Call it.
17355 * remote-utils.c (NOT_SCHEDULED): Define.
17356 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17357 moved out of readchar.
17358 (readchar): Rewrite. Call reschedule before returning.
17359 (reset_readchar): New function.
17360 (remote_close): Call it.
17361 (process_remaining, reschedule): New functions.
17362 * server.h (callback_handler_func): New typedef.
17363 (append_callback_event, delete_callback_event): Declare.
17364
9836d6ea
PA
173652010-05-03 Pedro Alves <pedro@codesourcery.com>
17366
17367 * proc-service.c (ps_pglobal_lookup): Use
17368 thread_db_look_up_one_symbol.
17369 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17370 parameter. Use it instead of all_symbols_looked_up.
17371 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17372 field.
17373 (all_symbols_looked_up): Don't declare.
17374 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17375 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17376 field.
17377 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17378 Set all_symbols_looked_up here.
17379 (thread_db_look_up_one_symbol): New.
17380 (thread_db_get_tls_address): Adjust.
17381 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17382 thread_db object on the heap, and tentatively set it in the
17383 process structure.
17384 (thread_db_init): Don't set all_symbols_looked_up here.
17385 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17386
7984d532
PA
173872010-05-03 Pedro Alves <pedro@codesourcery.com>
17388
17389 * linux-low.c (linux_kill, linux_detach): Adjust.
17390 (status_pending_p_callback): Remove redundant statement. Check
17391 for !TARGET_WAITIKIND_IGNORE, instead of
17392 TARGET_WAITKIND_STOPPED.
17393 (handle_tracepoints): Make sure LWP is locked. Adjust.
17394 (linux_wait_for_event_1): Adjust.
17395 (linux_cancel_breakpoints): New.
17396 (unsuspend_one_lwp): New.
17397 (unsuspend_all_lwps): New.
17398 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17399 (send_sigstop_callback): Change return type to int, add new
17400 `except' parameter and handle it.
17401 (suspend_and_send_sigstop_callback): New.
17402 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17403 pass them down. If SUSPEND, also increment the lwp's suspend
17404 count.
17405 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17406 (need_step_over_p): Don't consider suspended LWPs.
17407 (start_step_over): Adjust.
17408 (proceed_one_lwp): Change return type to int, add new `except'
17409 parameter and handle it.
17410 (unsuspend_and_proceed_one_lwp): New.
17411 (proceed_all_lwps): Use find_inferior instead of
17412 for_each_inferior.
17413 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17414 also decrement the suspend count of LWPs. Pass `except' down,
17415 instead of hacking its suspend count.
17416 (linux_pause_all): Add `freeze' parameter. Adjust.
17417 (linux_unpause_all): New.
17418 (linux_target_ops): Install linux_unpause_all.
17419 * server.c (handle_status): Adjust.
17420 * target.h (struct target_ops): New fields `unpause_all' and
17421 `cancel_breakpoints'. Add new parameter to `pause_all'.
17422 (pause_all): Add new `freeze' parameter.
17423 (unpause_all): New.
17424 (cancel_breakpoints): New.
17425 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17426 cancel breakpoints.
17427 (cmd_qtstart): Pause threads.
17428 (stop_tracing): Pause threads, and cancel breakpoints.
17429 * win32-low.c (win32_target_ops): Adjust.
17430
e471f25b
PA
174312010-05-03 Pedro Alves <pedro@codesourcery.com>
17432
17433 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17434 the inferior right away from here...
17435 (linux_wait_1): ... to here, and adjust to check the thread's
17436 last_resume_kind instead of the lwp's step or stop_expected flags.
17437
1915ef4f
PA
174382010-05-02 Pedro Alves <pedro@codesourcery.com>
17439
17440 * README: Use consistent `GDB' and `GDBserver' spellings.
17441
f9e39928
PA
174422010-05-02 Pedro Alves <pedro@codesourcery.com>
17443
17444 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17445 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17446 (linux_detach_one_lwp): Assume the lwp is stopped.
17447 (any_thread_of): Delete.
17448 (linux_detach): Stop all lwps here. Don't blindly delete all
17449 breakpoints.
17450 (delete_lwp_callback): New.
17451 (linux_mourn): Delete all lwps of the process that is gone.
17452 (linux_wait_1): Don't delete the last lwp of the process here.
17453 * mem-break.h (mark_breakpoints_out): Declare.
17454 * mem-break.c (mark_breakpoints_out): New.
17455 (free_all_breakpoints): Use it.
17456 * server.c (handle_target_event): If the process is gone, mark
17457 breakpoints out.
17458 * thread-db.c (struct thread_db) <create_bp>: New field.
17459 (thread_db_enable_reporting): Fix prototype. Store a thread event
17460 breakpoint reference in the thread_db struct.
17461 (thread_db_load_search): Clear the thread_db object.
17462 (try_thread_db_load_1): Ditto.
17463 (switch_to_process): New.
17464 (disable_thread_event_reporting): Use it.
17465 (remove_thread_event_breakpoints): New.
17466 (thread_db_detach, thread_db_mourn): Use it.
17467
1e7fc18c
PA
174682010-05-01 Pedro Alves <pedro@codesourcery.com>
17469
17470 * linux-low.c (linux_enable_event_reporting): New.
17471 (linux_wait_for_event_1, handle_extended_wait): Use it.
17472
02fc4de7
PA
174732010-04-30 Pedro Alves <pedro@codesourcery.com>
17474
17475 * linux-low.c (linux_kill_one_lwp, linux_kill)
17476 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17477 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17478 SIGSTOP even if the LWP is stopped.
17479 (send_sigstop_callback): New.
17480 (stop_all_lwps): Use send_sigstop_callback instead.
17481 (linux_resume_one_thread): Adjust.
17482 (proceed_one_lwp): Still proceed an LWP that the client has
17483 requested to stop, if we haven't reported it as stopped yet. Make
17484 sure that LWPs the client want stopped, have a pending SIGSTOP.
17485
bc3b5632
DE
174862010-04-26 Doug Evans <dje@google.com>
17487
ae1ada35
DE
17488 * server.c (handle_general_set): Make static.
17489
bc3b5632
DE
17490 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17491 Print received char after testing for error/eof instead of before.
17492 (input_interrupt): Tweak comment.
17493
65730243
DE
174942010-04-23 Doug Evans <dje@google.com>
17495
17496 * server.c (start_inferior): Print inferior argv if --debug.
17497
a8ae7dc0
AR
174982010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17499
17500 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17501 * nto-x86-low.c: Include server.h
17502
1c07cc19
PM
175032010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17504
17505 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17506 be consistent with other sources of this directory.
17507 (init_registers_amd64): Correct name of source file of this function
17508 in the comment.
17509
e0a61e09
PM
175102010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17511
17512 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17513 64-bit executables.
17514
54709339
PM
175152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17516
17517 * win32-i386-low.c: Add 64-bit support.
17518 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17519 (init_registers_amd64): Declare.
17520 (mappings): Add 64-bit version of array.
17521 (init_windows_x86): New function.
17522 (the_low_target): Change init_arch field to init_windows_x86.
17523
e8f0053d
PM
175242010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17525
17526 * win32-low.c: Adapt to support also 64-bit architecture.
17527 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17528 (get_image_name): Use SIZE_T type for local variable `done'.
17529 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17530 (toolhelp_get_dll_name): Idem.
17531 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17532 Use uintptr_t typecast to avoid warning.
17533 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17534 (handle_exception): Use phex_nz to avoid warning.
17535 (win32_wait): Remove unused local variable `process'.
17536
c481e77e
PM
175372010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17538
17539 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17540 `amd64-avx.o'.
17541
12ea4b69
PM
175422010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17543
17544 * configure.ac: Use `ws2_32' library for srv_mingw.
17545 * configure: Regenerate.
17546 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17547 * remote-utils.c: Likewise.
17548
f6d1620c
L
175492010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17550
17551 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17552 if __x86_64__ is defined.
17553
8e642873
PM
175542010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17555
17556 * configure: Regenerate.
17557
711e434b
PM
175582010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17559
17560 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17561 * target.h (target_ops): New get_tib_address field.
17562 * win32-low.h (win32_thread_info): Add thread_local_base field.
17563 * win32-low.c (child_add_thread): Add tlb argument.
17564 Set thread_local_base field to TLB.
17565 (get_child_debug_event): Adapt to child_add_thread change.
17566 (win32_get_tib_address): New function.
17567 (win32_target_ops): Set get_tib_address field to
17568 win32_get_tib_address.
17569 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17570
505106cd
PA
175712010-04-12 Pedro Alves <pedro@codesourcery.com>
17572
505106cd
PA
17573 * linux-low.c (linux_mourn): Also remove the process.
17574 * server.c (handle_target_event): Don't remove the process here.
17575 * nto-low.c (nto_mourn): New.
17576 (nto_target_ops): Install it.
17577 * spu-low.c (spu_mourn): New.
17578 (spu_target_ops): Install it.
17579 * win32-low.c (win32_mourn): New.
17580 (win32_target_ops): Install it.
17581
e8470a06
PA
175822010-04-12 Pedro Alves <pedro@codesourcery.com>
17583
17584 * server.h (buffer_xml_printf): Remove redundant `;'.
17585
45ba0d02
PA
175862010-04-12 Pedro Alves <pedro@codesourcery.com>
17587
17588 * regcache.c (set_register_cache): Invalidate regcaches before
17589 changing the register cache layout.
17590 (regcache_invalidate_one): Allow a NULL regcache.
17591 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17592 regcaches before changing the register cache layout or the target
17593 regsets.
17594
59e04013
L
175952010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17596
17597 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17598 variable warning on Linux/x86-64.
17599
8336d594
PA
176002010-04-11 Pedro Alves <pedro@codesourcery.com>
17601
17602 GDBserver disconnected tracing support.
17603
17604 * linux-low.c (linux_remove_process): Delete.
17605 (add_lwp): Don't set last_resume_kind here.
17606 (linux_kill): Use `mourn'.
17607 (linux_detach): Use `thread_db_detach', and `mourn'.
17608 (linux_mourn): New.
17609 (linux_attach_lwp_1): Adjust comment.
17610 (linux_attach): last_resume_kind moved the thread_info; adjust.
17611 (status_pending_p_callback): Adjust.
17612 (linux_wait_for_event_1): Adjust.
17613 (count_events_callback, select_singlestep_lwp_callback)
17614 (select_event_lwp_callback, cancel_breakpoints_callback)
17615 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17616 (proceed_one_lwp): Adjust.
17617 (linux_async): Add debug output.
17618 (linux_thread_stopped): New.
17619 (linux_pause_all): New.
17620 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17621 linux_pause_all.
17622 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17623 (thread_db_free): Delete declaration.
17624 (thread_db_detach, thread_db_mourn): Declare.
17625 * thread-db.c (thread_db_init): Use thread_db_mourn.
17626 (thread_db_free): Delete, split in two.
17627 (disable_thread_event_reporting): New.
17628 (thread_db_detach): New.
17629 (thread_db_mourn): New.
17630
17631 * server.h (struct thread_info) <last_resume_kind>: New field.
17632 <attached>: Add comment.
17633 <gdb_detached>: New field.
17634 (handler_func): Change return type to int.
17635 (handle_serial_event, handle_target_event): Ditto.
17636 (gdb_connected): Declare.
17637 (tracing): Delete.
17638 (disconnected_tracing): Declare.
17639 (stop_tracing): Declare.
17640
17641 * server.c (handle_query) <qSupported>: Report support for
17642 disconnected tracing.
17643 (queue_stop_reply_callback): Account for running threads.
17644 (gdb_wants_thread_stopped): New.
17645 (gdb_wants_all_threads_stopped): New.
17646 (gdb_reattached_process): New.
17647 (handle_status): Clear the `gdb_detached' flag of all processes.
17648 In all-stop, stop all threads.
17649 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17650 (process_serial_event): If the remote connection breaks, or if an
17651 exit was forced with "monitor exit", force an event loop exit.
17652 Handle disconnected tracing on detach.
17653 (handle_serial_event): Adjust.
17654 (handle_target_event): If GDB isn't connected, forward events back
17655 to the inferior, unless the last process exited, in which case,
17656 exit gdbserver. Adjust interface.
17657
17658 * remote-utils.c (remote_open): Don't block in accept. Instead
17659 register an event loop source on the listen socket file
17660 descriptor. Refactor bits into ...
17661 (listen_desc): ... this new global.
17662 (gdb_connected): ... this new function.
17663 (enable_async_notification): ... this new function.
17664 (handle_accept_event): ... this new function.
17665 (remote_close): Clear remote_desc.
17666
17667 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17668
17669 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17670 New fields.
17671 (mourn_inferior): Define.
17672 (target_process_qsupported): Avoid the dangling else problem.
17673 (thread_stopped): Define.
17674 (pause_all): Define.
17675 (target_waitstatus_to_string): Declare.
17676 * target.c (target_waitstatus_to_string): New.
17677
17678 * tracepoint.c (tracing): Make extern.
17679 (disconnected_tracing): New.
17680 (stop_tracing): Make extern. Handle tracing stops due to GDB
17681 disconnecting.
17682 (cmd_qtdisconnected): New.
17683 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17684 (handle_tracepoint_general_set): Handle QTDisconnected.
17685
17686 * event-loop.c (event_handler_func): Change return type to int.
17687 (process_event): Bail out if the event handler wants the event
17688 loop to stop.
17689 (handle_file_event): Ditto.
17690 (start_event_loop): Bail out if the event handler wants the event
17691 loop to stop.
17692
17693 * nto-low.c (nto_target_ops): Adjust.
17694 * spu-low.c (spu_wait): Don't remove the process here.
17695 (spu_target_ops): Adjust.
17696 * win32-low.c (win32_wait): Don't remove the process here.
17697 (win32_target_ops): Adjust.
17698
5d267c4c
PA
176992010-04-11 Pedro Alves <pedro@codesourcery.com>
17700
17701 * regcache.c (realloc_register_cache): Invalidate inferior's
17702 regcache before recreating it.
17703
623ccd72
PA
177042010-04-09 Pedro Alves <pedro@codesourcery.com>
17705
17706 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17707
219f2f23
PA
177082010-04-09 Stan Shebs <stan@codesourcery.com>
17709 Pedro Alves <pedro@codesourcery.com>
17710
17711 * server.h (LONGEST): New.
17712 (struct thread_info) <while_stepping>: New field.
17713 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17714 Declare.
17715 (initialize_tracepoint, handle_tracepoint_general_set)
17716 (handle_tracepoint_query, tracepoint_finished_step)
17717 (tracepoint_was_hit, release_while_stepping_state_list):
17718 (current_traceframe): Declare.
17719 * server.c (handle_general_set): Handle tracepoint packets.
17720 (read_memory): New.
17721 (write_memory): New.
17722 (handle_search_memory_1): Use read_memory.
17723 (handle_query): Report support for conditional tracepoints, trace
17724 state variables, and tracepoint sources. Handle tracepoint
17725 queries.
17726 (main): Initialize the tracepoints module.
17727 (process_serial_event): Handle traceframe reads/writes.
17728
17729 * linux-low.c (handle_tracepoints): New.
17730 (linux_wait_1): Call it.
17731 (linux_resume_one_lwp): Handle while-stepping.
17732 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17733 (linux_target_ops): Install them.
17734 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17735 New field.
17736 * linux-x86-low.c (x86_supports_tracepoints): New.
17737 (the_low_target). Install it.
17738
17739 * mem-break.h (delete_breakpoint): Declare.
17740 * mem-break.c (delete_breakpoint): Make external.
17741
17742 * target.h (struct target_ops): Add `supports_tracepoints',
17743 `read_pc', and `write_pc' fields.
17744 (target_supports_tracepoints): Define.
17745 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17746 (phex_nz): New.
17747
17748 * regcache.h (struct regcache) <registers_owned>: New field.
17749 (init_register_cache, regcache_cpy): Declare.
17750 (regcache_read_pc, regcache_write_pc): Declare.
17751 (register_cache_size): Declare.
17752 (supply_regblock): Declare.
17753 * regcache.c (init_register_cache): New.
17754 (new_register_cache): Use it.
17755 (regcache_cpy): New.
17756 (register_cache_size): New.
17757 (supply_regblock): New.
17758 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17759
219f2f23
PA
17760 * tracepoint.c: New.
17761
17762 * Makefile.in (OBS): Add tracepoint.o.
17763 (tracepoint.o): New rule.
17764
3a13a53b
L
177652010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17766
17767 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17768 (i386-mmx.o): New.
17769 (i386-mmx.c): Likewise.
17770 (i386-mmx-linux.o): Likewise.
17771 (i386-mmx-linux.c): Likewise.
17772
17773 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17774 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17775 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17776 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17777
17778 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17779 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17780 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17781
1570b33e
L
177822010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17783
17784 * Makefile.in (clean): Updated.
17785 (i386-avx.o): New.
17786 (i386-avx.c): Likewise.
17787 (i386-avx-linux.o): Likewise.
17788 (i386-avx-linux.c): Likewise.
17789 (amd64-avx.o): Likewise.
17790 (amd64-avx.c): Likewise.
17791 (amd64-avx-linux.o): Likewise.
17792 (amd64-avx-linux.c): Likewise.
17793
17794 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17795 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17796 (srv_amd64_regobj): Add amd64-avx.o.
17797 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17798 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17799 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17800 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17801 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17802 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17803 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17804
17805 * i387-fp.c: Include "i386-xstate.h".
17806 (i387_xsave): New.
17807 (i387_cache_to_xsave): Likewise.
17808 (i387_xsave_to_cache): Likewise.
17809 (x86_xcr0): Likewise.
17810
17811 * i387-fp.h (i387_cache_to_xsave): Likewise.
17812 (i387_xsave_to_cache): Likewise.
17813 (x86_xcr0): Likewise.
17814
17815 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17816 * linux-crisv32-low.c (target_regsets): Likewise.
17817 * linux-m68k-low.c (target_regsets): Likewise.
17818 * linux-mips-low.c (target_regsets): Likewise.
17819 * linux-ppc-low.c (target_regsets): Likewise.
17820 * linux-s390-low.c (target_regsets): Likewise.
17821 * linux-sh-low.c (target_regsets): Likewise.
17822 * linux-sparc-low.c (target_regsets): Likewise.
17823 * linux-xtensa-low.c (target_regsets): Likewise.
17824
17825 * linux-low.c: Include <sys/uio.h>.
17826 (regsets_fetch_inferior_registers): Support nt_type.
17827 (regsets_store_inferior_registers): Likewise.
17828 (linux_process_qsupported): New.
17829 (linux_target_ops): Add linux_process_qsupported.
17830
17831 * linux-low.h (regset_info): Add nt_type.
17832 (linux_target_ops): Add process_qsupported.
17833
17834 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17835 and <sys/uio.h>.
17836 (init_registers_i386_avx_linux): New.
17837 (init_registers_amd64_avx_linux): Likewise.
17838 (xmltarget_i386_linux_no_xml): Likewise.
17839 (xmltarget_amd64_linux_no_xml): Likewise.
17840 (PTRACE_GETREGSET): Likewise.
17841 (PTRACE_SETREGSET): Likewise.
17842 (x86_fill_xstateregset): Likewise.
17843 (x86_store_xstateregset): Likewise.
17844 (use_xml): Likewise.
17845 (x86_linux_update_xmltarget): Likewise.
17846 (x86_linux_process_qsupported): Likewise.
17847 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17848 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17849 init_registers_i386_linux here. Call
17850 x86_linux_update_xmltarget.
17851 (the_low_target): Add x86_linux_process_qsupported.
17852
17853 * server.c (handle_query): Call target_process_qsupported.
17854
17855 * target.h (target_ops): Add process_qsupported.
17856 (target_process_qsupported): New.
17857
fc7238bb
PA
178582010-04-03 Pedro Alves <pedro@codesourcery.com>
17859
17860 * inferiors.c (add_thread): Set last_status kind to
17861 TARGET_WAITKIND_IGNORE.
17862 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17863 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17864 (linux_wait_1): Move `thread' local definition to block that uses
17865 it. Don't NULL initialize `event_child'.
17866 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17867 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17868 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17869
bdabb078
PA
178702010-04-01 Pedro Alves <pedro@codesourcery.com>
17871
17872 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17873 an extended waitstatus, or by a watchpoint.
17874 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17875 thread was stepping or has been stopped by a watchpoint.
17876
d3bbe7a0
PA
178772010-04-01 Pedro Alves <pedro@codesourcery.com>
17878
17879 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17880 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17881 of another, then delete the previous, and validate all
17882 breakpoints.
17883 (validate_inserted_breakpoint): New.
17884 (delete_disabled_breakpoints): New.
17885 (validate_breakpoints): New.
17886 (check_mem_read): Validate breakpoints before trusting their
17887 shadow. Delete disabled breakpoints.
17888 (check_mem_write): Validate breakpoints before trusting they
17889 should be inserted. Delete disabled breakpoints.
17890 * mem-break.h (validate_breakpoints):
17891 * server.c (handle_query): Validate breakpoints when we see a
17892 qSymbol query.
17893
8b07ae33
PA
178942010-04-01 Pedro Alves <pedro@codesourcery.com>
17895
17896 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17897 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17898 if we could tell there's a GDB breakpoint at stop_pc.
17899 (need_step_over_p): Don't do a step over if we find a GDB
17900 breakpoint at the resume PC.
17901
17902 * mem-break.c (struct raw_breakpoint): New.
17903 (enum bkpt_type): New type `gdb_breakpoint'.
17904 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17905 fields. New field `raw'.
17906 (find_raw_breakpoint_at): New.
17907 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17908 breakpoint instead.
17909 (set_breakpoint_at): Adjust.
17910 (delete_raw_breakpoint): New.
17911 (release_breakpoint): New.
17912 (delete_breakpoint): Rename to...
17913 (delete_breakpoint_1): ... this. Add proc parameter. Use
17914 release_breakpoint. Return ENOENT.
17915 (delete_breakpoint): Reimplement.
17916 (find_breakpoint_at): Delete.
17917 (find_gdb_breakpoint_at): New.
17918 (delete_breakpoint_at): Delete.
17919 (set_gdb_breakpoint_at): New.
17920 (delete_gdb_breakpoint_at): New.
17921 (gdb_breakpoint_here): New.
17922 (set_reinsert_breakpoint): Use release_breakpoint.
17923 (uninsert_breakpoint): Rename to ...
17924 (uninsert_raw_breakpoint): ... this.
17925 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17926 (reinsert_raw_breakpoint): Change parameter type to
17927 raw_breakpoint.
17928 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17929 instead.
17930 (check_breakpoints): Adjust. Use release_breakpoint.
17931 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17932 (breakpoint_inserted_here): Ditto.
17933 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17934 Don't trust the breakpoint's shadow if it is not inserted.
17935 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17936 (delete_all_breakpoints): Adjust.
17937 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17938 use delete_breakpoint_1.
17939
17940 * mem-break.h (breakpoints_supported): Delete declaration.
17941 (set_gdb_breakpoint_at): Declare.
17942 (gdb_breakpoint_here): Declare.
17943 (delete_breakpoint_at): Delete.
17944 (delete_gdb_breakpoint_at): Declare.
17945
17946 * server.h (struct raw_breakpoint): Forward declare.
17947 (struct process_info): New field `raw_breakpoints'.
17948
17949 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17950 breakpoints.
17951
6bf5e0ba
PA
179522010-03-24 Pedro Alves <pedro@codesourcery.com>
17953
17954 * linux-low.c (status_pending_p_callback): Fix comment.
17955 (linux_wait_for_event_1): Move most of the internal breakpoint
17956 handling from here...
17957 (linux_wait_1): ... to here.
17958 (count_events_callback): New.
17959 (select_singlestep_lwp_callback): New.
17960 (select_event_lwp_callback): New.
17961 (cancel_breakpoints_callback): New.
17962 (select_event_lwp): New.
17963 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17964 priority to all LWPs that have had events that should be reported
17965 to the client. Cancel breakpoints when about to reporting the
17966 event to the client, not while stopping lwps. No longer cancel
17967 finished single-steps here.
17968 (cancel_finished_single_step): Delete.
17969 (cancel_finished_single_steps): Delete.
17970
414a389f
PA
179712010-03-24 Pedro Alves <pedro@codesourcery.com>
17972
17973 * mem-break.c (enum bkpt_type): New.
17974 (struct breakpoint): New field `type'.
17975 (set_breakpoint_at): Change return type to struct breakpoint
17976 pointer. Set type to `other_breakpoint' by default.
17977 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17978 in the breakpoint list.
17979 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17980 (reinsert_breakpoint): Rename to ...
17981 (reinsert_raw_breakpoint): ... this.
17982 (reinsert_breakpoints_at): Adjust.
17983 * mem-break.h (struct breakpoint): Declare.
17984 (set_breakpoint_at): Change return type to struct breakpoint
17985 pointer.
17986
2280c721
PA
179872010-03-24 Pedro Alves <pedro@codesourcery.com>
17988
17989 * server.c (handle_query): Assign, not compare.
17990
d50171e4
PA
179912010-03-24 Pedro Alves <pedro@codesourcery.com>
17992
17993 Teach linux gdbserver to step-over-breakpoints.
17994
17995 * linux-low.c (can_hardware_single_step): New.
17996 (supports_breakpoints): New.
17997 (handle_extended_wait): If stopping threads, read the stop pc of
17998 the new cloned LWP.
17999 (get_pc): New.
18000 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18001 low target doesn't support retrieving the PC.
18002 (add_lwp): Set last_resume_kind to resume_continue.
18003 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18004 (linux_attach): Don't clear stop_expected. Set the lwp's
18005 last_resume_kind to resume_stop.
18006 (linux_detach_one_lwp): Don't check for removed breakpoints.
18007 (check_removed_breakpoint): Delete.
18008 (status_pending_p): Rename to ...
18009 (status_pending_p_callback): ... this. Don't check for removed
18010 breakpoints. Don't consider threads that are stopped from GDB's
18011 perspective.
18012 (linux_wait_for_lwp): Always read the stop_pc here.
18013 (cancel_breakpoint): New.
18014 (step_over_bkpt): New global.
18015 (linux_wait_for_event_1): Implement stepping over breakpoints.
18016 (gdb_wants_lwp_stopped): New.
18017 (gdb_wants_all_stopped): New.
18018 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18019 single-step traps here. Store the thread's last reported target
18020 wait status.
18021 (send_sigstop): Don't clear stop_expected. Always set it,
18022 instead.
18023 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18024 (cancel_finished_single_step): New.
18025 (cancel_finished_single_steps): New.
18026 (wait_for_sigstop): Don't cancel finished single-step traps here.
18027 (linux_resume_one_lwp): Don't check for removed breakpoints.
18028 Don't set `step' on non-hardware step archs.
18029 (linux_set_resume_request): Ignore resume_stop requests if already
18030 stopping or stopped. Set the lwp's last_resume_kind.
18031 (resume_status_pending_p): Don't check for removed breakpoints.
18032 (need_step_over_p): New.
18033 (start_step_over): New.
18034 (finish_step_over): New.
18035 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18036 requests. Clear the thread's last reported target waitstatus.
18037 Don't use the `suspended' flag. Don't consider pending breakpoints.
18038 (linux_resume): Start a step-over if necessary.
18039 (proceed_one_lwp): New.
18040 (proceed_all_lwps): New.
18041 (unstop_all_lwps): New.
18042 * linux-low.h (struct lwp_info): Rewrite comment for the
18043 `suspended' flag. Add the `stop_pc' field. Delete the
18044 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18045 Add `'last_resume_kind' and `need_step_over' fields.
18046 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18047 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18048 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18049 (set_raw_breakpoint_at): New.
18050 (set_breakpoint_at): Rewrite to use it.
18051 (reinsert_breakpoint_handler): Delete.
18052 (set_reinsert_breakpoint): New.
18053 (reinsert_breakpoint_by_bp): Delete.
18054 (delete_reinsert_breakpoints): New.
18055 (uninsert_breakpoint): Rewrite.
18056 (uninsert_breakpoints_at): New.
18057 (reinsert_breakpoint): Rewrite.
18058 (reinsert_breakpoints_at): New.
18059 (check_breakpoints): Rewrite.
18060 (breakpoint_here): New.
18061 (breakpoint_inserted_here): New.
18062 (check_mem_read): Adjust.
18063 * mem-break.h (breakpoints_supported, breakpoint_here)
18064 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18065 (reinsert_breakpoint_by_bp): Delete declaration.
18066 (delete_reinsert_breakpoints): Declare.
18067 (reinsert_breakpoint): Delete declaration.
18068 (reinsert_breakpoints_at): Declare.
18069 (uninsert_breakpoint): Delete declaration.
18070 (uninsert_breakpoints_at): Declare.
18071 (check_breakpoints): Adjust prototype.
18072 * server.h: Adjust include order.
18073 (struct thread_info): Declare here. Add a `last_status' field.
18074
30ba68cb
MS
180752010-03-23 Michael Snyder <msnyder@vmware.com>
18076
18077 * server.c (crc32): New function.
18078 (handle_query): Add handling for 'qCRC:' request.
18079
b9a881c2
PA
180802010-03-23 Pedro Alves <pedro@codesourcery.com>
18081
18082 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18083 lwp had been stopped by a watchpoint.
18084
e92d13d5
PA
180852010-03-16 Pedro Alves <pedro@codesourcery.com>
18086
18087 * server.h (internal_error): Declare.
18088 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18089 * utils.c (internal_error): New function.
18090
64daa791
AS
180912010-03-15 Andreas Schwab <schwab@redhat.com>
18092
18093 * configure.srv: Fix typo setting srv_regobj.
18094
f52cd8cd
PA
180952010-03-15 Pedro Alves <pedro@codesourcery.com>
18096
18097 * linux-low.c (fetch_register): Avoid passing a non string literal
18098 format to `error'.
18099 (usr_store_inferior_registers): Ditto.
18100
93ae6fdc
PA
181012010-03-14 Pedro Alves <pedro@codesourcery.com>
18102
18103 * linux-low.c (linux_write_memory): Bail out early if peeking
18104 memory failed.
18105
c3adc08c
PA
181062010-03-14 Pedro Alves <pedro@codesourcery.com>
18107
18108 * linux-low.h (struct lwp_info): New fields
18109 `stopped_by_watchpoint' and `stopped_data_address'.
18110 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18111 here, and cache them in the lwp object.
18112 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18113 directly.
18114 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18115 field.
18116 (linux_stopped_by_watchpoint): Rewrite.
18117 (linux_stopped_data_address): Rewrite.
18118
bce522a2
PA
181192010-03-06 Simo Melenius <simo.melenius@iki.fi>
18120
18121 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18122 switching the current inferior, not before.
18123
90884b2b
L
181242010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18125
18126 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18127 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18128 i386-linux.c and amd64-linux.c.
18129 (reg-i386.o): Removed.
18130 (reg-i386.c): Likewise.
18131 (reg-i386-linux.o): Likewise.
18132 (reg-i386-linux.c): Likewise.
18133 (reg-x86-64.o): Likewise.
18134 (reg-x86-64.c): Likewise.
18135 (reg-x86-64-linux.o): Likewise.
18136 (reg-x86-64-linux.c): Likewise.
18137 (i386.o): New.
18138 (i386.c): Likewise.
18139 (i386-linux.o): Likewise.
18140 (i386-linux.c): Likewise.
18141 (amd64.o): Likewise.
18142 (amd64.c): Likewise.
18143 (amd64-linux.o): Likewise.
18144 (amd64-linux.c): Likewise.
18145
18146 * configure.srv (srv_i386_regobj): New.
18147 (srv_i386_linux_regobj): Likewise.
18148 (srv_amd64_regobj): Likewise.
18149 (srv_amd64_linux_regobj): Likewise.
18150 (srv_i386_32bit_xmlfiles): Likewise.
18151 (srv_i386_64bit_xmlfiles): Likewise.
18152 (srv_i386_xmlfiles): Likewise.
18153 (srv_amd64_xmlfiles): Likewise.
18154 (srv_i386_linux_xmlfiles): Likewise.
18155 (srv_amd64_linux_xmlfiles): Likewise.
18156 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18157 srv_xmlfiles to $srv_i386_xmlfiles.
18158 (i[34567]86-*-mingw32ce*): Likewise.
18159 (i[34567]86-*-mingw*): Likewise.
18160 (i[34567]86-*-nto*): Likewise.
18161 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18162 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18163 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18164 (x86_64-*-linux*): Likewise.
18165
18166 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18167 (init_registers_amd64_linux): New.
18168 (x86_arch_setup): Replace init_registers_x86_64_linux with
18169 init_registers_amd64_linux.
18170
193f13e6
MK
181712010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18172
18173 * configure.ac: Check for libdl. If it is not available link against
18174 static libthread_db.
18175 * configure: Regenerate.
18176
85d721b8
PA
181772010-02-22 Pedro Alves <pedro@codesourcery.com>
18178
18179 PR9605
18180
18181 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18182 handing a read watchpoint.
18183 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18184
6076632b
DE
181852010-02-12 Doug Evans <dje@google.com>
18186
18187 * linux-low.c (linux_supports_tracefork_flag): Document.
18188 (linux_look_up_symbols): Add comment.
18189
3327ccf7
L
181902010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18191
18192 * regcache.c (supply_register): Clear regcache if buf is NULL.
18193
0718675c 181942010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18195 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18196
18197 * inferiors.c (find_inferior): Add function documentation.
18198 (unloaded_dll): Handle the case where the unloaded dll has not
18199 been previously registered in the dll list.
18200
177321bd
DJ
182012010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18202
18203 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18204 (thumb2_breakpoint): New.
18205 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18206
2b009048
DJ
182072010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18208
18209 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18210 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18211 breakpoints.
18212
3be029c7
PA
182132010-01-21 Pedro Alves <pedro@codesourcery.com>
18214
18215 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18216
18f5de3b
JK
182172010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18218
18219 * linux-s390-low.c (s390_collect_ptrace_register)
18220 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18221
3743bb4f
DE
182222010-01-21 Doug Evans <dje@google.com>
18223
14ce3065
DE
18224 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18225 (PTRACE_ARG4_TYPE): New macro.
18226 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18227 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18228 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18229 (usr_store_inferior_registers): Ditto.
18230 (linux_read_memory, linux_write_memory): Ditto.
18231 (linux_test_for_tracefork): Ditto.
18232
3743bb4f
DE
18233 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18234 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18235
8b315be5
PA
182362010-01-21 Pedro Alves <pedro@codesourcery.com>
18237
18238 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18239 target.
18240
85492558
PA
182412010-01-21 Pedro Alves <pedro@codesourcery.com>
18242
18243 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18244 prototype to take a regcache. Adjust.
18245
442ea881
PA
182462010-01-20 Pedro Alves <pedro@codesourcery.com>
18247
18248 * regcache.h (struct thread_info): Forward declare.
18249 (struct regcache): New.
18250 (new_register_cache): Adjust prototype.
18251 (get_thread_regcache): Declare.
18252 (free_register_cache): Adjust prototype.
18253 (registers_to_string, registers_from_string): Ditto.
18254 (supply_register, supply_register_by_name, collect_register)
18255 (collect_register_as_string, collect_register_by_name): Ditto.
18256 * regcache.c (struct inferior_regcache_data): Delete.
18257 (get_regcache): Rename to ...
18258 (get_thread_regcache): ... this. Adjust. Switch inferior before
18259 fetching registers.
18260 (regcache_invalidate_one): Adjust.
18261 (regcache_invalidate): Fix prototype.
18262 (new_register_cache): Return the new register cache.
18263 (free_register_cache): Change prototype.
18264 (realloc_register_cache): Adjust.
18265 (registers_to_string): Change prototype to take a regcache. Adjust.
18266 (registers_from_string): Ditto.
18267 (register_data): Ditto.
18268 (supply_register): Ditto.
18269 (supply_register_by_name): Ditto.
18270 (collect_register): Ditto.
18271 (collect_register_as_string): Ditto.
18272 (collect_register_by_name): Ditto.
18273 * server.c (process_serial_event): Adjust.
18274 * linux-low.h (regset_fill_func, regset_store_func): Change
18275 prototype.
18276 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18277 Change prototype.
18278 * linux-low.c (get_stop_pc): Adjust.
18279 (check_removed_breakpoint): Adjust.
18280 (linux_wait_for_event): Adjust.
18281 (linux_resume_one_lwp): Adjust.
18282 (fetch_register): Add regcache parameter. Adjust.
18283 (usr_store_inferior_registers): Ditto.
18284 (regsets_fetch_inferior_registers): Ditto.
18285 (regsets_store_inferior_registers): Ditto.
18286 (linux_fetch_registers, linux_store_registers): Ditto.
18287 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18288 regcache. Adjust.
43aaf8b6
PA
18289 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18290 Ditto.
442ea881
PA
18291 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18292 prototype to take a regcache.
18293 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18294 * remote-utils.c (convert_ascii_to_int, outreg)
18295 (prepare_resume_reply): Change prototype to take a regcache.
18296 Adjust.
18297 * target.h (struct target_ops) <fetch_registers, store_registers>:
18298 Change prototype to take a regcache.
18299 (fetch_inferior_registers, store_inferior_registers): Change
18300 prototype to take a regcache. Adjust.
18301 * proc-service.c (ps_lgetregs): Adjust.
18302 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18303 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18304 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18305 take a regcache. Adjust.
18306 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18307 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18308 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18309 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18310 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18311 (cris_cannot_fetch_register):
18312 (cris_breakpoint_at): Change prototype to take a regcache.
18313 Adjust.
18314 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18315 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18316 to take a regcache. Adjust.
18317 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18318 Adjust.
18319 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18320 take a regcache. Adjust.
18321 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18322 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18323 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18324 * linux-mips-low.c (mips_get_pc):
18325 (mips_set_pc): Change prototype to take a regcache. Adjust.
18326 (mips_reinsert_addr): Adjust.
18327 (mips_collect_register): Change prototype to take a regcache.
18328 Adjust.
18329 (mips_supply_register):
18330 (mips_collect_register_32bit, mips_supply_register_32bit)
18331 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18332 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18333 * linux-ppc-low.c (ppc_supply_ptrace_register)
18334 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18335 (parse_spufs_run): Adjust.
18336 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18337 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18338 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18339 take a regcache. Adjust.
18340 * linux-s390-low.c (s390_collect_ptrace_register)
18341 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18342 (s390_set_pc): Change prototype to take a regcache. Adjust.
18343 (s390_arch_setup): Adjust.
18344 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18345 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18346 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18347 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18348 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18349 regcache. Adjust.
18350 (sparc_breakpoint_at): Adjust.
18351 * linux-xtensa-low.c (xtensa_fill_gregset):
18352 (xtensa_store_gregset):
18353 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18354 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18355 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18356 prototype to take a regcache. Adjust.
18357 * win32-arm-low.c (arm_fetch_inferior_register)
18358 (arm_store_inferior_register): Change prototype to take a
18359 regcache. Adjust.
18360 * win32-i386-low.c (i386_fetch_inferior_register)
18361 (i386_store_inferior_register): Change prototype to take a
18362 regcache. Adjust.
18363 * win32-low.c (child_fetch_inferior_registers)
18364 (child_store_inferior_registers): Change prototype to take a
18365 regcache. Adjust.
18366 (win32_wait): Adjust.
18367 (win32_fetch_inferior_registers): Change prototype to take a
18368 regcache. Adjust.
18369 (win32_store_inferior_registers): Adjust.
18370 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18371 store_inferior_register>: Change prototype to take a regcache.
18372
60c3d7b0
DE
183732010-01-20 Doug Evans <dje@google.com>
18374
18375 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18376 #ifdef.
18377 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18378 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18379
dc146f7c
VP
183802010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18381
18382 * linux-low.c (linux_core_of_thread): New.
18383 (compare_ints, show_process, list_threads): New.
18384 (linux_qxfer_osdata): Report threads and cores.
18385 (linux_target_op): Register linux_core_of_thread.
18386 * remote-utils.c (prepare_resume_reply): Report the core.
18387 (buffer_xml_printf): Support %d specifier.
18388 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18389 New.
18390 (handle_query): Handle qXfer:threads. Announce availability
18391 thereof.
18392 * target.h (struct target_ops): New field core_of_thread.
18393
7803799a
UW
183942010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18395
18396 * Makefile.in (clean): Remove new generated files.
18397 (reg-s390.o, reg-s390.c): Remove rules.
18398 (reg-s390x.o, reg-s390x.c): Likewise.
18399 (s390-linux32.o, s390-linux32.c): Add rules.
18400 (s390-linux64.o, s390-linux64.c): Likewise.
18401 (s390x-linux64.o, s390x-linux64.c): Likewise.
18402 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18403 * linux-s390-low.c: Include <elf.h>.
18404 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18405 (init_registers_s390): Remove prototype.
18406 (init_registers_s390x): Likewise.
18407 (init_registers_s390_linux32): Add prototype.
18408 (init_registers_s390_linux64): Likewise.
18409 (init_registers_s390x_linux64): Likewise.
18410 (s390_num_regs_3264): New define.
18411 (s390_regmap_3264): New global variable.
18412 (s390_cannot_fetch_register): Remove obsolete check.
18413 (s390_cannot_store_register): Likewise.
18414 (s390_collect_ptrace_register): Handle upper/lower register halves.
18415 (s390_supply_ptrace_register): Likewise.
18416 (s390_fill_gregset): Update to register number changes.
18417 (s390_get_hwcap): New routine.
18418 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18419 Install appropriate regmap and register set.
18420
6e7ffa39
JB
184212010-01-01 Joel Brobecker <brobecker@adacore.com>
18422
18423 * server.c (gdbserver_version): Update copyright year to 2010.
18424 * gdbreplay.c (gdbreplay_version): Likewise.
18425
957f3f49
DE
184262009-12-28 Doug Evans <dje@google.com>
18427
18428 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18429 elf/external.h. Include <elf.h> instead but only if necessary.
18430
ca5c370d
PA
184312009-12-28 Pedro Alves <pedro@codesourcery.com>
18432
18433 * linux-low.c (linux_remove_process): Remove `detaching'
18434 parameter. Don't release/detach from thread_db here.
18435 (linux_kill): Release/detach from thread_db here, ...
18436 (linux_detach): ... and here, before actually detaching.
18437 (linux_wait_1): ... and here, when a process exits.
18438 * thread-db.c (any_thread_of): New.
18439 (thread_db_free): Switch the current inferior to a thread of the
18440 passed in process.
18441
4ee62156
DE
184422009-12-21 Doug Evans <dje@google.com>
18443
d90e6a88
DE
18444 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18445
c5f62d5f
DE
18446 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18447 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18448 warning ifndef __NR_tkill. Move setting of errno there too.
18449 Delete unnecessary resetting of errno after syscall.
18450 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18451
10e86dd7
DE
18452 * configure.ac: Check for dladdr.
18453 * config.in: Regenerate.
18454 * configure: Regenerate.
18455 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18456 (try_thread_db_load): Update.
18457
4ee62156
DE
18458 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18459
00f515da
DE
184602009-12-18 Doug Evans <dje@google.com>
18461
e9464885
DE
18462 * event-loop.c: Include unistd.h if it exists.
18463
07d4f67e
DE
18464 * linux-low.c (my_waitpid): Move definition away from being in
18465 between linux_tracefork_child/linux_test_for_tracefork.
18466
00f515da
DE
18467 * gdb_proc_service.h (psaddr_t): Fix type.
18468 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18469 signature to match glibc.
18470
1de1badb
DE
184712009-12-16 Doug Evans <dje@google.com>
18472
18473 * linux-low.c (linux_read_memory): Fix argument to read.
18474
aeeb81d1
PA
184752009-11-26 Pedro Alves <pedro@codesourcery.com>
18476
18477 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18478 events, don't leave current_inferior pointing at null.
18479
10357975
PA
184802009-11-26 Pedro Alves <pedro@codesourcery.com>
18481
18482 * win32-low.c (LOG): Delete.
18483 (OUTMSG): Output to stderr.
18484 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18485 on compile time LOG macro.
18486 (win32_wait): Fix debug output.
18487
cf6e3471
PA
184882009-11-26 Pedro Alves <pedro@codesourcery.com>
18489
18490 * win32-low.c (win32_add_one_solib): If the dll name is
18491 "ntdll.dll", prepend the system directory to the dll path.
18492
0c85e18e
MK
184932009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18494
18495 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18496
9ac544ce 184972009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18498 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18499
18500 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18501 * configure.ac: Check for __mcoldfire__ and set
18502 gdb_cv_m68k_is_coldfire.
18503 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18504 reg-cf.o and reg-m68k.o.
18505 * configure: Regenerated.
18506
fd7dd3e6
PA
185072009-11-16 Pedro Alves <pedro@codesourcery.com>
18508
18509 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18510 Pass it to thread_db_free.
18511 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18512 proper `detaching' argument to linux_remove_process.
18513 * linux-low.h (thread_db_free): Add `detaching' parameter.
18514 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18515 to thread_db_free.
18516 (thread_db_free): Add `detaching' parameter. Only
18517 call td_ta_clear_event if detaching from process.
18518
75aa492e
MK
185192009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18520
18521 * thread-db.c (thread_db_free): Fix typo.
18522
21e1bee4
PP
185232009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18524
18525 PR gdb/10838
18526 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18527
8838b45e
NS
185282009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18529
18530 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18531 with an i686 compiler.
18532 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18533 needed.
18534 * configure: Rebuilt.
18535
8a35fb51
SL
185362009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18537
18538 PR gdb/10783
18539
18540 * server.c (handle_search_memory_1): Correct read_addr initialization
18541 in loop for searching subsequent chunks.
18542
96f15937
PP
185432009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18544
18545 * configure.ac: New --with-libthread-db option.
18546 * thread-db.c: Allow direct dependence on libthread_db.
18547 (thread_db_free): Adjust.
18548 * config.in: Regenerate.
18549 * configure: Likewise.
889bf7c5 18550
5f7d1694
PP
185512009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18552
18553 PR gdb/10757
18554 * thread-db.c (attach_thread): New function.
18555 (maybe_attach_thread): Return success/failure.
18556 (find_new_threads_callback): Adjust.
889bf7c5
PA
18557 (thread_db_find_new_threads): Loop until no new threads.
18558
88e3b899
PA
185592009-10-13 Pedro Alves <pedro@codesourcery.com>
18560
18561 * proc-service.c (ps_lgetregs): Formatting.
18562
cdbfd419
PP
185632009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18564
18565 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18566 * configure.ac: Adjust.
18567 * linux-low.h (struct process_info_private): Move members to struct
18568 thread_db.
18569 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18570 * linux-low.c (linux_remove_process): Adjust.
18571 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18572 * server.c (handle_query): Move code ...
18573 (handle_monitor_command): ... here. New function.
18574 * target.h (struct target_ops): New member.
18575 * thread-db.c (struct thread_db): New.
18576 (libthread_db_search_path): New variable.
18577 (thread_db_create_event, thread_db_enable_reporting)
18578 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18579 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18580 (try_thread_db_load_1, dladdr_to_soname): New functions.
18581 (try_thread_db_load, thread_db_load_search): New functions.
18582 (thread_db_init): Search for libthread_db.
18583 (thread_db_free): New function.
18584 (thread_db_handle_monitor_command): Likewise.
18585 * config.in: Regenerate.
18586 * configure: Regenerate.
889bf7c5 18587
4168d2d6
UW
185882009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18589
18590 * spu-low.c (spu_kill): Wait for inferior to terminate.
18591 Call clear_inferiors.
18592 (spu_detach): Call clear_inferiors.
18593
81ecdfbb
RW
185942009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18595
18596 * aclocal.m4: Regenerate.
18597 * config.in: Likewise.
18598 * configure: Likewise.
18599
0b9ff2c0
UW
186002009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18601
18602 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18603 (parse_spufs_run): New function.
18604 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18605 (ppc_breakpoint_at): Handle SPU breakpoints.
18606
efcbbd14
UW
186072009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18608
18609 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18610 (SPUFS_MAGIC): Define.
18611 (spu_enumerate_spu_ids): New function.
18612 (linux_qxfer_spu): New function.
18613 (linux_target_ops): Install linux_qxfer_spu.
18614
f4d9bade
UW
186152009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18616
18617 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18618 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18619 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18620 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18621 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18622 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18623 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18624 (init_registers_powerpc_cell32l): Add prototype.
18625 (init_registers_powerpc_cell64l): Likewise.
18626 (ppc_arch_setup): Detect Cell/B.E. architecture.
18627
96e946ca
RW
186282009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18629
18630 * Makefile.in (datarootdir): New variable.
18631
58d6951d
DJ
186322009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18633
18634 * linux-low.c (linux_write_memory): Update debugging output.
18635 * Makefile.in (clean): Add new descriptions.
18636 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18637 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18638 * configure.srv: Add new files for arm*-*-linux*.
18639 * linux-arm-low.c: Add new declarations.
18640 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18641 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18642 (HWCAP_VFPv3D16): New.
18643 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18644 instead of __IWMMXT__.
18645 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18646 (arm_arch_setup): New.
18647 (target_regsets): Remove #ifdef. Add VFP regset.
18648 (the_low_target): Use arm_arch_setup.
18649
12b42a12
DJ
186502009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18651
18652 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18653 the main thread again.
18654
ac8c974e
AR
186552009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18656
18657 Adding Neutrino gdbserver.
18658 * configure: Regenerated.
18659 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18660 * configure.srv (i[34567]86-*-nto*): New target.
18661 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18662 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18663 (nto_comctrl) [__QNX__]: New function.
18664 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18665
4424e0c3 186662009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18667
18668 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18669 srv_tgtobj.
18670
912cf4ba
PA
186712009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18672 Pedro Alves <pedro@codesourcery.com>
18673
18674 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18675 don't support CONTEXT_EXTENDED_REGISTERS.
18676 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18677 (the_low_target): Install them.
18678 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18679 failing with ERROR_PIPE_NOT_CONNECTED.
18680
aa5ca48f
DE
186812009-06-30 Doug Evans <dje@google.com>
18682 Pierre Muller <muller@ics.u-strasbg.fr>
18683
18684 Add h/w watchpoint support to x86-linux, win32-i386.
18685 * Makefile.in (SFILES): Add i386-low.c
18686 (i386_low_h): Define.
18687 (i386-low.o): Add dependencies.
18688 (linux-x86-low.o): Add i386-low.h dependency.
18689 (win32-i386-low.o): Ditto.
18690 * i386-low.c: New file.
18691 * i386-low.h: New file.
18692 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18693 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18694 * linux-low.c (linux_add_process): Initialize arch_private.
18695 (linux_remove_process): Free arch_private.
18696 (add_lwp): Initialize arch_private.
18697 (delete_lwp): Free arch_private.
18698 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18699 provided.
18700 * linux-low.h (process_info_private): New member arch_private.
18701 (lwp_info): New member arch_private.
18702 (linux_target_ops): New members new_process, new_thread,
18703 prepare_to_resume.
18704 (ptid_of): New macro.
18705 * linux-x86-low.c: Include stddef.h, i386-low.h.
18706 (arch_process_info): New struct.
18707 (arch_lwp_info): New struct.
18708 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18709 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18710 (i386_dr_low_get_status): New function.
18711 (x86_insert_point, x86_remove_point): New functions.
18712 (x86_stopped_by_watchpoint): New function.
18713 (x86_stopped_data_address): New function.
18714 (x86_linux_new_process, x86_linux_new_thread): New functions.
18715 (x86_linux_prepare_to_resume): New function.
18716 (the_low_target): Add entries for insert_point, remove_point,
18717 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18718 prepare_to_resume.
18719 * server.c (debug_hw_points): New global.
18720 (monitor_show_help): Document set debug-hw-points.
18721 (handle_query): Process "set debug-hw-points".
18722 * server.h (debug_hw_points): Declare.
18723 (paddress): Declare.
18724 * utils.c (NUMCELLS, CELLSIZE): New macros.
18725 (get_sell, xsnprintf, paddress): New functions.
18726 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18727 remove_point, stopped_by_watchpoint, stopped_data_address.
18728 * win32-i386-low.c: Include i386-low.h.
18729 (debug_reg_state): Replaces dr.
18730 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18731 (i386_dr_low_get_status): New function.
18732 (i386_insert_point, i386_remove_point): New functions.
18733 (i386_stopped_by_watchpoint): New function.
18734 (i386_stopped_data_address): New function.
18735 (i386_initial_stuff): Update.
18736 (get_thread_context,set_thread_context,i386_thread_added): Update.
18737 (the_low_target): Add entries for insert_point,
18738 remove_point, stopped_by_watchpoint, stopped_data_address.
18739 * win32-low.c (win32_insert_watchpoint): New function.
18740 (win32_remove_watchpoint): New function.
18741 (win32_stopped_by_watchpoint): New function.
18742 (win32_stopped_data_address): New function.
18743 (win32_target_ops): Add entries for insert_watchpoint,
18744 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18745 * win32-low.h (win32_target_ops): New members insert_point,
18746 remove_point, stopped_by_watchpoint, stopped_data_address.
18747
d993e290
PA
187482009-06-25 Pedro Alves <pedro@codesourcery.com>
18749
18750 * server.c (process_serial_event): Re-return unsupported, not
18751 error, if the type isn't recognized. Re-allow supporting only
18752 insert or remove packets. Also call require_running for
18753 breakpoints. Add missing break statement to default case. Tidy.
18754 * target.h (struct target_ops): Rename insert_watchpoint to
18755 insert_point, and remove_watchpoint to remove_point.
18756
18757 * linux-low.h (struct linux_target_ops): Likewise.
18758 * linux-low.c (linux_insert_watchpoint): Rename to ...
18759 (linux_insert_point): ... this. Adjust.
18760 (linux_remove_watchpoint): Rename to ...
18761 (linux_remove_point): ... this. Adjust.
18762 (linux_target_ops): Adjust.
18763 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18764 (cris_insert_point): ... this.
18765 (cris_remove_watchpoint): Rename to ...
18766 (cris_remove_point): ... this.
18767 (the_low_target): Adjust.
18768
0f54c268
PM
187692009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18770
18771 * server.c (handle_v_kill): Pass signal_pid to
18772 kill_inferior if multi_process is zero.
18773
c6314022
AR
187742009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18775
18776 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18777 * target.h (target_ops): Comment for *_watchpoint to make it clear
18778 the functions can get types '0' and '1'.
18779
4463ce24
AR
187802009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18781
18782 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18783 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18784 * regcache.c (get_regcache): Likewise.
18785 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18786 * win32-low.c (child_fetch_inferior_registers): Remove check for
18787 regno 0.
18788
cf8fd78b
PA
187892009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18790 Pedro Alves <pedro@codesourcery.com>
18791
18792 * target.h (struct target_ops) <supports_multi_process>: New
18793 callback.
18794 (target_supports_multi_process): New.
18795 * server.c (handle_query): Even if GDB reports support, only
18796 enable multi-process if the target also supports it. Report
18797 multi-process support only if the target backend supports it.
18798 * linux-low.c (linux_supports_multi_process): New function.
18799 (linux_target_ops): Install it as target_supports_multi_process
18800 callback.
18801
47c0c975
DE
188022009-05-24 Doug Evans <dje@google.com>
18803
e09875d4
DE
18804 Global renaming of find_thread_pid to find_thread_ptid.
18805 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18806 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18807 All callers updated.
18808
e27d73f6
DE
18809 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18810 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18811 directly.
18812
47c0c975
DE
18813 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18814 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18815 (linux_resume_one_lwp): Ditto.
18816
2acc282a
DE
188172009-05-23 Doug Evans <dje@google.com>
18818
18819 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18820 from struct inferior_list_entry * to struct lwp_info *.
18821 All callers updated.
18822
9f1036c1
DE
188232009-05-13 Doug Evans <dje@google.com>
18824
18825 * linux-x86-low.c: Don't include assert.h.
18826 (x86_siginfo_fixup): Use fatal, not assert.
18827 (x86_arch_setup): Fix comment.
18828
d0722149
DE
188292009-05-12 Doug Evans <dje@google.com>
18830
18831 Biarch support for i386/amd64 gdbserver.
18832 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18833 Add linux-x86-low.c.
18834 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18835 (linux-x86-low.o): Add.
18836 * linux-x86-64-low.c: Delete.
18837 * linux-i386-low.c: Delete.
18838 * linux-x86-low.c: New file.
18839 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18840 linux-x86-low.o.
18841 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18842 linux-x86-low.o.
18843 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18844 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18845 (linux_child_pid_to_exec_file): New function.
18846 (elf_64_header_p, elf_64_file_p): New functions.
18847 (siginfo_fixup): New function.
18848 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18849 give target a chance to convert layout.
18850 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18851 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18852
fdeb2a12
DE
188532009-05-07 Doug Evans <dje@google.com>
18854
18855 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18856 (regsets_store_inferior_registers): Ditto.
18857
a6dbe5df
PA
188582009-05-06 Pedro Alves <pedro@codesourcery.com>
18859
18860 PR server/10048
18861
18862 * linux-low.c (must_set_ptrace_flags): Delete.
18863 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18864 of the global.
18865 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18866 `lwp->must_set_ptrace_flags' instead.
ba42693b 18867 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18868 (linux_wait_1): ... not here.
18869
5091eb23
DE
188702009-04-30 Doug Evans <dje@google.com>
18871
9f767825
DE
18872 * inferiors.c (started_inferior_callback): New function.
18873 (attached_inferior_callback): New function.
18874 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18875 * server.c (print_started_pid, print_attached_pid): New functions.
18876 (detach_or_kill_for_exit): New function.
18877 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18878 * server.h (have_started_inferiors_p): Declare.
18879 (have_attached_inferiors_p): Declare.
18880
5091eb23
DE
18881 * inferiors.c (remove_process): Fix memory leak, free process.
18882 * linux-low.c (linux_remove_process): New function.
18883 (linux_kill): Call it instead of remove_process.
18884 (linux_detach, linux_wait_1): Ditto.
18885
155c8968
PA
188862009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18887
18888 * configure.srv: Add x86 Windows CE target.
18889
7fe519cb
UW
188902009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18891
18892 * inferiors.c (get_thread_process): Make global.
18893 * server.h (get_thread_process): Add prototype.
18894 * thread-db.c (find_one_thread): Use get_thread_process
18895 instead of current_process.
18896 (thread_db_get_tls_address): Do not crash if called when
18897 thread layer is not yet initialized.
18898
5472f405
UW
188992009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18900
18901 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18902 * spu-low.c (current_tid): Rename to ...
18903 (current_ptid): ... this.
18904 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18905 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18906 ptid_get_lwp (current_ptid) instead of current_tid.
18907 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18908 instead of current_tid. Use find_process_pid to verify pid
18909 argument is valid. Pass proper argument to remove_process.
18910 (spu_thread_alive): Compare current_ptid instead of current_tid.
18911 (spu_resume): Likewise.
18912
55ac2b99
PA
189132009-04-02 Pedro Alves <pedro@codesourcery.com>
18914
18915 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18916 variable.
18917
95954743
PA
189182009-04-01 Pedro Alves <pedro@codesourcery.com>
18919
18920 Implement the multiprocess extensions, and add linux multiprocess
18921 support.
18922
18923 * server.h (ULONGEST): Declare.
18924 (struct ptid, ptid_t): New.
18925 (minus_one_ptid, null_ptid): Declare.
18926 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18927 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18928 (struct inferior_list_entry): Change `id' type from unsigned from
18929 to ptid_t.
18930 (struct sym_cache, struct breakpoint, struct
18931 process_info_private): Forward declare.
18932 (struct process_info): Declare.
18933 (current_process): Declare.
18934 (all_processes): Declare.
18935 (initialize_inferiors): Declare.
18936 (add_thread): Adjust to use ptid_t.
18937 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18938 (add_process, remove_process, find_thread_pid): Declare.
18939 (find_inferior_id): Adjust to use ptid_t.
18940 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18941 (multi_process): Declare.
18942 (push_event): Adjust to use ptid_t.
18943 (read_ptid, write_ptid): Declare.
18944 (prepare_resume_reply): Adjust to use ptid_t.
18945 (clear_symbol_cache): Declare.
18946 * inferiors.c (all_processes): New.
18947 (null_ptid, minus_one_ptid): New.
18948 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18949 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18950 (add_thread): Change unsigned long to ptid. Remove gdb_id
18951 parameter. Adjust.
18952 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18953 (gdb_id_to_thread): Rename to ...
18954 (find_thread_pid): ... this. Change unsigned long to ptid.
18955 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18956 (loaded_dll, pull_pid_from_list): Adjust.
18957 (add_process, remove_process, find_process_pid)
18958 (get_thread_process, current_process, initialize_inferiors): New.
18959 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18960 (struct target_waitstatus) <related_pid>: Ditto.
18961 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18962 return type to int.
18963 (struct target_ops) <join>: Add `pid' argument.
18964 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18965 (struct target_ops) <wait>: Add `ptid' field. Change return type
18966 to ptid.
18967 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18968 (mywait): Add `ptid' argument. Change return type to ptid_t.
18969 (target_pid_to_str): Declare.
18970 * target.c (set_desired_inferior): Adjust to use ptids.
18971 (mywait): Add new `ptid' argument. Adjust.
18972 (target_pid_to_str): New.
18973 * mem-break.h (free_all_breakpoints): Declare.
18974 * mem-break.c (breakpoints): Delelete.
18975 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18976 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18977 to use per-process breakpoint list.
18978 (free_all_breakpoints): New.
18979 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18980 (symbol_cache, all_symbols_looked_up): Delete.
18981 (hexchars): New.
18982 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18983 read_ptid): New.
18984 (prepare_resume_reply): Change ptid argument's type from unsigned
18985 long to ptid_t. Adjust. Implement W;process and X;process.
18986 (free_sym_cache, clear_symbol_cache): New.
18987 (look_up_one_symbol): Adjust to per-process symbol cache. *
18988 * server.c (cont_thread, general_thread, step_thread): Change type
18989 to ptid_t.
18990 (attached): Delete.
18991 (multi_process): New.
18992 (last_ptid): Change type to ptid_t.
18993 (struct vstop_notif) <ptid>: Change type to ptid_t.
18994 (queue_stop_reply, push_event): Change `ptid' argument's type to
18995 ptid_t.
18996 (discard_queued_stop_replies): Add `pid' argument.
18997 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18998 changes. Don't reference the `attached' global.
18999 (attach_inferior): Adjust to mywait interface changes.
19000 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19001 features. Handle and report "multiprocess+". Handle
19002 "qAttached:PID".
19003 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19004 changes.
19005 (handle_v_kill): New.
19006 (handle_v_stopped): Adjust to use target_pid_to_str.
19007 (handle_v_requests): Allow multiple attaches and runs when
19008 multiprocess extensions are in effect. Handle "vKill".
19009 (myresume): Adjust to use ptids.
19010 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19011 (handle_status): Adjust to discard_queued_stop_replies interface
19012 change.
19013 (first_thread_of, kill_inferior_callback)
19014 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19015 (main): Call initialize_inferiors. Adjust to use ptids, killing
19016 and detaching from all inferiors. Handle multiprocess packet
19017 variants.
19018 * linux-low.h: Include gdb_proc_service.h.
19019 (struct process_info_private): New.
19020 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19021 <lwpid_of>: Use ptid_get_lwp.
19022 (get_lwp_thread): Adjust.
19023 (struct lwp_info): Add `dead' member.
19024 (find_lwp_pid): Declare.
19025 * linux-low.c (thread_db_active): Delete.
19026 (new_inferior): Adjust comment.
19027 (inferior_pid): Delete.
19028 (linux_add_process): New.
19029 (handle_extended_wait): Adjust.
19030 (add_lwp): Change unsigned long to ptid.
19031 (linux_create_inferior): Add process to processes table. Adjust
19032 to use ptids. Don't set new_inferior here.
19033 (linux_attach_lwp): Rename to ...
19034 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19035 it. Adjust to use ptids.
19036 (linux_attach_lwp): New.
19037 (linux_attach): Add process to processes table. Don't set
19038 new_inferior here.
19039 (struct counter): New.
19040 (second_thread_of_pid_p, last_thread_of_process_p): New.
19041 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19042 multiple processes.
19043 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19044 processes. Remove process from process table.
19045 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19046 to multiple processes.
19047 (any_thread_of): New.
19048 (linux_detach): Add `pid' argument, and handle it. Remove process
19049 from processes table.
19050 (linux_join): Add `pid' argument. Handle it.
19051 (linux_thread_alive): Change unsighed long argument to ptid_t.
19052 Consider dead lwps as not being alive.
19053 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19054 threads we're not interested in.
19055 (same_lwp, find_lwp_pid): New.
19056 (linux_wait_for_lwp): Change `pid' argument's type from int to
19057 ptid_t. Adjust.
19058 (linux_wait_for_event): Rename to ...
19059 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19060 from int to ptid_t. Adjust.
19061 (linux_wait_for_event): New.
19062 (linux_wait_1): Add `ptid' argument. Change return type to
19063 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19064 that exit from the process table.
19065 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19066 Adjust.
19067 (mark_lwp_dead): New.
19068 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19069 stopping all threads, mark its main lwp as dead.
19070 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19071 ptids.
19072 (fetch_register, usr_store_inferior_registers)
19073 (regsets_fetch_inferior_registers)
19074 (regsets_store_inferior_registers, linux_read_memory)
19075 (linux_write_memory): Inline `inferior_pid'.
19076 (linux_look_up_symbols): Adjust to use per-process
19077 `thread_db_active'.
19078 (linux_request_interrupt): Adjust to use ptids.
19079 (linux_read_auxv): Inline `inferior_pid'.
19080 (initialize_low): Don't reference thread_db_active.
19081 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19082 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19083 (ps_getpid): Return the pid of the current inferior.
19084 * thread-db.c (proc_handle, thread_agent): Delete.
19085 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19086 per-process data.
19087 (find_one_thread): Change argument type to ptid_t. Adjust to
19088 per-process data.
19089 (maybe_attach_thread): Adjust to per-process data and ptids.
19090 (thread_db_find_new_threads): Ditto.
19091 (thread_db_init): Ditto.
19092 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19093 processes table. Adjust to use ptids.
19094 (spu_kill, spu_detach): Adjust interface. Remove process from
19095 processes table.
19096 (spu_join, spu_thread_alive): Adjust interface.
19097 (spu_wait): Adjust interface. Remove process from processes
19098 table. Adjust to use ptids.
19099 * win32-low.c (current_inferior_tid): Delete.
19100 (current_inferior_ptid): New.
19101 (debug_event_ptid): New.
19102 (thread_rec): Take a ptid. Adjust.
19103 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19104 (child_delete_thread): Ditto.
19105 (do_initial_child_stuff): Add `attached' argument. Add process to
19106 processes table.
19107 (child_fetch_inferior_registers, child_store_inferior_registers):
19108 Adjust.
19109 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19110 (win32_attach): Pass 1 to do_initial_child_stuff.
19111 (win32_kill): Adjust interface. Remove process from processes
19112 table.
19113 (win32_detach): Ditto.
19114 (win32_join): Adjust interface.
19115 (win32_thread_alive): Take a ptid.
19116 (win32_resume): Adjust to use ptids.
19117 (get_child_debug_event): Ditto.
19118 (win32_wait): Adjust interface. Remove exiting process from
19119 processes table.
19120
bd99dc85
PA
191212009-04-01 Pedro Alves <pedro@codesourcery.com>
19122
19123 Non-stop mode support.
19124
19125 * server.h (non_stop): Declare.
19126 (gdb_client_data, handler_func): Declare.
19127 (delete_file_handler, add_file_handler, start_event_loop):
19128 Declare.
19129 (handle_serial_event, handle_target_event, push_event)
19130 (putpkt_notif): Declare.
19131 * target.h (enum resume_kind): New.
19132 (struct thread_resume): Replace `step' field by `kind' field.
19133 (TARGET_WNOHANG): Define.
19134 (struct target_ops) <wait>: Add `options' argument.
19135 <supports_non_stop, async, start_non_stop>: New fields.
19136 (target_supports_non_stop, target_async): New.
19137 (start_non_stop): Declare.
19138 (mywait): Add `options' argument.
19139 * target.c (mywait): Add `options' argument. Print child exit
19140 notifications here.
19141 (start_non_stop): New.
19142 * server.c (non_stop, own_buf, mem_buf): New globals.
19143 (struct vstop_notif): New.
19144 (notif_queue): New global.
19145 (queue_stop_reply, push_event, discard_queued_stop_replies)
19146 (send_next_stop_reply): New.
19147 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19148 interface changes.
19149 (attach_inferior): In non-stop mode, don't wait for the target
19150 here.
19151 (handle_general_set): Handle QNonStop.
19152 (handle_query): When handling qC, return the current general
19153 thread, instead of the first thread of the list.
19154 (handle_query): If the backend supports non-stop mode, include
19155 QNonStop+ in the qSupported query response.
19156 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19157 and non-stop mode.
19158 (handle_v_attach, handle_v_run): Handle non-stop mode.
19159 (handle_v_stopped): New.
19160 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19161 (myresume): Adjust to use resume_kind. Handle non-stop.
19162 (queue_stop_reply_callback): New.
19163 (handle_status): Handle non-stop mode.
19164 (main): Clear non_stop flag on reconnection. Use the event-loop.
19165 Refactor serial protocol handling from here ...
19166 (process_serial_event): ... to this new function. When GDB
19167 selects any thread, select one here. In non-stop mode, wait until
19168 GDB acks all pending events before exiting.
19169 (handle_serial_event, handle_target_event): New.
19170 * remote-utils.c (remote_open): Install remote_desc in the event
19171 loop.
19172 (remote_close): Remove remote_desc from the event loop.
19173 (putpkt_binary): Rename to...
19174 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19175 (putpkt_binary): New as wrapper around putpkt_binary_1.
19176 (putpkt_notif): New.
19177 (prepare_resume_reply): In non-stop mode, don't change the
19178 general_thread.
19179 * event-loop.c: New.
19180 * Makefile.in (OBJ): Add event-loop.o.
19181 (event-loop.o): New rule.
19182
19183 * linux-low.h (pid_of): Moved here.
19184 (lwpid_of): New.
19185 (get_lwp_thread): Use lwpid_of.
19186 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19187 * linux-low.c (pid_of): Delete.
19188 (inferior_pid): Use lwpid_of.
19189 (linux_event_pipe): New.
19190 (target_is_async_p): New.
19191 (delete_lwp): New.
19192 (handle_extended_wait): Use lwpid_of.
19193 (add_lwp): Don't set lwpid field.
19194 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19195 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19196 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19197 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19198 first. Adjust to linux_wait_for_event interface changes. Use
19199 lwpid_of.
19200 (linux_detach): Don't delete the main lwp here.
19201 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19202 (status_pending_p): Don't consider explicitly suspended lwps.
19203 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19204 pointer. Add OPTIONS argument. Change return type to int. Use
19205 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19206 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19207 pointer. Add status pointer argument. Return a pid instead of a
19208 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19209 changes. In non-stop mode, don't switch to a random thread.
19210 (linux_wait): Rename to...
19211 (linux_wait_1): ... this. Add target_options argument, and handle
19212 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19213 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19214 clean exit and signal exit code. Don't stop all threads in
19215 non-stop mode. In all-stop mode, only stop all threads when
19216 reporting a stop to GDB. Handle explicit thread stop requests.
19217 (async_file_flush, async_file_mark): New.
19218 (linux_wait): New.
19219 (send_sigstop): Use lwpid_of.
19220 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19221 interface changes. In non-stop mode, don't switch to a random
19222 thread.
19223 (linux_resume_one_lwp): Use lwpid_of.
19224 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19225 (linux_resume_one_thread): ... this. Handle resume_stop. In
19226 non-stop mode, don't look for pending flag in all threads.
19227 (resume_status_pending_p): Don't consider explicitly suspended
19228 threads.
19229 (my_waitpid): Reimplement. Emulate __WALL.
19230 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19231 Use lwpid_of.
19232 (sigchld_handler, linux_supports_non_stop, linux_async)
19233 (linux_start_non_stop): New.
19234 (linux_target_ops): Register linux_supports_non_stop, linux_async
19235 and linux_start_non_stop.
19236 (initialize_low): Install SIGCHLD handler.
19237 * thread-db.c (thread_db_create_event, find_one_thread)
19238 (thread_db_get_tls_address): Use lwpid_of.
19239 * win32-low.c (win32_detach): Adjust to use resume_kind.
19240 (win32_wait): Add `options' argument.
19241 * spu-low.c (spu_resume): Adjust to use resume_kind.
19242 (spu_wait): Add `options' argument.
19243
5b1c542e
PA
192442009-04-01 Pedro Alves <pedro@codesourcery.com>
19245
19246 Decouple target code from remote protocol.
19247
19248 * target.h (enum target_waitkind): New.
19249 (struct target_waitstatus): New.
19250 (struct target_ops) <wait>: Return an unsigned long. Take a
19251 target_waitstatus pointer instead of a char pointer.
19252 (mywait): Likewise.
19253 * target.c (mywait): Change prototype to return an unsigned long.
19254 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19255 * server.h (thread_from_wait, old_thread_from_wait): Delete
19256 declarations.
19257 (prepare_resume_reply): Change prototype to take a
19258 target_waitstatus.
19259 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19260 (last_status, last_ptid): New.
19261 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19262 pid instead of a signal.
19263 (attach_inferior): Remove "status" and "signal" parameters.
19264 Adjust.
19265 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19266 not as an address.
19267 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19268 (handle_v_requests, myresume): Remove "status" and "signal"
19269 parameters. Adjust.
19270 (handle_status): New.
19271 (main): Delete local `status'. Adjust.
19272 * remote-utils.c: Include target.h.
19273 (prepare_resume_reply): Change prototype to take a
19274 target_waitstatus. Adjust.
19275
19276 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19277 interface.
19278 * spu-low.c (spu_wait): Adjust.
19279 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19280 Delete.
19281 (win32_wait): Adjust.
19282
2bd7c093
PA
192832009-04-01 Pedro Alves <pedro@codesourcery.com>
19284
19285 * target.h (struct thread_resume): Delete leave_stopped member.
19286 (struct target_ops): Add a `n' argument to the `resume' callback.
19287 * server.c (start_inferior): Adjust.
19288 (handle_v_cont, myresume): Adjust.
19289 * linux-low.c (check_removed_breakpoint): Adjust to resume
19290 interface change, and to removed leave_stopped field.
19291 (resume_ptr): Delete.
19292 (struct thread_resume_array): New.
19293 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19294 resume interface change.
19295 (linux_continue_one_thread, linux_queue_one_thread)
19296 (resume_status_pending_p): Check if the resume field is NULL
19297 instead of checking the leave_stopped member.
19298 (linux_resume): Adjust to the target resume interface change.
19299 * spu-low.c (spu_resume): Adjust to the target resume interface
19300 change.
19301 * win32-low.c (win32_detach, win32_resume): Ditto.
19302
c35fafde
PA
193032009-04-01 Pedro Alves <pedro@codesourcery.com>
19304
19305 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19306 flag.
19307 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19308 pending.
19309 (linux_continue_one_thread): Only preserve the stepping flag if
19310 there's a pending breakpoint.
19311
0a59d50b
PA
193122009-03-31 Pedro Alves <pedro@codesourcery.com>
19313
19314 * server.c (main): After the inferior having exited, call
19315 remote_close before exiting gdbserver.
19316
f04c6d38
TJB
193172009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19318
19319 Fix size of FPSCR in Power 7 processors.
19320 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19321 (PPC_FEATURE_HAS_DFP): New #define.
19322 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19323 size of the FPSCR.
19324
78e5cee6
PA
193252009-03-23 Pedro Alves <pedro@codesourcery.com>
19326
19327 * server.c (handle_query) Whitespace and formatting.
19328
1b3f6016
PA
193292009-03-22 Pedro Alves <pedro@codesourcery.com>
19330
19331 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19332 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19333 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19334 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19335 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19336 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19337 Makefile.in, configure.ac: Fix whitespace throughout.
19338 * configure: Regenerate.
19339
a07b2135
PA
193402009-03-22 Pedro Alves <pedro@codesourcery.com>
19341
19342 * inferiors.c (find_inferior): Make it safe for the callback
19343 function to delete the currently iterated inferior.
19344
67cc2626
PA
193452009-03-22 Pedro Alves <pedro@codesourcery.com>
19346
19347 * Makefile.in (linuw_low_h): Move higher.
19348 (thread-db.o): Depend on $(linux_low_h).
19349
54a0b537
PA
193502009-03-17 Pedro Alves <pedro@codesourcery.com>
19351
19352 Rename "process" to "lwp" throughout.
19353
19354 * linux-low.c (all_processes): Rename to...
19355 (all_lwps): ... this.
19356 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19357 (add_process): Rename to ...
19358 (add_lwp): ... this. Adjust.
19359 (linux_create_inferior): Adjust.
19360 (linux_attach_lwp): Adjust.
19361 (linux_attach): Adjust.
19362 (linux_kill_one_process): Rename to ...
19363 (linux_kill_one_lwp): ... this. Adjust.
19364 (linux_kill): Adjust.
19365 (linux_detach_one_process): Rename to ...
19366 (linux_detach_one_lwp): ... this. Adjust.
19367 (linux_detach): Adjust.
19368 (check_removed_breakpoint): Adjust.
19369 (status_pending_p): Adjust.
19370 (linux_wait_for_process): Rename to ...
19371 (linux_wait_for_lwp): ... this. Adjust.
19372 (linux_wait_for_event): Adjust.
19373 (send_sigstop): Adjust.
19374 (wait_for_sigstop): Adjust.
19375 (stop_all_processes): Rename to ...
19376 (stop_all_lwps): ... this.
19377 (linux_resume_one_process): Rename to ...
19378 (linux_resume_one_lwp): ... this. Adjust.
19379 (linux_set_resume_request, linux_continue_one_thread)
19380 (linux_queue_one_thread, resume_status_pending_p)
19381 (usr_store_inferior_registers, regsets_store_inferior_registers)
19382 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19383 Adjust.
19384 * linux-low.h (get_process): Rename to ...
19385 (get_lwp): ... this. Adjust.
19386 (get_thread_process): Rename to ...
19387 (get_thread_lwp): ... this. Adjust.
19388 (get_process_thread): Rename to ...
19389 (get_lwp_thread): ... this. Adjust.
19390 (struct process_info): Rename to ...
19391 (struct lwp_info): ... this.
19392 (all_processes): Rename to ...
19393 (all_lwps): ... this.
19394 * proc-service.c (ps_lgetregs): Adjust.
19395 * thread-db.c (thread_db_create_event, find_one_thread)
19396 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19397
0b16c5cf
PA
193982009-03-14 Pedro Alves <pedro@codesourcery.com>
19399
19400 * server.c (handle_query): Handle "qAttached".
19401
32de4b9d
NS
194022009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19403
19404 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19405 GPLv3, update license URL.
19406
2aecd87f
DE
194072009-03-01 Doug Evans <dje@google.com>
19408
93efd302 19409 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19410 (server_h): Add gdb_signals.h.
19411 (signals.o): Update.
19412 * server.h (target_signal_from_host,target_signal_to_host_p)
19413 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19414
86b1f9c5
PM
194152009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19416
19417 * remote-utils.c (getpkt): Also generate remote-debug
19418 information if noack_mode is set.
19419
4aa995e1
PA
194202009-02-06 Pedro Alves <pedro@codesourcery.com>
19421
19422 * server.c (handle_query): Report qXfer:siginfo:read and
19423 qXfer:siginfo:write as supported and handle them.
19424 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19425 * linux-low.c (linux_xfer_siginfo): New.
19426 (linux_target_ops): Set it.
19427
62709adf
PA
194282009-01-26 Pedro Alves <pedro@codesourcery.com>
19429
19430 * server.c (gdbserver_usage): Mention --remote-debug.
19431 (main): Accept '--remote-debug' switch.
19432
aef93bd7
DE
194332009-01-18 Doug Evans <dje@google.com>
19434
19435 * regcache.c (new_register_cache): No need to check result of xcalloc.
19436 * server.c (handle_search_memory): Back out calls to xmalloc,
19437 result is checked and error is returned to user upon failure.
19438 (handle_query): Ditto. Add more checks for result of malloc.
19439 (handle_v_cont): Check result of malloc, report error back to
19440 user upon failure.
19441 (handle_v_run): Ditto. Call freeargv.
19442 * server.h (freeargv): Declare.
19443 * utils.c (freeargv): New fn.
19444
54363045
DE
194452009-01-15 Doug Evans <dje@google.com>
19446
f626972c
DE
19447 * gdbreplay.c (perror_with_name): Make arg const char *.
19448 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19449 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19450 * utils.c (perror_with_name): Make arg const char *.
54363045 19451
18aae699
PA
194522009-01-14 Pedro Alves <pedro@codesourcery.com>
19453
19454 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19455 when handling a EXIT_PROCESS_DEBUG_EVENT.
19456
ff703abe
JB
194572009-01-06 Joel Brobecker <brobecker@adacore.com>
19458
19459 * gdbreplay.c (gdbreplay_version): Update copyright year.
19460 * server.c (gdbserver_version): Likewise.
19461
f21cc1a2 194622009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19463
19464 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19465 (handle_extended_wait): Improve comment.
0e21c1ec 19466
bca929d3
DE
194672008-12-13 Doug Evans <dje@google.com>
19468
19469 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19470 * server.h (ATTR_MALLOC): New macro.
19471 (xmalloc,xcalloc,xstrdup): Declare.
19472 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19473 * inferiors.c: Ditto.
19474 * linux-low.c: Ditto.
19475 * mem-break.c: Ditto.
19476 * regcache.c: Ditto.
19477 * remote-utils.c: Ditto.
19478 * server.c: Ditto.
19479 * target.c: Ditto.
19480 * win32-low.c: Ditto.
19481
97438e3f
DE
194822008-12-12 Doug Evans <dje@google.com>
19483
896c7fbb
DE
19484 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19485 in debugging printf.
19486
97438e3f
DE
19487 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19488
e3b886f8
DE
194892008-12-09 Doug Evans <dje@google.com>
19490
19491 * linux-low.h (struct process_info): Delete member tid, unused.
19492 * thread-db.c (find_one_thread): Update.
19493 (maybe_attach_thread): Update.
19494
07e059b5
VP
194952008-12-02 Pedro Alves <pedro@codesourcery.com>
19496
889bf7c5
PA
19497 * target.h (struct target_ops): Add qxfer_osdata member.
19498 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19499 and dirent.h.
19500 (linux_qxfer_osdata): New functions.
19501 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19502 callback.
19503 * server.c (handle_query): Handle "qXfer:osdata:read:".
19504 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19505 (buffer_xml_printf): New functions.
19506 * server.h (struct buffer): New.
19507 (buffer_grow_str, buffer_grow_str0): New macros.
19508 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19509 (buffer_xml_printf): Declare.
07e059b5 19510
4cab47ab
DE
195112008-11-24 Doug Evans <dje@google.com>
19512
19513 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19514
f142445f
DJ
195152008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19516
19517 * server.c (handle_v_run): Always use the supplied argument list.
19518
d0107bb6 195192008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19520
d0107bb6
BW
19521 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19522 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19523
2c4ad781
TJB
195242008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19525
19526 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19527 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19528 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19529 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19530 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19531 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19532 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19533 XML target descriptions.
19534 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19535 when inferior is running on an ISA 2.05 or later processor. Add
19536 special case to return offset for full 64-bit slot of FPSCR when
19537 in 32-bits.
19538
dfb64f85
DJ
195392008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19540
19541 * Makefile.in (SFILES, clean): Added sparc64 files.
19542 (reg-sparc64.o, reg-sparc64.c): New.
19543 * configure.srv (sparc*-*-linux*): New configuration.
19544 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19545 syscall arguments for SPARC.
19546 (regsets_store_inferior_registers): Likewise.
19547 * linux-sparc-low.c: New file.
19548
66b6e1dd
DE
195492008-10-21 Doug Evans <dje@google.com>
19550
19551 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19552 (READLINE_DIR,READLINE_DEP): Delete.
19553 (INTERNAL_CFLAGS): Update.
19554 (LINTFLAGS): Update.
19555
9b710a42
PA
195562008-10-10 Pedro Alves <pedro@codesourcery.com>
19557
19558 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19559 whole argv from the last run, not just argv[0].
19560
5822d809
PA
195612008-09-08 Pedro Alves <pedro@codesourcery.com>
19562
19563 * regcache.c (new_register_cache): Return NULL if the register
19564 cache size isn't known yet.
19565 (free_register_cache): Avoid dereferencing a NULL regcache.
19566
74aac56f
DJ
195672008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19568
19569 * configure.srv: Merge MIPS and MIPS64.
19570
400b20f5
MR
195712008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19572
19573 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19574
677c5bb1
LM
195752008-08-18 Luis Machado <luisgpm@br.ibm.com>
19576
19577 * Makefile.in: Add required vsx dependencies.
19578
19579 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19580 Declare init_registers_powerpc_vsx32l.
19581 Declare init_registers_powerpc_vsx64l.
19582 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19583 (ppc_arch_setup): Check for VSX in hwcap.
19584 (ppc_fill_vsxregset): New function.
19585 (ppc_store_vsxregset): New function.
19586 Add new VSX entry in regset_info target_regsets.
19587
19588 * configure.srv: Add new VSX dependencies.
19589
a6f3e723
SL
195902008-08-12 Pedro Alves <pedro@codesourcery.com>
19591
19592 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19593 (remote_open): Set or clear transport_is_reliable.
19594 (putpkt_binary): Don't expect acks in noack mode.
19595 (getpkt): Don't send ack/nac in noack mode.
19596 * server.c (handle_general_set): Handle QStartNoAckMode.
19597 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19598 qSupported.
19599 (main): Reset noack_mode on every connection.
19600 * server.h (noack_mode): Declare.
19601
a417dc56
RW
196022008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19603
19604 * Makefile.in (GDBREPLAY_OBS): New variable.
19605 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19606
3221518c
UW
196072008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19608 Daniel Jacobowitz <dan@codesourcery.com>
19609
19610 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19611 (usr_store_inferior_registers): Likewise.
19612 (regsets_store_inferior_registers): Likewise.
19613
ec56be1b
PA
196142008-07-31 Rolf Jansen <rj@surtec.com>
19615 Pedro Alves <pedro@codesourcery.com>
19616
19617 * configure.ac: Check for memmem declaration.
19618 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19619 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19620 (disable_packet_qfThreadInfo): Unconditionally compile.
19621 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19622 * configure, config.in: Regenerate.
19623
2fe5e3ff
DE
196242008-07-28 Doug Kwan <dougkwan@google.com>
19625
19626 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19627 (linux_write_memory): Remove declaration of errno.
19628
836acd6d
UW
196292008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19630
19631 * linux-low.c (handle_extended_wait): Do not use "status"
19632 variable uninitialized.
19633
aeba519e
PA
196342008-07-07 Pedro Alves <pedro@codesourcery.com>
19635
19636 * server.c (handle_v_attach): Inhibit reporting dll changes.
19637
db42f210
PA
196382008-06-27 Pedro Alves <pedro@codesourcery.com>
19639
19640 * remote-utils.c (prepare_resume_reply): If requested, don't
19641 output "thread:TID" in the T stop reply.
19642
19643 * server.c (disable_packet_vCont, disable_packet_Tthread)
19644 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19645 (handle_query): If requested, disable support for qC, qfThreadInfo
19646 and qsThreadInfo.
19647 (handle_v_requests): If requested, disable support for vCont.
19648 (gdbserver_show_disableable): New.
19649 (main): Handle --disable-packet and --disable-packet=LIST.
19650
19651 * server.h (disable_packet_vCont, disable_packet_Tthread)
19652 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19653
8e4c5421
CD
196542008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19655
19656 * server.c (gdbserver_usage): Mention --version.
19657
6e23a804
DJ
196582008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19659
19660 * Makefile.in (gdbreplay.o): New rule.
19661
90aa6a40
JM
196622008-06-06 Joseph Myers <joseph@codesourcery.com>
19663
19664 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19665 message, not gdbserver.
19666
c16158bc 196672008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19668 Nathan Sidwell <nathan@codesourcery.com>
19669 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19670
19671 * acinclude.m4: Include ../../config/acx.m4.
19672 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19673 * configure, config.in: Regenerate.
19674 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19675 * server.c (gdbserver_version): Print PKGVERSION.
19676 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19677 (main): Adjust gdbserver_usage calls.
19678 * gdbreplay.c (version, host_name): Add declarations.
19679 (gdbreplay_version, gdbreplay_usage): New.
19680 (main): Accept --version and --help options.
19681
aeb75bf5
DJ
196822008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19683
19684 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19685 (arm_breakpoint_at): Handle Thumb.
19686 (the_low_target): Add comment.
19687
76b233dd
UW
196882008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19689
19690 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19691
08388c79
DE
196922008-05-09 Doug Evans <dje@google.com>
19693
a3c83fae
DE
19694 * server.h (decode_search_memory_packet): Declare.
19695 * remote-utils.c (decode_search_memory_packet): New fn.
19696 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19697 (handle_search_memory): New fn.
19698 (handle_query): Process qSearch:memory packets.
19699
bb9c3d36
UW
197002008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19701
19702 * regcache.c (registers_length): Remove.
19703 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19704 full register packet.
19705 * regcache.h (registers_length): Remove prototype.
19706 * server.h (PBUFSIZ): Define to 16384.
19707
7284e1be
UW
197082008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19709
19710 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19711 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19712 powerpc-64l.o, and powerpc-altivec64l.o.
19713 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19714 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19715 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19716 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19717 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19718 to srv_xmlfiles.
19719
19720 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19721 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19722 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19723 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19724 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19725 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19726 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19727 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19728 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19729 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19730 (clean): Update.
19731
19732 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19733 (init_registers_powerpc_32l): ... this new prototype.
19734 (init_registers_powerpc_32): Remove, replace by ...
19735 (init_registers_powerpc_altivec32l): ... this new prototype.
19736 (init_registers_powerpc_e500): Remove, replace by ...
19737 (init_registers_powerpc_e500l): ... this new prototype.
19738 (init_registers_ppc64): Remove, replace by ...
19739 (init_registers_powerpc_64l): ... this new prototype.
19740 (init_registers_powerpc_64): Remove, replace by ...
19741 (init_registers_powerpc_altivec64l): ... this new prototype.
19742 (ppc_num_regs): Set to 73.
19743 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19744 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19745 (ppc_cannot_store_register): Handle orig_r3 and trap.
19746 (ppc_arch_setup): Update init_registers_... calls.
19747 (ppc_fill_gregset): Handle orig_r3 and trap.
19748
19749 * inferiors.c (clear_inferiors): Reset current_inferior.
19750
fdc59709
PB
197512008-04-23 Paolo Bonzini <bonzini@gnu.org>
19752
889bf7c5
PA
19753 * acinclude.m4: Add override.m4.
19754 * configure: Regenerate.
fdc59709 19755
c9b2f845
UW
197562008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19757
19758 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19759 initial call to init_register_ppc64.
19760
550512b8
UW
197612008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19762
43aaf8b6
PA
19763 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19764 single powerpc*-*-linux* case.
550512b8
UW
19765 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19766
b6430ec3
UW
197672008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19768
19769 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19770 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19771 from reg_xmlfiles.
19772 * linux-ppc-low.c: Include <elf.h>.
19773 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19774 (ppc_hwcap): New global variable.
19775 (ppc_regmap): Remove __SPE__ #ifdef sections.
19776 (ppc_regmap_e500): New global variable.
19777 (ppc_cannot_store_register): Update __SPE__ special case.
19778 (ppc_get_hwcap): New function.
19779 (ppc_arch_setup): Use it to determine whether inferior supports
19780 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19781 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19782 Do not access registers if target does not support AltiVec.
19783 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19784 Do not access registers if target does not support SPE.
19785 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19786
52fa2412
UW
197872008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19788
19789 * linux-low.c (disabled_regsets, num_regsets): New.
19790 (use_regsets_p): Delete.
19791 (linux_wait_for_process): Clear disabled_regsets.
19792 (regsets_fetch_inferior_registers): Check and set it.
19793 (regsets_store_inferior_registers): Likewise.
19794 (linux_fetch_registers, linux_store_registers): Do not use
19795 use_regsets_p.
19796 (initialize_low): Allocate disabled_regsets.
19797
e28b3332
DJ
197982008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19799
19800 * Makefile.in (LIBOBJS): New.
19801 (OBS): Use LIBOBJS.
19802 (memmem.o): New rule.
19803 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19804 * configure: Regenerated.
19805
4536995d
UW
198062008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19807
19808 * server.c (handle_query): Never return "unsupported" for
19809 qXfer:features:read queries.
19810
221c031f
UW
198112008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19812
19813 * server.c (get_features_xml): Fix inverted condition.
19814 (handle_query): Always support qXfer:feature:read.
19815
ccd213ac
DJ
198162008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19817
19818 * server.c (wrapper_argv): New.
19819 (start_inferior): Handle wrapper_argv. If set, expect an extra
19820 trap.
19821 (gdbserver_usage): Document --wrapper.
19822 (main): Parse --wrapper.
19823
6fe305f7
UW
198242008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19825
19826 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19827 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19828 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19829 (ppc_set_pc): Likewise.
19830 (ppc_arch_setup): New function.
19831 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19832 of collect_register.
889bf7c5 19833 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19834
5b0a002e
UW
198352008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19836
19837 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19838 instead of linux-ppc64-low.o.
19839 * linux-ppc64-low.c: Remove file.
19840 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19841 (linux-ppc64-low.o): Remove rule.
19842
19843 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19844 (init_registers_powerpc_64): Likewise.
19845 (ppc_regmap): Conditionally define depending on __powerpc64__.
19846 (ppc_cannot_store_register): Do not special-case "fpscr" when
19847 compiled on __powerpc64__.
19848 (ppc_collect_ptrace_register): New function.
19849 (ppc_supply_ptrace_register): New function.
19850 (ppc_breakpoint): Change type to "unsigned int".
19851 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19852 (the_low_target): Conditionally provide initializers for the
889bf7c5 19853 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19854 collect_ptrace_register and supply_ptrace_register members.
19855
9b4b61c8
UW
198562008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19857
19858 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19859 * server.c (gdbserver_xmltarget): Define.
19860 (get_features_xml): Use it to replace "target.xml" and arch_string.
19861
19862 * configure.srv: Remove srv_xmltarget. Add XML files that were
19863 mentioned there to srv_xmlfiles instead. Remove conditional tests
19864 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19865 srv_xmlfiles and srv_regobj to include all possible choices.
19866 * configure.ac (srv_xmltarget): Remove.
19867 (srv_xmlfiles): Do not add "target.xml".
19868 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19869 checks for supplementary target information.
19870 * configure: Regenerate.
19871 * Makefile.in (XML_TARGET): Remove.
19872 (target.xml): Remove rule.
19873 (clean): Do not clean up target.xml.
19874 (.PRECIOUS): Do not mention target.xml.
19875
19876 * target.h (struct target_ops): Remove arch_string member.
19877 * linux-low.c (linux_arch_string): Remove.
19878 (linux_target_ops): Remove arch_string initializer.
19879 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19880 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19881 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19882 * spu-low.c (spu_arch_string): Remove.
19883 (spu_target_ops): Remove arch_string initializer.
19884 * win32-low.c (win32_arch_string): Remove.
19885 (win32_target_ops): Remove arch_string initializer.
19886 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19887 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19888 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19889
ee1a7ae4
UW
198902008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19891
19892 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19893 by collect_ptrace_register and supply_ptrace_register hooks.
19894 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19895 instead of checking for the_low_target.left_pad_xfer.
19896 (usr_store_inferior_registers): Use collect_ptrace_register callback
19897 instead of checking for the_low_target.left_pad_xfer.
19898
19899 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19900 (s390_supply_ptrace_register): Likewise.
19901 (s390_fill_gregset): Call s390_collect_ptrace_register.
19902 (the_low_target): Update.
19903
19904 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19905 (ppc_supply_ptrace_register): Likewise.
19906 (the_low_target): Update.
19907
19908 * linux-i386-low.c (the_low_target): Update.
19909 * linux-x86-64-low.c (the_low_target): Update.
19910
d61ddec4
UW
199112008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19912
19913 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19914 reg-s390.o and reg-s390x.o.
19915
19916 * linux-low.c (new_inferior): New global variable.
19917 (linux_create_inferior, linux_attach): Set it.
19918 (linux_wait_for_process): Call the_low_target.arch_setup after the
19919 target has stopped for the first time.
19920 (initialize_low): Do not call the_low_target.arch_setup.
19921
19922 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19923 (s390_set_pc): Likewise.
19924 (s390_arch_setup): New function.
19925 (the_low_target): Use s390_arch_setup as arch_setup routine.
19926
19927 * regcache.c (realloc_register_cache): New function.
19928 (set_register_cache): Call it for each existing regcache.
19929
d05b4ac3
UW
199302008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19931
19932 * server.h (init_registers): Remove prototype.
19933
19934 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19935 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19936 instead of init_registers ().
19937 * linux-arm-low.c (init_registers_arm): Add prototype.
19938 (init_registers_arm_with_iwmmxt): Likewise.
19939 (the_low_target): Add initializer for arch_setup field.
19940 * linux-cris-low.c (init_registers_cris): Add prototype.
19941 (the_low_target): Add initializer for arch_setup field.
19942 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19943 (the_low_target): Add initializer for arch_setup field.
19944 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19945 (the_low_target): Add initializer for arch_setup field.
19946 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19947 (the_low_target): Add initializer for arch_setup field.
19948 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19949 (the_low_target): Add initializer for arch_setup field.
19950 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19951 (the_low_target): Add initializer for arch_setup field.
19952 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19953 (init_registers_mips64_linux): Likewise.
19954 (the_low_target): Add initializer for arch_setup field.
19955 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19956 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19957 (the_low_target): Add initializer for arch_setup field.
19958 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19959 (init_registers_powerpc_64): Likewise.
19960 (the_low_target): Add initializer for arch_setup field.
19961 * linux-s390-low.c (init_registers_s390): Add prototype.
19962 (init_registers_s390x): Likewise.
19963 (the_low_target): Add initializer for arch_setup field.
19964 * linux-sh-low.c (init_registers_sh): Add prototype.
19965 (the_low_target): Add initializer for arch_setup field.
19966 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19967 (the_low_target): Add initializer for arch_setup field.
19968 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19969 (the_low_target): Add initializer for arch_setup field.
19970
19971 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19972 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19973 instead of init_registers ().
19974 * win32-arm-low.c (init_registers_arm): Add prototype.
19975 (the_low_target): Add initializer for arch_setup field.
19976 * win32-i386-low.c (init_registers_i386): Add prototype.
19977 (the_low_target): Add initializer for arch_setup field.
19978
19979 * spu-low.c (init_registers_spu): Add prototype.
19980 (initialize_low): Call initialie_registers_spu () instead of
19981 initialize_registers ().
19982
fd96d250
PA
199832008-02-19 Pedro Alves <pedro@codesourcery.com>
19984
19985 * server.c (handle_v_requests): When handling the vRun and vAttach
19986 packets, if already debugging a process, don't kill it. Return an
19987 error instead.
19988
d41b6bb4
DJ
199892008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19990
19991 * server.c (handle_query): Correct length check.
19992
5ac588cf
PA
199932008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19994
19995 * win32-low.c (do_initial_child_stuff): Add process handle
19996 parameter. Set current_process_handle and current_process_id from the
19997 parameters. Clear globals.
19998 (win32_create_inferior): Don't set current_process_handle and
19999 current_process_id here. Instead pass them on the call to
20000 do_initial_child_stuff.
20001 (win32_attach): Likewise.
20002 (win32_clear_inferiors): New.
20003 (win32_kill): Don't close the current process handle or the
20004 current thread handle here. Instead call win32_clear_inferiors.
20005 (win32_detach): Don't open a new handle to the process. Call
20006 win32_clear_inferiors.
20007 (win32_join): Don't rely on current_process_handle; open a new
20008 handle using the process id.
20009 (win32_wait): Call win32_clear_inferiors when the inferior process
20010 has exited.
20011
ecd7ecbc
DJ
200122008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20013
20014 * server.c (monitor_show_help): Add "exit".
20015
1525d545
MG
200162008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20017
ecd7ecbc 20018 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20019 (clean): Add reg-xtensa.c.
20020 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20021 * configure.srv (xtensa*-*-linux*) New target.
20022 * linux-xtensa-low.c: New.
20023 * xtensa-xtregs.c: New.
1525d545 20024
59a016f0
PA
200252008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20026
20027 * hostio.c: Don't include errno.h.
20028 (errno_to_fileio_errno): Move to hostio-errno.
20029 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20030 error number outputting to the target->hostio_last_error callback.
20031 (hostio_packet_error): Use FILEIO_EINVAL directly.
20032 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20033 calls to hostio_error.
20034 * hostio-errno.c: New.
20035 * server.h (hostio_last_error_from_errno): Declare.
20036 * target.h (target_ops): Add hostio_last_error member.
20037 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20038 as hostio_last_error handler.
889bf7c5 20039 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20040 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20041 (wince_hostio_last_error): New functions.
20042 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20043 as hostio_last_error handler.
20044 (win32_target_ops) [!_WIN32_WCE]: Register
20045 hostio_last_error_from_errno as hostio_last_error handler.
20046 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20047 (hostio-errno.o): New rule.
20048 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20049 * configure.srv (srv_hostio_err_objs): New variable. Default to
20050 hostio-errno.o.
20051 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20052 * configure: Regenerate.
20053
2d717e4f
DJ
200542008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20055
20056 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20057 (linux_kill, linux_detach): Clean up the process list.
20058 * remote-utils.c (remote_open): Improve port number parsing.
20059 (putpkt_binary, input_interrupt): Only send interrupts if the target
20060 is running.
20061 * server.c (extended_protocol): Make static.
20062 (attached): Define earlier.
20063 (exit_requested, response_needed, program_argv): New variables.
20064 (target_running): New.
20065 (start_inferior): Clear attached here.
20066 (attach_inferior): Set attached here.
20067 (require_running): Define.
20068 (handle_query): Use require_running and target_running. Implement
20069 "monitor exit".
20070 (handle_v_attach, handle_v_run): New.
20071 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20072 (gdbserver_usage): Update.
20073 (main): Redo argument parsing. Handle --debug and --multi. Handle
20074 --attach along with other options or after the port. Save
20075 program_argv. Support no initial program. Resynchronize
20076 communication with GDB after an error. Handle "monitor exit".
20077 Use require_running and target_running. Always allow the extended
20078 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20079 restart in extended mode.
20080 * README: Refer to the GDB manual. Update --attach usage.
20081
7407e2de
AS
200822007-12-20 Andreas Schwab <schwab@suse.de>
20083
20084 * linux-low.c (STACK_SIZE): Define.
20085 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20086 (linux_test_for_tracefork): Likewise.
20087
b65d95c5
DJ
200882007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20089
20090 * linux-low.c (linux_wait_for_event): Update messages. Do not
20091 reinsert auto-delete breakpoints.
20092 * mem-break.c (struct breakpoint): Change return type of handler to
20093 int.
20094 (set_breakpoint_at): Update handler type.
20095 (reinsert_breakpoint_handler): Return 1 instead of calling
20096 delete_breakpoint.
20097 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20098 setting a new one.
20099 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20100 * mem-break.h (set_breakpoint_at): Update handler type.
20101 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20102 * win32-low.c (auto_delete_breakpoint): New.
20103 (get_child_debug_event): Use it.
20104
4e799345
DJ
201052007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20106
20107 * configure.ac: Check for pread and pwrite.
20108 * hostio.c (handle_pread): Fall back to lseek and read.
20109 (handle_pwrite): Fall back to lseek and write.
20110 * config.in, configure: Regenerated.
20111
27524b67
DJ
201122007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20113
20114 * server.c (myresume): Add own_buf argument.
20115 (main): Update calls.
20116
a20d5e98
DJ
201172007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20118
20119 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20120 * remote-utils.c (remote_open): Do not call disable_async_io.
20121 (block_async_io): Delete.
20122 (unblock_async_io): Make static.
20123 (initialize_async_io): New.
20124 * server.c (handle_v_cont): Handle async I/O here.
20125 (myresume): Likewise. Move other common resume tasks here...
20126 (main): ... from here. Call initialize_async_io. Disable async
20127 I/O before the main loop.
20128 * server.h (initialize_async_io): Declare.
20129 (block_async_io, unblock_async_io): Delete prototypes.
20130 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20131
b79d787e
DJ
201322007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20133
20134 * remote-utils.c (readchar): Allow binary data in received messages.
20135
d97903b2
PA
201362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20137
20138 * win32-low.c (attaching): New global.
20139 (win32_create_inferior): Clear the `attaching' global.
20140 (win32_attach): Set the `attaching' global.
20141 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20142 attaching. Only set a breakpoint at the entry point if not
20143 attaching.
20144
311de423
PA
201452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20146
20147 * server.c (main): Don't report dll events on the initial
20148 connection on attaches.
20149
6c2d16d2
PA
201502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20151
20152 * server.c (main): Relax numerical bases supported for the pid of
20153 the --attach command line argument.
20154
5ca906e6
PA
201552007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20156
20157 * win32-low.c (win32_attach): Call OpenProcess before
20158 DebugActiveProcess, not after. Add last error output to error
20159 call.
20160
9c6c8194
PA
201612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20162
20163 * win32-low.c (win32_get_thread_context)
20164 (win32_set_thread_context): New functions.
20165 (thread_rec): Use win32_get_thread_context.
20166 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20167 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20168 field.
20169
4d5d1aaa
PA
201702007-12-03 Leo Zayas
20171 Pedro Alves <pedro_alves@portugalmail.pt>
20172
20173 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20174 global variables.
20175 (child_add_thread): Minor cleanup.
20176 (child_continue): Resume artificially suspended threads before
20177 calling ContinueDebugEvent.
20178 (suspend_one_thread): New.
20179 (fake_breakpoint_event): New.
20180 (get_child_debug_event): Change return type to int. Check here if
20181 gdb sent an interrupt request. If a soft interrupt was requested,
20182 fake a breakpoint event. Return 0 if there is no event to handle,
20183 and 1 otherwise.
20184 (win32_wait): Don't check here if gdb sent an interrupt request.
20185 Ensure there is a valid event to handle.
20186 (win32_request_interrupt): Add soft interruption method as last
20187 resort.
20188
c436e841
PA
201892007-12-03 Leo Zayas
20190 Pedro Alves <pedro_alves@portugalmail.pt>
20191
20192 * win32-low.h (win32_thread_info): Add descriptions to the
20193 structure members. Replace `suspend_count' counter by a
20194 `suspended' flag.
20195 * win32-low.c (thread_rec): Update condition of when to get the
20196 context from the inferior. Rely on ContextFlags being set if it
20197 has already been retrieved. Only suspend the inferior thread if
20198 we haven't already. Warn if that fails.
20199 (continue_one_thread): s/suspend_count/suspended/. Only call
20200 ResumeThread once. Warn if that fails.
20201
e7b5fa67
PA
202022007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20203
20204 * win32-low.c (win32_wait): Don't read from the inferior when it
20205 has already exited.
20206
a385171d
PA
202072007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20208
20209 * Makefile.in (win32_low_h): New variable.
20210 (win32-low.o): Add dependency on $(win32_low_h).
20211 (win32-arm-low.o, win32-i386-low.o): New rules.
20212
f80c84b3
DJ
202132007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20214
20215 * hostio.c: Correct copyright year.
20216
a6b151f1
DJ
202172007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20218
20219 * Makefile.in (OBS): Add hostio.o.
20220 (hostio.o): New rule.
20221 * server.h (handle_vFile): Declare.
20222 * hostio.c: New file.
20223 * server.c (handle_v_requests): Take packet_len and new_packet_len
20224 for binary packets. Call handle_vFile.
20225 (main): Update call to handle_v_requests.
20226
f9387fc3
DJ
202272007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20228
20229 * linux-low.c: Include <sched.h>.
20230
51c2684e
DJ
202312007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20232
20233 * linux-low.c (linux_tracefork_grandchild): New.
20234 (linux_tracefork_child): Use clone.
20235 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20236
75f83163
JB
202372007-10-31 Joel Brobecker <brobecker@adacore.com>
20238
20239 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20240
da5898ce
DJ
202412007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20242
20243 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20244
24a09b5f
DJ
202452007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20246
20247 * inferiors.c (change_inferior_id): Delete.
20248 (add_pid_to_list, pull_pid_from_list): New.
20249 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20250 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20251 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20252 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20253 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20254 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20255 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20256 (using_threads): Always set to 1.
20257 (handle_extended_wait): New.
20258 (add_process): Do not set TID.
20259 (linux_create_inferior): Set must_set_ptrace_flags.
20260 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20261 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20262 (linux_thread_alive): Rename TID argument to LWPID.
20263 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20264 (linux_wait_for_event): Do not use TID or check using_threads. Update
20265 call to dead_thread_notify. Call handle_extended_wait.
20266 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20267 (send_sigstop): Delete sigstop_sent.
20268 (wait_for_sigstop): Avoid TID.
20269 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20270 (linux_test_for_tracefork): New.
20271 (linux_lookup_signals): Use thread_db_active and
20272 linux_supports_tracefork_flag.
20273 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20274 * linux-low.h (get_process_thread): Avoid TID.
20275 (struct process_ifo): Move thread_known and tid to the end. Remove
20276 sigstop_sent.
20277 (linux_attach_lwp, thread_db_init): Update prototypes.
20278 * server.h (change_inferior_id): Delete prototype.
20279 (add_pid_to_list, pull_pid_from_list): New prototypes.
20280 * thread-db.c (thread_db_use_events): New.
20281 (find_first_thread): Rename to...
20282 (find_one_thread): ...this. Update callers and messages. Do not
20283 call fatal. Check thread_db_use_events. Do not call
20284 change_inferior_id or new_thread_notify.
20285 (maybe_attach_thread): Update. Do not call new_thread_notify.
20286 (thread_db_init): Set thread_db_use_events. Check use_events.
20287 * utils.c (fatal, warning): Correct message prefix.
20288
30ed0a8f
DJ
202892007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20290
20291 * Makefile.in (clean): Remove new files.
20292 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20293 (powerpc-64.o, powerpc-64.c): New rules.
20294 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20295 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20296 with SPE.
20297 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20298 SPE targets.
20299 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20300 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20301 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20302 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20303 (target_regsets): Add AltiVec and SPE register sets.
20304 * configure.ac: Check for AltiVec and SPE.
20305 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20306 (ppc_fill_vrregset, ppc_store_vrregset): New.
20307 (target_regsets): Add AltiVec register set.
20308 * configure: Regenerated.
20309
fd462a61
DJ
203102007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20311
20312 * linux-low.c (O_LARGEFILE): Define.
20313 (linux_read_memory): Use /proc/PID/mem.
20314 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20315 * configure, config.in: Regenerated.
20316
69f223ed
DJ
203172007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20318
20319 * linux-low.c (linux_wait_for_event): Do not pass signals while
20320 single-stepping.
20321
aec18585
PA
203222007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20323
20324 * win32-low.c (create_process): New.
20325 (win32_create_inferior): Use create_process instead of
20326 CreateProcess. If create_process failed retry appending an ".exe"
20327 suffix. Store the GetLastError result immediatelly after
20328 create_process calls and use it on the call to error.
20329
34d86ddd
PA
203302007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20331
20332 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20333
5a0e3bd0
JB
203342007-08-23 Joel Brobecker <brobecker@adacore.com>
20335
20336 * configure.ac: Switch license to GPLv3.
20337
f88c79e6
MS
203382007-08-01 Michael Snyder <msnyder@access-company.com>
20339
20340 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20341
6b3d9b83
PA
203422007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20343
20344 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20345 typedef.
20346 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20347 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20348 CloseToolhelp32Snapshot.
20349 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20350 CloseToolhelp32Snapshot.
20351
c588c53c
MS
203522007-07-27 Michael Snyder <michael.snyder@access-company.com>
20353
20354 * server.c (main): Check for inferior exit before main loop.
20355
aa0403d9
PA
203562007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20357
20358 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20359 instead of on tmp_desc.
20360
255e7678
DJ
203612007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20362 Daniel Jacobowitz <dan@codesourcery.com>
20363
20364 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20365 (add_thread): Minor cleanups.
20366 (clear_inferiors): Move lower in the file. Clear the DLL
20367 list.
20368 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20369 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20370 (xml_escape_text): New.
20371 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20372 for qSupported.
20373 (handle_v_cont): Report errors.
20374 (gdbserver_version): Update.
20375 (main): Correct size of own_buf. Do not report initial DLL events.
20376 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20377 (unloaded_dll, xml_escape_text): New.
20378 * win32-low.c (enum target_waitkind): Update comments.
20379 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20380 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20381 (win32_EnumProcessModules, win32_GetModuleInformation)
20382 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20383 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20384 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20385 (win32_Module32First, win32_Module32Next, load_toolhelp)
20386 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20387 (get_child_debug_event): Handle DLL events.
20388 (win32_wait): Likewise.
20389
0d37add9
DJ
203902007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20391
20392 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20393 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20394
45e2715e
PA
203952007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20396
20397 * win32-low.c (handle_output_debug_string): Ignore event if not
20398 waiting.
20399
c5674cf1
PA
204002007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20401
20402 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20403
2bbe3cc1
DJ
204042007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20405
20406 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20407
ae13219e
DJ
204082007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20409
20410 * inferiors.c (change_inferior_id): Add comment.
20411 * linux-low.c (check_removed_breakpoint): Add an early
20412 prototype. Improve debug output.
20413 (linux_attach): Doc update.
20414 (linux_detach_one_process, linux_detach): Clean up before releasing
20415 each process.
20416 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20417 * linux-low.h (struct process_info): Doc improvement.
20418 * mem-break.c (delete_all_breakpoints): New.
20419 * mem-break.h (delete_all_breakpoints): New prototype.
20420 * thread-db.c (find_first_thread): New.
20421 (thread_db_create_event): Call it instead of
20422 thread_db_find_new_threads. Clean up unused variables.
20423 (maybe_attach_thread): Remove first thread handling.
20424 (thread_db_find_new_threads): Use find_first_thread.
20425 (thread_db_get_tls_address): Likewise.
20426
4105de34
DJ
204272007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20428
20429 * thread-db.c (thread_db_find_new_threads): Add prototype.
20430 (thread_db_create_event): Check for the main thread before adding
20431 a new thread.
20432 (maybe_attach_thread): Only enable event reporting if TID == 0.
20433 (thread_db_get_tls_address): Check for new threads.
20434
2b876972
DJ
204352007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20436
20437 * linux-low.c (linux_create_inferior): Try execv before execvp.
20438 * spu-low.c (spu_create_inferior): Likewise.
20439
7a245884
DJ
204402007-06-13 Mike Frysinger <vapier@gentoo.org>
20441
20442 * linux-low.c (linux_create_inferior): Change execv to execvp.
20443 * spu-low.c (spu_create_inferior): Likewies.
20444
117ce543
DJ
204452007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20446
20447 * Makefile.in (clean): Clean new files instead of deleted ones.
20448 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20449 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20450 rules.
20451 * configure.srv: Specify XML files and new regformats for MIPS and
20452 MIPS64 GNU/Linux.
20453 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20454 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20455 an entry for the restart register.
20456 (mips_cannot_fetch_register, mips_cannot_store_register)
20457 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20458 register names to match the XML descriptions.
20459 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20460 restart register instead of $0.
20461
0e7f50da
UW
204622007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20463 Markus Deuling <deuling@de.ibm.com>
20464
20465 * remote-utils.c (decode_xfer_write): New function.
20466 * server.h (decode_xfer_write): Add prototype.
20467 * server.c (handle_query): Add PACKET_LEN argument. Support
20468 qXfer:spu:read and qXfer:spu:write packets.
20469 (main): Pass packet_len to handle_query.
20470 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20471 * target.h (target_ops): Add qxfer_spu.
20472
374c1d38
UW
204732007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20474
20475 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20476 accessing non-seekable spufs files.
20477
bb63802a
UW
204782007-05-16 Markus Deuling <deuling@de.ibm.com>
20479
889bf7c5 20480 * server.c (handle_query): Add reply for qC packet.
bb63802a 20481
7390519e
PA
204822007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20483 Leo Zayas <lerele@champenstudios@com>
20484
20485 * server.h (check_remote_input_interrupt_request): New function.
20486 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20487 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20488 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20489 (check_remote_input_interrupt_request): New function.
20490 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20491 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20492 winapi_GenerateConsoleCtrlEvent): New typedefs.
20493 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20494 to 250 ms.
20495 (win32_wait): Check for remote interrupt request
20496 with check_remote_input_interrupt_request.
20497 (win32_request_interrupt): New function.
20498 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20499
34b34921
PA
205002007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20501
20502 * win32-low.c (debug_registers_changed,
20503 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20504 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20505 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20506 (thread_rec): Get context using the low target.
20507 (child_add_thread): Call thread_added on the low target,
20508 which does the same thing.
20509 (regptr): Delete.
20510 (do_initial_child_stuff): Remove debug registers references.
20511 Set context using the low target. Resume threads after
20512 setting the contexts.
20513 (child_continue): Remove dead variable. Remove debug
20514 registers references.
20515 (child_fetch_inferior_registers): Go through the low target.
20516 (do_child_store_inferior_registers): Remove.
20517 (child_store_inferior_registers): Go through the low target.
20518 (win32_resume): Remove debug registers references.
20519 Set context using the low target.
20520 (handle_exception): Change return type to void. Don't record
20521 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20522 first chance exception.
889bf7c5 20523 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20524 goto loop. Always return after waiting for debug event.
20525 (win32_wait): Convert to switch statement. Handle spurious
20526 events.
20527
20528 * win32-i386-low.c (debug_registers_changed,
20529 debug_registers_used): New.
20530 (initial_stuff): Rename to ...
20531 (i386_initial_stuff): ... this. Clear debug registers
20532 state variables.
20533 (store_debug_registers): Delete.
20534 (i386_get_thread_context): New.
20535 (load_debug_registers): Delete.
20536 (i386_set_thread_context): New.
20537 (i386_thread_added): New.
20538 (single_step): Rename to ...
20539 (i386_single_step): ... this.
20540 (do_fetch_inferior_registers): Rename to ...
20541 (i386_fetch_inferior_register): ... this.
20542 (i386_store_inferior_register): New.
20543 (the_low_target): Adapt to new interface.
20544
20545 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20546 (arm_get_thread_context): New.
20547 (arm_set_thread_context): New.
20548 (regptr): New.
20549 (do_fetch_inferior_registers): Rename to ...
20550 (arm_fetch_inferior_register): ... this.
20551 (arm_store_inferior_register): New.
20552 (arm_wince_breakpoint): Reimplement as unsigned long.
20553 (arm_wince_breakpoint_len): Define.
20554 (the_low_target): Adapt to new interface.
20555
20556 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20557 load_debug_registers. Add get_thread_context, set_thread_context,
20558 thread_added and store_inferior_register. Rename
20559 fetch_inferior_registers to fetch_inferior_register.
20560 (regptr): Remove declaration.
20561
dd6953e1
PA
205622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20563
20564 * linux-low.c (linux_detach): Change return type to int. Return 0.
20565 * spu-low.c (spu_detach): Likewise.
20566
444d6139
PA
205672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20568
20569 * target.h (target_ops): Change return type of detach to int.
20570 Add join.
20571 (join_inferior): New.
20572 * server.c (main): Don't skip detach support on mingw32.
20573 If the inferior doesn't support detaching return error.
20574 Call join_inferior instead of using waitpid.
20575 * linux-low.c (linux_join): New.
20576 (linux_target_op): Add linux_join.
20577 * spu-low.c (spu_join): New.
20578 (spu_target_ops): Add spu_join.
20579 * win32-low.c (win32_detach): Adapt to new interface.
20580 Reopen current_process_handle before detaching. Issue a child
20581 resume before detaching.
20582 (win32_join): New.
20583 (win32_target_op): Add win32_join.
20584
1d5315fe
PA
205852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20586
20587 * win32-low.c (win32-attach): Fix return value.
20588 * target.h (target_ops): Describe ATTACH return values.
20589
bf914831
PA
205902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20591
20592 * win32-low.c (GETPROCADDRESS): Define.
20593 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20594 (winapi_DebugSetProcessKillOnExit): Likewise.
20595 (win32_create_inferior): Force usage of ansi CreateProcessA.
20596 (win32_attach): Use GETPROCADDRESS.
20597 (win32_detach): Likewise.
20598
f72f3e60
PA
205992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20600
20601 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20602
ed50f18f
PA
206032007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20604
20605 * win32-low.c: Commit leftover changes from 2007-03-29.
20606
0c2ead7e
DJ
206072007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20608
20609 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20610 fields short instead of int. Add explicit padding.
20611 (i387_cache_to_fsave): Remove unnecessary casts.
20612 (i387_fsave_to_cache): Doc fix.
20613 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20614
73725ff3
DJ
206152007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20616
20617 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20618 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20619
d99f33d8
PA
206202007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20621
20622 * configure.srv (arm*-*-mingw32ce*): Move near the other
20623 arm targets.
20624
68070c10
PA
206252007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20626
2482afc6 20627 * configure.ac: Add errno checking.
68070c10
PA
20628 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20629 sys/file.h and malloc.h.
20630 (AC_CHECK_DECLS): Add perror.
20631 (srv_mingwce): Handle.
2482afc6 20632 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20633 win32-i386-low.o to srv_tgtobj.
20634 (i[34567]86-*-mingw*): Likewise.
20635 (arm*-*-mingw32ce*): Add case.
20636 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20637 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20638 [__MINGW32CE__] (strerror): New function.
20639 [__MINGW32CE__] (errno): Define to GetLastError.
20640 [__MINGW32CE__] (COUNTOF): New macro.
20641 (remote_open): Remove extra close call.
20642 * mem-break.c (delete_breakpoint_at): New function.
20643 * mem-break.h (delete_breakpoint_at): Declare.
20644 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20645 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20646 [USE_WIN32API] (read, write): Add char* casts.
20647 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20648 * server.h: Include wincecompat.h on Windows CE.
20649 [HAVE_ERRNO_H]: Check.
20650 (perror): Declare if not declared.
20651 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20652 (perror_with_name): Remove errno declaration.
20653 * wincecompat.h: New.
20654 * wincecompat.c: New.
20655 * win32-low.h: New.
20656 * win32-arm-low.c: New.
20657 * win32-i386-low.c: New.
20658 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20659 (OUTMSG2): Make it safe.
20660 (_T): New macro.
20661 (COUNTOF): New macro.
20662 (NUM_REGS): Get it from the low target.
20663 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20664 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20665 (thread_rec): Let low target handle debug registers.
20666 (child_add_thread): Likewise.
20667 (child_init_thread_list): Likewise.
20668 (continue_one_thread): Likewise.
20669 (regptr): New.
20670 (do_child_fetch_inferior_registers): Move to ...
20671 * win32-i386-low.c: ... here, and rename to ...
20672 (do_fetch_inferior_registers): ... this.
889bf7c5 20673 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20674 Go through the low target.
20675 (do_child_store_inferior_registers): Use regptr.
20676 (strwinerror): New function.
20677 (win32_create_inferior): Handle Windows CE.
20678 Use strwinerror instead of strerror on Windows error
20679 codes. Add program to the error output.
20680 Don't close the main thread handle on Windows CE.
20681 (win32_attach): Use coredll.dll on Windows CE.
20682 (win32_kill): Close current process and current
20683 thread handles.
20684 (win32_detach): Use coredll.dll on Windows CE.
20685 (win32_resume): Let low target handle debug registers, and
20686 step request.
20687 (handle_exception): Add/Remove initial breakpoint. Avoid
20688 non-existant WSTOPSIG on Windows CE.
20689 (win32_read_inferior_memory): Cast to remove warning.
20690 (win32_arch_string): Go through the low target.
20691 (initialize_low): Call set_breakpoint_data with the low
20692 target's breakpoint.
20693 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20694 FOP_REGNUM, mappings): Move to ...
20695 * win32-i386-low.c: ... here.
20696 * win32-low.c (win32_thread_info): Move to ...
20697 * win32-low.h: ... here.
20698 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20699 win32-arm-low.c and wincecompat.c.
20700 (all:): Add $EXEEXT.
20701 (install-only:): Likewise.
20702 (gdbserver:): Likewise.
20703 (gdbreplay:): Likewise.
20704 * config.in: Regenerate.
20705 * configure: Regenerate.
20706
41093d81
PA
207072007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20708
20709 * win32-low.c: Rename typedef thread_info to
20710 win32_thread_info throughout.
20711
544afa54
PA
207122007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20713
20714 * win32-i386-low.c: Rename to ...
20715 * win32-low.c: ... this.
20716 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20717 * Makefile.in: Likewise.
20718
bce7165d
PA
207192007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20720
20721 * remote-utils.c (monitor_output): Constify msg parameter.
20722 * server.h (monitor_output): Likewise.
20723 * win32-i386-low.c (handle_output_debug_string): New.
20724 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20725 handle_output_debug_string.
20726 (get_child_debug_event): Likewise.
20727
506c7aa0
DJ
207282007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20729
20730 * server.c (main): Correct strtoul check.
20731
42c81e2a
DJ
207322007-03-27 Jon Ringle <jon@ringle.org>
20733
20734 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20735
9453113a
DJ
207362007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20737
20738 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20739
64a69107
DJ
207402007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20741
20742 * terminal.h: Check HAVE_SGTTY_H.
20743
207442007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20745
20746 * remote-utils.c (remote_open): Print out the assigned port number.
20747
c74d0ad8
DJ
207482007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20749
20750 * remote-utils.c (monitor_output): New function.
20751 * server.c (debug_threads): Define here.
20752 (monitor_show_help): New function.
20753 (handle_query): Handle qRcmd.
20754 (main): Do not handle 'd' packet.
20755 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20756 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20757 of debug_threads.
20758
de7c3b4a
PA
207592007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20760
20761 * Makefile.in (EXEEXT): New.
20762 (clean): Use $(EXEEXT).
20763
ef57601b
PA
207642007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20765
20766 * target.h (target_ops): Rename send_signal to request_interrupt,
20767 and remove enum target_signal parameter.
20768 * linux-low.c (linux_request_interrupt): Rename from
20769 linux_send_signal, and always send SIGINT.
20770 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20771 and always send SIGINT.
20772 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20773 of send_signal.
20774 (input_interrupt): Likewise.
20775
820f2bda
PA
207762007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20777
20778 * server.c (get_features_xml): Check if target implemented
20779 arch_string.
20780 * win32-i386-low.c (win32_arch_string): New.
20781 (win32_target_ops): Add win32_arch_string as arch_string member.
20782
ab39bf24
UW
207832007-02-22 Markus Deuling <deuling@de.ibm.com>
20784
20785 * spu-low.c (spu_arch_string): New.
20786 (spu_target_ops): Add spu_arch_string.
20787
61ff6e04
DJ
207882007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20789
20790 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20791 * configure.ac: Do not check for terminal.h.
20792 * configure, config.in: Regenerated.
20793
fb1e4ffc
DJ
207942007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20795
20796 * Makefile.in (OBS): Add $(XML_BUILTIN).
20797 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20798 (clean): Update.
20799 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20800 (arm-with-iwmmxt.c): New.
20801 * config.in, configure: Regenerate.
20802 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20803 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20804 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20805 (arm*-*-linux*): Add iWMMXt and regset support.
20806 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20807 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20808 (arm_store_wmmxregset, target_regsets): New.
20809 * server.c (get_features_xml): Take annex argument. Check builtin
20810 XML documents.
20811 (handle_query): Handle multiple annexes.
20812
0f48aa01
DJ
208132007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20814
20815 * remote-utils.c [USE_WIN32API] (read, write): Define.
20816 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20817 write.
20818
23181151
DJ
208192007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20820
20821 * linux-i386-low.c (the_low_target): Set arch_string.
20822 * linux-x86-64-low.c (the_low_target): Likewise.
20823 * linux-low.c (linux_arch_string): New.
20824 (linux_target_ops): Add it.
20825 * linux-low.h (struct linux_target_ops): Add arch_string.
20826 * server.c (write_qxfer_response): Use const void * for DATA.
20827 (get_features_xml): New.
20828 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20829 * target.h (struct target_ops): Add arch_string method.
20830
9d606399
DJ
208312007-01-03 Denis Pilat <denis.pilat@st.com>
20832 Daniel Jacobowitz <dan@codesourcery.com>
20833
20834 * linux-low.c (linux_kill): Handle being called with no threads.
20835 * win32-i386-low.c (win32_kill): Likewise.
20836 (get_child_debug_event): Clear current_process_handle.
20837
208382006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20839 Daniel Jacobowitz <dan@codesourcery.com>
20840
20841 * remote-utils.c (remote_open): Check the type of specified
20842 serial port devices before opening them.
20843 * server.c (main): Kill the inferior if an error occurs during
20844 the first remote_open.
20845
a5e13d24
DJ
208462006-12-05 Markus Deuling <deuling@de.ibm.com>
20847
20848 * README: Update supported targets.
20849
186947f7
DJ
208502006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20851
20852 * Makefile.in (clean): Remove reg-mips64.c.
20853 (reg-mips64.c, reg-mips64.o): New rules.
20854 * configure.srv: Handle mips64. Include regset support for mips.
20855 * linux-mips-low.c (union mips_register): New.
20856 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20857 (mips_breakpoint, mips_breakpoint_at): Use int.
20858 (mips_collect_register, mips_supply_register)
20859 (mips_collect_register_32bit, mips_supply_register_32bit)
20860 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20861 (mips_store_fpregset, target_regsets): New.
20862 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20863
a13e2c95
UW
208642006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20865
20866 * configure.srv: Add target "spu*-*-*".
20867 * Makefile.in (clean): Remove reg-spu.c.
20868 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20869 * spu-low.c: New file.
20870
cb7283db
DJ
208712006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20872
20873 * configure.ac: Correct td_thr_tls_get_addr test.
20874 * configure: Regenerated.
20875
89be2091
DJ
208762006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20877
20878 * linux-low.c (linux_wait_for_event): Reformat. Use the
20879 pass_signals array.
20880 * remote-utils.c (decode_address_to_semicolon): New.
20881 * server.c (pass_signals, handle_general_set): New.
20882 (handle_query): Mention QPassSignals for qSupported.
20883 (main): Call handle_general_set.
20884 * server.h (pass_signals, decode_address_to_semicolon): New.
20885
000ef4f0
DJ
208862006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20887
20888 * server.c (handle_query): Correct error handling for read_auxv.
20889
b7149293
UW
208902005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20891
20892 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20893 and srv_linux_thread_db to yes.
20894 * linux-s390-low.c (s390_fill_gregset): New function.
20895 (target_regsets): Define data structure.
20896
dae5f5cf
DJ
208972006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20898
20899 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20900 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20901 * config.in, configure: Regenerated.
20902 * inferiors.c (gdb_id_to_thread): New function.
20903 (gdb_id_to_thread_id): Use it.
20904 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20905 * linux-low.h (struct process_info): Add th member.
20906 (thread_db_get_tls_address): New prototype.
20907 * remote-utils.c (decode_address): Make non-static.
20908 * server.c (handle_query): Handle qGetTLSAddr.
20909 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20910 * target.h (struct target_ops): Add get_tls_address.
20911 * thread-db.c (maybe_attach_thread): Save the thread handle.
20912 (thread_db_get_tls_address): New.
20913
32ca6d61
DJ
209142006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20915
20916 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20917 (linux_resume_one_process): Take a siginfo_t *. Update all
20918 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20919 (struct pending_signals): Add a siginfo_t.
20920 (linux_wait_for_process): Always set last_status.
20921 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20922 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20923 * linux-low.h (struct process_info): Add last_status.
20924
5ffff7c1
DJ
209252006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20926
20927 * remote-utils.c (try_rle): New function.
20928 (putpkt_binary): Use it.
20929
8695c747
DJ
209302006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20931
20932 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20933 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20934 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20935 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20936 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20937 point registers.
20938
290fadea
RS
209392006-08-08 Richard Sandiford <richard@codesourcery.com>
20940
20941 * server.c (terminal_fd): New variable.
20942 (old_foreground_pgrp): Likewise.
20943 (restore_old_foreground_pgrp): New function.
20944 (start_inferior): Record the terminal file descriptor in terminal_fd
20945 and its original foreground group in old_foreground_pgrp. Register
20946 restore_old_foreground_pgrp with atexit().
20947
9f2e1e63
DJ
209482006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20949
20950 * server.c (handle_query): Correct qPart to qXfer.
20951
b80864fb
DJ
209522006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20953
20954 * configure.ac: Check for more headers which are missing on
20955 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20956 * configure.srv: Add Cygwin and mingw32.
20957 * remote-utils.c: Don't include headers unconditionally which
20958 are missing on mingw32. Include <winsock.h> for mingw32.
20959 (remote_open): Adjust for mingw32 support. Flush
20960 standard error after writing to it.
20961 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20962 (unblock_async_io, enable_async_io, disable_async_io)
20963 (readchar, getpkt): Update for Winsock support.
20964 (prepare_resume_reply): Expect a protocol signal number.
20965 * server.c: Disable <sys/wait.h> on mingw32.
20966 (start_inferior): Adjust for mingw32 support. Flush
20967 standard error after writing to it.
20968 (attach_inferior): Likewise. Use protocol signal
20969 numbers.
20970 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20971 and names.
20972 * win32-i386-low.c: New file.
20973 * Makefile.in (XM_CLIBS): Set.
20974 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20975 (win32-i386-low.o): New dependency rule.
20976 * linux-low.c (linux_wait): Use target signal numbers.
20977 * target.h (struct target_ops): Doc fix.
20978 * server.h (target_signal_to_name): New prototype.
20979 * gdbreplay.c: Don't include headers unconditionally which
20980 are missing on mingw32. Include <winsock.h> for mingw32.
20981 (remote_close, remote_open): Adjust for Winsock support.
20982 * configure, config.in: Regenerated.
20983
0876f84a
DJ
209842006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20985
20986 * server.c (decode_xfer_read, write_qxfer_response): New.
20987 (handle_query): Take a packet length argument. Handle
20988 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20989 the qSupported response.
20990 (main): Update call to handle_query.
20991
01f9e8fa
DJ
209922006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20993
20994 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20995 (putpkt_binary): Renamed from putpkt and adjusted for binary
20996 data.
20997 (putpkt): New wrapper for putpkt_binary.
20998 (readchar): Don't mask off the high bit.
20999 (decode_X_packet): New function.
21000 * server.c (main): Call putpkt_binary if a handler sets the packet
21001 length. Save the length of the incoming packet. Handle 'X'.
21002 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21003
be2a5f71
DJ
210042006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21005
21006 * server.c (handle_query): Handle qSupported.
21007
ea025f5f
DJ
210082006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21009
21010 * remote-utils.c (all_symbols_looked_up): New variable.
21011 (look_up_one_symbol): Check it.
21012 * server.h (look_up_one_symbol): New declaration.
21013 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21014
9308fc88
DJ
210152006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21016
21017 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21018 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21019 (PTRACE_GET_THREAD_AREA): Define.
21020 (ps_get_thread_area): New function.
21021
52fb6437
NS
210222006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21023
21024 * configure.srv (m68k*-*-uclinux*): New target.
21025 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21026 (linux_resume_one_process): Remove extraneous cast.
21027 (linux_read_offsets): New.
21028 (linux_target_op): Add linux_read_offsets on mmuless systems.
21029 * server.c (handle_query): Add qOffsets logic.
21030 * target.h (struct target_ops): Add read_offsets.
21031
21b0f40c
DJ
210322006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21033
21034 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21035 (PTRACE_GET_THREAD_AREA): Define.
21036 (ps_get_thread_area): New function.
21037 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21038 (linux-x86-64-low.o): Update.
21039
0050a760
DJ
210402006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21041
21042 * configure.ac: Remove checks for prfpregset_t.
21043 * gdb_proc_service.h: New file.
21044 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21045 new "gdb_proc_service.h".
21046 * proc-service.c: Likewise.
21047 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21048 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21049 * Makefile.in (gdb_proc_service_h): Updated.
21050 * configure, config.in: Regenerated.
21051
b92a518e
DJ
210522006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21053
21054 * remote-utils.c (prepare_resume_reply): Move declaration
21055 of gdb_id_from_wait to the top of the block.
21056
545587ee
DJ
210572006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * linux-low.c (regsets_store_inferior_registers): Read the regset
21060 from the target before filling it.
21061
9db87ebd
DJ
210622006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21063
21064 * server.c (attach_inferior): Return SIGTRAP for a successful
21065 attach.
21066
dd24457d
DJ
210672006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21068
21069 * Makefile.in (OBS): Add version.o.
21070 (STAGESTUFF): Delete.
21071 (version.o): Add dependencies.
21072 (version.c): Replace rule.
21073 (clean): Remove version.c.
21074 * server.c (gdbserver_version): New.
21075 (gdbserver_usage): Use printf.
21076 (main): Handle --version and --help.
21077 * server.h (version, host_name): Add declarations.
21078
6f0f660e
EZ
210792005-12-23 Eli Zaretskii <eliz@gnu.org>
21080
889bf7c5
PA
21081 * linux-arm-low.c:
21082 * linux-arm-low.c:
21083 * inferiors.c:
21084 * i387-fp.h:
21085 * i387-fp.c:
21086 * gdbreplay.c:
21087 * regcache.c:
21088 * proc-service.c:
21089 * mem-break.h:
21090 * mem-break.c:
21091 * linux-x86-64-low.c:
21092 * linux-sh-low.c:
21093 * linux-s390-low.c:
21094 * linux-ppc64-low.c:
21095 * linux-ppc-low.c:
21096 * linux-mips-low.c:
21097 * linux-m68k-low.c:
21098 * linux-m32r-low.c:
21099 * linux-low.h:
21100 * linux-low.c:
21101 * linux-ia64-low.c:
21102 * linux-i386-low.c:
21103 * linux-crisv32-low.c:
21104 * thread-db.c:
21105 * terminal.h:
21106 * target.h:
21107 * target.c:
21108 * server.h:
21109 * server.c:
21110 * remote-utils.c:
21111 * regcache.h:
21112 * utils.c:
21113 * Makefile.in:
21114 * configure.ac:
6f0f660e
EZ
21115 * gdbserver.1: Add (C) after Copyright. Update the FSF
21116 address.
21117
9d1fb177
DJ
211182005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21119
21120 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21121 (arm_breakpoint_at): Recognize both breakpoints.
21122 (the_low_target): Use the correct breakpoint instruction.
21123
011a70c2
DJ
211242005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21125
21126 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21127 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21128 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21129 (the_low_target): Update.
21130
7fb85e41
AS
211312005-10-25 Andreas Schwab <schwab@suse.de>
21132
21133 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21134
21135 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21136 (ia64_num_regs): Reduce to 462.
21137
3db0444b
DJ
211382005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21139
21140 * acinclude.m4: Correct quoting.
21141 * aclocal.m4: Regenerated.
21142
21143 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21144 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21145 (thread_db_init): Call thread_db_err_str.
21146 * configure.ac: Check for TD_VERSION.
21147 * config.in, configure: Regenerated.
21148
bee0189a
DJ
211492005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21150
21151 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21152
e9d25b98
DJ
211532005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21154
21155 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21156 is not available. Define HAVE_PTRACE_GETREGS if it is.
21157 * config.in, configure: Regenerated.
21158 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21159 * linux-i386-low.c, linux-m68k-low.c: Update to use
21160 HAVE_PTRACE_GETREGS.
21161 * linux-low.c (regsets_fetch_inferior_registers)
21162 (regsets_store_inferior_registers): Only return 0 if we processed
21163 GENERAL_REGS.
21164 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21165 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21166
a06660f7
DJ
211672005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21168
21169 * inferiors.c (struct thread_info): Add gdb_id.
21170 (add_thread): Add gdb_id argument.
21171 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21172 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21173 calls to add_thread.
21174 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21175 * server.c (handle_query): Use thread_to_gdb_id.
21176 (handle_v_cont, main): Use gdb_id_to_thread_id.
21177 * server.h (add_thread): Update prototype.
21178 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21179 prototypes.
21180
5a1f5858
DJ
211812005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21182
21183 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21184 left-padded registers.
21185 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21186 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21187
e122f1f5
SE
211882005-07-01 Steve Ellcey <sje@cup.hp.com>
21189
21190 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21191 * configure: Regenerate.
21192 * config.in: Regenerate.
21193 * server.h (NEED_DECLARATION_STRERROR):
21194 Replace with !HAVE_DECL_STRERROR.
21195
d592fa2f
DJ
211962005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21197
21198 * linux-low.c (linux_wait, linux_send_signal): Don't test
21199 an unsigned long variable for > 0 if it could be MAX_ULONG.
21200 * server.c (myresume): Likewise.
21201 * target.c (set_desired_inferior): Likewise.
21202
ccbd4912
MK
212032005-06-13 Mark Kettenis <kettenis@gnu.org>
21204
21205 * configure.ac: Simplify and improve check for socklen_t.
21206 * configure, config.in: Regenerate.
21207
f450004a
DJ
212082005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21209
21210 * acconfig.h: Remove.
21211 * configure.ac: Add a test for socklen_t. Use three-argument
21212 AC_DEFINE throughout.
21213 * config.in: Regenerated using autoheader 2.59.
21214 * configure: Regenerated.
21215
21216 * gdbreplay.c (socklen_t): Provide a default.
21217 (remote_open): Use socklen_t.
21218 * remote-utils.c (socklen_t): Provide a default.
21219 (remote_open): Use socklen_t.
21220 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21221 unsigned char.
21222
21223 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21224 char for buffers.
21225 * linux-low.c (linux_read_memory, linux_write_memory)
21226 (linux_read_auxv): Likewise.
21227 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21228 (check_mem_write): Likewise.
21229 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21230 Likewise.
21231 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21232 (registers_from_string, register_data): Likewise.
21233 * server.c (handle_query, main): Likewise.
21234 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21235 (decode_M_packet): Likewise.
21236 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21237 * target.h (struct target_ops): Update read_memory, write_memory,
21238 and read_auxv.
21239 (read_inferior_memory, write_inferior_memory): Update.
21240 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21241 to unsigned char *.
21242 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21243 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21244 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21245 linux-s390-low.c, linux-sh-low.c: Update for changes in
21246 read_inferior_memory and the_low_target->breakpoint.
21247
eee84df1
DJ
212482005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21249
21250 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21251 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21252 * configure.srv: Add powerpc64-*-linux*.
21253 * linux-ppc64-low.c: New file.
21254
45b134e5
OF
212552005-05-23 Orjan Friberg <orjanf@axis.com>
21256
21257 * linux-cris-low.c: New file with support for CRIS.
21258 * linux-crisv32-low.c: Ditto for CRISv32.
21259 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21260 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21261 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21262 reg-crisv32.o, and reg-crisv32.c to make rules.
21263 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21264 recognized targets.
21265
48d93c75
UW
212662005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21267
21268 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21269 of sizeof (PTRACE_XFER_TYPE).
21270 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21271
e013ee27
OF
212722005-05-12 Orjan Friberg <orjanf@axis.com>
21273
889bf7c5 21274 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21275 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21276 pointers for hardware watchpoint support.
21277 * linux-low.h (struct linux_target_ops): Ditto.
21278 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21279 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21280 to linux_target_ops.
21281 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21282 reply packet.
21283 * server.c (main): Recognize 'Z' and 'z' packets.
21284
b0ded00b
UW
212852005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21286
21287 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21288 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21289 (the_low_target): Add new members.
21290
8643e2ad
DJ
212912005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21292
21293 * proc-service.c (ps_lgetregs): Search all_processes instead of
21294 all_threads.
21295
fc620387
DJ
212962005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21297
21298 * server.c (start_inferior): Change return type to int.
21299 (attach_inferior): Change sigptr to int *.
21300 (handle_v_cont, handle_v_requests): Change signal to int *.
21301 (main): Change signal to int.
21302
213032005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21304
21305 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21306 * configure.srv: Add m32r*-*-linux*.
21307 * linux-m32r-low.c: New file.
21308
e0e76420
DJ
213092005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21310
21311 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21312
a1928bad
DJ
213132005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21314
21315 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21316 Take unsigned long arguments for PIDs.
21317 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21318 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21319 (wait_for_sigstop, linux_resume_one_process)
21320 (regsets_fetch_inferior_registers, linux_send_signal)
21321 (linux_read_auxv): Likewise. Update the types of variables holding
21322 PIDs. Update format string specifiers.
21323 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21324 * remote-utils.c (prepare_resume_reply): Likewise.
21325 * server.c (cont_thread, general_thread, step_thread)
21326 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21327 unsigned long.
21328 (handle_query): Update format specifiers.
21329 (handle_v_cont, main): Use strtoul for thread IDs.
21330 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21331 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21332 (general_thread, step_thread, thread_from_wait)
21333 (old_thread_from_wait): Update.
21334 * target.h (struct thread_resume): Use unsigned long for THREAD.
21335 (struct target_ops): Use unsigned long for arguments to attach and
21336 thread_alive.
21337
dcdb98d2
DJ
213382005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21339
21340 * acinclude.m4: Include bfd/bfd.m4 directly.
21341 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21342 <agriffis@toolchain.org>.
21343 * aclocal.m4, configure: Regenerated.
21344
bec39cab
AC
213452005-01-07 Andrew Cagney <cagney@gnu.org>
21346
21347 * configure.ac: Rename configure.in, require autoconf 2.59.
21348 * configure: Re-generate.
21349
434c4c77
DJ
213502004-12-08 Daniel Jacobowitz <dan@debian.org>
21351
21352 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21353 LIBS when finished.
21354 * aclocal.m4: Regenerated.
21355 * configure: Regenerated.
21356
db1d3e1b
AS
213572004-11-21 Andreas Schwab <schwab@suse.de>
21358
21359 * linux-m68k-low.c (m68k_num_gregs): Define.
21360 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21361 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21362 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21363 (m68k_breakpoint_at): New. Add to the_low_target.
21364
21365 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21366 srv_linux_thread_db to yes.
21367
43360365
JB
213682004-10-20 Joel Brobecker <brobecker@gnat.com>
21369
21370 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21371 (ARCH_SET_FS): Likewise.
21372 (ARCH_GET_FS): Likewise.
21373 (ARCH_GET_GS): Likewise.
21374
fd500816
DJ
213752004-10-16 Daniel Jacobowitz <dan@debian.org>
21376
21377 * linux-i386-low.c (ps_get_thread_area): New.
21378 * linux-x86-64-low.c (ps_get_thread_area): New.
21379 * linux-low.c: Include <sys/syscall.h>.
21380 (linux_kill_one_process): Don't kill the first thread here.
21381 (linux_kill): Kill the first thread here.
21382 (kill_lwp): New function.
21383 (send_sigstop, linux_send_signal): Use it.
21384 * proc-service.c: Clean up #ifdefs.
21385 (fpregset_info): Delete.
21386 (ps_lgetregs): Update and enable implementation.
21387 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21388 implementations.
21389 * remote-utils.c (struct sym_cache, symbol_cache): New.
21390 (input_interrupt): Print a clearer message.
21391 (async_io_enabled): New variable.
21392 (enable_async_io, disable_async_io): Use it. Update comments.
21393 (look_up_one_symbol): Use the symbol cache.
21394 * thread-db.c (thread_db_look_up_symbols): New function.
21395 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21396
f6de3c42
DJ
213972004-10-16 Daniel Jacobowitz <dan@debian.org>
21398
21399 * configure.in: Test for -rdynamic.
21400 * configure: Regenerated.
21401 * Makefile (INTERNAL_LDFLAGS): New.
21402 (gdbserver, gdbreplay): Use it.
21403
2c0fc042
AC
214042004-09-02 Andrew Cagney <cagney@gnu.org>
21405
21406 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21407
075b3282
DJ
214082004-03-23 Daniel Jacobowitz <drow@mvista.com>
21409
21410 * linux-low.c (linux_wait): Clear all_processes list also.
21411
fa6a77dc
DJ
214122004-03-12 Daniel Jacobowitz <drow@mvista.com>
21413
21414 * linux-low.c: Include <errno.h>. Remove extern declaration of
21415 errno.
21416
6d782a97
DJ
214172004-03-12 Daniel Jacobowitz <drow@mvista.com>
21418
21419 * gdbreplay.c, server.h, utils.c: Update copyright years.
21420
3a7fb99b
DJ
214212004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21422
21423 * server.c (main): Print child status or termination signal from
21424 variable 'signal', not 'sig'.
21425
c3e735a6
DJ
214262004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21427
21428 * linux-low.c (linux_read_memory): Change return type to
21429 int. Check for and return error from ptrace().
21430 * target.c (read_inferior_memory): Change return type to int. Pass
21431 back return status from the_target->read_memory().
21432 * target.h (struct target_ops): Adapt *read_memory() prototype.
21433 Update comment.
21434 (read_inferior_memory): Adapt prototype.
21435 * server.c (main): Return an error packet if
21436 read_inferior_memory() returns an error.
21437
a59d1c82
DJ
214382004-03-04 Daniel Jacobowitz <drow@mvista.com>
21439
21440 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21441 Unify with other clean targets.
21442
dc3f8883
DJ
214432004-02-29 Daniel Jacobowitz <drow@mvista.com>
21444
21445 * server.c (handle_v_cont): Call set_desired_inferior.
21446
89a208da
DJ
214472004-02-29 Daniel Jacobowitz <drow@mvista.com>
21448
21449 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21450
62ea82f5
DJ
214512004-02-29 Daniel Jacobowitz <drow@mvista.com>
21452
21453 * linux-low.c (linux_wait): Unblock async I/O.
21454 (linux_resume): Block and enable async I/O.
21455 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21456 * server.h (block_async_io, unblock_async_io): Add prototypes.
21457
6910d122
DJ
214582004-02-29 Daniel Jacobowitz <drow@mvista.com>
21459
21460 * remote-utils.c (remote_open): Print a status notice after
21461 opening a TCP port.
21462 * server.c (attach_inferior): Print a status notice after
21463 attaching.
21464
214652004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21466
21467 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21468
c89dc5d4
DJ
214692004-02-26 Daniel Jacobowitz <drow@mvista.com>
21470
21471 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21472 error packet.
21473 * server.c, target.h: Update copyright years.
21474
4b8dad4a
RM
214752004-02-25 Roland McGrath <roland@redhat.com>
21476
21477 * target.h (struct target_ops): New member `read_auxv'.
21478 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21479 * linux-low.c (linux_read_auxv): New function.
21480 (linux_target_ops): Initialize `read_auxv' member to that.
21481
d7446758
JB
214822004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21483
21484 Committed by Jim Blandy <jimb@redhat.com>.
21485
21486 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21487 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21488 instead of GPR_SIZE to distiguish s390 and s390x targets.
21489
5544ad89
DJ
214902004-01-31 Daniel Jacobowitz <drow@mvista.com>
21491
21492 * linux-low.c: Update copyright year.
21493 (check_removed_breakpoint): Clear pending_is_breakpoint.
21494 (linux_set_resume_request, linux_queue_one_thread)
21495 (resume_status_pending_p): New functions.
21496 (linux_continue_one_thread): Use process->resume.
21497 (linux_resume): Only resume threads if there are no pending events.
21498 * linux-low.h (struct process_info): Add resume request
21499 pointer.
21500
2a68b70e
DJ
215012004-01-30 Daniel Jacobowitz <drow@mvista.com>
21502
21503 * regcache.c (new_register_cache): Clear the allocated register
21504 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21505
64386c31
DJ
215062003-10-13 Daniel Jacobowitz <drow@mvista.com>
21507
21508 * linux-low.c (linux_resume): Take a struct thread_resume *
21509 argument.
21510 (linux_wait): Update call.
21511 (resume_ptr): New static variable.
21512 (linux_continue_one_thread): Renamed from
21513 linux_continue_one_process. Use resume_ptr.
21514 (linux_resume): Use linux_continue_one_thread.
21515 * server.c (handle_v_cont, handle_v_requests): New functions.
21516 (myresume): New function.
21517 (main): Handle 'v' case.
21518 * target.h (struct thread_resume): New type.
21519 (struct target_ops): Change argument of "resume" to struct
21520 thread_resume *.
21521 (myresume): Delete macro.
21522
c938e9b0
L
215232003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21524
21525 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21526 (uninstall): Support DESTDIR.
21527
7f313d07
BC
21528Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21529
21530 * configure.srv: Add xscale*linux copy of arm*linux entry.
21531
3b2fc2ea
DJ
215322003-07-24 Daniel Jacobowitz <drow@mvista.com>
21533
21534 * linux-arm-low.c (arm_reinsert_addr): New function.
21535 (the_low_target): Add arm_reinsert_addr.
21536
1c0a559e
MK
215372003-07-08 Mark Kettenis <kettenis@gnu.org>
21538
21539 * mem-break.c: Remove whitespace at end of file.
21540
43d5792c
DJ
215412003-06-28 Daniel Jacobowitz <drow@mvista.com>
21542
21543 * configure.in: Check whether we need to prototype strerror.
21544 * server.h: Optionally prototype strerror.
21545 * gdbreplay.c (perror_with_name): Use strerror.
21546 * linux-low.c (linux_attach_lwp): Use strerror.
21547 * utils.c (perror_with_name): Use strerror.
21548 * config.in, configure: Regenerated.
21549
c8a86edf
DJ
215502003-06-28 Daniel Jacobowitz <drow@mvista.com>
21551
21552 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21553 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21554
73d37363
DJ
215552003-06-20 Daniel Jacobowitz <drow@mvista.com>
21556
21557 * Makefile.in (SFILES): Update.
21558 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21559 low-sun3.c: Remove files.
21560
6ad8ae5c
DJ
215612003-06-17 Daniel Jacobowitz <drow@mvista.com>
21562
21563 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21564 (linux_detach_one_process, linux_detach): New functions.
21565 (linux_target_ops): Add linux_detach.
21566 * server.c (main): Handle 'D' packet.
21567 * target.h (struct target_ops): Add "detach" member.
21568 (detach_inferior): Define.
21569
1581182a
MK
215702003-06-13 Mark Kettenis <kettenis@gnu.org>
21571
21572 From Kelley Cook <kelleycook@wideopenwest.com>:
21573 * configure.srv: Accept i[34567]86 variants.
21574
e5379b03
DJ
215752003-06-05 Daniel Jacobowitz <drow@mvista.com>
21576
21577 * linux-low.c (linux_wait_for_event): Correct comment typos.
21578 (linux_resume_one_process): Call check_removed_breakpoint.
21579 (linux_send_signal): New function.
21580 (linux_target_ops): Add linux_send_signal.
21581 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21582 of kill.
21583 * target.h (struct target_ops): Add send_signal.
21584
2ff29de4
JB
215852003-05-29 Jim Blandy <jimb@redhat.com>
21586
21587 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21588 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21589 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21590 away part of the register's value.
21591
254787d4
DJ
215922003-03-26 Daniel Jacobowitz <drow@mvista.com>
21593
21594 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21595 (linux_wait_for_event, linux_init_signals): Likewise.
21596
94e10508
DJ
215972003-03-17 Daniel Jacobowitz <drow@mvista.com>
21598
21599 * configure.in: Check for stdlib.h.
21600 * configure: Regenerated.
21601 * config.in: Regenerated.
21602
4c0711e0
DJ
216032003-01-04 Andreas Schwab <schwab@suse.de>
21604
21605 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21606
ef66e766
AC
216072003-01-02 Andrew Cagney <ac131313@redhat.com>
21608
21609 * Makefile.in: Remove obsolete code.
21610
a1358604
DJ
216112002-11-20 Daniel Jacobowitz <drow@mvista.com>
21612
21613 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21614 defined(PT_FPR0_HI).
21615
23ce3b1c
DJ
216162002-11-17 Stuart Hughes <seh@zee2.com>
21617
21618 * linux-arm-low.c (arm_num_regs): Increase.
21619 (arm_regmap): Include status register.
21620
216212002-11-17 Daniel Jacobowitz <drow@mvista.com>
21622
21623 * linux-low.c (register_addr): Remove incorrect -1 check.
21624
a9fa9f7d
DJ
216252002-08-29 Daniel Jacobowitz <drow@mvista.com>
21626
21627 * linux-low.c (linux_create_inferior): Call setpgid. Return
21628 the new PID.
21629 (unstopped_p, linux_signal_pid): Remove.
21630 (linux_target_ops): Remove linux_signal_pid.
21631 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21632 global instead of target method.
21633 * target.h (struct target_ops): Remove signal_pid. Update comment
21634 for create_inferior.
21635 * server.c (signal_pid): New variable.
21636 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21637 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21638 (attach_inferior): Set signal_pid.
21639
17574093
DJ
216402002-08-23 Daniel Jacobowitz <drow@mvista.com>
21641
21642 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21643
216442002-08-20 Jim Blandy <jimb@redhat.com>
21645
21646 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21647 default for this.
21648
216492002-08-01 Andrew Cagney <cagney@redhat.com>
21650
21651 * Makefile.in: Make chill references obsolete.
21652
216532002-07-24 Kevin Buettner <kevinb@redhat.com>
21654
21655 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21656 * configure: Regenerate.
21657 * config.in: Regenerate.
21658
216592002-07-09 David O'Brien <obrien@FreeBSD.org>
21660
21661 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21662 (perror_with_name, remote_close, remote_open, expect, play): Static.
21663
216642002-07-04 Michal Ludvig <mludvig@suse.cz>
21665
4b8dad4a 21666 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21667 byte offsets instead of an array of indexes.
21668 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21669
216702002-06-13 Daniel Jacobowitz <drow@mvista.com>
21671
21672 * regcache.c: Add comment.
21673
216742002-06-11 Daniel Jacobowitz <drow@mvista.com>
21675
21676 * thread-db.c: New file.
21677 * proc-service.c: New file.
21678 * acinclude.m4: New file.
21679 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21680 proc-service.o, and thread-db.o.
21681 (linux-low.o): Add USE_THREAD_DB.
21682 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21683 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21684 * aclocal.m4: Regenerated.
21685 * config.in: Regenerated.
21686 * configure: Regenerated.
21687 * configure.in: Check for proc_service.h, sys/procfs.h,
21688 thread_db.h, and linux/elf.h headrs.
21689 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21690 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21691 Check for -lthread_db and thread support.
21692 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21693 PowerPC, and SuperH.
21694 * i387-fp.c: Constify arguments.
21695 * i387-fp.h: Likewise.
21696 * inferiors.c: (struct thread_info): Renamed from
21697 `struct inferior_info'. Remove PID member. Use generic inferior
21698 list header. All uses updated.
21699 (inferiors, signal_pid): Removed.
21700 (all_threads): New variable.
21701 (get_thread): Define.
21702 (add_inferior_to_list): New function.
21703 (for_each_inferior): New function.
21704 (change_inferior_id): New function.
21705 (add_inferior): Removed.
21706 (remove_inferior): New function.
21707 (add_thread): New function.
21708 (free_one_thread): New function.
21709 (remove_thread): New function.
21710 (clear_inferiors): Use for_each_inferior and free_one_thread.
21711 (find_inferior): New function.
21712 (find_inferior_id): New function.
21713 (inferior_target_data): Update argument type.
21714 (set_inferior_target_data): Likewise.
21715 (inferior_regcache_data): Likewise.
21716 (set_inferior_regcache_data): Likewise.
21717 * linux-low.c (linux_bp_reinsert): Remove.
21718 (all_processes, stopping_threads, using_thrads)
21719 (struct pending_signals, debug_threads, pid_of): New.
21720 (inferior_pid): Replace with macro.
21721 (struct inferior_linux_data): Remove.
21722 (get_stop_pc, add_process): New functions.
21723 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21724 Use add_process and add_thread.
21725 (linux_attach_lwp): New function, based on old linux_attach. Use
21726 add_process and add_thread. Set stop_expected for new threads.
21727 (linux_attach): New function.
21728 (linux_kill_one_process): New function.
21729 (linux_kill): Kill all LWPs.
21730 (linux_thread_alive): Use find_inferior_id.
21731 (check_removed_breakpoints, status_pending_p): New functions.
21732 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21733 Update. Use WNOHANG. Wait for cloned processes also. Update process
21734 struct for the found process.
21735 (linux_wait_for_event): New function.
21736 (linux_wait): Use it. Support LWPs.
21737 (send_sigstop, wait_for_sigstop, stop_all_processes)
21738 (linux_resume_one_process, linux_continue_one_process): New functions.
21739 (linux_resume): Support LWPs.
21740 (REGISTER_RAW_SIZE): Remove.
21741 (fetch_register): Use register_size instead. Call supply_register.
21742 (usr_store_inferior_registers): Likewise. Call collect_register.
21743 Fix recursive case.
21744 (regsets_fetch_inferior_registers): Improve error message.
21745 (regsets_store_inferior_registers): Add debugging.
21746 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21747 (unstopped_p, linux_signal_pid): New functions.
21748 (linux_target_ops): Add linux_signal_pid.
21749 (linux_init_signals): New function.
21750 (initialize_low): Call it. Initialize using_threads.
21751 * regcache.c (inferior_regcache_data): Add valid
21752 flag.
21753 (get_regcache): Fetch registers lazily. Add fetch argument
21754 and update all callers.
21755 (regcache_invalidate_one, regcache_invalidate): New
21756 functions.
21757 (new_register_cache): Renamed from create_register_cache.
21758 Return the new regcache.
21759 (free_register_cache): Change argument to a void *.
21760 (registers_to_string, registers_from_string): Call get_regcache
21761 with fetch flag set.
21762 (register_data): Make static. Pass fetch flag to get_regcache.
21763 (supply_register): Call get_regcache with fetch flag clear.
21764 (collect_register): Call get_regcache with fetch flag set.
21765 (collect_register_as_string): New function.
21766 * regcache.h: Update.
21767 * remote-utils.c (putpkt): Flush after debug output and use
21768 stderr.
21769 Handle input interrupts while waiting for an ACK.
21770 (input_interrupt): Use signal_pid method.
21771 (getpkt): Flush after debug output and use stderr.
21772 (outreg): Use collect_register_as_string.
21773 (new_thread_notify, dead_thread_notify): New functions.
21774 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21775 and general_thread.
21776 (look_up_one_symbol): Flush after debug output.
21777 * server.c (step_thread, server_waiting): New variables.
21778 (start_inferior): Don't use signal_pid. Update call to mywait.
21779 (attach_inferior): Update call to mywait.
21780 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21781 (main): Don't fetch/store registers explicitly. Use
21782 set_desired_inferior. Support proposed ``Hs'' packet. Update
21783 calls to mywait.
21784 * server.h: Update.
21785 (struct inferior_list, struct_inferior_list_entry): New.
21786 * target.c (set_desired_inferior): New.
21787 (write_inferior_memory): Constify.
21788 (mywait): New function.
21789 * target.h: Update.
21790 (struct target_ops): New signal_pid method.
21791 (mywait): Removed macro, added prototype.
21792
21793 * linux-low.h (regset_func): Removed.
21794 (regset_fill_func, regset_store_func): New.
21795 (enum regset_type): New.
21796 (struct regset_info): Add type field. Use new operation types.
21797 (struct linux_target_ops): stop_pc renamed to get_pc.
21798 Add decr_pc_after_break and breakpoint_at.
21799 (get_process, get_thread_proess, get_process_thread)
21800 (strut process_info, all_processes, linux_attach_lwp)
21801 (thread_db_init): New.
21802
21803 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21804 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21805 (the_low_target): Add new members.
21806 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21807 (i386_store_fpxregset): Constify.
21808 (target_regsets): Add new kind identifier.
21809 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21810 (i386_set_pc): Add debugging.
21811 (i386_breakpoint_at): New function.
21812 (the_low_target): Add new members.
21813 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21814 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21815 (mips_breakpoint_at): New.
21816 (the_low_target): Add new members.
21817 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21818 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21819 (the_low_target): Add new members.
21820 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21821 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21822 (the_low_target): Add new members.
21823 * linux-x86-64-low.c (target_regsets): Add new kind
21824 identifier.
21825
218262002-05-15 Daniel Jacobowitz <drow@mvista.com>
21827
21828 From Martin Pool <mbp@samba.org>:
21829 * server.c (gdbserver_usage): New function.
21830 (main): Call it.
21831
218322002-05-14 Daniel Jacobowitz <drow@mvista.com>
21833
21834 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21835 stop_at -> stop_pc.
21836
218372002-05-04 Andrew Cagney <ac131313@redhat.com>
21838
21839 * Makefile.in: Remove obsolete code.
21840
218412002-04-24 Michal Ludvig <mludvig@suse.cz>
21842
21843 * linux-low.c (regsets_fetch_inferior_registers),
21844 (regsets_store_inferior_registers): Removed cast to int from
21845 ptrace() calls.
21846 * regcache.h: Added declaration of struct inferior_info.
21847
218482002-04-20 Daniel Jacobowitz <drow@mvista.com>
21849
21850 * inferiors.c (struct inferior_info): Add regcache_data.
21851 (add_inferior): Call create_register_cache.
21852 (clear_inferiors): Call free_register_cache.
21853 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21854 * regcache.c (struct inferior_regcache_data): New.
21855 (registers): Remove.
21856 (get_regcache): New function.
21857 (create_register_cache, free_register_cache): New functions.
21858 (set_register_cache): Don't initialize the register cache here.
21859 (registers_to_string, registers_from_string, register_data): Call
21860 get_regcache.
21861 * regcache.h: Add prototypes.
21862 * server.h: Likewise.
21863
218642002-04-20 Daniel Jacobowitz <drow@mvista.com>
21865
21866 * mem-break.c: New file.
21867 * mem-break.h: New file.
21868 * Makefile.in: Add mem-break.o rule; update server.h
21869 dependencies.
21870 * inferiors.c (struct inferior_info): Add target_data
21871 member.
21872 (clear_inferiors): Free target_data member if set.
21873 (inferior_target_data, set_inferior_target_data): New functions.
21874 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21875 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21876 * linux-low.c (linux_bp_reinsert): New variable.
21877 (struct inferior_linux_data): New.
21878 (linux_create_inferior): Use set_inferior_target_data.
21879 (linux_attach): Likewise. Call add_inferior.
21880 (linux_wait_for_one_inferior): New function.
21881 (linux_wait): Call it.
21882 (linux_write_memory): Add const.
21883 (initialize_low): Call set_breakpoint_data.
21884 * linux-low.h (struct linux_target_ops): Add breakpoint
21885 handling members.
21886 * server.c (attach_inferior): Remove extra add_inferior
21887 call.
21888 * server.h: Include mem-break.h. Update inferior.c
21889 prototypes.
21890 * target.c (read_inferior_memory)
21891 (write_inferior_memory): New functions.
21892 * target.h (read_inferior_memory)
21893 (write_inferior_memory): Change macros to prototypes.
21894 (struct target_ops): Update comments. Add const to write_memory
21895 definition.
21896
218972002-04-11 Daniel Jacobowitz <drow@mvista.com>
21898
21899 * linux-low.c (usr_store_inferior_registers): Support
21900 registers which are allowed to fail to store.
21901 * linux-low.h (linux_target_ops): Likewise.
21902 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21903 (ppc_cannot_store_register): FPSCR may not be storable.
21904
219052002-04-09 Daniel Jacobowitz <drow@mvista.com>
21906
21907 * server.h: Include <string.h> if HAVE_STRING_H.
21908 * ChangeLog: Correct paths in last ChangeLog entry.
21909
219102002-04-09 Daniel Jacobowitz <drow@mvista.com>
21911
21912 * linux-low.h: Remove obsolete prototypes.
21913 (struct linux_target_ops): New.
21914 (extern the_low_target): New.
21915 * linux-low.c (num_regs, regmap): Remove declarations.
21916 (register_addr): Use the_low_target explicitly.
21917 (fetch_register): Likewise.
21918 (usr_fetch_inferior_registers): Likewise.
21919 (usr_store_inferior_registers): Likewise.
21920 * linux-arm-low.c (num_regs): Remove.
21921 (arm_num_regs): Define.
21922 (arm_regmap): Renamed from regmap, made static.
21923 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21924 made static.
21925 (arm_cannot_store_register): Renamed from cannot_store_register,
21926 made static.
21927 (the_low_target): New.
21928 * linux-i386-low.c (num_regs): Remove.
21929 (i386_num_regs): Define.
21930 (i386_regmap): Renamed from regmap, made static.
21931 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21932 made static.
21933 (i386_cannot_store_register): Renamed from cannot_store_register,
21934 made static.
21935 (the_low_target): New.
21936 * linux-ia64-low.c (num_regs): Remove.
21937 (ia64_num_regs): Define.
21938 (ia64_regmap): Renamed from regmap, made static.
21939 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21940 made static.
21941 (ia64_cannot_store_register): Renamed from cannot_store_register,
21942 made static.
21943 (the_low_target): New.
21944 * linux-m68k-low.c (num_regs): Remove.
21945 (m68k_num_regs): Define.
21946 (m68k_regmap): Renamed from regmap, made static.
21947 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21948 made static.
21949 (m68k_cannot_store_register): Renamed from cannot_store_register,
21950 made static.
21951 (the_low_target): New.
21952 * linux-mips-low.c (num_regs): Remove.
21953 (mips_num_regs): Define.
21954 (mips_regmap): Renamed from regmap, made static.
21955 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21956 made static.
21957 (mips_cannot_store_register): Renamed from cannot_store_register,
21958 made static.
21959 (the_low_target): New.
21960 * linux-ppc-low.c (num_regs): Remove.
21961 (ppc_num_regs): Define.
21962 (ppc_regmap): Renamed from regmap, made static.
21963 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21964 made static.
21965 (ppc_cannot_store_register): Renamed from cannot_store_register,
21966 made static.
21967 (the_low_target): New.
21968 * linux-s390-low.c (num_regs): Remove.
21969 (s390_num_regs): Define.
21970 (s390_regmap): Renamed from regmap, made static.
21971 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21972 made static.
21973 (s390_cannot_store_register): Renamed from cannot_store_register,
21974 made static.
21975 (the_low_target): New.
21976 * linux-sh-low.c (num_regs): Remove.
21977 (sh_num_regs): Define.
21978 (sh_regmap): Renamed from regmap, made static.
21979 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21980 made static.
21981 (sh_cannot_store_register): Renamed from cannot_store_register,
21982 made static.
21983 (the_low_target): New.
21984 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21985 (the_low_target): New.
21986
219872002-04-09 Daniel Jacobowitz <drow@mvista.com>
21988
21989 * Makefile.in: Add stamp-h target.
21990 * configure.in: Create stamp-h.
21991 * configure: Regenerated.
21992
219932002-04-09 Daniel Jacobowitz <drow@mvista.com>
21994
21995 * inferiors.c: New file.
21996 * target.c: New file.
21997 * target.h: New file.
21998 * Makefile.in: Add target.o and inferiors.o. Update
21999 dependencies.
22000 * linux-low.c (inferior_pid): New static variable,
22001 moved from server.c.
22002 (linux_create_inferior): Renamed from create_inferior.
22003 Call add_inferior. Return 0 on success instead of a PID.
22004 (linux_attach): Renamed from myattach.
22005 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22006 (linux_thread_alive): Renamed from mythread_alive.
22007 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22008 child dies.
22009 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22010 (regsets_store_inferior_registers): Correct error message.
22011 Add missing ``return 0''.
22012 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22013 (linux_store_registers): Renamed from store_inferior_registers.
22014 (linux_read_memory): Renamed from read_inferior_memory.
22015 (linux_write_memory): Renamed from write_inferior_memory.
22016 (linux_target_ops): New structure.
22017 (initialize_low): Call set_target_ops ().
22018 * remote-utils.c (unhexify): New function.
22019 (hexify): New function.
22020 (input_interrupt): Send signals to ``signal_pid''.
22021 * server.c (inferior_pid): Remove.
22022 (start_inferior): Update create_inferior call.
22023 (attach_inferior): Call add_inferior.
22024 (handle_query): New function.
22025 (main): Call handle_query for `q' packets.
22026 * server.h: Include "target.h". Remove obsolete prototypes.
22027 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22028
220292002-04-09 Daniel Jacobowitz <drow@mvista.com>
22030
22031 * Makefile.in: Add WARN_CFLAGS. Update configury
22032 dependencies.
22033 * configure.in: Check for <string.h>
22034 * configure: Regenerate.
22035 * config.in: Regenerate.
22036 * gdbreplay.c: Include needed system headers.
22037 (remote_open): Remove strchr prototype.
22038 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22039 * regcache.c (supply_register): Change buf argument to const void *.
22040 (supply_register_by_name): Likewise.
22041 (collect_register): Change buf argument to void *.
22042 (collect_register_by_name): Likewise.
22043 * regcache.h: Add missing prototypes.
22044 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22045 * server.c (handle_query): New function.
22046 (attached): New static variable, moved out of main.
22047 (main): Quiet longjmp clobber warnings.
22048 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22049 * utils.c (error): Remove NORETURN.
22050 (fatal): Likewise.