gdbserver: fix format string warning in win32-low.cc
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
e2275c6e
SM
12020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * win32-low.cc (get_child_debug_event): Fix format string warning.
4
73944e9f
TT
52020-04-13 Tom Tromey <tom@tromey.com>
6
7 * server.h (gdb_fildes_t): Remove typedef.
8 * remote-utils.c (remote_desc, list_desc): Now int.
9 (INVALID_DESCRIPTOR): Remove.
10 (gdb_connected, remote_close)
11 (check_remote_input_interrupt_request): Update.
12 * utils.h (pfildes): Don't declare.
13 * utils.c (pfildes): Remove.
14
55d7aec8
TT
152020-04-13 Tom Tromey <tom@tromey.com>
16
17 * server.h (handle_serial_event, handle_target_event): Update.
18 * server.c: Don't call initialize_event_loop.
19 (keep_processing_events): New global.
20 (handle_serial_event): Return void. Set keep_processing_events.
21 (handle_target_event): Return void.
22 (start_event_loop): Move from event-loop.c. Rewrite.
23 * remote-utils.c (handle_accept_event): Return void.
24 (reset_readchar): Use delete_timer.
25 (process_remaining): Return void.
26 (reschedule): Use create_timer.
27 * event-loop.h: Remove.
28 * event-loop.cc: Remove.
29 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
30
e487f994
TT
312020-04-13 Tom Tromey <tom@tromey.com>
32
33 * server.c (invoke_async_signal_handlers)
34 (check_async_event_handlers, flush_streams, gdb_select): New
35 functions.
36
8ae8e197
TT
372020-04-13 Tom Tromey <tom@tromey.com>
38
39 * configure: Rebuild.
40 * config.in: Rebuild.
41
360ad8b3
TT
422020-04-08 Tom Tromey <tromey@adacore.com>
43
44 PR gdb/22992
45 * win32-low.c (child_continue): Call matching_pending_stop.
46 (get_child_debug_event): Call fetch_pending_stop. Push pending
47 stop when needed.
48
523d4f80
TT
492020-04-08 Tom Tromey <tromey@adacore.com>
50
51 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
52 (win32_process_target::supports_stopped_by_sw_breakpoint):
53 Declare.
54 * win32-low.c (win32_supports_z_point_type): Always handle
55 Z_PACKET_SW_BP.
56 (win32_insert_point): Call insert_memory_breakpoint when needed.
57 (win32_remove_point): Call remove_memory_breakpoint when needed.
58 (win32_process_target::stopped_by_sw_breakpoint)
59 (win32_process_target::supports_stopped_by_sw_breakpoint): New
60 methods.
61 (win32_target_ops): Update.
62 (maybe_adjust_pc): New function.
63 (win32_wait): Call maybe_adjust_pc.
64
e54e5929
TT
652020-04-08 Tom Tromey <tromey@adacore.com>
66
67 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
68 field.
69 * win32-i386-low.c (the_low_target): Update.
70 * win32-arm-low.c (the_low_target): Update.
71
d6225aff
TT
722020-04-08 Tom Tromey <tromey@adacore.com>
73
74 * win32-low.h (win32_process_target::read_pc)
75 (win32_process_target::write_pc): Declare.
76 * win32-low.c (win32_process_target::read_pc)
77 (win32_process_target::write_pc): New methods.
78 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
79 functions.
80 (the_low_target): Update.
81 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
82 functions.
83 (the_low_target): Update.
84
2c1d95e8
TT
852020-04-08 Tom Tromey <tromey@adacore.com>
86
87 * win32-low.c (win32_kill, get_child_debug_event): Use
88 wait_for_debug_event.
89
e758e19c
TT
902020-04-08 Tom Tromey <tromey@adacore.com>
91
92 * win32-low.c (child_continue): Call continue_last_debug_event.
93
8d30e395
TT
942020-04-08 Tom Tromey <tromey@adacore.com>
95
96 * win32-low.c (handle_exception): Remove.
97 (windows_nat::handle_ms_vc_exception): New function.
98 (get_child_debug_event): Add "continue_status" parameter.
99 Update.
100 (win32_wait): Update.
101
a816ba18
TT
1022020-04-08 Tom Tromey <tromey@adacore.com>
103
104 * win32-low.c (windows_nat::handle_load_dll): Rename from
105 handle_load_dll. No longer static.
106 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
107 No longer static.
108
d41b524f
TT
1092020-04-08 Tom Tromey <tromey@adacore.com>
110
111 * win32-low.c (handle_output_debug_string): Add parameter. Change
112 return type.
113 (win32_kill, get_child_debug_event): Update.
114
3c76026d
TT
1152020-04-08 Tom Tromey <tromey@adacore.com>
116
117 * win32-low.c (current_process_handle, current_process_id)
118 (main_thread_id, last_sig, current_event, siginfo_er): Move to
119 nat/windows-nat.c.
120
9d8679cc
TT
1212020-04-08 Tom Tromey <tromey@adacore.com>
122
123 * win32-low.c (get_image_name): Remove.
124 (handle_load_dll): Update.
125
28688adf
TT
1262020-04-08 Tom Tromey <tromey@adacore.com>
127
128 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
129 No longer static. Change parameters.
130 (child_add_thread, child_fetch_inferior_registers)
131 (child_store_inferior_registers, win32_resume)
132 (win32_get_tib_address): Update.
133
4834dad0
TT
1342020-04-08 Tom Tromey <tromey@adacore.com>
135
136 * win32-low.h (struct win32_target_ops): Use qualified names where
137 needed.
138 * win32-i386-low.c: Add "using namespace".
139 * win32-low.c: Add "using namespace".
140 * win32-arm-low.c: Add "using namespace".
141
65bafd5b
TT
1422020-04-08 Tom Tromey <tromey@adacore.com>
143
144 * win32-low.c (delete_thread_info): Don't call CloseHandle.
145
98a03287
TT
1462020-04-08 Tom Tromey <tromey@adacore.com>
147
148 * win32-low.c (win32_require_context, suspend_one_thread): Use
149 windows_thread_info::suspend.
150 (continue_one_thread): Use windows_thread_info::resume.
151 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
152
62fe396b
TT
1532020-04-08 Tom Tromey <tromey@adacore.com>
154
155 * win32-i386-low.c (update_debug_registers)
156 (i386_prepare_to_resume, i386_thread_added): Update.
157
e9534bd2
TT
1582020-04-08 Tom Tromey <tromey@adacore.com>
159
160 * win32-low.c (child_add_thread): Use new.
161 (delete_thread_info): Use delete.
162
ae1f8880
TT
1632020-04-08 Tom Tromey <tromey@adacore.com>
164
165 * win32-low.h (struct windows_thread_info): Remove.
166
e56f8ccb
TT
1672020-04-08 Tom Tromey <tromey@adacore.com>
168
169 * win32-low.h (struct windows_thread_info): Rename from
170 win32_thread_info. Remove typedef.
171 (struct win32_target_ops, win32_require_context): Update.
172 * win32-low.c (win32_get_thread_context)
173 (win32_set_thread_context, win32_prepare_to_resume)
174 (win32_require_context, thread_rec, child_add_thread)
175 (delete_thread_info, continue_one_thread)
176 (child_fetch_inferior_registers, child_store_inferior_registers)
177 (win32_resume, suspend_one_thread, win32_get_tib_address):
178 Update.
179 * win32-i386-low.c (update_debug_registers)
180 (win32_get_current_dr, i386_get_thread_context)
181 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
182 (i386_fetch_inferior_register, i386_store_inferior_register):
183 Update.
184 * win32-arm-low.c (arm_get_thread_context)
185 (arm_fetch_inferior_register, arm_store_inferior_register):
186 Update.
187
0dd7b52e
TBA
1882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
189
190 * linux-low.h (struct linux_target_ops): Remove.
191 (the_low_target): Remove.
192 * linux-x86-low.cc (the_low_target): Remove.
193 * linux-aarch64-low.cc (the_low_target): Ditto.
194 * linux-arm-low.cc (the_low_target): Ditto.
195 * linux-bfin-low.cc (the_low_target): Ditto.
196 * linux-cris-low.cc (the_low_target): Ditto.
197 * linux-crisv32-low.cc (the_low_target): Ditto.
198 * linux-ia64-low.cc (the_low_target): Ditto.
199 * linux-m32r-low.cc (the_low_target): Ditto.
200 * linux-m68k-low.cc (the_low_target): Ditto.
201 * linux-mips-low.cc (the_low_target): Ditto.
202 * linux-nios2-low.cc (the_low_target): Ditto.
203 * linux-ppc-low.cc (the_low_target): Ditto.
204 * linux-riscv-low.cc (the_low_target): Ditto.
205 * linux-s390-low.cc (the_low_target): Ditto.
206 * linux-sh-low.cc (the_low_target): Ditto.
207 * linux-sparc-low.cc (the_low_target): Ditto.
208 * linux-tic6x-low.cc (the_low_target): Ditto.
209 * linux-tile-low.cc (the_low_target): Ditto.
210 * linux-xtensa-low.cc (the_low_target): Ditto.
211
fc5ecdb6
TBA
2122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213
214 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
215 linux target define the op by overriding the declaration in
216 process_stratum_target.
217
218 * linux-low.h (struct linux_target_ops): Remove the op.
219 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
220 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
221 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
222 (x86_get_ipa_tdesc_idx): Turn into...
223 (x86_target::get_ipa_tdesc_idx): ...this.
224 (the_low_target): Remove the op field.
225 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
226 (ppc_get_ipa_tdesc_idx): Turn into...
227 (ppc_target::get_ipa_tdesc_idx): ...this.
228 (the_low_target): Remove the op field.
229 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
230 (s390_get_ipa_tdesc_idx): Turn into...
231 (s390_target::get_ipa_tdesc_idx): ...this.
232 (the_low_target): Remove the op field.
233
9eedd27d
TBA
2342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235
236 Turn the 'get_syscall_trapinfo' linux target op into a method
237 of process_stratum_target.
238
239 * linux-low.h (struct linux_target_ops): Remove the op.
240 (class linux_process_target) <get_syscall_trapinfo>
241 <gdb_catch_this_syscall>
242 <low_supports_catch_syscall>
243 <low_get_syscall_trapinfo>: Declare.
244 * linux-low.cc (get_syscall_trapinfo): Turn into...
245 (linux_process_target::get_syscall_trapinfo): ...this.
246 (linux_process_target::low_get_syscall_trapinfo): Define.
247 (gdb_catch_this_syscall_p): Turn into...
248 (linux_process_target::gdb_catch_this_syscall): ...this.
249 (linux_process_target::low_supports_catch_syscall): Define.
250
251 Update the callers below.
252
253 (linux_process_target::wait_1)
254 (linux_process_target::supports_catch_syscall)
255
256 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
257 <low_get_syscall_trapinfo>: Declare.
258 (x86_target::low_supports_catch_syscall): Define.
259 (x86_get_syscall_trapinfo): Turn into...
260 (x86_target::low_get_syscall_trapinfo): ...this.
261 (the_low_target): Remove the op field.
262 * linux-aarch64-low.cc (class aarch64_target)
263 <low_supports_catch_syscall>
264 <low_get_syscall_trapinfo>: Declare.
265 (aarch64_target::low_supports_catch_syscall): Define.
266 (aarch64_get_syscall_trapinfo): Turn into...
267 (aarch64_target::low_get_syscall_trapinfo): ...this.
268 (the_low_target): Remove the op field.
269 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
270 <low_get_syscall_trapinfo>: Declare.
271 (arm_target::low_supports_catch_syscall): Define.
272 (arm_get_syscall_trapinfo): Turn into...
273 (arm_target::low_get_syscall_trapinfo): ...this.
274 (the_low_target): Remove the op field.
275 * linux-ppc-low.cc (the_low_target): Remove the op field.
276 * linux-s390-low.cc (the_low_target): Remove the op field.
277
b31cdfa6
TBA
2782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
279
280 Remove the 'supports_hardware_single_step' linux target op and
281 override the process_stratum_target's op definition in
282 linux_process_target to return true.
283
284 * linux-low.h (struct linux_target_ops): Remove the op.
285 (class linux_process_target) <finish_step_over>
286 <maybe_hw_step>: Declare.
287 * linux-low.cc (can_hardware_single_step): Remove.
288 (maybe_hw_step): Turn into...
289 (linux_process_target::maybe_hw_step): ...this.
290 (finish_step_over): Turn into...
291 (linux_process_target::finish_step_over): ...this.
292 (linux_process_target::supports_hardware_single_step): Update
293 to return true.
294
295 Update the callers below.
296
297 (linux_process_target::single_step)
298 (linux_process_target::resume_one_lwp_throw)
299
300 * linux-arm-low.cc (class arm_target)
301 <supports_hardware_single_step>: Declare.
302 (arm_supports_hardware_single_step): Turn into...
303 (arm_target::supports_hardware_single_step): ...this.
304 (the_low_target): Remove the op field.
305 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
306 (the_low_target): Remove the op field.
307 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
308 Remove.
309 (the_low_target): Remove the op field.
310 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
311 (the_low_target): Remove the op field.
312 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
313 (the_low_target): Remove the op field.
314 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
315 (the_low_target): Remove the op field.
316 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
317 (the_low_target): Remove the op field.
318 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
319 (the_low_target): Remove the op field.
320 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
321 (the_low_target): Remove the op field.
322 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
323 (the_low_target): Remove the op field.
324 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
325 (the_low_target): Remove the op field.
326 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
327 (the_low_target): Remove the op field.
328 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
329 Remove.
330 (the_low_target): Remove the op field.
331
9cfd8715
TBA
3322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
333
334 Turn the 'supports_range_stepping' linux target op into a method
335 of linux_process_target.
336
337 * linux-low.h (struct linux_target_ops): Remove the op.
338 (class linux_process_target) <low_supports_range_stepping>: Declare.
339 * linux-low.cc (linux_process_target::low_supports_range_stepping):
340 Define.
341 (linux_process_target::supports_range_stepping): Update the call
342 site.
343 * linux-x86-low.cc (class x86_target)
344 <low_supports_range_stepping>: Declare.
345 (x86_supports_range_stepping): Turn into...
346 (x86_target::low_supports_range_stepping): ...this.
347 (the_low_target): Remove the op field.
348 * linux-aarch64-low.cc (class aarch64_target)
349 <low_supports_range_stepping>: Declare.
350 (aarch64_supports_range_stepping): Turn into...
351 (aarch64_target::low_supports_range_stepping): ...this.
352 (the_low_target): Remove the op field.
353 * linux-arm-low.cc (the_low_target): Remove the op field.
354 * linux-bfin-low.cc (the_low_target): Ditto.
355 * linux-crisv32-low.cc (the_low_target): Ditto.
356 * linux-m32r-low.cc (the_low_target): Ditto.
357 * linux-m68k-low.cc (the_low_target): Ditto.
358 * linux-ppc-low.cc (the_low_target): Ditto.
359 * linux-s390-low.cc (the_low_target): Ditto.
360 * linux-sh-low.cc (the_low_target): Ditto.
361 * linux-tic6x-low.cc (the_low_target): Ditto.
362 * linux-tile-low.cc (the_low_target): Ditto.
363 * linux-xtensa-low.cc (the_low_target): Ditto.
364
ab64c999
TBA
3652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
366
367 Remove the 'emit_ops' linux target ops and let the concrete
368 linux target define the op by overriding the declaration of
369 process_stratum_target.
370
371 * linux-low.h (struct linux_target_ops): Remove the op.
372 (class linux_process_target) <emit_ops>: Remove.
373 * linux-low.cc (linux_process_target::emit_ops): Remove.
374 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
375 (x86_emit_ops): Turn into...
376 (x86_target::emit_ops): ...this.
377 (the_low_target): Remove the op field.
378 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
379 (aarch64_emit_ops): Turn into...
380 (aarch64_target::emit_ops): ...this.
381 (the_low_target): Remove the op field.
382 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
383 (ppc_emit_ops): Turn into...
384 (ppc_target::emit_ops): ...this.
385 (the_low_target): Remove the op field.
386 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
387 (s390_emit_ops): Turn into...
388 (s390_target::emit_ops): ...this.
389 (the_low_target): Remove the op field.
390 * linux-arm-low.cc (the_low_target): Remove the op field.
391 * linux-bfin-low.cc (the_low_target): Ditto.
392 * linux-crisv32-low.cc (the_low_target): Ditto.
393 * linux-m32r-low.cc (the_low_target): Ditto.
394 * linux-m68k-low.cc (the_low_target): Ditto.
395 * linux-sh-low.cc (the_low_target): Ditto.
396 * linux-tic6x-low.cc (the_low_target): Ditto.
397 * linux-tile-low.cc (the_low_target): Ditto.
398 * linux-xtensa-low.cc (the_low_target): Ditto.
399
809a0c35
TBA
4002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
401
402 Remove the 'install_fast_tracepoint_jump_pad' and
403 'get_min_fast_tracepoint_insn_len' linux target ops to let the
404 concrete linux target define the ops by overriding the declarations
405 of process_stratum_target.
406
407 * linux-low.h (struct linux_target_ops): Remove the ops.
408 (class linux_process_target) <supports_fast_tracepoints>
409 <install_fast_tracepoint_jump_pad>
410 <get_min_fast_tracepoint_insn_len>: Remove.
411 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
412 (linux_process_target::install_fast_tracepoint_jump_pad)
413 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
414 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
415 <install_fast_tracepoint_jump_pad>
416 <get_min_fast_tracepoint_insn_len>: Declare.
417 (x86_target::supports_fast_tracepoints): Define.
418 (x86_install_fast_tracepoint_jump_pad): Turn into...
419 (x86_target::install_fast_tracepoint_jump_pad): ...this.
420 (x86_get_min_fast_tracepoint_insn_len): Turn into...
421 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
422 (the_low_target): Remove the op fields.
423 * linux-aarch64-low.cc (class aarch64_target)
424 <supports_fast_tracepoints>
425 <install_fast_tracepoint_jump_pad>
426 <get_min_fast_tracepoint_insn_len>: Declare.
427 (aarch64_target::supports_fast_tracepoints): Define.
428 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
429 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
430 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
431 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
432 (the_low_target): Remove the op fields.
433 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
434 <install_fast_tracepoint_jump_pad>
435 <get_min_fast_tracepoint_insn_len>: Declare.
436 (ppc_target::supports_fast_tracepoints): Define.
437 (ppc_install_fast_tracepoint_jump_pad): Turn into...
438 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
439 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
440 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
441 (the_low_target): Remove the op fields.
442 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
443 <install_fast_tracepoint_jump_pad>
444 <get_min_fast_tracepoint_insn_len>: Declare.
445 (s390_target::supports_fast_tracepoints): Define.
446 (s390_install_fast_tracepoint_jump_pad): Turn into...
447 (s390_target::install_fast_tracepoint_jump_pad): ...this.
448 (s390_get_min_fast_tracepoint_insn_len): Turn into...
449 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
450 (the_low_target): Remove the op fields.
451 * linux-arm-low.cc (the_low_target): Remove the op fields.
452 * linux-bfin-low.cc (the_low_target): Ditto.
453 * linux-crisv32-low.cc (the_low_target): Ditto.
454 * linux-m32r-low.cc (the_low_target): Ditto.
455 * linux-m68k-low.cc (the_low_target): Ditto.
456 * linux-sh-low.cc (the_low_target): Ditto.
457 * linux-tic6x-low.cc (the_low_target): Ditto.
458 * linux-tile-low.cc (the_low_target): Ditto.
459 * linux-xtensa-low.cc (the_low_target): Ditto.
460
13e567af
TBA
4612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
462
463 Turn the 'get_thread_area' linux target op into a method of
464 process_stratum_target.
465
466 * linux-low.h (struct linux_target_ops): Remove the op.
467 (class linux_process_target) <stuck_in_jump_pad>
468 <linux_fast_tracepoint_collecting>
469 <low_get_thread_area>: Declare.
470 * linux-low.cc (supports_fast_tracepoints): Remove.
471 (linux_fast_tracepoint_collecting): Turn into...
472 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
473 (linux_process_target::low_get_thread_area): Define.
474 (stuck_in_jump_pad_callback): Turn into...
475 (linux_process_target::stuck_in_jump_pad): ...this.
476
477 Update the caller below.
478
479 (linux_process_target::stabilize_threads)
480
481 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
482 Declare.
483 (x86_get_thread_area): Turn into...
484 (x86_target::low_get_thread_area): ...this.
485 (the_low_target): Remove the op field.
486 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
487 Declare.
488 (aarch64_get_thread_area): Turn into...
489 (aarch64_target::low_get_thread_area): ...this.
490 (the_low_target): Remove the op field.
491 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
492 Declare.
493 (ppc_get_thread_area): Turn into...
494 (ppc_target::low_get_thread_area): ...this.
495 (the_low_target): Remove the op field.
496 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
497 Declare.
498 (s390_get_thread_area): Turn into...
499 (s390_target::low_get_thread_area): ...this.
500 (the_low_target): Remove the op field.
501 * linux-arm-low.cc (the_low_target): Remove the op field.
502 * linux-bfin-low.cc (the_low_target): Ditto.
503 * linux-crisv32-low.cc (the_low_target): Ditto.
504 * linux-m32r-low.cc (the_low_target): Ditto.
505 * linux-m68k-low.cc (the_low_target): Ditto.
506 * linux-sh-low.cc (the_low_target): Ditto.
507 * linux-tic6x-low.cc (the_low_target): Ditto.
508 * linux-tile-low.cc (the_low_target): Ditto.
509 * linux-xtensa-low.cc (the_low_target): Ditto.
510
47f70aa7
TBA
5112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
512
513 Remote the 'supports_tracepoints' linux target op and let the
514 concrete linux target define it by overriding the op declared in
515 process_stratum_target.
516
517 * linux-low.h (struct linux_target_ops): Remove the op.
518 (class linux_process_target) <supports_tracepoints>: Remove.
519 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
520 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
521 Declare.
522 (x86_supports_tracepoints): Turn into...
523 (x86_target::supports_tracepoints): ...this.
524 (the_low_target): Remove the op field.
525 * linux-aarch64-low.cc (class aarch64_target)
526 <supports_tracepoints>: Declare.
527 (aarch64_supports_tracepoints): Turn into...
528 (aarch64_target::supports_tracepoints): ...this.
529 (the_low_target): Remove the op field.
530 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
531 Declare.
532 (ppc_supports_tracepoints): Turn into...
533 (ppc_target::supports_tracepoints): ...this.
534 (the_low_target): Remove the op field.
535 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
536 Declare.
537 (s390_supports_tracepoints): Turn into...
538 (s390_target::supports_tracepoints): ...this.
539 (the_low_target): Remove the op field.
540 * linux-arm-low.cc (the_low_target): Remove the op field.
541 * linux-bfin-low.cc (the_low_target): Ditto.
542 * linux-crisv32-low.cc (the_low_target): Ditto.
543 * linux-m32r-low.cc (the_low_target): Ditto.
544 * linux-m68k-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
549
a5b5da92
TBA
5502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551
552 Remove the 'process_qsupported' linux target op and let a concrete
553 linux target define the op by overriding the op declaration in
554 process_stratum_target.
555
556 * linux-low.h (struct linux_target_ops): Remove the op.
557 (class linux_process_target) <process_qsupported>: Remove.
558 * linux-low.cc (linux_process_target::process_qsupported): Remove.
559 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
560 (x86_linux_process_qsupported): Turn into...
561 (x86_target::process_qsupported): ...this.
562 (the_low_target): Remove the op field.
563 * linux-aarch64-low.cc (the_low_target): Remove the op
564 field.
565 * linux-arm-low.cc (the_low_target): Ditto.
566 * linux-bfin-low.cc (the_low_target): Ditto.
567 * linux-crisv32-low.cc (the_low_target): Ditto.
568 * linux-m32r-low.cc (the_low_target): Ditto.
569 * linux-m68k-low.cc (the_low_target): Ditto.
570 * linux-ppc-low.cc (the_low_target): Ditto.
571 * linux-s390-low.cc (the_low_target): Ditto.
572 * linux-sh-low.cc (the_low_target): Ditto.
573 * linux-tic6x-low.cc (the_low_target): Ditto.
574 * linux-tile-low.cc (the_low_target): Ditto.
575 * linux-xtensa-low.cc (the_low_target): Ditto.
576
d7599cc0
TBA
5772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
578
579 Turn the 'prepare_to_resume' linux target op into a method of
580 linux_process_target.
581
582 * linux-low.h (struct linux_target_ops): Remove the op.
583 (class linux_process_target) <low_prepare_to_resume>: Declare.
584 * linux-low.cc (linux_process_target::low_prepare_to_resume):
585 Define.
586
587 Update the callers below:
588
589 (linux_process_target::resume_one_lwp_throw)
590 (linux_process_target::low_prepare_to_resume)
591
592 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
593 Declare.
594 (x86_target::low_prepare_to_resume): Define.
595 (the_low_target): Remove the op field.
596 * linux-aarch64-low.cc (class aarch64_target)
597 <low_prepare_to_resume>: Declare.
598 (aarch64_target::low_prepare_to_resume): Define.
599 (the_low_target): Remove the op field.
600 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
601 Declare.
602 (arm_prepare_to_resume): Turn into...
603 (arm_target::low_prepare_to_resume): ...this.
604 (the_low_target): Remove the op field.
605 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
606 Declare.
607 (mips_linux_prepare_to_resume): Turn into...
608 (mips_target::low_prepare_to_resume): ...this.
609 (the_low_target): Remove the op field.
610 * linux-bfin-low.cc (the_low_target): Remove the op field.
611 * linux-crisv32-low.cc (the_low_target): Ditto.
612 * linux-m32r-low.cc (the_low_target): Ditto.
613 * linux-m68k-low.cc (the_low_target): Ditto.
614 * linux-ppc-low.cc (the_low_target): Ditto.
615 * linux-s390-low.cc (the_low_target): Ditto.
616 * linux-sh-low.cc (the_low_target): Ditto.
617 * linux-tic6x-low.cc (the_low_target): Ditto.
618 * linux-tile-low.cc (the_low_target): Ditto.
619 * linux-xtensa-low.cc (the_low_target): Ditto.
620
fd000fb3
TBA
6212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
622
623 Turn the 'new_process', 'delete_process', 'new_thread',
624 'delete_thread', and 'new_fork' linux target ops into methods
625 of linux_process_target.
626
627 * linux-low.h (struct linux_target_ops): Remove the ops.
628 (class linux_process_target) <add_linux_process>
629 <add_lwp>
630 <delete_lwp>
631 <attach_lwp>
632 <detach_one_lwp>
633 <check_zombie_leaders>
634 <filter_exit_event>
635 <low_new_process>
636 <low_delete_process>
637 <low_new_thread>
638 <low_delete_thread>
639 <low_new_fork>: Declare.
640 * linux-low.cc (delete_lwp): Turn into...
641 (linux_process_target::delete_lwp): ...this.
642 (linux_process_target::low_delete_thread): Define.
643 (linux_add_process): Turn into...
644 (linux_process_target::add_linux_process): ...this.
645 (linux_process_target::low_new_process): Define.
646 (linux_process_target::low_delete_process): Define.
647 (linux_process_target::low_new_fork): Define.
648 (add_lwp): Turn into...
649 (linux_process_target::add_lwp): ...this.
650 (linux_process_target::low_new_thread): Define.
651 (linux_attach_lwp): Turn into...
652 (linux_process_target::attach_lwp): ...this.
653 (linux_detach_one_lwp): Turn into...
654 (linux_process_target::detach_one_lwp): ...this.
655 (linux_detach_lwp_callback): Remove and inline...
656 (linux_process_target::detach): ...here.
657 (check_zombie_leaders): Turn into...
658 (linux_process_target::check_zombie_leaders): ...this.
659 (filter_exit_event): Turn into...
660 (linux_process_target::filter_exit_event): ...this.
661
662 Update the callers below.
663
664 (linux_process_target::handle_extended_wait)
665 (linux_process_target::create_inferior)
666 (attach_proc_task_lwp_callback)
667 (linux_process_target::attach)
668 (linux_process_target::detach)
669 (linux_process_target::mourn)
670 * thread-db.cc (attach_thread)
671
672 * linux-x86-low.cc (class x86_target) <low_new_process>
673 <low_delete_process>
674 <low_new_thread>
675 <low_delete_thread>
676 <low_new_fork>: Declare.
677 (x86_linux_new_process): Turn into...
678 (x86_target::low_new_process): ...this.
679 (x86_linux_delete_process): Turn into...
680 (x86_target::low_delete_process): ...this.
681 (x86_target::low_new_thread): Define.
682 (x86_target::low_delete_thread): Define.
683 (x86_linux_new_fork): Turn into...
684 (x86_target::low_new_fork): ...this.
685 (the_low_target): Remove the op fields.
686 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
687 <low_delete_process>
688 <low_new_thread>
689 <low_delete_thread>
690 <low_new_fork>: Declare.
691 (aarch64_linux_new_process): Turn into...
692 (aarch64_target::low_new_process): ...this.
693 (aarch64_linux_delete_process): Turn into...
694 (aarch64_target::low_delete_process): ...this.
695 (aarch64_target::low_new_thread): Define.
696 (aarch64_target::low_delete_thread): Define.
697 (aarch64_linux_new_fork): Turn into...
698 (aarch64_target::low_new_fork): ...this.
699 (the_low_target): Remove the op fields.
700 * linux-arm-low.cc (class arm_target) <low_new_process>
701 <low_delete_process>
702 <low_new_thread>
703 <low_delete_thread>
704 <low_new_fork>: Declare.
705 (arm_new_process): Turn into...
706 (arm_target::low_new_process): ...this.
707 (arm_delete_process): Turn into...
708 (arm_target::low_delete_process): ...this.
709 (arm_new_thread): Turn into...
710 (arm_target::low_new_thread): ...this.
711 (arm_delete_thread): Turn into...
712 (arm_target::low_delete_thread): ...this.
713 (arm_new_fork): Turn into...
714 (arm_target::low_new_fork): ...this.
715 (the_low_target): Remove the op fields.
716 * linux-mips-low.cc (class mips_target) <low_new_process>
717 <low_delete_process>
718 <low_new_thread>
719 <low_delete_thread>
720 <low_new_fork>: Declare.
721 (mips_linux_new_process): Turn into...
722 (mips_target::low_new_process): ...this.
723 (mips_linux_delete_process): Turn into...
724 (mips_target::low_delete_process): ...this.
725 (mips_linux_new_thread): Turn into...
726 (mips_target::low_new_thread): ...this.
727 (mips_linux_delete_thread): Turn into...
728 (mips_target::low_delete_thread): ...this.
729 (mips_linux_new_fork): Turn into...
730 (mips_target::low_new_fork): ...this.
731 (the_low_target): Remove the op fields.
732 * linux-bfin-low.cc (the_low_target): Remove the op fields.
733 * linux-crisv32-low.cc (the_low_target): Ditto.
734 * linux-m32r-low.cc (the_low_target): Ditto.
735 * linux-m68k-low.cc (the_low_target): Ditto.
736 * linux-ppc-low.cc (the_low_target): Ditto.
737 * linux-s390-low.cc (the_low_target): Ditto.
738 * linux-sh-low.cc (the_low_target): Ditto.
739 * linux-tic6x-low.cc (the_low_target): Ditto.
740 * linux-tile-low.cc (the_low_target): Ditto.
741 * linux-xtensa-low.cc (the_low_target): Ditto.
742
cb63de7c
TBA
7432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
744
745 Turn the 'siginfo_fixup' linux target op into a method of
746 linux_process_target.
747
748 * linux-low.h (struct linux_target_ops): Remove the op.
749 (class linux_process_target) <siginfo_fixup>
750 <low_siginfo_fixup>: Declare.
751 * linux-low.cc (siginfo_fixup): Turn into...
752 (linux_process_target::siginfo_fixup): ...this.
753 (linux_process_target::low_siginfo_fixup): Define.
754 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
755 (x86_siginfo_fixup): Turn into...
756 (x86_target::low_siginfo_fixup): ...this.
757 (the_low_target): Remove the op field.
758 * linux-aarch64-low.cc (class aarch64_target):
759 <low_siginfo_fixup>: Declare.
760 (aarch64_linux_siginfo_fixup): Turn into...
761 (aarch64_target::low_siginfo_fixup): ...this.
762 (the_low_target): Remove the op field.
763 * linux-arm-low.cc (the_low_target): Remove the op field.
764 * linux-bfin-low.cc (the_low_target): Ditto.
765 * linux-crisv32-low.cc (the_low_target): Ditto.
766 * linux-m32r-low.cc (the_low_target): Ditto.
767 * linux-m68k-low.cc (the_low_target): Ditto.
768 * linux-mips-low.cc (the_low_target): Ditto.
769 * linux-ppc-low.cc (the_low_target): Ditto.
770 * linux-s390-low.cc (the_low_target): Ditto.
771 * linux-sh-low.cc (the_low_target): Ditto.
772 * linux-tic6x-low.cc (the_low_target): Ditto.
773 * linux-tile-low.cc (the_low_target): Ditto.
774 * linux-xtensa-low.cc (the_low_target): Ditto.
775
b35db733
TBA
7762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777
778 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
779 linux target ops into methods of linux_process_target.
780
781 * linux-low.h (struct linux_target_ops): Remove the ops.
782 (class linux_process_target) <low_collect_ptrace_register>
783 <low_store_ptrace_register>: Declare.
784 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
785 (linux_process_target::low_supply_ptrace_register): Define.
786
787 Update the callers below.
788
789 (linux_process_target::fetch_register)
790 (linux_process_target::store_register)
791
792 * linux-x86-low.cc (the_low_target): Remove the op fields.
793 * linux-aarch64-low.cc (the_low_target): Ditto.
794 * linux-arm-low.cc (the_low_target): Ditto.
795 * linux-bfin-low.cc (the_low_target): Ditto.
796 * linux-crisv32-low.cc (the_low_target): Ditto.
797 * linux-m32r-low.cc (the_low_target): Ditto.
798 * linux-m68k-low.cc (the_low_target): Ditto.
799 * linux-sh-low.cc (the_low_target): Ditto.
800 * linux-sparc-low.cc (the_low_target): Ditto.
801 * linux-tic6x-low.cc (the_low_target): Ditto.
802 * linux-tile-low.cc (the_low_target): Ditto.
803 * linux-xtensa-low.cc (the_low_target): Ditto.
804 * linux-mips-low.cc (class mips_target)
805 <low_collect_ptrace_register>
806 <low_supply_ptrace_register>: Declare.
807 (mips_collect_ptrace_register): Turn into ...
808 (mips_target::low_collect_ptrace_register): ...this.
809 (mips_supply_ptrace_register): Turn into...
810 (mips_target::low_supply_ptrace_register): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-ppc-low.cc (class ppc_target)
813 <low_collect_ptrace_register>
814 <low_supply_ptrace_register>: Declare.
815 (ppc_collect_ptrace_register): Turn into ...
816 (ppc_target::low_collect_ptrace_register): ...this.
817 (ppc_supply_ptrace_register): Turn into ...
818 (ppc_target::low_supply_ptrace_register): ...this.
819 (ppc_fill_gregset): Update for the calls to
820 low_collect_ptrace_register.
821 (the_low_target): Remove the op fields.
822 * linux-s390-low.cc (class s390_target)
823 <low_collect_ptrace_register>
824 <low_supply_ptrace_register>: Declare.
825 (s390_collect_ptrace_register): Turn into ...
826 (s390_target::low_collect_ptrace_register): ...this.
827 (s390_supply_ptrace_register): Turn into ...
828 (s390_target::low_supply_ptrace_register): ...this.
829 (s390_fill_gregset): Update for the calls to
830 low_collect_ptrace_register.
831 (the_low_target): Remove the op fields.
832
ac1bbaca
TBA
8332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
836 target ops into methods of linux_process_target.
837
838 * linux-low.h (struct linux_target_ops): Remove the ops.
839 (class linux_process_target) <check_stopped_by_watchpoint>
840 <low_stopped_by_watchpoint>
841 <low_stopped_data_address>: Declare.
842 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
843 (linux_process_target::check_stopped_by_watchpoint): ...this.
844 (linux_process_target::low_stopped_by_watchpoint): Define.
845 (linux_process_target::low_stopped_data_address): Define.
846 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
847 <low_stopped_data_address>: Declare.
848 (x86_stopped_by_watchpoint): Turn into...
849 (x86_target::low_stopped_by_watchpoint): ...this.
850 (x86_stopped_data_address): Turn into...
851 (x86_target::low_stopped_data_address): ...this.
852 (the_low_target): Remove the op fields.
853 * linux-aarch64-low.cc (class aarch64_target)
854 <low_stopped_by_watchpoint>
855 <low_stopped_data_address>: Declare.
856 (aarch64_stopped_by_watchpoint): Turn into...
857 (aarch64_target::low_stopped_by_watchpoint): ...this.
858 (aarch64_stopped_data_address): Turn into...
859 (aarch64_target::low_stopped_data_address): ...this.
860 (the_low_target): Remove the op fields.
861 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
862 <low_stopped_data_address>: Declare.
863 (arm_stopped_by_watchpoint): Turn into...
864 (arm_target::low_stopped_by_watchpoint): ...this.
865 (arm_stopped_data_address): Turn into...
866 (arm_target::low_stopped_data_address): ...this.
867 (the_low_target): Remove the op fields.
868 * linux-crisv32-low.cc (class crisv32_target)
869 <low_stopped_by_watchpoint>
870 <low_stopped_data_address>: Declare.
871 (cris_stopped_by_watchpoint): Turn into...
872 (crisv32_target::low_stopped_by_watchpoint): ...this.
873 (cris_stopped_data_address): Turn into...
874 (crisv32_target::low_stopped_data_address): ...this.
875 (the_low_target): Remove the op fields.
876 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
877 <low_stopped_data_address>: Declare.
878 (mips_stopped_by_watchpoint): Turn into...
879 (mips_target::low_stopped_by_watchpoint): ...this.
880 (mips_stopped_data_address): Turn into...
881 (mips_target::low_stopped_data_address): ...this.
882 (the_low_target): Remove the op fields.
883 * linux-bfin-low.cc (the_low_target): Remove the op fields.
884 * linux-m32r-low.cc (the_low_target): Ditto.
885 * linux-m68k-low.cc (the_low_target): Ditto.
886 * linux-ppc-low.cc (the_low_target): Ditto.
887 * linux-s390-low.cc (the_low_target): Ditto.
888 * linux-sh-low.cc (the_low_target): Ditto.
889 * linux-sparc-low.cc (the_low_target): Ditto.
890 * linux-tic6x-low.cc (the_low_target): Ditto.
891 * linux-tile-low.cc (the_low_target): Ditto.
892 * linux-xtensa-low.cc (the_low_target): Ditto.
893
9db9aa23
TBA
8942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895
896 Turn the 'insert_point' and 'remove_point' linux target ops into
897 methods of linux_process_target.
898
899 * linux-low.h (struct linux_target_ops): Remove the ops.
900 (class linux_process_target) <low_insert_point>
901 <low_remove_point>: Declare.
902 * linux-low.cc (linux_process_target::low_insert_point)
903 (linux_process_target::low_remove_point): Define.
904 (linux_process_target::insert_point)
905 (linux_process_target::remove_point): Update for calls to
906 low_insert_point and low_remove_point.
907 * linux-x86-low.cc (class x86_target) <low_insert_point>
908 <low_remove_point>: Declare.
909 (x86_insert_point): Turn into...
910 (x86_target::low_insert_point): ...this.
911 (x86_remove_point): Turn into...
912 (x86_target::low_remove_point): ...this.
913 (the_low_target): Remove the op fields.
914 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
915 <low_remove_point>: Declare.
916 (aarch64_insert_point): Turn into...
917 (aarch64_target::low_insert_point): ...this.
918 (aarch64_remove_point): Turn into...
919 (aarch64_target::low_remove_point): ...this.
920 (the_low_target): Remove the op fields.
921 * linux-arm-low.cc (class arm_target) <low_insert_point>
922 <low_remove_point>: Declare.
923 (arm_insert_point): Turn into...
924 (arm_target::low_insert_point): ...this.
925 (arm_remove_point): Turn into...
926 (arm_target::low_remove_point): ...this.
927 (the_low_target): Remove the op fields.
928 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
929 <low_remove_point>: Declare.
930 (crisv32_insert_point): Turn into...
931 (crisv32_target::low_insert_point): ...this.
932 (crisv32_remove_point): Turn into...
933 (crisv32_target::low_remove_point): ...this.
934 (the_low_target): Remove the op fields.
935 * linux-mips-low.cc (class mips_target) <low_insert_point>
936 <low_remove_point>: Declare.
937 (mips_insert_point): Turn into...
938 (mips_target::low_insert_point): ...this.
939 (mips_remove_point): Turn into...
940 (mips_target::low_remove_point): ...this.
941 (the_low_target): Remove the op fields.
942 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
943 <low_remove_point>: Declare.
944 (ppc_insert_point): Turn into...
945 (ppc_target::low_insert_point): ...this.
946 (ppc_remove_point): Turn into...
947 (ppc_target::low_remove_point): ...this.
948 (the_low_target): Remove the op fields.
949 * linux-bfin-low.cc (the_low_target): Remove the op fields.
950 * linux-m32r-low.cc (the_low_target): Ditto.
951 * linux-m68k-low.cc (the_low_target): Ditto.
952 * linux-s390-low.cc (the_low_target): Ditto.
953 * linux-sh-low.cc (the_low_target): Ditto.
954 * linux-sparc-low.cc (the_low_target): Ditto.
955 * linux-tic6x-low.cc (the_low_target): Ditto.
956 * linux-tile-low.cc (the_low_target): Ditto.
957 * linux-xtensa-low.cc (the_low_target): Ditto.
958
007c9b97
TBA
9592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
960
961 Remove the 'supports_z_point_type' linux target op and let the
962 concrete linux target define it by overriding the op declared in
963 process_stratum_target.
964
965 * linux-low.cc (linux_process_target::supports_z_point_type):
966 Remove.
967 * linux-low.h (struct linux_target_ops): Remove the op.
968 (class linux_process_target) <supports_z_point_type>: Remove.
969 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
970 Declare.
971 (x86_supports_z_point_type): Turn into...
972 (x86_target::supports_z_point_type): ...this.
973 (the_low_target): Remove the op field.
974 * linux-aarch64-low.cc (class aarch64_target)
975 <supports_z_point_type>: Declare.
976 (aarch64_supports_z_point_type): Turn into...
977 (aarch64_target::supports_z_point_type): ...this.
978 (the_low_target): Remove the op field.
979 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
980 Declare.
981 (arm_supports_z_point_type): Turn into...
982 (arm_target::supports_z_point_type): ...this.
983 (the_low_target): Remove the op field.
984 * linux-crisv32-low.cc (class crisv32_target)
985 <supports_z_point_type>: Declare.
986 (cris_supports_z_point_type): Turn into...
987 (crisv32_target::supports_z_point_type): ...this.
988 (the_low_target): Remove the op field.
989 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
990 Declare.
991 (mips_supports_z_point_type): Turn into...
992 (mips_target::supports_z_point_type): ...this.
993 (the_low_target): Remove the op field.
994 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
995 Declare.
996 (ppc_supports_z_point_type): Turn into...
997 (ppc_target::supports_z_point_type): ...this.
998 (the_low_target): Remove the op field.
999 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1000 Declare.
1001 (s390_supports_z_point_type): Turn into...
1002 (s390_target::supports_z_point_type): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-bfin-low.cc (the_low_target): Remove the op field.
1005 * linux-m32r-low.cc (the_low_target): Ditto.
1006 * linux-m68k-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-sparc-low.cc (the_low_target): Ditto.
1009 * linux-tic6x-low.cc (the_low_target): Ditto.
1010 * linux-tile-low.cc (the_low_target): Ditto.
1011 * linux-xtensa-low.cc (the_low_target): Ditto.
1012
d7146cda
TBA
10132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1014
1015 Turn the 'breakpoint_at' linux target op into a method of
1016 linux_process_target.
1017
1018 * linux-low.h (struct linux_target_ops): Remove the op.
1019 (class linux_process_target) <low_breakpoint_at>: Declare.
1020
1021 Update the callers below:
1022
1023 * linux-low.cc (linux_process_target::save_stop_reason)
1024 (linux_process_target::thread_still_has_status_pending)
1025 (linux_process_target::wait_1)
1026
1027 * linux-x86-low.cc (class x86_target)
1028 <low_breakpoint_at>: Declare.
1029 (x86_breakpoint_at): Turn into...
1030 (x86_target::low_breakpoint_at): ...this.
1031 (the_low_target): Remove the op field.
1032 * linux-aarch64-low.cc (class aarch64_target)
1033 <low_breakpoint_at>: Declare.
1034 (aarch64_breakpoint_at): Turn into...
1035 (aarch64_target::low_breakpoint_at): ...this.
1036 (the_low_target): Remove the op field.
1037 * linux-arm-low.cc (class arm_target)
1038 <low_breakpoint_at>: Declare.
1039 (arm_target::low_breakpoint_at): Define.
1040 (the_low_target): Remove the op field.
1041 * linux-bfin-low.cc (class bfin_target)
1042 <low_breakpoint_at>: Declare.
1043 (bfin_breakpoint_at): Turn into...
1044 (bfin_target::low_breakpoint_at): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-cris-low.cc (class cris_target)
1047 <low_breakpoint_at>: Declare.
1048 (cris_breakpoint_at): Turn into...
1049 (cris_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-crisv32-low.cc (class crisv32_target)
1052 <low_breakpoint_at>: Declare.
1053 (crisv32_breakpoint_at): Turn into...
1054 (crisv32_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-ia64-low.cc (class ia64_target)
1057 <low_breakpoint_at>: Declare.
1058 (ia64_target::low_breakpoint_at): Define.
1059 * linux-m32r-low.cc (class m32r_target)
1060 <low_breakpoint_at>: Declare.
1061 (m32r_breakpoint_at): Turn into...
1062 (m32r_target::low_breakpoint_at): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-m68k-low.cc (class m68k_target)
1065 <low_breakpoint_at>: Declare.
1066 (m68k_breakpoint_at): Turn into...
1067 (m68k_target::low_breakpoint_at): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-mips-low.cc (class mips_target)
1070 <low_breakpoint_at>: Declare.
1071 (mips_breakpoint_at): Turn into...
1072 (mips_target::low_breakpoint_at): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-nios2-low.cc (class nios2_target)
1075 <low_breakpoint_at>: Declare.
1076 (nios2_breakpoint_at): Turn into...
1077 (nios2_target::low_breakpoint_at): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-ppc-low.cc (class ppc_target)
1080 <low_breakpoint_at>: Declare.
1081 (ppc_breakpoint_at): Turn into...
1082 (ppc_target::low_breakpoint_at): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-riscv-low.cc (class riscv_target)
1085 <low_breakpoint_at>: Declare.
1086 (riscv_breakpoint_at): Turn into...
1087 (riscv_target::low_breakpoint_at): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-s390-low.cc (class s390_target)
1090 <low_breakpoint_at>: Declare.
1091 (s390_breakpoint_at): Turn into...
1092 (s390_target::low_breakpoint_at): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-sh-low.cc (class sh_target)
1095 <low_breakpoint_at>: Declare.
1096 (sh_breakpoint_at): Turn into...
1097 (sh_target::low_breakpoint_at): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-sparc-low.cc (class sparc_target)
1100 <low_breakpoint_at>: Declare.
1101 (sparc_breakpoint_at): Turn into...
1102 (sparc_target::low_breakpoint_at): ...this.
1103 (the_low_target): Remove the op field.
1104 * linux-tic6x-low.cc (class tic6x_target)
1105 <low_breakpoint_at>: Declare.
1106 (tic6x_breakpoint_at): Turn into...
1107 (tic6x_target::low_breakpoint_at): ...this.
1108 (the_low_target): Remove the op field.
1109 * linux-tile-low.cc (class tile_target)
1110 <low_breakpoint_at>: Declare.
1111 (tile_breakpoint_at): Turn into...
1112 (tile_target::low_breakpoint_at): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-xtensa-low.cc (class xtensa_target)
1115 <low_breakpoint_at>: Declare.
1116 (xtensa_breakpoint_at): Turn into...
1117 (xtensa_target::low_breakpoint_at): ...this.
1118 (the_low_target): Remove the op field.
1119
d4807ea2
TBA
11202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1121
1122 Turn the 'decr_pc_after_break' linux_target_ops field into
1123 a method of linux_process_target.
1124
1125 * linux-low.h (struct linux_target_ops)
1126 <decr_pc_after_break>: Remove.
1127 (class linux_process_target) <low_decr_pc_after_break>: New method
1128 declaration.
1129 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1130 New method implementation.
1131
1132 Update the users below.
1133
1134 (linux_process_target::save_stop_reason)
1135 (linux_process_target::wait_1)
1136 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1137 New declaration.
1138 (x86_target::low_decr_pc_after_break): New method implementation.
1139 (the_low_target): Remove the field.
1140 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1141 New declaration.
1142 (bfin_target::low_decr_pc_after_break): New method implementation.
1143 (the_low_target): Remove the field.
1144 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1145 New declaration.
1146 (m68k_target::low_decr_pc_after_break): New method implementation.
1147 (the_low_target): Remove the field.
1148 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1149 New declaration.
1150 (s390_target::low_decr_pc_after_break): New method implementation.
1151 (the_low_target): Remove the field.
1152 * linux-aarch64-low.cc (the_low_target): Remove the field.
1153 * linux-arm-low.cc (the_low_target): Remove the field.
1154 * linux-cris-low.cc (the_low_target): Remove the field.
1155 * linux-crisv32-low.cc (the_low_target): Remove the field.
1156 * linux-m32r-low.cc (the_low_target): Remove the field.
1157 * linux-mips-low.cc (the_low_target): Remove the field.
1158 * linux-nios2-low.cc (the_low_target): Remove the field.
1159 * linux-ppc-low.cc (the_low_target): Remove the field.
1160 * linux-riscv-low.cc (the_low_target): Remove the field.
1161 * linux-sh-low.cc (the_low_target): Remove the field.
1162 * linux-sparc-low.cc (the_low_target): Remove the field.
1163 * linux-tic6x-low.cc (the_low_target): Remove the field.
1164 * linux-tile-low.cc (the_low_target): Remove the field.
1165 * linux-xtensa-low.cc (the_low_target): Remove the field.
1166
7582c77c
TBA
11672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1168
1169 Remove the 'supports_software_single_step' linux target op and let
1170 the concrete linux target define it by overriding the op in
1171 process_stratum_target.
1172 Turn the 'get_next_pcs' linux target op into a method of
1173 linux_process_target.
1174
1175 * linux-low.h (struct linux_target_ops): Remove the ops.
1176 (class linux_process_target) <supports_software_single_step>:
1177 Remove.
1178 <low_get_next_pcs>: Declare.
1179 * linux-low.cc (can_software_single_step): Remove.
1180 (linux_process_target::low_get_next_pcs): Define.
1181 (linux_process_target::supports_software_single_step): Remove.
1182
1183 Update the callers below.
1184
1185 (linux_process_target::handle_extended_wait)
1186 (linux_process_target::wait_1)
1187 (linux_process_target::install_software_single_step_breakpoints)
1188 (linux_process_target::single_step)
1189 (linux_process_target::thread_needs_step_over)
1190 (linux_process_target::proceed_one_lwp)
1191 (linux_process_target::supports_range_stepping)
1192
1193 * linux-x86-low.cc (the_low_target): Remove the op field.
1194 * linux-aarch64-low.cc (the_low_target): Ditto.
1195 * linux-bfin-low.cc (the_low_target): Ditto.
1196 * linux-cris-low.cc (the_low_target): Ditto.
1197 * linux-crisv32-low.cc (the_low_target): Ditto.
1198 * linux-m32r-low.cc (the_low_target): Ditto.
1199 * linux-m68k-low.cc (the_low_target): Ditto.
1200 * linux-mips-low.cc (the_low_target): Ditto.
1201 * linux-nios2-low.cc (the_low_target): Ditto.
1202 * linux-ppc-low.cc (the_low_target): Ditto.
1203 * linux-riscv-low.cc (the_low_target): Ditto.
1204 * linux-s390-low.cc (the_low_target): Ditto.
1205 * linux-sh-low.cc (the_low_target): Ditto.
1206 * linux-sparc-low.cc (the_low_target): Ditto.
1207 * linux-tic6x-low.cc (the_low_target): Ditto.
1208 * linux-tile-low.cc (the_low_target): Ditto.
1209 * linux-xtensa-low.cc (the_low_target): Ditto.
1210 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1211 <supports_software_single_step>: Declare.
1212 (arm_target::supports_software_single_step): Define.
1213 (arm_gdbserver_get_next_pcs): Turn into...
1214 (arm_target::low_get_next_pcs): ...this.
1215 (the_low_target): Remove the op field.
1216
3ca4edb6
TBA
12172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1218
1219 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1220 the concrete linux target define it by overriding the op
1221 in process_stratum_target.
1222
1223 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1224 Remove.
1225 * linux-low.h (struct linux_target_ops): Remove the op.
1226 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1227 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1228 Declare.
1229 (x86_sw_breakpoint_from_kind): Turn into...
1230 (x86_target::sw_breakpoint_from_kind): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-aarch64-low.cc (class aarch64_target)
1233 <sw_breakpoint_from_kind>: Declare.
1234 (aarch64_sw_breakpoint_from_kind): Turn into...
1235 (aarch64_target::sw_breakpoint_from_kind): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1238 Declare.
1239 (arm_target::sw_breakpoint_from_kind): Define.
1240 (the_low_target): Remove the op field.
1241 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1242 Declare.
1243 (bfin_sw_breakpoint_from_kind): Turn into...
1244 (bfin_target::sw_breakpoint_from_kind): ...this.
1245 (the_low_target): Remove the op field.
1246 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1247 Declare.
1248 (cris_sw_breakpoint_from_kind): Turn into...
1249 (cris_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-crisv32-low.cc (class crisv32_target)
1252 <sw_breakpoint_from_kind>: Declare.
1253 (cris_sw_breakpoint_from_kind): Turn into...
1254 (crisv32_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1257 Declare.
1258 (ia64_target::sw_breakpoint_from_kind): Define.
1259 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1260 Declare.
1261 (m32r_sw_breakpoint_from_kind): Turn into...
1262 (m32r_target::sw_breakpoint_from_kind): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1265 Declare.
1266 (m68k_sw_breakpoint_from_kind): Turn into...
1267 (m68k_target::sw_breakpoint_from_kind): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1270 Declare.
1271 (mips_sw_breakpoint_from_kind): Turn into...
1272 (mips_target::sw_breakpoint_from_kind): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1275 Declare.
1276 (nios2_sw_breakpoint_from_kind): Turn into...
1277 (nios2_target::sw_breakpoint_from_kind): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1280 Declare.
1281 (ppc_sw_breakpoint_from_kind): Turn into...
1282 (ppc_target::sw_breakpoint_from_kind): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1285 Declare.
1286 (riscv_sw_breakpoint_from_kind): Turn into...
1287 (riscv_target::sw_breakpoint_from_kind): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1290 Declare.
1291 (s390_sw_breakpoint_from_kind): Turn into...
1292 (s390_target::sw_breakpoint_from_kind): ...this.
1293 (the_low_target): Remove the op field.
1294 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1295 Declare.
1296 (sh_sw_breakpoint_from_kind): Turn into...
1297 (sh_target::sw_breakpoint_from_kind): ...this.
1298 (the_low_target): Remove the op field.
1299 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1300 Declare.
1301 (sparc_sw_breakpoint_from_kind): Turn into...
1302 (sparc_target::sw_breakpoint_from_kind): ...this.
1303 (the_low_target): Remove the op field.
1304 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1305 Declare.
1306 (tic6x_sw_breakpoint_from_kind): Turn into...
1307 (tic6x_target::sw_breakpoint_from_kind): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1310 Declare.
1311 (tile_sw_breakpoint_from_kind): Turn into...
1312 (tile_target::sw_breakpoint_from_kind): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-xtensa-low.cc (class xtensa_target)
1315 <sw_breakpoint_from_kind>: Declare.
1316 (xtensa_sw_breakpoint_from_kind): Turn into...
1317 (xtensa_target::sw_breakpoint_from_kind): ...this.
1318 (the_low_target): Remove the op field.
1319
06250e4e
TBA
13202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321
1322 Remove the 'breakpoint_kind_from_pc' and
1323 'breakpoint_kind_from_current_state' linux target ops, and let the
1324 concrete linux target define them by overriding the ops of
1325 process_stratum_target.
1326
1327 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1328 Remove.
1329 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1330 * linux-low.h (struct linux_target_ops): Remove ops.
1331 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1332 <breakpoint_kind_from_current_state>: Remove.
1333 * linux-x86-low.cc (the_low_target): Remove the op fields.
1334 * linux-bfin-low.cc (the_low_target): Ditto.
1335 * linux-cris-low.cc (the_low_target): Ditto.
1336 * linux-crisv32-low.cc (the_low_target): Ditto.
1337 * linux-m32r-low.cc (the_low_target): Ditto.
1338 * linux-m68k-low.cc (the_low_target): Ditto.
1339 * linux-mips-low.cc (the_low_target): Ditto.
1340 * linux-nios2-low.cc (the_low_target): Ditto.
1341 * linux-ppc-low.cc (the_low_target): Ditto.
1342 * linux-s390-low.cc (the_low_target): Ditto.
1343 * linux-sh-low.cc (the_low_target): Ditto.
1344 * linux-sparc-low.cc (the_low_target): Ditto.
1345 * linux-tic6x-low.cc (the_low_target): Ditto.
1346 * linux-tile-low.cc (the_low_target): Ditto.
1347 * linux-xtensa-low.cc (the_low_target): Ditto.
1348 * linux-aarch64-low.cc (class aarch64_target)
1349 <breakpoint_kind_from_pc>
1350 <breakpoint_kind_from_current_state>: Declare.
1351 (aarch64_breakpoint_kind_from_pc): Turn into...
1352 (aarch64_target::breakpoint_kind_from_pc): ...this.
1353 (aarch64_breakpoint_kind_from_current_state): Turn into...
1354 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1355 (the_low_target): Remove the op fields.
1356 * linux-arm-low.cc (class arm_target):
1357 <breakpoint_kind_from_pc>
1358 <breakpoint_kind_from_current_state>: Declare.
1359 (arm_target::breakpoint_kind_from_pc): Define.
1360 (arm_target::breakpoint_kind_from_current_state): Define.
1361 (the_low_target): Remove the op fields.
1362 * linux-riscv-low.cc (class riscv_target):
1363 <breakpoint_kind_from_pc>: Declare.
1364 (riscv_breakpoint_kind_from_pc): Turn into...
1365 (riscv_target::breakpoint_kind_from_pc): ...this.
1366 (the_low_target): Remove the op fields.
1367
bf9ae9d8
TBA
13682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369
1370 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1371 of linux_process_target.
1372
1373 * linux-low.h (struct linux_target_ops): Remove the ops.
1374 (class linux_process_target) <low_supports_breakpoints>
1375 <low_get_pc>
1376 <low_set_pc>: Declare.
1377 * linux-low.cc (supports_breakpoints): Turn into...
1378 (linux_process_target::low_supports_breakpoints): ...this.
1379 (linux_process_target::low_get_pc): Define.
1380 (linux_process_target::low_set_pc): Define.
1381
1382 Update the callers below.
1383
1384 (linux_process_target::get_pc)
1385 (linux_process_target::save_stop_reason)
1386 (linux_process_target::maybe_move_out_of_jump_pad)
1387 (linux_process_target::wait_1)
1388 (linux_process_target::resume_one_lwp_throw)
1389 (linux_process_target::resume)
1390 (linux_process_target::proceed_all_lwps)
1391 (linux_process_target::read_pc)
1392 (linux_process_target::write_pc)
1393
1394 * linux-x86-low.cc (class linux_process_target)
1395 <low_supports_breakpoints>
1396 <low_get_pc>
1397 <low_set_pc>: Declare.
1398 (x86_target::low_supports_breakpoints): Define.
1399 (x86_get_pc): Turn into...
1400 (x86_target::low_get_pc): ...this.
1401 (x86_set_pc): Turn into...
1402 (x86_target::low_set_pc): ...this.
1403 (the_low_target): Remove the op fields.
1404 * linux-arm-low.cc (class arm_target)
1405 <low_supports_breakpoints>
1406 <low_get_pc>
1407 <low_set_pc>: Declare.
1408 (arm_target::low_supports_breakpoints)
1409 (arm_target::low_get_pc)
1410 (arm_target::low_set_pc): Define.
1411 (the_low_target): Remove the op fields.
1412 * linux-bfin-low.cc (class bfin_target)
1413 <low_supports_breakpoints>
1414 <low_get_pc>
1415 <low_set_pc>: Declare.
1416 (bfin_target::low_supports_breakpoints)
1417 (bfin_target::low_get_pc)
1418 (bfin_target::low_set_pc): Define.
1419 (the_low_target): Remove the op fields.
1420 * linux-cris-low.cc (class cris_target)
1421 <low_supports_breakpoints>
1422 <low_get_pc>
1423 <low_set_pc>: Declare.
1424 (cris_target::low_supports_breakpoints)
1425 (cris_target::low_get_pc)
1426 (cris_target::low_set_pc): Define.
1427 (the_low_target): Remove the op fields.
1428 * linux-crisv32-low.cc (class crisv32_target)
1429 <low_supports_breakpoints>
1430 <low_get_pc>
1431 <low_set_pc>: Declare.
1432 (crisv32_target::low_supports_breakpoints)
1433 (crisv32_target::low_get_pc)
1434 (crisv32_target::low_set_pc): Define.
1435 (the_low_target): Remove the op fields.
1436 * linux-m32r-low.cc (class m32r_target)
1437 <low_supports_breakpoints>
1438 <low_get_pc>
1439 <low_set_pc>: Declare.
1440 (m32r_target::low_supports_breakpoints)
1441 (m32r_target::low_get_pc)
1442 (m32r_target::low_set_pc): Define.
1443 (the_low_target): Remove the op fields.
1444 * linux-m68k-low.cc (class m68k_target)
1445 <low_supports_breakpoints>
1446 <low_get_pc>
1447 <low_set_pc>: Declare.
1448 (m68k_target::low_supports_breakpoints)
1449 (m68k_target::low_get_pc)
1450 (m68k_target::low_set_pc): Define.
1451 (the_low_target): Remove the op fields.
1452 * linux-nios2-low.cc (class nios2_target)
1453 <low_supports_breakpoints>
1454 <low_get_pc>
1455 <low_set_pc>: Declare.
1456 (nios2_target::low_supports_breakpoints)
1457 (nios2_target::low_get_pc)
1458 (nios2_target::low_set_pc): Define.
1459 (the_low_target): Remove the op fields.
1460 * linux-sh-low.cc (class sh_target)
1461 <low_supports_breakpoints>
1462 <low_get_pc>
1463 <low_set_pc>: Declare.
1464 (sh_target::low_supports_breakpoints)
1465 (sh_target::low_get_pc)
1466 (sh_target::low_set_pc): Define.
1467 (the_low_target): Remove the op fields.
1468 * linux-xtensa-low.cc (class xtensa_target)
1469 <low_supports_breakpoints>
1470 <low_get_pc>
1471 <low_set_pc>: Declare.
1472 (xtensa_target::low_supports_breakpoints)
1473 (xtensa_target::low_get_pc)
1474 (xtensa_target::low_set_pc): Define.
1475 (the_low_target): Remove the op fields.
1476 * linux-sparc-low.cc (class sparc_target)
1477 <low_supports_breakpoints>
1478 <low_get_pc>: Declare.
1479 (sparc_target::low_supports_breakpoints)
1480 (sparc_target::low_get_pc): Define.
1481 (the_low_target): Remove the op fields.
1482 * linux-tile-low.cc (class tile_target)
1483 <low_supports_breakpoints>
1484 <low_get_pc>
1485 <low_set_pc>: Declare.
1486 (tile_target::low_supports_breakpoints)
1487 (tile_target::low_get_pc)
1488 (tile_target::low_set_pc): Define.
1489 (the_low_target): Remove the op fields.
1490 * linux-aarch64-low.cc (class aarch64_target)
1491 <low_supports_breakpoints>
1492 <low_get_pc>
1493 <low_set_pc>: Declare.
1494 (aarch64_target::low_supports_breakpoints): Define.
1495 (aarch64_get_pc): Turn into...
1496 (aarch64_target::low_get_pc): ...this.
1497 (aarch64_set_pc): Turn into...
1498 (aarch64_target::low_set_pc): ...this.
1499 (the_low_target): Remove the op fields.
1500 * linux-mips-low.cc (class mips_target)
1501 <low_supports_breakpoints>
1502 <low_get_pc>
1503 <low_set_pc>: Declare.
1504 (mips_target::low_supports_breakpoints): Define.
1505 (mips_get_pc): Turn into...
1506 (mips_target::low_get_pc): ...this.
1507 (mips_set_pc): Turn into...
1508 (mips_target::low_set_pc): ...this.
1509 (the_low_target): Remove the op fields.
1510 * linux-ppc-low.cc (class ppc_target)
1511 <low_supports_breakpoints>
1512 <low_get_pc>
1513 <low_set_pc>: Declare.
1514 (ppc_target::low_supports_breakpoints): Define.
1515 (ppc_get_pc): Turn into...
1516 (ppc_target::low_get_pc): ...this.
1517 (ppc_set_pc): Turn into...
1518 (ppc_target::low_set_pc): ...this.
1519 (the_low_target): Remove the op fields.
1520 * linux-riscv-low.cc (class riscv_target)
1521 <low_supports_breakpoints>
1522 <low_get_pc>
1523 <low_set_pc>: Declare.
1524 (riscv_target::low_supports_breakpoints): Define.
1525 (riscv_get_pc): Turn into...
1526 (riscv_target::low_get_pc): ...this.
1527 (riscv_set_pc): Turn into...
1528 (riscv_target::low_set_pc): ...this.
1529 (the_low_target): Remove the op fields.
1530 * linux-s390-low.cc (class s390_target)
1531 <low_supports_breakpoints>
1532 <low_get_pc>
1533 <low_set_pc>: Declare.
1534 (s390_target::low_supports_breakpoints): Define.
1535 (s390_get_pc): Turn into...
1536 (s390_target::low_get_pc): ...this.
1537 (s390_set_pc): Turn into...
1538 (s390_target::low_set_pc): ...this.
1539 (the_low_target): Remove the op fields.
1540 * linux-tic6x-low.cc (class tic6x_target)
1541 <low_supports_breakpoints>
1542 <low_get_pc>
1543 <low_set_pc>: Declare.
1544 (tic6x_target::low_supports_breakpoints): Define.
1545 (tic6x_get_pc): Turn into...
1546 (tic6x_target::low_get_pc): ...this.
1547 (tic6x_set_pc): Turn into...
1548 (tic6x_target::low_set_pc): ...this.
1549 (the_low_target): Remove the op fields.
1550
df95181f
TBA
15512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1552
1553 Turn some more static methods in linux-low into private methods
1554 of linux_process_target.
1555
1556 * linux-low.cc (get_pc): Turn into...
1557 (linux_process_target::get_pc): ...this.
1558 (save_stop_reason): Turn into...
1559 (linux_process_target::save_stop_reason): ...this.
1560 (thread_still_has_status_pending_p): Turn into...
1561 (linux_process_target::thread_still_has_status_pending): ...this.
1562 (status_pending_p_callback): Turn into...
1563 (linux_process_target::status_pending_p_callback): ...this.
1564 (resume_stopped_resumed_lwps): Turn into...
1565 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1566 (install_software_single_step_breakpoints): Turn into...
1567 (linux_process_target::install_software_single_step_breakpoints):
1568 ...this.
1569 (single_step): Turn into...
1570 (linux_process_target::single_step): ...this.
1571 (linux_resume_one_lwp_throw): Turn into...
1572 (linux_process_target::resume_one_lwp_throw): ...this.
1573 (linux_resume_one_lwp): Turn into...
1574 (linux_process_target::resume_one_lwp): ...this.
1575 (resume_status_pending_p): Turn into...
1576 (linux_process_target::resume_status_pending): ...this.
1577 (need_step_over_p): Turn into...
1578 (linux_process_target::thread_needs_step_over): ...this.
1579 (linux_resume_one_thread): Turn into...
1580 (linux_process_target::resume_one_thread): ...this.
1581 (proceed_one_lwp): Turn into...
1582 (linux_process_target::proceed_one_lwp): ...this.
1583 (unsuspend_and_proceed_one_lwp): Turn into...
1584 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1585
1586 Update the calls/references to the above functions below.
1587
1588 (linux_process_target::handle_extended_wait)
1589 (linux_process_target::filter_event)
1590 (linux_process_target::wait_for_event_filtered)
1591 (linux_process_target::wait_1)
1592 (linux_process_target::move_out_of_jump_pad)
1593 (linux_process_target::start_step_over)
1594 (linux_process_target::resume)
1595 (linux_process_target::proceed_all_lwps)
1596 (regsets_store_inferior_registers)
1597 (linux_process_target::store_register)
1598
1599 * linux-low.h (class linux_process_target)
1600 <get_pc>
1601 <save_stop_reason>
1602 <thread_still_has_status_pending>
1603 <status_pending_p_callback>
1604 <resume_stopped_resumed_lwps>
1605 <install_software_single_step_breakpoints>
1606 <single_step>
1607 <resume_one_lwp_throw>
1608 <resume_one_lwp>
1609 <resume_status_pending>
1610 <thread_needs_step_over>
1611 <resume_one_thread>
1612 <proceed_one_lwp>
1613 <unsuspend_and_proceed_one_lwp>: Declare.
1614
bd70b1f2
TBA
16152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1616
1617 Turn the 'fetch_register' linux target op into a method of
1618 linux_process_target.
1619
1620 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1621 (class linux_process_target) <low_fetch_register>: Declare.
1622 * linux-x86-low.cc (the_low_target)
1623 * linux-aarch64-low.cc (the_low_target)
1624 * linux-arm-low.cc (the_low_target)
1625 * linux-bfin-low.cc (the_low_target)
1626 * linux-cris-low.cc (the_low_target)
1627 * linux-crisv32-low.cc (the_low_target)
1628 * linux-m32r-low.cc (the_low_target)
1629 * linux-m68k-low.cc (the_low_target)
1630 * linux-nios2-low.cc (the_low_target)
1631 * linux-ppc-low.cc (the_low_target)
1632 * linux-s390-low.cc (the_low_target)
1633 * linux-sh-low.cc (the_low_target)
1634 * linux-sparc-low.cc (the_low_target)
1635 * linux-tic6x-low.cc (the_low_target)
1636 * linux-tile-low.cc (the_low_target)
1637 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1638 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1639 Declare.
1640 (ia64_fetch_register): Turn into...
1641 (ia64_target::low_fetch_register): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1644 Declare.
1645 (mips_fetch_register): Turn into...
1646 (mips_target::low_fetch_register): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1649 Declare.
1650 (riscv_fetch_register): Turn into...
1651 (riscv_target::low_fetch_register): ...this.
1652 (the_low_target): Remove the op field.
1653
1654 Update the callers below.
1655
1656 * linux-low.cc (linux_process_target::fetch_registers)
1657 (linux_process_target::low_fetch_register)
1658
daca57a7
TBA
16592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1660
1661 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1662 linux target ops into methods of linux_process_target.
1663
1664 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1665 (class linux_process_target) <fetch_register>
1666 <store_register>
1667 <usr_fetch_inferior_registers>
1668 <usr_store_inferior_registers>
1669 <low_cannot_fetch_register>
1670 <low_cannot_fetch_register> Declare.
1671 * linux-low.cc (fetch_register): Turn into...
1672 (linux_process_target::fetch_register): ...this.
1673 (store_register): Turn into ...
1674 (linux_process_target::store_register): ...this.
1675 (usr_fetch_inferior_registers): Turn into...
1676 (linux_process_target::usr_fetch_inferior_registers): ...this.
1677 (usr_store_inferior_registers): Turn into...
1678 (linux_process_target::usr_store_inferior_registers): ...this.
1679 * linux-x86-low.cc (class x86_target)
1680 <low_cannot_fetch_register>
1681 <low_cannot_store_register>: Declare.
1682 (x86_cannot_store_register): Turn into...
1683 (x86_target::low_cannot_store_register): ...this.
1684 (x86_cannot_fetch_register): Turn into...
1685 (x86_target::low_cannot_fetch_register): ...this.
1686 (the_low_target): Remove the target op fields.
1687 * linux-aarch64-low.cc (class aarch64_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (aarch64_target::low_cannot_fetch_register)
1691 (aarch64_target::low_cannot_store_register): Define.
1692 (the_low_target): Remove the op fields.
1693 * linux-arm-low.cc (class arm_target)
1694 <low_cannot_fetch_register>
1695 <low_cannot_store_register>: Declare.
1696 (arm_cannot_fetch_register): Turn into...
1697 (arm_target::low_cannot_fetch_register): ...this.
1698 (arm_cannot_store_register): Turn into...
1699 (arm_target::low_cannot_store_register): ...this.
1700 (the_low_target): Remove the op fields.
1701 * linux-bfin-low.cc (class bfin_target)
1702 <low_cannot_fetch_register>
1703 <low_cannot_store_register>: Declare.
1704 (bfin_cannot_fetch_register): Turn into...
1705 (bfin_target::low_cannot_fetch_register): ...this.
1706 (bfin_cannot_store_register): Turn into...
1707 (bfin_target::low_cannot_store_register): ...this.
1708 (the_low_target): Remove the op fields.
1709 * linux-cris-low.cc (class cris_target)
1710 <low_cannot_fetch_register>
1711 <low_cannot_store_register>: Declare.
1712 (cris_cannot_fetch_register): Turn into...
1713 (cris_target::low_cannot_fetch_register): ...this.
1714 (cris_cannot_store_register): Turn into...
1715 (cris_target::low_cannot_store_register): ...this.
1716 (the_low_target): Remove the op fields.
1717 * linux-crisv32-low.cc (class crisv32_target)
1718 <low_cannot_fetch_register>
1719 <low_cannot_store_register>: Declare.
1720 (crisv32_target::low_cannot_fetch_register)
1721 (crisv32_target::low_cannot_store_register): Define.
1722 (the_low_target): Remove the op fields.
1723 * linux-ia64-low.cc (class ia64_target)
1724 <low_cannot_fetch_register>
1725 <low_cannot_store_register>: Declare.
1726 (ia64_cannot_fetch_register): Turn into...
1727 (ia64_target::low_cannot_fetch_register): ...this.
1728 (ia64_cannot_store_register): Turn into...
1729 (ia64_target::low_cannot_store_register): ...this.
1730 (the_low_target): Remove the op fields.
1731 * linux-m32r-low.cc (class m32r_target)
1732 <low_cannot_fetch_register>
1733 <low_cannot_store_register>: Declare.
1734 (m32r_cannot_fetch_register): Turn into...
1735 (m32r_target::low_cannot_fetch_register): ...this.
1736 (m32r_cannot_store_register): Turn into...
1737 (m32r_target::low_cannot_store_register): ...this.
1738 (the_low_target): Remove the op fields.
1739 * linux-m68k-low.cc (class m68k_target)
1740 <low_cannot_fetch_register>
1741 <low_cannot_store_register>: Declare.
1742 (m68k_cannot_fetch_register): Turn into...
1743 (m68k_target::low_cannot_fetch_register): ...this.
1744 (m68k_cannot_store_register): Turn into...
1745 (m68k_target::low_cannot_store_register): ...this.
1746 (the_low_target): Remove the op fields.
1747 * linux-mips-low.cc (class mips_target)
1748 <low_cannot_fetch_register>
1749 <low_cannot_store_register>: Declare.
1750 (mips_cannot_fetch_register): Turn into...
1751 (mips_target::low_cannot_fetch_register): ...this.
1752 (mips_cannot_store_register): Turn into...
1753 (mips_target::low_cannot_store_register): ...this.
1754 (get_usrregs_info): Inline at the call sites in
1755 low_cannot_fetch_register and low_cannot_store_register,
1756 and remove.
1757 (the_low_target): Remove the op fields.
1758 * linux-nios2-low.cc (class nios2_target)
1759 <low_cannot_fetch_register>
1760 <low_cannot_store_register>: Declare.
1761 (nios2_cannot_fetch_register): Turn into...
1762 (nios2_target::low_cannot_fetch_register): ...this.
1763 (nios2_cannot_store_register): Turn into...
1764 (nios2_target::low_cannot_store_register): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-ppc-low.cc (class ppc_target)
1767 <low_cannot_fetch_register>
1768 <low_cannot_store_register>: Declare.
1769 (ppc_cannot_fetch_register): Turn into...
1770 (ppc_target::low_cannot_fetch_register): ...this.
1771 (ppc_cannot_store_register): Turn into...
1772 (ppc_target::low_cannot_store_register): ...this.
1773 (the_low_target): Remove the op fields.
1774 * linux-riscv-low.cc (class riscv_target)
1775 <low_cannot_fetch_register>
1776 <low_cannot_store_register>: Declare.
1777 (riscv_target::low_cannot_fetch_register)
1778 (riscv_target::low_cannot_store_register): Define.
1779 (the_low_target): Remove the op fields.
1780 * linux-s390-low.cc (class s390_target)
1781 <low_cannot_fetch_register>
1782 <low_cannot_store_register>: Declare.
1783 (s390_cannot_fetch_register): Turn into...
1784 (s390_target::low_cannot_fetch_register): ...this.
1785 (s390_cannot_store_register): Turn into...
1786 (s390_target::low_cannot_store_register): ...this.
1787 (the_low_target): Remove the op fields.
1788 * linux-sh-low.cc (class sh_target)
1789 <low_cannot_fetch_register>
1790 <low_cannot_store_register>: Declare.
1791 (sh_cannot_fetch_register): Turn into...
1792 (sh_target::low_cannot_fetch_register): ...this.
1793 (sh_cannot_store_register): Turn into...
1794 (sh_target::low_cannot_store_register): ...this.
1795 (the_low_target): Remove the op fields.
1796 * linux-sparc-low.cc (class sparc_target)
1797 <low_cannot_fetch_register>
1798 <low_cannot_store_register>: Declare.
1799 (sparc_cannot_fetch_register): Turn into...
1800 (sparc_target::low_cannot_fetch_register): ...this.
1801 (sparc_cannot_store_register): Turn into...
1802 (sparc_target::low_cannot_store_register): ...this.
1803 (the_low_target): Remove the op fields.
1804 * linux-tic6x-low.cc (class tic6x_target)
1805 <low_cannot_fetch_register>
1806 <low_cannot_store_register>: Declare.
1807 (tic6x_cannot_fetch_register): Turn into...
1808 (tic6x_target::low_cannot_fetch_register): ...this.
1809 (tic6x_cannot_store_register): Turn into...
1810 (tic6x_target::low_cannot_store_register): ...this.
1811 (the_low_target): Remove the op fields.
1812 * linux-tile-low.cc (class tile_target)
1813 <low_cannot_fetch_register>
1814 <low_cannot_store_register>: Declare.
1815 (tile_cannot_fetch_register): Turn into...
1816 (tile_target::low_cannot_fetch_register): ...this.
1817 (tile_cannot_store_register): Turn into...
1818 (tile_target::low_cannot_store_register): ...this.
1819 (the_low_target): Remove the op fields.
1820 * linux-xtensa-low.cc (class xtensa_target)
1821 <low_cannot_fetch_register>
1822 <low_cannot_store_register>: Declare.
1823 (xtensa_target::low_cannot_fetch_register)
1824 (xtensa_target::low_cannot_store_register): Define.
1825 (the_low_target): Remove the op fields.
1826
aa8d21c9
TBA
18272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1828
1829 Turn the 'regs_info' linux target op into a method of
1830 linux_process_target.
1831
1832 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1833 (class linux_process_target) <get_regs_info>: Define.
1834
1835 Update the callers below.
1836
1837 * linux-low.cc (linux_process_target::fetch_registers)
1838 (linux_process_target::store_registers)
1839 * proc-service.cc (gregset_info)
1840
1841 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1842 (x86_linux_regs_info): Turn into ...
1843 (x86_target::get_regs_info): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1846 Declare.
1847 (aarch64_regs_info): Turn into ...
1848 (aarch64_target::get_regs_info): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1851 (arm_regs_info): Turn into ...
1852 (arm_target::get_regs_info): ...this.
1853 (the_low_target): Remove the op field.
1854 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1855 (bfin_regs_info): Turn into ...
1856 (bfin_target::get_regs_info): ...this.
1857 (the_low_target): Remove the op field.
1858 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1859 (cris_regs_info): Turn into ...
1860 (cris_target::get_regs_info): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1863 Declare.
1864 (crisv32_regs_info): Turn into ...
1865 (crisv32_target::get_regs_info): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1868 (ia64_regs_info): Turn into ...
1869 (ia64_target::get_regs_info): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1872 (m32r_regs_info): Turn into ...
1873 (m32r_target::get_regs_info): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1876 (m68k_regs_info): Turn into ...
1877 (m68k_target::get_regs_info): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1880 (mips_regs_info): Turn into ...
1881 (mips_target::get_regs_info): ...this.
1882 (the_low_target): Remove the op field.
1883 (get_usrregs_info): Update the call to the op.
1884 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1885 (nios2_regs_info): Turn into ...
1886 (nios2_target::get_regs_info): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1889 (ppc_regs_info): Turn into ...
1890 (ppc_target::get_regs_info): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1893 (riscv_regs_info): Turn into ...
1894 (riscv_target::get_regs_info): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1897 (s390_regs_info): Turn into ...
1898 (s390_target::get_regs_info): ...this.
1899 (the_low_target): Remove the op field.
1900 (s390_collect_ptrace_register)
1901 (s390_supply_ptrace_register)
1902 (s390_fill_gregset): Update the call to the op.
1903 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1904 (sh_regs_info): Turn into ...
1905 (sh_target::get_regs_info): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1908 (sparc_regs_info): Turn into ...
1909 (sparc_target::get_regs_info): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1912 (tic6x_regs_info): Turn into ...
1913 (tic6x_target::get_regs_info): ...this.
1914 (the_low_target): Remove the op field.
1915 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1916 (tile_regs_info): Turn into ...
1917 (tile_target::get_regs_info): ...this.
1918 (the_low_target): Remove the op field.
1919 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1920 Declare.
1921 (xtensa_regs_info): Turn into ...
1922 (xtensa_target::get_regs_info): ...this.
1923 (the_low_target): Remove the op field.
1924
797bcff5
TBA
19252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1926
1927 Turn the 'arch_setup' linux target op into a method of
1928 linux_process_target.
1929
1930 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1931 (class linux_process_target) <arch_setup_thread>
1932 <low_arch_setup>: New declarations.
1933 * linux-low.cc (linux_arch_setup): Delete.
1934 (linux_arch_setup_thread): Turn into...
1935 (linux_process_target::arch_setup_thread): ... this.
1936
1937 Update the callers below.
1938
1939 (linux_process_target::handle_extended_wait)
1940 (linux_process_target::post_create_inferior)
1941 (linux_process_target::filter_event)
1942
1943 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1944 declaration.
1945 (x86_linux_update_xmltarget): Turn into...
1946 (x86_target::update_xmltarget): ...this.
1947 (x86_linux_process_qsupported): Update the call to
1948 x86_linux_update_xmltarget.
1949 (x86_arch_setup): Turn into ...
1950 (x86_target::low_arch_setup): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1953 declaration.
1954 (aarch64_arch_setup): Turn into ...
1955 (aarch64_target::low_arch_setup): ...this.
1956 (the_low_target): Remove the op field.
1957 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1958 declaration.
1959 (arm_arch_setup): Turn into ...
1960 (arm_target::low_arch_setup): ...this.
1961 (the_low_target): Remove the op field.
1962 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1963 declaration.
1964 (bfin_arch_setup): Turn into ...
1965 (bfin_target::low_arch_setup): ...this.
1966 (the_low_target): Remove the op field.
1967 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1968 declaration.
1969 (cris_arch_setup): Turn into ...
1970 (cris_target::low_arch_setup): ...this.
1971 (the_low_target): Remove the op field.
1972 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1973 declaration.
1974 (crisv32_arch_setup): Turn into ...
1975 (crisv32_target::low_arch_setup): ...this.
1976 (the_low_target): Remove the op field.
1977 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1978 declaration.
1979 (ia64_arch_setup): Turn into ...
1980 (ia64_target::low_arch_setup): ...this.
1981 (the_low_target): Remove the op field.
1982 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1983 declaration.
1984 (m32r_arch_setup): Turn into ...
1985 (m32r_target::low_arch_setup): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1988 declaration.
1989 (m68k_arch_setup): Turn into ...
1990 (m68k_target::low_arch_setup): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1993 declaration.
1994 (mips_arch_setup): Turn into ...
1995 (mips_target::low_arch_setup): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1998 declaration.
1999 (nios2_arch_setup): Turn into ...
2000 (nios2_target::low_arch_setup): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2003 declaration.
2004 (ppc_arch_setup): Turn into ...
2005 (ppc_target::low_arch_setup): ...this.
2006 (the_low_target): Remove the op field.
2007 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2008 declaration.
2009 (riscv_arch_setup): Turn into ...
2010 (riscv_target::low_arch_setup): ...this.
2011 (the_low_target): Remove the op field.
2012 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2013 declaration.
2014 (s390_arch_setup): Turn into ...
2015 (s390_target::low_arch_setup): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2018 declaration.
2019 (sh_arch_setup): Turn into ...
2020 (sh_target::low_arch_setup): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2023 declaration.
2024 (sparc_arch_setup): Turn into ...
2025 (sparc_target::low_arch_setup): ...this.
2026 (the_low_target): Remove the op field.
2027 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2028 declaration.
2029 (tic6x_arch_setup): Turn into ...
2030 (tic6x_target::low_arch_setup): ...this.
2031 (the_low_target): Remove the op field.
2032 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2033 declaration.
2034 (tile_arch_setup): Turn into ...
2035 (tile_target::low_arch_setup): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2038 declaration.
2039 (xtensa_arch_setup): Turn into ...
2040 (xtensa_target::low_arch_setup): ...this.
2041 (the_low_target): Remove the op field.
2042
ef0478f6
TBA
20432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2044
2045 * linux-low.h (the_linux_target): New extern declaration.
2046 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2047 'the_target'.
2048 (the_linux_target): Remove.
2049 * linux-x86-low.cc (class x86_target): New class.
2050 (the_x86_target): New static object.
2051 (the_linux_target): Define as pointer to the_x86_target.
2052 * linux-aarch64-low.cc (class aarch64_target): New class.
2053 (the_aarch64_target): New static object.
2054 (the_linux_target): Define as pointer to the_aarch64_target.
2055 * linux-arm-low.cc (class arm_target): New class.
2056 (the_arm_target): New static object.
2057 (the_linux_target): Define as pointer to the_arm_target.
2058 * linux-bfin-low.cc (class bfin_target): New class.
2059 (the_bfin_target): New static object.
2060 (the_linux_target): Define as pointer to the_bfin_target.
2061 * linux-cris-low.cc (class cris_target): New class.
2062 (the_cris_target): New static object.
2063 (the_linux_target): Define as pointer to the_cris_target.
2064 * linux-crisv32-low.cc (class crisv32_target): New class.
2065 (the_crisv32_target): New static object.
2066 (the_linux_target): Define as pointer to the_crisv32_target.
2067 * linux-ia64-low.cc (class ia64_target): New class.
2068 (the_ia64_target): New static object.
2069 (the_linux_target): Define as pointer to the_ia64_target.
2070 * linux-m32r-low.cc (class m32r_target): New class.
2071 (the_m32r_target): New static object.
2072 (the_linux_target): Define as pointer to the_m32r_target.
2073 * linux-m68k-low.cc (class m68k_target): New class.
2074 (the_m68k_target): New static object.
2075 (the_linux_target): Define as pointer to the_m68k_target.
2076 * linux-mips-low.cc (class mips_target): New class.
2077 (the_mips_target): New static object.
2078 (the_linux_target): Define as pointer to the_mips_target.
2079 * linux-nios2-low.cc (class nios2_target): New class.
2080 (the_nios2_target): New static object.
2081 (the_linux_target): Define as pointer to the_nios2_target.
2082 * linux-ppc-low.cc (class ppc_target): New class.
2083 (the_ppc_target): New static object.
2084 (the_linux_target): Define as pointer to the_ppc_target.
2085 * linux-riscv-low.cc (class riscv_target): New class.
2086 (the_riscv_target): New static object.
2087 (the_linux_target): Define as pointer to the_riscv_target.
2088 * linux-s390-low.cc (class s390_target): New class.
2089 (the_s390_target): New static object.
2090 (the_linux_target): Define as pointer to the_s390_target.
2091 * linux-sh-low.cc (class sh_target): New class.
2092 (the_sh_target): New static object.
2093 (the_linux_target): Define as pointer to the_sh_target.
2094 * linux-sparc-low.cc (class sparc_target): New class.
2095 (the_sparc_target): New static object.
2096 (the_linux_target): Define as pointer to the_sparc_target.
2097 * linux-tic6x-low.cc (class tic6x_target): New class.
2098 (the_tic6x_target): New static object.
2099 (the_linux_target): Define as pointer to the_tic6x_target.
2100 * linux-tile-low.cc (class tile_target): New class.
2101 (the_tile_target): New static object.
2102 (the_linux_target): Define as pointer to the_tile_target.
2103 * linux-xtensa-low.cc (class xtensa_target): New class.
2104 (the_xtensa_target): New static object.
2105 (the_linux_target): Define as pointer to the_xtensa_target.
2106
d16f3f6c
TBA
21072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2108
2109 Turn some static functions in linux-low.cc into private methods of
2110 linux_process_target.
2111
2112 * linux-low.cc (handle_extended_wait): Turn into ...
2113 (linux_process_target::handle_extended_wait): ...this. Call
2114 'mourn' on 'this' object instead of 'the_target'.
2115 (maybe_move_out_of_jump_pad): Turn into...
2116 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2117 (linux_low_filter_event): Turn into...
2118 (linux_process_target::filter_event): ...this.
2119 (linux_wait_for_event_filtered): Turn into...
2120 (linux_process_target::wait_for_event_filtered): ...this.
2121 (linux_wait_for_event): Turn into...
2122 (linux_process_target::wait_for_event): ...this.
2123 (linux_wait_1): Turn into...
2124 (linux_process_target::wait_1): ...this.
2125 (wait_for_sigstop): Turn into...
2126 (linux_process_target::wait_for_sigstop): ...this.
2127 (move_out_of_jump_pad_callback): Turn into...
2128 (linux_process_target::move_out_of_jump_pad): ...this.
2129 (stop_all_lwps): Turn into...
2130 (linux_process_target::stop_all_lwps): ...this.
2131 (start_step_over): Turn into...
2132 (linux_process_target::start_step_over): ...this.
2133 (complete_ongoing_step_over): Turn into...
2134 (linux_process_target::complete_ongoing_step_over): ...this.
2135 (proceed_all_lwps): Turn into...
2136 (linux_process_target::proceed_all_lwps): ...this.
2137 (unstop_all_lwps): Turn into...
2138 (linux_process_target::unstop_all_lwps): ...this.
2139
2140 * linux-low.h (class linux_process_target)
2141 <handle_extended_wait>
2142 <maybe_move_out_of_jump_pad>
2143 filter_event>
2144 <wait_for_event_filtered>
2145 <wait_for_event>
2146 <wait_1>
2147 <wait_for_sigstop>
2148 <move_out_of_jump_pad>
2149 <stop_all_lwps>
2150 <start_step_over>
2151 <complete_ongoing_step_over>
2152 <proceed_all_lwps>
2153 <unstop_all_lwps>: Declare.
2154
2155 Update the callers below.
2156
2157 * linux-low.cc (linux_process_target::attach): Update.
2158 (linux_process_target::stabilize_threads): Ditto.
2159 (linux_process_target::wait): Ditto.
2160
a5863204
TBA
21612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162
2163 * linux-low.h (struct linux_target_ops): Update the comment for
2164 'cannot_store_register' to return 0 or 1.
2165 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2166 of 2.
2167
c884cc46
SM
21682020-03-20 Simon Marchi <simon.marchi@efficios.com>
2169
2170 * config.in: Re-generate.
2171 * configure: Re-generate.
2172
5a82b8a1
KR
21732020-03-17 Kamil Rytarowski <n54@gmx.com>
2174
2175 * regcache.cc (find_register_by_number): Update.
2176 * tdesc.cc (init_target_desc): Likewise.
2177 * tdesc.h (target_desc::reg_defs): Likewise.
2178
4635ff97
TT
21792020-03-12 Tom Tromey <tom@tromey.com>
2180
2181 * configure: Rebuild.
2182 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2183 (WIN32APILIBS): New subst.
2184 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2185 gdbsupport files.
2186 (gdbsupport/%.o): Remove target.
2187 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2188 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2189 (WIN32APILIBS): New variable.
2190 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2191 (gdbreplay$(EXEEXT)): Likewise.
2192
9a665d62
TT
21932020-03-12 Tom Tromey <tom@tromey.com>
2194
2195 * config.in, configure: Rebuild.
2196 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2197 * acinclude.m4: Include gettext-sister.m4.
2198 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2199 variables.
2200 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2201 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2202
272cd5a3
SM
22032020-03-12 Simon Marchi <simon.marchi@efficios.com>
2204
2205 * acinclude.m4: Update path to selftest.m4.
2206
db6878ac
SM
22072020-03-12 Simon Marchi <simon.marchi@efficios.com>
2208
2209 * configure.ac: Don't source bfd/development.sh, move
2210 GDB_AC_COMMON higher.
2211 * configure: Re-generate.
2212
4d696a5c
SM
22132020-03-12 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * configure: Re-generate.
2216
a0761e34
SM
22172020-03-11 Simon Marchi <simon.marchi@efficios.com>
2218
2219 * configure: Re-generate.
2220
20ea4a60
AB
22212020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * .dir-locals.el: New file.
2224
842806cb
TBA
22252020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 * .gitattributes: New file.
2228
442131c1
AB
22292020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2232 reply into an S reply.
2233 * server.cc (disable_packet_T): New global.
2234 (captured_main): Set new global when appropriate.
2235 * server.h (disable_packet_T): Declare.
2236
dda42c0b
TT
22372020-02-21 Tom Tromey <tom@tromey.com>
2238
2239 * Makefile.in (mostlyclean): New target.
2240
52405d85
TBA
22412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242
2243 * target.h (struct process_stratum_target): Remove.
2244 (class process_target): Rename to ...
2245 (class process_stratum_target): ... this.
2246 * linux-low.h (class linux_process_target): Derive from
2247 'process_stratum_target'.
2248 * linux-low.cc (linux_target_ops): Remove.
2249 (initialize_low): Set the_target to the singleton instance of
2250 linux_process_target.
2251 * lynx-low.h (class lynx_process_target): Derive from
2252 'process_stratum_target'.
2253 * lynx-low.cc (lynx_target_ops): Remove.
2254 (initialize_low): Set the_target to the singleton instance of
2255 lynx_process_target.
2256 * nto-low.h (class nto_process_target): Derive from
2257 'process_stratum_target'.
2258 * nto-low.cc (nto_target_ops): Remove.
2259 (initialize_low): Set the_target to the singleton instance of
2260 nto_process_target.
2261 * win32-low.h (class win32_process_target): Derive from
2262 'process_stratum_target'.
2263 * win32-low.cc (win32_target_ops): Remove.
2264 (initialize_low): Set the_target to the singleton instance of
2265 win32_process_target.
2266
2267 Replace 'the_target->pt' with 'the_target' in the uses below.
2268
2269 * hostio.cc (hostio_error)
2270 (handle_setfs)
2271 (handle_open)
2272 (handle_unlink)
2273 (handle_readlink)
2274 * linux-aarch32-low.cc (arm_breakpoint_at)
2275 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2276 * linux-arm-low.cc (arm_sigreturn_next_pc)
2277 (arm_get_hwcap)
2278 (arm_get_syscall_trapinfo)
2279 * linux-cris-low.cc (cris_breakpoint_at)
2280 * linux-crisv32-low.cc (cris_breakpoint_at)
2281 * linux-low.cc (handle_extended_wait)
2282 (linux_wait_1)
2283 (linux_read_memory)
2284 (linux_process_target::breakpoint_kind_from_pc)
2285 (linux_get_auxv)
2286 * linux-m32r-low.cc (m32r_breakpoint_at)
2287 * linux-mips-low.cc (mips_breakpoint_at)
2288 * linux-nios2-low.cc (nios2_breakpoint_at)
2289 * linux-ppc-low.cc (ppc_breakpoint_at)
2290 * linux-s390-low.cc (s390_get_hwcap)
2291 * linux-sh-low.cc (sh_breakpoint_at)
2292 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2293 (sparc_store_gregset_from_stack)
2294 (sparc_breakpoint_at)
2295 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2296 * linux-tile-low.cc (tile_breakpoint_at)
2297 * linux-x86-low.cc (x86_breakpoint_at)
2298 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2299 * mem-break.cc (bp_size)
2300 (bp_opcode)
2301 (insert_memory_breakpoint)
2302 (set_raw_breakpoint_at)
2303 (delete_raw_breakpoint)
2304 (z_type_supported)
2305 (uninsert_raw_breakpoint)
2306 (reinsert_raw_breakpoint)
2307 (validate_inserted_breakpoint)
2308 * regcache.cc (regcache_read_pc)
2309 (regcache_write_pc)
2310 * remote-utils.cc (putpkt_binary_1)
2311 (input_interrupt)
2312 (getpkt)
2313 (prepare_resume_reply)
2314 * server.cc (handle_general_set)
2315 (handle_detach)
2316 (handle_qxfer_auxv)
2317 (handle_qxfer_exec_file)
2318 (handle_qxfer_libraries_svr4)
2319 (handle_qxfer_osdata)
2320 (handle_qxfer_siginfo)
2321 (handle_qxfer_fdpic)
2322 (handle_query)
2323 (resume)
2324 (handle_v_requests)
2325 (queue_stop_reply_callback)
2326 (captured_main)
2327 * target.cc (prepare_to_access_memory)
2328 (done_accessing_memory)
2329 (read_inferior_memory)
2330 (target_write_memory)
2331 (target_stop_and_wait)
2332 (target_wait)
2333 (target_mourn_inferior)
2334 (target_continue_no_signal)
2335 (target_continue)
2336 (target_supports_multi_process)
2337 (kill_inferior)
2338 * target.h
2339 (target_create_inferior)
2340 (target_post_create_inferior)
2341 (myattach)
2342 (target_supports_fork_events)
2343 (target_supports_vfork_events)
2344 (target_supports_exec_events)
2345 (target_handle_new_gdb_connection)
2346 (detach_inferior)
2347 (mythread_alive)
2348 (fetch_inferior_registers)
2349 (store_inferior_registers)
2350 (join_inferior)
2351 (target_supports_non_stop)
2352 (target_async)
2353 (target_process_qsupported)
2354 (target_supports_catch_syscall)
2355 (target_get_ipa_tdesc_idx)
2356 (target_supports_tracepoints)
2357 (target_supports_fast_tracepoints)
2358 (target_get_min_fast_tracepoint_insn_len)
2359 (target_thread_stopped)
2360 (target_pause_all)
2361 (target_unpause_all)
2362 (target_stabilize_threads)
2363 (target_install_fast_tracepoint_jump_pad)
2364 (target_emit_ops)
2365 (target_supports_disable_randomization)
2366 (target_supports_agent)
2367 (target_enable_btrace)
2368 (target_disable_btrace)
2369 (target_read_btrace)
2370 (target_read_btrace_conf)
2371 (target_supports_range_stepping)
2372 (target_supports_stopped_by_sw_breakpoint)
2373 (target_stopped_by_sw_breakpoint)
2374 (target_supports_stopped_by_hw_breakpoint)
2375 (target_supports_hardware_single_step)
2376 (target_stopped_by_hw_breakpoint)
2377 (target_breakpoint_kind_from_pc)
2378 (target_breakpoint_kind_from_current_state)
2379 (target_supports_software_single_step)
2380 (target_core_of_thread)
2381 (target_thread_name)
2382 (target_thread_handle)
2383 * win32-low.cc (do_initial_child_stuff)
2384
2385 Rename target op default definitions listed below.
2386
2387 * target.cc (process_target::post_create_inferior): Rename as ...
2388 (process_stratum_target::post_create_inferior): ... this.
2389 (process_target::prepare_to_access_memory): Rename as ...
2390 (process_stratum_target::prepare_to_access_memory): ... this.
2391 (process_target::done_accessing_memory): Rename as ...
2392 (process_stratum_target::done_accessing_memory): ... this.
2393 (process_target::look_up_symbols): Rename as ...
2394 (process_stratum_target::look_up_symbols): ... this.
2395 (process_target::supports_read_auxv): Rename as ...
2396 (process_stratum_target::supports_read_auxv): ... this.
2397 (process_target::read_auxv): Rename as ...
2398 (process_stratum_target::read_auxv): ... this.
2399 (process_target::supports_z_point_type): Rename as ...
2400 (process_stratum_target::supports_z_point_type): ... this.
2401 (process_target::insert_point): Rename as ...
2402 (process_stratum_target::insert_point): ... this.
2403 (process_target::remove_point): Rename as ...
2404 (process_stratum_target::remove_point): ... this.
2405 (process_target::stopped_by_sw_breakpoint): Rename as ...
2406 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2407 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2408 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2409 (process_target::stopped_by_hw_breakpoint): Rename as ...
2410 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2411 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2412 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2413 (process_target::supports_hardware_single_step): Rename as ...
2414 (process_stratum_target::supports_hardware_single_step): ... this.
2415 (process_target::stopped_by_watchpoint): Rename as ...
2416 (process_stratum_target::stopped_by_watchpoint): ... this.
2417 (process_target::stopped_data_address): Rename as ...
2418 (process_stratum_target::stopped_data_address): ... this.
2419 (process_target::supports_read_offsets): Rename as ...
2420 (process_stratum_target::supports_read_offsets): ... this.
2421 (process_target::read_offsets): Rename as ...
2422 (process_stratum_target::read_offsets): ... this.
2423 (process_target::supports_get_tls_address): Rename as ...
2424 (process_stratum_target::supports_get_tls_address): ... this.
2425 (process_target::get_tls_address): Rename as ...
2426 (process_stratum_target::get_tls_address): ... this.
2427 (process_target::hostio_last_error): Rename as ...
2428 (process_stratum_target::hostio_last_error): ... this.
2429 (process_target::supports_qxfer_osdata): Rename as ...
2430 (process_stratum_target::supports_qxfer_osdata): ... this.
2431 (process_target::qxfer_osdata): Rename as ...
2432 (process_stratum_target::qxfer_osdata): ... this.
2433 (process_target::supports_qxfer_siginfo): Rename as ...
2434 (process_stratum_target::supports_qxfer_siginfo): ... this.
2435 (process_target::qxfer_siginfo): Rename as ...
2436 (process_stratum_target::qxfer_siginfo): ... this.
2437 (process_target::supports_non_stop): Rename as ...
2438 (process_stratum_target::supports_non_stop): ... this.
2439 (process_target::async): Rename as ...
2440 (process_stratum_target::async): ... this.
2441 (process_target::start_non_stop): Rename as ...
2442 (process_stratum_target::start_non_stop): ... this.
2443 (process_target::supports_multi_process): Rename as ...
2444 (process_stratum_target::supports_multi_process): ... this.
2445 (process_target::supports_fork_events): Rename as ...
2446 (process_stratum_target::supports_fork_events): ... this.
2447 (process_target::supports_vfork_events): Rename as ...
2448 (process_stratum_target::supports_vfork_events): ... this.
2449 (process_target::supports_exec_events): Rename as ...
2450 (process_stratum_target::supports_exec_events): ... this.
2451 (process_target::handle_new_gdb_connection): Rename as ...
2452 (process_stratum_target::handle_new_gdb_connection): ... this.
2453 (process_target::handle_monitor_command): Rename as ...
2454 (process_stratum_target::handle_monitor_command): ... this.
2455 (process_target::core_of_thread): Rename as ...
2456 (process_stratum_target::core_of_thread): ... this.
2457 (process_target::supports_read_loadmap): Rename as ...
2458 (process_stratum_target::supports_read_loadmap): ... this.
2459 (process_target::read_loadmap): Rename as ...
2460 (process_stratum_target::read_loadmap): ... this.
2461 (process_target::process_qsupported): Rename as ...
2462 (process_stratum_target::process_qsupported): ... this.
2463 (process_target::supports_tracepoints): Rename as ...
2464 (process_stratum_target::supports_tracepoints): ... this.
2465 (process_target::read_pc): Rename as ...
2466 (process_stratum_target::read_pc): ... this.
2467 (process_target::write_pc): Rename as ...
2468 (process_stratum_target::write_pc): ... this.
2469 (process_target::supports_thread_stopped): Rename as ...
2470 (process_stratum_target::supports_thread_stopped): ... this.
2471 (process_target::thread_stopped): Rename as ...
2472 (process_stratum_target::thread_stopped): ... this.
2473 (process_target::supports_get_tib_address): Rename as ...
2474 (process_stratum_target::supports_get_tib_address): ... this.
2475 (process_target::get_tib_address): Rename as ...
2476 (process_stratum_target::get_tib_address): ... this.
2477 (process_target::pause_all): Rename as ...
2478 (process_stratum_target::pause_all): ... this.
2479 (process_target::unpause_all): Rename as ...
2480 (process_stratum_target::unpause_all): ... this.
2481 (process_target::stabilize_threads): Rename as ...
2482 (process_stratum_target::stabilize_threads): ... this.
2483 (process_target::supports_fast_tracepoints): Rename as ...
2484 (process_stratum_target::supports_fast_tracepoints): ... this.
2485 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2486 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2487 (process_target::emit_ops): Rename as ...
2488 (process_stratum_target::emit_ops): ... this.
2489 (process_target::supports_disable_randomization): Rename as ...
2490 (process_stratum_target::supports_disable_randomization): ... this.
2491 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2492 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2493 (process_target::qxfer_libraries_svr4): Rename as ...
2494 (process_stratum_target::qxfer_libraries_svr4): ... this.
2495 (process_target::supports_agent): Rename as ...
2496 (process_stratum_target::supports_agent): ... this.
2497 (process_target::enable_btrace): Rename as ...
2498 (process_stratum_target::enable_btrace): ... this.
2499 (process_target::disable_btrace): Rename as ...
2500 (process_stratum_target::disable_btrace): ... this.
2501 (process_target::read_btrace): Rename as ...
2502 (process_stratum_target::read_btrace): ... this.
2503 (process_target::read_btrace_conf): Rename as ...
2504 (process_stratum_target::read_btrace_conf): ... this.
2505 (process_target::supports_range_stepping): Rename as ...
2506 (process_stratum_target::supports_range_stepping): ... this.
2507 (process_target::supports_pid_to_exec_file): Rename as ...
2508 (process_stratum_target::supports_pid_to_exec_file): ... this.
2509 (process_target::pid_to_exec_file): Rename as ...
2510 (process_stratum_target::pid_to_exec_file): ... this.
2511 (process_target::supports_multifs): Rename as ...
2512 (process_stratum_target::supports_multifs): ... this.
2513 (process_target::multifs_open): Rename as ...
2514 (process_stratum_target::multifs_open): ... this.
2515 (process_target::multifs_unlink): Rename as ...
2516 (process_stratum_target::multifs_unlink): ... this.
2517 (process_target::multifs_readlink): Rename as ...
2518 (process_stratum_target::multifs_readlink): ... this.
2519 (process_target::breakpoint_kind_from_pc): Rename as ...
2520 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2521 (process_target::breakpoint_kind_from_current_state): Rename as ...
2522 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2523 (process_target::thread_name): Rename as ...
2524 (process_stratum_target::thread_name): ... this.
2525 (process_target::thread_handle): Rename as ...
2526 (process_stratum_target::thread_handle): ... this.
2527 (process_target::supports_software_single_step): Rename as ...
2528 (process_stratum_target::supports_software_single_step): ... this.
2529 (process_target::supports_catch_syscall): Rename as ...
2530 (process_stratum_target::supports_catch_syscall): ... this.
2531 (process_target::get_ipa_tdesc_idx): Rename as ...
2532 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2533
478f9adf
PA
25342020-02-20 Pedro Alves <palves@redhat.com>
2535
2536 * target.cc (set_target_ops): Simply copy the given target pointer
2537 instead of creating a copy of the pointed object.
2538
d633e831
TBA
25392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2540
2541 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2542 of process_target.
2543
2544 * target.h (struct process_stratum_target): Remove the target op.
2545 (class process_target): Add the target op.
2546 (target_get_ipa_tdesc_idx): Update the macro.
2547 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2548
2549 Update the derived classes and callers below.
2550
2551 * linux-low.cc (linux_target_ops): Update.
2552 (linux_get_ipa_tdesc_idx): Turn into ...
2553 (linux_process_target::get_ipa_tdesc_idx): ... this.
2554 * linux-low.h (class linux_process_target): Update.
2555 * lynx-low.cc (lynx_target_ops): Update.
2556 * nto-low.cc (nto_target_ops): Update.
2557 * win32-low.cc (win32_target_ops): Update.
2558
bc8d3ae4
TBA
25592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2560
2561 Turn process_stratum_target's supports_catch_syscall op into a
2562 method of process_target.
2563
2564 * target.h (struct process_stratum_target): Remove the target op.
2565 (class process_target): Add the target op.
2566 (target_supports_catch_syscall): Update the macro.
2567 * target.cc (process_target::supports_catch_syscall): Define.
2568
2569 Update the derived classes and callers below.
2570
2571 * linux-low.cc (linux_target_ops): Update.
2572 (linux_supports_catch_syscall): Turn into ...
2573 (linux_process_target::supports_catch_syscall): ... this.
2574 * linux-low.h (class linux_process_target): Update.
2575 * lynx-low.cc (lynx_target_ops): Update.
2576 * nto-low.cc (nto_target_ops): Update.
2577 * win32-low.cc (win32_target_ops): Update.
2578
5303a34f
TBA
25792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2580
2581 Turn process_stratum_target's supports_software_single_step op
2582 into a method of process_target.
2583
2584 * target.h (struct process_stratum_target): Remove the target op.
2585 (class process_target): Add the target op.
2586 (target_supports_software_single_step): Update the macro.
2587 * target.cc (process_target::supports_software_single_step): Define.
2588
2589 Update the derived classes and callers below.
2590
2591 * linux-low.cc (linux_target_ops): Update.
2592 (linux_supports_software_single_step): Turn into ...
2593 (linux_process_target::supports_software_single_step): ... this.
2594 * linux-low.h (class linux_process_target): Update.
2595 * lynx-low.cc (lynx_target_ops): Update.
2596 * nto-low.cc (nto_target_ops): Update.
2597 * win32-low.cc (win32_target_ops): Update.
2598
7f63b89b
TBA
25992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2600
2601 Turn process_stratum_target's thread_name and thread_handle ops
2602 into methods of process_target.
2603
2604 * target.h (struct process_stratum_target): Remove the target ops.
2605 (class process_target): Add the target ops.
2606 (target_thread_name): Update the macro.
2607 (target_thread_handle): Update the macro.
2608 * target.cc (process_target::thread_name): Define.
2609 (process_target::thread_handle): Define.
2610
2611 Update the derived classes and callers below.
2612
2613 * linux-low.cc (linux_target_ops): Update.
2614 (linux_process_target::thread_name): Define.
2615 (linux_process_target::thread_handle): Define.
2616 * linux-low.h (class linux_process_target): Update.
2617 * lynx-low.cc (lynx_target_ops): Update.
2618 * nto-low.cc (nto_target_ops): Update.
2619 * win32-low.cc (win32_target_ops): Update.
2620
d367006f
TBA
26212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2622
2623 Turn process_stratum_target's breakpoint_kind_from_pc,
2624 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2625 ops into methods of process_target.
2626
2627 * target.h (struct process_stratum_target): Remove the target op.
2628 (class process_target): Add the target op.
2629 (target_breakpoint_kind_from_pc): Update the macro.
2630 (target_breakpoint_kind_from_current_state): Update the macro.
2631 (default_breakpoint_kind_from_pc): Remove declaration.
2632 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2633 (process_target::breakpoint_kind_from_pc): ... this.
2634 (process_target::breakpoint_kind_from_current_state): Define.
2635
2636 Update the derived classes and callers below.
2637
2638 * mem-break.cc (bp_size): Update.
2639 (bp_opcode): Update.
2640 * linux-low.cc (linux_target_ops): Update.
2641 (linux_wait_1): Update.
2642 (linux_breakpoint_kind_from_pc): Turn into ...
2643 (linux_process_target::breakpoint_kind_from_pc): ... this.
2644 (linux_sw_breakpoint_from_kind): Turn into ...
2645 (linux_process_target::sw_breakpoint_from_kind): ... this.
2646 (linux_breakpoint_kind_from_current_state): Turn into ...
2647 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2648 * linux-low.h (class linux_process_target): Update.
2649 * lynx-low.cc (lynx_target_ops): Update.
2650 (lynx_process_target::sw_breakpoint_from_kind): Define.
2651 * lynx-low.h (class lynx_process_target): Update.
2652 * nto-low.cc (nto_target_ops): Update.
2653 (nto_sw_breakpoint_from_kind): Turn into ...
2654 (nto_process_target::sw_breakpoint_from_kind): ... this.
2655 * nto-low.h (class nto_process_target): Update.
2656 * win32-low.cc (win32_target_ops): Update.
2657 (win32_sw_breakpoint_from_kind): Turn into ...
2658 (win32_process_target::sw_breakpoint_from_kind): ... this.
2659 * win32-low.h (class win32_process_target): Update.
2660
c9b7b804
TBA
26612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2662
2663 Turn process_stratum_target's multifs_open, multifs_readlink,
2664 multifs_unlink ops into methods of process_target.
2665
2666 * target.h (struct process_stratum_target): Remove the target ops.
2667 (class process_target): Add the target ops. Also add
2668 'supports_multifs'.
2669 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2670 "sys/stat.h".
2671 (process_target::supports_multifs): Define.
2672 (process_target::multifs_open): Define.
2673 (process_target::multifs_readlink): Define.
2674 (process_target::multifs_unlink): Define.
2675
2676 Update the derived classes and callers below.
2677
2678 * hostio.cc (handle_setfs): Update.
2679 (handle_open): Update.
2680 (handle_unlink): Update.
2681 (handle_readlink): Update.
2682 * linux-low.cc (linux_target_ops): Update.
2683 (linux_process_target::supports_multifs): Define.
2684 (linux_process_target::multifs_open): Define.
2685 (linux_process_target::multifs_readlink): Define.
2686 (linux_process_target::multifs_unlink): Define.
2687 * linux-low.h (class linux_process_target): Update.
2688 * lynx-low.cc (lynx_target_ops): Update.
2689 * nto-low.cc (nto_target_ops): Update.
2690 * win32-low.cc (win32_target_ops): Update.
2691
8247b823
TBA
26922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2693
2694 Turn process_stratum_target's pid_to_exec_file op into a method
2695 of process_target.
2696
2697 * target.h (struct process_stratum_target): Remove the target op.
2698 (class process_target): Add the target op. Also add
2699 'supports_pid_to_exec_file'.
2700 * target.cc (process_target::pid_to_exec_file): Define.
2701 (process_target::supports_pid_to_exec_file): Define.
2702
2703 Update the derived classes and callers below.
2704
2705 * server.cc (handle_qxfer_exec_file): Update.
2706 (handle_query): Update.
2707 * linux-low.cc (linux_target_ops): Update.
2708 (linux_process_target::supports_pid_to_exec_file): Define.
2709 (linux_process_target::pid_to_exec_file): Define.
2710 * linux-low.h (class linux_process_target): Update.
2711 * lynx-low.cc (lynx_target_ops): Update.
2712 * nto-low.cc (nto_target_ops): Update.
2713 * win32-low.cc (win32_target_ops): Update.
2714
2526e0cd
TBA
27152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716
2717 Turn process_stratum_target's supports_range_stepping op into a
2718 method of process_target.
2719
2720 * target.h (struct process_stratum_target): Remove the target op.
2721 (class process_target): Add the target op.
2722 (target_supports_range_stepping): Update the macro.
2723 * target.cc (process_target::supports_range_stepping): Define.
2724
2725 Update the derived classes and callers below.
2726
2727 * linux-low.cc (linux_target_ops): Update.
2728 (linux_supports_range_stepping): Turn into ...
2729 (linux_process_target::supports_range_stepping): ... this.
2730 * linux-low.h (class linux_process_target): Update.
2731 * lynx-low.cc (lynx_target_ops): Update.
2732 * nto-low.cc (nto_target_ops): Update.
2733 * win32-low.cc (win32_target_ops): Update.
2734
79597bdd
TBA
27352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2736
2737 Turn process_stratum_target's btrace-related ops (enable_btrace,
2738 disable_btrace, read_btrace, read_btrace_conf) into methods of
2739 process_target.
2740
2741 * target.h (struct process_stratum_target): Remove the target ops.
2742 (class process_target): Add the target ops.
2743 (target_enable_btrace): Update.
2744 (target_disable_btrace): Update.
2745 (target_read_btrace): Update.
2746 (target_read_btrace_conf): Update.
2747 * target.cc (process_target::enable_btrace): Define.
2748 (process_target::disable_btrace): Define.
2749 (process_target::read_btrace): Define.
2750 (process_target::read_btrace_conf): Define.
2751
2752 Update the derived classes and callers below.
2753
2754 * linux-low.cc (linux_target_ops): Update.
2755 (linux_process_target:enable_btrace): Define as a wrapper around
2756 linux_enable_btrace.
2757 (linux_low_disable_btrace): Turn into ...
2758 (linux_process_target::disable_btrace): ... this.
2759 (linux_low_read_btrace): Turn into ...
2760 (linux_process_target::read_btrace): ... this.
2761 (linux_low_btrace_conf): Turn into ...
2762 (linux_process_target::read_btrace_conf): ... this.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2767
c0245cb9
TBA
27682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2769
2770 Turn process_stratum_target's supports_agent op into a method of
2771 process_target.
2772
2773 * target.h (struct process_stratum_target): Remove the target op.
2774 (class process_target): Add the target op.
2775 (target_supports_agent): Update the macro.
2776 * target.cc (process_target::supports_agent): Define.
2777
2778 Update the derived classes and callers below.
2779
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_supports_agent): Turn into ...
2782 (linux_process_target::supports_agent): ... this.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2787
974387bb
TBA
27882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789
2790 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2791 method of process_target.
2792
2793 * target.h (struct process_stratum_target): Remove the target op.
2794 (class process_target): Add the target op. Also add
2795 'supports_qxfer_libraries_svr4'.
2796 * target.cc (process_target::qxfer_libraries_svr4): Define.
2797 (process_target::supports_qxfer_libraries_svr4): Define.
2798
2799 Update the derived classes and callers below.
2800
2801 * server.cc (handle_qxfer_libraries_svr4): Update.
2802 (handle_query): Update.
2803 * linux-low.cc (linux_target_ops): Update.
2804 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2805 (linux_qxfer_libraries_svr4): Turn into ...
2806 (linux_process_target::qxfer_libraries_svr4): ... this.
2807 * linux-low.h (class linux_process_target): Update.
2808 * lynx-low.cc (lynx_target_ops): Update.
2809 * nto-low.cc (nto_target_ops): Update.
2810 * win32-low.cc (win32_target_ops): Update.
2811
c756403b
TBA
28122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2813
2814 Turn process_stratum_target's supports_disable_randomization op
2815 into a method of process_target.
2816
2817 * target.h (struct process_stratum_target): Remove the target op.
2818 (class process_target): Add the target op.
2819 (target_supports_disable_randomization): Update the macro.
2820 * target.cc (process_target::supports_disable_randomization): Define.
2821
2822 Update the derived classes and callers below.
2823
2824 * linux-low.cc (linux_target_ops): Update.
2825 (linux_supports_disable_randomization): Turn into ...
2826 (linux_process_target::supports_disable_randomization): ... this.
2827 * linux-low.h (class linux_process_target): Update.
2828 * lynx-low.cc (lynx_target_ops): Update.
2829 * nto-low.cc (nto_target_ops): Update.
2830 * win32-low.cc (win32_target_ops): Update.
2831
345dafad
TBA
28322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833
2834 Turn process_stratum_target's emit_ops op into a method of
2835 process_target.
2836
2837 * target.h (struct process_stratum_target): Remove the target op.
2838 (class process_target): Add the target op.
2839 (target_emit_ops): Update the macro.
2840 * target.cc (process_target::emit_ops): Define.
2841
2842 Update the derived classes and callers below.
2843
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_emit_ops): Turn into ...
2846 (linux_process_target::emit_ops): ... this.
2847 * linux-low.h (class linux_process_target): Update.
2848 * lynx-low.cc (lynx_target_ops): Update.
2849 * nto-low.cc (nto_target_ops): Update.
2850 * win32-low.cc (win32_target_ops): Update.
2851
c23c9391
TBA
28522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853
2854 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2855 and get_min_fast_tracepoint_insn_len ops into methods of
2856 process_target.
2857
2858 * target.h (struct process_stratum_target): Remove the target ops.
2859 (class process_target): Add the target ops. Also add
2860 'supports_fast_tracepoints'.
2861 (target_supports_fast_tracepoints): Update the macro.
2862 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2863 (install_fast_tracepoint_jump_pad): Update and rename the macro
2864 to ...
2865 (target_install_fast_tracepoint_jump_pad): ... this.
2866 * target.cc (process_target::supports_fast_tracepoints): Define.
2867 (process_target::install_fast_tracepoint_jump_pad): Define.
2868 (process_target::get_min_fast_tracepoint_insn_len): Define.
2869
2870 Update the derived classes and callers below.
2871
2872 * tracepoint.cc (install_fast_tracepoint): Update.
2873 * linux-low.cc (linux_target_ops): Update.
2874 (linux_process_target::supports_fast_tracepoints): Define.
2875 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2876 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2877 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2878 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2879 * linux-low.h (class linux_process_target): Update.
2880 * lynx-low.cc (lynx_target_ops): Update.
2881 * nto-low.cc (nto_target_ops): Update.
2882 * win32-low.cc (win32_target_ops): Update.
2883
5c9eb2f2
TBA
28842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2885
2886 Turn process_stratum_target's stabilize_threads op into a
2887 method of process_target.
2888
2889 * target.h (struct process_stratum_target): Remove the target op.
2890 (class process_target): Add the target op.
2891 (target_stabilize_threads): Update the macro.
2892 * target.cc (process_target::stabilize_threads): Define.
2893
2894 Update the derived classes and callers below.
2895
2896 * server.cc (handle_status): Update.
2897 * tracepoint.cc (cmd_qtdp): Update.
2898 (cmd_qtstart): Update.
2899 * linux-low.cc (linux_target_ops): Update.
2900 (linux_stabilize_threads): Turn into ...
2901 (linux_process_target::stabilize_threads): ... this.
2902 (linux_wait_1): 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
29e8dc09
TBA
29082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2909
2910 Turn process_stratum_target's pause_all and unpause_all ops
2911 into methods of process_target.
2912
2913 * target.h (struct process_stratum_target): Remove the target ops.
2914 (class process_target): Add the target ops.
2915 (pause_all): Update the macro and rename to...
2916 (target_pause_all): ... this.
2917 (unpause_all): Update the macro and rename to...
2918 (target_unpause_all): ... this.
2919 * target.cc (process_target::pause_all): Define.
2920 (process_target::unpause_all): Define.
2921
2922 Update the derived classes and callers below.
2923
2924 * server.cc (handle_status): Update.
2925 * tracepoint.cc (clear_installed_tracepoints): Update.
2926 (cmd_qtdp): Update.
2927 (cmd_qtstart): Update.
2928 (stop_tracing): Update.
2929 (cmd_qtstatus): Update.
2930 (upload_fast_traceframes): Update.
2931 (run_inferior_command): Update.
2932 * linux-low.cc (linux_target_ops): Update.
2933 (linux_pause_all): Turn into ...
2934 (linux_process_target::pause_all): ... this.
2935 (linux_unpause_all): Turn into ...
2936 (linux_process_target::unpause_all): ... this.
2937 (linux_process_target::prepare_to_access_memory): Update.
2938 (linux_process_target::done_accessing_memory): Update.
2939 * linux-low.h (class linux_process_target): Update.
2940 * lynx-low.cc (lynx_target_ops): Update.
2941 * nto-low.cc (nto_target_ops): Update.
2942 * win32-low.cc (win32_target_ops): Update.
2943
4e2e869c
TBA
29442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945
2946 Turn process_stratum_target's get_tib_address op into a method of
2947 process_target.
2948
2949 * target.h (struct process_stratum_target): Remove the target op.
2950 (class process_target): Add the target op. Also add
2951 'supports_get_tib_address'.
2952 * target.cc (process_target::get_tib_address): Define.
2953 (process_target::supports_get_tib_address): Define.
2954
2955 Update the derived classes and callers below.
2956
2957 * server.cc (handle_query): Update.
2958 * linux-low.cc (win32_target_ops): Update.
2959 * lynx-low.cc (lynx_target_ops): Update.
2960 * nto-low.cc (nto_target_ops): Update.
2961 * win32-low.cc (win32_target_ops): Update.
2962 (win32_process_target::supports_get_tib_address): Define.
2963 (win32_get_tib_address): Turn into ...
2964 (win32_process_target::get_tib_address): ... this.
2965 * win32-low.h (class win32_process_target): Update.
2966
68119632
TBA
29672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2968
2969 Turn process_stratum_target's thread_stopped op into a method of
2970 process_target.
2971
2972 * target.h (struct process_stratum_target): Remove the target op.
2973 (class process_target): Add the target op. Also add
2974 'supports_thread_stopped'.
2975 (target_thread_stopped): Update the macro.
2976 * target.cc (process_target::thread_stopped): Define.
2977 (process_target::supports_thread_stopped): Define.
2978 (prepare_to_access_memory): Update.
2979
2980 Update the derived classes and callers below.
2981
2982 * server.cc (queue_stop_reply_callback): Update.
2983 * linux-low.cc (linux_target_ops): Update.
2984 (linux_process_target::supports_thread_stopped): Define.
2985 (linux_thread_stopped): Turn into ...
2986 (linux_process_target::thread_stopped): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 * win32-low.cc (win32_target_ops): Update.
2991
770d8f6a
TBA
29922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2993
2994 Turn process_stratum_target's read_pc and write_pc ops into
2995 methods of process_target.
2996
2997 * target.h (struct process_stratum_target): Remove the target ops.
2998 (class process_target): Add the target ops.
2999 * target.cc (process_target::read_pc): Define.
3000 (process_target::write_pc): Define.
3001
3002 Update the derived classes and callers below.
3003
3004 * regcache.cc (regcache_read_pc): Update.
3005 (regcache_write_pc): Update.
3006 * linux-low.cc (linux_target_ops): Update.
3007 (linux_read_pc): Turn into ...
3008 (linux_process_target::read_pc): ... this.
3009 (linux_write_pc): Turn into ...
3010 (linux_process_target::write_pc): ... this.
3011 * linux-low.h (class linux_process_target): Update.
3012 * lynx-low.cc (lynx_target_ops): Update.
3013 * nto-low.cc (nto_target_ops): Update.
3014 * win32-low.cc (win32_target_ops): Update.
3015
290732bf
TBA
30162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3017
3018 Turn process_stratum_target's supports_tracepoints op into a
3019 method of process_target.
3020
3021 * target.h (struct process_stratum_target): Remove the target op.
3022 (class process_target): Add the target op.
3023 (target_supports_tracepoints): Update the macro.
3024 * target.cc (process_target::supports_tracepoints): Define.
3025
3026 Update the derived classes and callers below.
3027
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_supports_tracepoints): Turn into ...
3030 (linux_process_target::supports_tracepoints): ... this.
3031 * linux-low.h (class linux_process_target): Update.
3032 * lynx-low.cc (lynx_target_ops): Update.
3033 * nto-low.cc (nto_target_ops): Update.
3034 * win32-low.cc (win32_target_ops): Update.
3035
0df28b1b
TBA
30362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3037
3038 Turn process_stratum_target's process_qsupported op into a method
3039 of process_target.
3040
3041 * target.h (struct process_stratum_target): Remove the target op.
3042 (class process_target): Add the target op.
3043 (target_process_qsupported): Update the macro.
3044 * target.cc (process_target::process_qsupported): Define.
3045
3046 Update the derived classes and callers below.
3047
3048 * linux-low.cc (linux_target_ops): Update.
3049 (linux_process_qsupported): Turn into ...
3050 (linux_process_target::process_qsupported): ... this.
3051 * linux-low.h (class linux_process_target): Update.
3052 * lynx-low.cc (lynx_target_ops): Update.
3053 * nto-low.cc (nto_target_ops): Update.
3054 * win32-low.cc (win32_target_ops): Update.
3055
9da41fda
TBA
30562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057
3058 Turn process_stratum_target's read_loadmap op into a method of
3059 process_target.
3060
3061 * target.h (struct process_stratum_target): Remove the target op.
3062 (class process_target): Add the target op. Also add
3063 'supports_read_loadmap'.
3064 * target.cc (process_target::read_loadmap): Define.
3065 (process_target::supports_read_loadmap): Define.
3066
3067 Update the derived classes and callers below.
3068
3069 * server.cc (handle_qxfer_fdpic): Update.
3070 (handle_query): Update.
3071 * linux-low.cc (linux_target_ops): Update.
3072 (linux_process_target::supports_read_loadmap): Define.
3073 (linux_read_loadmap): Turn into ...
3074 (linux_process_target::read_loadmap): ... this.
3075 * linux-low.h (class linux_process_target): Update.
3076 * lynx-low.cc (lynx_target_ops): Update.
3077 * nto-low.cc (nto_target_ops): Update.
3078 * win32-low.cc (win32_target_ops): Update.
3079
95a45fc1
TBA
30802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3081
3082 Turn process_stratum_target's core_of_thread op into a method of
3083 process_target.
3084
3085 * target.h (struct process_stratum_target): Remove the target op.
3086 (class process_target): Add the target op.
3087 (target_core_of_thread): Update the macro.
3088 * target.cc (process_target::core_of_thread): Define.
3089
3090 Update the derived classes and callers below.
3091
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_process_target::core_of_thread): Define.
3094 * linux-low.h (class linux_process_target): Update.
3095 * lynx-low.cc (lynx_target_ops): Update.
3096 * nto-low.cc (nto_target_ops): Update.
3097 * win32-low.cc (win32_target_ops): Update.
3098
55cf3021
TBA
30992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3100
3101 Turn process_stratum_target's handle_monitor_command op into a
3102 method of process_target.
3103
3104 * target.h (struct process_stratum_target): Remove the target op.
3105 (class process_target): Add the target op.
3106 (target_handle_monitor_command): Update the macro.
3107 * target.cc (process_target::handle_monitor_command): Define.
3108
3109 Update the derived classes and callers below.
3110
3111 * server.cc (handle_query): Update.
3112 * linux-low.cc (linux_target_ops): Update.
3113 (linux_process_target::handle_monitor_command): Define.
3114 * linux-low.h (class linux_process_target): Update.
3115 * lynx-low.cc (lynx_target_ops): Update.
3116 * nto-low.cc (nto_target_ops): Update.
3117 * win32-low.cc (win32_target_ops): Update.
3118
fb00dfce
TBA
31192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3120
3121 Turn process_stratum_target's handle_new_gdb_connection op into a
3122 method of process_target.
3123
3124 * target.h (struct process_stratum_target): Remove the target op.
3125 (class process_target): Add the target op.
3126 (target_handle_new_gdb_connection): Update the macro.
3127 * target.cc (process_target::handle_new_gdb_connection): Define.
3128
3129 Update the derived classes and callers below.
3130
3131 * linux-low.cc (linux_target_ops): Update.
3132 (linux_handle_new_gdb_connection): Turn into ...
3133 (linux_process_target::handle_new_gdb_connection): ... this.
3134 * linux-low.h (class linux_process_target): Update.
3135 * lynx-low.cc (lynx_target_ops): Update.
3136 * nto-low.cc (nto_target_ops): Update.
3137 * win32-low.cc (win32_target_ops): Update.
3138
9690a72a
TBA
31392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140
3141 Turn process_stratum_target's supports_fork_events,
3142 supports_vfork_events, and supports_exec_events ops into methods
3143 of process_target.
3144
3145 * target.h (struct process_stratum_target): Remove the target ops.
3146 (class process_target): Add the target ops.
3147 (target_supports_fork_events): Update the macro.
3148 (target_supports_vfork_events): Update the macro.
3149 (target_supports_exec_events): Update the macro.
3150 * target.cc (process_target::supports_fork_events): Define.
3151 (process_target::supports_vfork_events): Define.
3152 (process_target::supports_exec_events): Define.
3153
3154 Update the derived classes and callers below.
3155
3156 * linux-low.cc (linux_target_ops): Update.
3157 (linux_supports_fork_events): Turn into ...
3158 (linux_process_target::supports_fork_events): ... this.
3159 (linux_supports_vfork_events): Turn into ...
3160 (linux_process_target::supports_vfork_events): ... this.
3161 (linux_supports_exec_events): Turn into ...
3162 (linux_process_target::supports_exec_events): ... this.
3163 * linux-low.h (class linux_process_target): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.cc (win32_target_ops): Update.
3167
652aef77
TBA
31682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169
3170 Turn process_stratum_target's supports_multi_process op into a
3171 method of process_target.
3172
3173 * target.h (struct process_stratum_target): Remove the target op.
3174 (class process_target): Add the target op.
3175 * target.cc (process_target::supports_multi_process): Define.
3176 (target_supports_multi_process): Update.
3177
3178 Update the derived classes and callers below.
3179
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_supports_multi_process): Turn into ...
3182 (linux_process_target::supports_multi_process): ... this.
3183 * linux-low.h (class linux_process_target): Update.
3184 * lynx-low.cc (lynx_target_ops): Update.
3185 * nto-low.cc (nto_target_ops): Update.
3186 * win32-low.cc (win32_target_ops): Update.
3187
0dc587d4
TBA
31882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3189
3190 Turn process_stratum_target's supports_non_stop, async, and
3191 start_non_stop ops into methods of process_target.
3192
3193 * target.h (struct process_stratum_target): Remove the target ops.
3194 (class process_target): Add the target ops.
3195 (target_supports_non_stop): Update the macro.
3196 (target_async): Update the macro.
3197 (start_non_stop): Remove declaration.
3198 * target.cc (process_target::supports_non_stop): Define.
3199 (process_target::async): Define.
3200 (process_target::start_non_stop): Define.
3201 (start_non_stop): Remove.
3202
3203 Update the derived classes and callers below.
3204
3205 * server.cc (handle_qxfer_siginfo): Update.
3206 (handle_query): Update.
3207 * linux-low.cc (linux_target_ops): Update.
3208 (linux_supports_non_stop): Turn into ...
3209 (linux_process_target::supports_non_stop): ... this.
3210 (linux_async): Turn into ...
3211 (linux_process_target::async): ... this.
3212 (linux_start_non_stop): Turn into ...
3213 (linux_process_target::start_non_stop): ... this.
3214 * linux-low.h (class linux_process_target): Update.
3215 * lynx-low.cc (lynx_target_ops): Update.
3216 * nto-low.cc (nto_target_ops): Update.
3217 (nto_supports_non_stop): Remove; rely on the default behavior
3218 instead.
3219 * win32-low.cc (win32_target_ops): Update.
3220
d7abedf7
TBA
32212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222
3223 Turn process_stratum_target's qxfer_siginfo op into a method of
3224 process_target.
3225
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op. Also add
3228 'supports_qxfer_siginfo'.
3229 * target.cc (process_target::qxfer_siginfo): Define.
3230 (process_target::supports_qxfer_siginfo): Define.
3231
3232 Update the derived classes and callers below.
3233
3234 * server.cc (handle_qxfer_siginfo): Update.
3235 (handle_query): Update.
3236 * linux-low.cc (linux_target_ops): Update.
3237 (linux_process_target::supports_qxfer_siginfo): Define.
3238 (linux_xfer_siginfo): Turn into ...
3239 (linux_process_target::qxfer_siginfo): ... this.
3240 * linux-low.h (class linux_process_target): Update.
3241 * lynx-low.cc (lynx_target_ops): Update.
3242 * nto-low.cc (nto_target_ops): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3244
2d0795ee
TBA
32452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3246
3247 Turn process_stratum_target's qxfer_osdata op into a method of
3248 process_target.
3249
3250 * target.h (struct process_stratum_target): Remove the target op.
3251 (class process_target): Add the target op. Also add
3252 'supports_qxfer_osdata'.
3253 * target.cc (process_target::qxfer_osdata): Define.
3254 (process_target::supports_qxfer_osdata): Define.
3255
3256 Update the derived classes and callers below.
3257
3258 * server.cc (handle_qxfer_osdata): Update.
3259 (handle_query): Update.
3260 * linux-low.cc (linux_target_ops): Update.
3261 (linux_process_target::supports_qxfer_osdata): Define.
3262 (linux_qxfer_osdata): Turn into ...
3263 (linux_process_target::qxfer_osdata): ... this.
3264 * linux-low.h (class linux_process_target): Update.
3265 * lynx-low.cc (lynx_target_ops): Update.
3266 * nto-low.cc (nto_target_ops): Update.
3267 * win32-low.cc (win32_target_ops): Update.
3268
ea06bbaa
TBA
32692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3270
3271 Turn process_stratum_target's hostio_last_error op into a
3272 method of process_target.
3273
3274 * target.h (struct process_stratum_target): Remove the target op.
3275 (class process_target): Add the target op.
3276 * target.cc: Add "hostio.h" to includes.
3277 (process_target::hostio_last_error): Define.
3278
3279 Update the derived classes and callers below.
3280
3281 * hostio.cc (hostio_error): Update.
3282 * linux-low.cc: Remove "hostio.h" from includes.
3283 (linux_target_ops): Update.
3284 * lynx-low.cc (lynx_target_ops): Update.
3285 * nto-low.cc (nto_target_ops): Update.
3286 * win32-low.h (class win32_process_target): Update.
3287 * win32-low.cc (win32_target_ops): Update.
3288 (wince_hostio_last_error): Turn into ...
3289 (win32_process_target::hostio_last_error): ... this.
3290
6e3fd7e9
TBA
32912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3292
3293 Turn process_stratum_target's get_tls_address op into a method of
3294 process_target.
3295
3296 * target.h (struct process_stratum_target): Remove the target op.
3297 (class process_target): Add the target op. Also add
3298 'supports_get_tls_address'.
3299 * target.cc (process_target::get_tls_address): Define.
3300 (process_target::supports_get_tls_address): Define.
3301
3302 Update the derived classes and callers below.
3303
3304 * server.cc (handle_query): Update.
3305 * linux-low.cc (linux_target_ops): Update.
3306 (linux_process_target::supports_get_tls_address): Define.
3307 (linux_process_target::get_tls_address): Define.
3308 * linux-low.h (class linux_process_target): Update.
3309 * lynx-low.cc (lynx_target_ops): Update.
3310 * nto-low.cc (nto_target_ops): Update.
3311 * win32-low.cc (win32_target_ops): Update.
3312
5203ae1e
TBA
33132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3314
3315 Turn process_stratum_target's read_offsets op into a method of
3316 process_target.
3317
3318 * target.h (struct process_stratum_target): Remove the target op.
3319 (class process_target): Add the target op. Also add
3320 'supports_read_offsets'.
3321 * target.cc (process_target::read_offsets): Define.
3322 (process_target::supports_read_offsets): Define.
3323
3324 Update the derived classes and callers below.
3325
3326 * server.cc (handle_query): Update.
3327 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3328 (linux_target_ops): Update.
3329 (linux_process_target::supports_read_offsets): Define.
3330 (linux_read_offsets): Turn into ...
3331 (linux_process_target::read_offsets): ... this.
3332 * linux-low.h (class linux_process_target): Update.
3333 * lynx-low.cc (lynx_target_ops): Update.
3334 * nto-low.cc (nto_target_ops): Update.
3335 * win32-low.cc (win32_target_ops): Update.
3336
6eeb5c55
TBA
33372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3338
3339 Turn process_stratum_target's stopped_by_watchpoint and
3340 stopped_data_address ops into methods of process_target.
3341
3342 * target.h (struct process_stratum_target): Remove the target ops.
3343 (class process_target): Add the target ops.
3344 * target.cc (process_target::stopped_by_watchpoint): Define.
3345 (process_target::stopped_data_address): Define.
3346
3347 Update the derived classes and callers below.
3348
3349 * remote-utils.cc (prepare_resume_reply): Update.
3350 * linux-low.cc (linux_target_ops): Update.
3351 (linux_stopped_by_watchpoint): Turn into ...
3352 (linux_process_target::stopped_by_watchpoint): ... this.
3353 (linux_stopped_data_address): Turn into ...
3354 (linux_process_target::stopped_data_address): ... this.
3355 * linux-low.h (class linux_process_target): Update.
3356 * lynx-low.cc (lynx_target_ops): Update.
3357 * nto-low.cc (nto_target_ops): Update.
3358 (nto_stopped_by_watchpoint): Turn into ...
3359 (nto_process_target::stopped_by_watchpoint): ... this.
3360 (nto_stopped_data_address): Turn into ...
3361 (nto_process_target::stopped_data_address): ... this.
3362 * nto-low.h (class nto_process_target): Update.
3363 * win32-low.cc (win32_target_ops): Update.
3364 (win32_stopped_by_watchpoint): Turn into ...
3365 (win32_process_target::stopped_by_watchpoint): ... this.
3366 (win32_stopped_data_address): Turn into ...
3367 (win32_process_target::stopped_data_address): ... this.
3368 * win32-low.h (class win32_process_target): Update.
3369
22aa6223
TBA
33702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371
3372 Turn process_stratum_target's supports_hardware_single_step op into
3373 a method of process_target.
3374
3375 * target.h (struct process_stratum_target): Remove the target op.
3376 (class process_target): Add the target op.
3377 (target_supports_hardware_single_step): Update the macro.
3378 (target_can_do_hardware_single_step): Remove declaration.
3379 * target.cc (process_target::supports_hardware_single_step): Define.
3380 (target_can_do_hardware_single_step): Remove.
3381
3382 Update the derived classes and callers below.
3383
3384 * linux-low.h (class linux_process_target): Update.
3385 * linux-low.cc (linux_target_ops): Update.
3386 (linux_supports_hardware_single_step): Turn into ...
3387 (linux_process_target::supports_hardware_single_step): ... this.
3388 * lynx-low.h (class lynx_process_target): Update.
3389 * lynx-low.cc (lynx_target_ops): Update.
3390 (lynx_process_target::supports_hardware_single_step): Define.
3391 * nto-low.h (class nto_process_target): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 (nto_process_target::supports_hardware_single_step): Define.
3394 * win32-low.h (class win32_process_target): Update.
3395 * win32-low.cc (win32_target_ops): Update.
3396 (win32_process_target::supports_hardware_single_step): Define.
3397
93fe88b2
TBA
33982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3399
3400 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3401 ops into methods of process_target.
3402
3403 * target.h (struct process_stratum_target): Remove the target ops.
3404 (class process_target): Add the target ops.
3405 (target_stopped_by_hw_breakpoint): Update the macro.
3406 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3407 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3408 (process_target::supports_stopped_by_hw_breakpoint): Define.
3409
3410 Update the derived classes and callers below.
3411
3412 * linux-low.cc (linux_target_ops): Update.
3413 (linux_stopped_by_hw_breakpoint): Turn into ...
3414 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3415 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3416 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3417 * linux-low.h (class linux_process_target): Update.
3418 * lynx-low.cc (lynx_target_ops): Update.
3419 * nto-low.cc (nto_target_ops): Update.
3420 * win32-low.cc (win32_target_ops): Update.
3421
84320c4e
TBA
34222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3423
3424 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3425 ops into methods of process_target.
3426
3427 * target.h (struct process_stratum_target): Remove the target ops.
3428 (class process_target): Add the target ops.
3429 (target_stopped_by_sw_breakpoint): Update the macro.
3430 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3431 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3432 (process_target::supports_stopped_by_sw_breakpoint): Define.
3433
3434 Update the derived classes and callers below.
3435
3436 * linux-low.cc (linux_target_ops): Update.
3437 (linux_stopped_by_sw_breakpoint): Turn into ...
3438 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3439 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3440 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3441 * linux-low.h (class linux_process_target): Update.
3442 * lynx-low.cc (lynx_target_ops): Update.
3443 * nto-low.cc (nto_target_ops): Update.
3444 * win32-low.cc (win32_target_ops): Update.
3445
7e0bde70
TBA
34462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3447
3448 Turn process_stratum_target's insert_point and remove_point ops
3449 into methods of process_target.
3450
3451 * target.h (struct process_stratum_target): Remove the target ops.
3452 (class process_target): Add the target ops.
3453 * target.cc (process_target::insert_point): Define.
3454 (process_target::remove_point): Define.
3455
3456 Update the derived classes and callers below.
3457
3458 * mem-break.cc (set_raw_breakpoint_at): Update.
3459 (delete_raw_breakpoint): Update.
3460 (uninsert_raw_breakpoint): Update.
3461 (reinsert_raw_breakpoint): Update.
3462 * linux-low.cc (linux_target_ops): Update.
3463 (linux_insert_point): Turn into ...
3464 (linux_process_target::insert_point): ... this.
3465 (linux_remove_point): Turn into ...
3466 (linux_process_target::remove_point): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 * nto-low.cc (nto_target_ops): Update.
3470 (nto_insert_point): Turn into ...
3471 (nto_process_target::insert_point): ... this.
3472 (nto_remove_point): Turn into ...
3473 (nto_process_target::remove_point): ... this.
3474 * nto-low.h (class nto_process_target): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3476 (win32_insert_point): Turn into ...
3477 (win32_process_target::insert_point): ... this.
3478 (win32_remove_point): Turn into ...
3479 (win32_process_target::remove_point): ... this.
3480 * win32-low.h (class win32_process_target): Update.
3481
a2b2297a
TBA
34822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3483
3484 Turn process_stratum_target's supports_z_point_type op into a
3485 method of process_target.
3486
3487 * target.h (struct process_stratum_target): Remove the target op.
3488 (class process_target): Add the target op.
3489 * target.cc (process_target::supports_z_point_type): Define.
3490
3491 Update the derived classes and callers below.
3492
3493 * mem-break.cc (z_type_supported): Update.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_supports_z_point_type): Turn into ...
3496 (linux_process_target::supports_z_point_type): ... this.
3497 * linux-low.h (class linux_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 * nto-low.cc (nto_target_ops): Update.
3500 (nto_supports_z_point_type): Turn into ...
3501 (nto_process_target::supports_z_point_type): ... this.
3502 * nto-low.h (class nto_process_target): Update.
3503 * win32-low.cc (win32_target_ops): Update.
3504 (win32_supports_z_point_type): Turn into ...
3505 (win32_process_target::supports_z_point_type): ... this.
3506 * win32-low.h (class win32_process_target): Update.
3507
eac215cc
TBA
35082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3509
3510 Turn process_stratum_target's read_auxv op into a method of
3511 process_target.
3512
3513 * target.h (class process_stratum_target): Remove the target op.
3514 (struct process_target): Add the target op. Also add
3515 'supports_read_auxv'.
3516 * target.cc (process_target::read_auxv): Define.
3517 (process_target::supports_read_auxv): Define.
3518
3519 Update the derived classes and callers below.
3520
3521 * server.cc (handle_qxfer_auxv): Update.
3522 (handle_query): Update.
3523 * linux-low.cc (linux_target_ops): Update.
3524 (linux_process_target::supports_read_auxv): Define.
3525 (linux_read_auxv): Turn into ...
3526 (linux_process_target::read_auxv): ... this.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 (nto_process_target::supports_read_auxv): Define.
3531 (nto_read_auxv): Turn into ...
3532 (nto_process_target::read_auxv): ... this.
3533 * nto-low.h (class nto_process_target): Update.
3534 * win32-low.cc (win32_target_ops): Update.
3535
eb497a2a
TBA
35362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3537
3538 Turn process_stratum_target's request_interrupt op into a method of
3539 process_target.
3540
3541 * target.h (struct process_stratum_target): Remove the target op.
3542 (class process_target): Add the target op.
3543
3544 Update the derived classes and callers below.
3545
3546 * remote-utils.cc (putpkt_binary_1): Update.
3547 (input_interrupt): Update.
3548 (getpkt): Update.
3549 * server.cc (handle_v_requests): Update.
3550 * linux-low.cc (linux_target_ops): Update.
3551 (linux_request_interrupt): Turn into ...
3552 (linux_process_target::request_interrupt): ... this.
3553 * linux-low.h (class linux_process_target): Update.
3554 * lynx-low.cc (lynx_target_ops): Update.
3555 (lynx_request_interrupt): Turn into ...
3556 (lynx_process_target::request_interrupt): ... this.
3557 * lynx-low.h (class lynx_process_target): Update.
3558 * nto-low.cc (nto_target_ops): Update.
3559 (nto_request_interrupt): Turn into ...
3560 (nto_process_target::request_interrupt): ... this.
3561 * nto-low.h (class nto_process_target): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3563 (win32_request_interrupt): Turn into ...
3564 (win32_process_target::request_interrupt): ... this.
3565 * win32-low.h (class win32_process_target): Update.
3566
2a31c7aa
TBA
35672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3568
3569 Turn process_stratum_target's look_up_symbols op into a method of
3570 process_target.
3571
3572 * target.h (struct process_stratum_target): Remove the target op.
3573 (class process_target): Add the target op.
3574 * target.cc (process_target::look_up_symbols): Define.
3575
3576 Update the derived classes and callers below.
3577
3578 * server.cc (handle_query): Update.
3579 * linux-low.cc (linux_target_ops): Update.
3580 (linux_look_up_symbols): Turn into ...
3581 (linux_process_target::look_up_symbols): ... this.
3582 * linux-low.h (class linux_process_target): Update.
3583 * lynx-low.cc (lynx_target_ops): Update.
3584 * nto-low.cc (nto_target_ops): Update.
3585 * win32-low.cc (win32_target_ops): Update.
3586
e2558df3
TBA
35872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3588
3589 Turn process_stratum_target's read_memory and write_memory
3590 ops into methods of process_target.
3591
3592 * target.h (struct process_stratum_target): Remove the target ops.
3593 (class process_target): Add the target ops.
3594
3595 Update the derived classes and callers below.
3596
3597 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3598 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3599 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3600 (arm_get_syscall_trapinfo): Update.
3601 * linux-cris-low.cc (cris_breakpoint_at): Update.
3602 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3603 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3604 * linux-mips-low.cc (mips_breakpoint_at): Update.
3605 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3606 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3607 * linux-sh-low.cc (sh_breakpoint_at): Update.
3608 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3609 (sparc_store_gregset_from_stack): Update.
3610 (sparc_breakpoint_at): Update.
3611 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3612 * linux-tile-low.cc (tile_breakpoint_at): Update.
3613 * linux-x86-low.cc (x86_breakpoint_at): Update.
3614 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3615 * mem-brea.cc (insert_memory_breakpoint): Update.
3616 (validate_inserted_breakpoint): Update.
3617 * target.cc (read_inferior_memory): Update.
3618 (target_write_memory): Update.
3619 * linux-low.cc (linux_target_ops): Update.
3620 (linux_read_memory): Make a wrapper around the read_memory target
3621 op call.
3622 (linux_process_target::read_memory): Rename from linux_read_memory.
3623 (linux_write_memory): Turn into ...
3624 (linux_process_target::write_memory): ... this.
3625 * linux-low.h (class linux_process_target): Update.
3626 * lynx-low.cc (lynx_target_ops): Update.
3627 (lynx_read_memory): Turn into ...
3628 (lynx_process_target::read_memory): ... this.
3629 (lynx_write_memory): Turn into ...
3630 (lynx_process_target::write_memory): ... this.
3631 * lynx-low.h (class lynx_process_target): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 (nto_read_memory): Turn into ...
3634 (nto_process_target::read_memory): ... this.
3635 (nto_write_memory): Turn into ...
3636 (nto_process_target::write_memory): ... this.
3637 * nto-low.h (class nto_process_target): Update.
3638 * win32-low.cc (win32_target_ops): Update.
3639 (win32_read_inferior_memory): Turn into ...
3640 (win32_process_target::read_memory): ... this.
3641 (win32_write_inferior_memory): Turn into ...
3642 (win32_process_target::write_memory): ... this.
3643 * win32-low.h (class win32_process_target): Update.
3644
79b44087
TBA
36452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3646
3647 Turn process_stratum_target's prepare_to_access_memory and
3648 done_accessing_memory ops into methods of process_target.
3649
3650 * target.h (struct process_stratum_target): Remove the target ops.
3651 (class process_target): Add the target ops.
3652 * target.cc (process_target::prepare_to_access_memory): Define.
3653 (process_target::done_accessing_memory): Define.
3654 (prepare_to_access_memory): Update.
3655 (done_accessing_memory): Update.
3656
3657 Update the derived classes and callers below.
3658
3659 * linux-low.cc (linux_target_ops): Update.
3660 (linux_prepare_to_access_memory): Turn into ...
3661 (linux_process_target::prepare_to_access_memory): ... this.
3662 (linux_done_accessing_memory): Turn into ...
3663 (linux_process_target::done_accessing_memory): ... this.
3664 * linux-low.h (class linux_process_target): Update.
3665 * lynx-low.cc (lynx_target_ops): Update.
3666 * nto-low.cc (nto_target_ops): Update.
3667 * win32-low.cc (win32_target_ops): Update.
3668
a5a4d4cd
TBA
36692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3670
3671 Turn process_stratum_target's fetch_registers and store_registers
3672 ops into methods of process_target.
3673
3674 * target.h (struct process_stratum_target): Remove the target ops.
3675 (class process_target): Add the target ops.
3676 (fetch_inferior_registers): Update the macro.
3677 (store_inferior_registers): Update the macro.
3678
3679 Update the derived classes and callers below.
3680
3681 * linux-low.cc (linux_target_ops): Update.
3682 (linux_fetch_registers): Turn into ...
3683 (linux_process_target::fetch_registers): ... this.
3684 (linux_store_registers): Turn into ...
3685 (linux_process_target::store_registers): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 (lynx_fetch_registers): Turn into ...
3689 (lynx_process_target::fetch_registers): ... this.
3690 (lynx_store_registers): Turn into ...
3691 (lynx_process_target::store_registers): ... this.
3692 * lynx-low.h (class lynx_process_target): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 (nto_fetch_registers): Turn into ...
3695 (nto_process_target::fetch_registers): ... this.
3696 (nto_store_registers): Turn into ...
3697 (nto_process_target::store_registers): ... this.
3698 * nto-low.h (class nto_process_target): Update.
3699 * win32-low.cc (win32_target_ops): Update.
3700 (win32_fetch_inferior_registers): Turn into ...
3701 (win32_process_target::fetch_registers): ... this.
3702 (win32_store_inferior_registers): Turn into ...
3703 (win32_process_target::store_registers): ... this.
3704 * win32-low.h (class win32_process_target): Update.
3705
6532e7e3
TBA
37062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707
3708 Turn process_stratum_target's wait op into a method of
3709 process_target.
3710
3711 * target.h (struct process_stratum_target): Remove the target op.
3712 (class process_target): Add the target op.
3713
3714 Update the derived classes and callers below.
3715
3716 * target.cc (target_wait): Update.
3717 * linux-low.cc (linux_target_ops): Update.
3718 (linux_wait): Turn into ...
3719 (linux_process_target::wait): ... this.
3720 * linux-low.h (class linux_process_target): Update.
3721 * lynx-low.cc (lynx_target_ops): Update.
3722 (lynx_wait): Turn into ...
3723 (lynx_process_target::wait): ... this.
3724 * lynx-low.h (class lynx_process_target): Update.
3725 * nto-low.cc (nto_target_ops): Update.
3726 (nto_wait): Turn into ...
3727 (nto_process_target::wait): ... this.
3728 * nto-low.h (class nto_process_target): Update.
3729 * win32-low.cc (win32_target_ops): Update.
3730 (win32_wait): Turn into ...
3731 (win32_process_target::wait): ... this.
3732 (do_initial_child_stuff): Update.
3733 * win32-low.h (class win32_process_target): Update.
3734
0e4d7e35
TBA
37352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3736
3737 Turn process_stratum_target's resume op into a method of
3738 process_target.
3739
3740 * target.h (struct process_stratum_target): Remove the target op.
3741 (class process_target): Add the target op.
3742
3743 Update the derived classes and callers below.
3744
3745 * server.cc (resume): Update.
3746 * target.cc (target_stop_and_wait): Update.
3747 (target_continue_no_signal): Update.
3748 (target_continue): Update.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_resume): Turn into ...
3751 (linux_process_target::resume): ... this.
3752 * linux-low.h (class linux_process_target): Update.
3753 * lynx-low.cc (lynx_target_ops): Update.
3754 (lynx_resume): Turn into ...
3755 (lynx_process_target::resume): ... this.
3756 * lynx-low.h (class lynx_process_target): Update.
3757 * nto-low.cc (nto_target_ops): Update.
3758 (nto_resume): Turn into ...
3759 (nto_process_target::resume): ... this.
3760 * nto-low.h (class nto_process_target): Update.
3761 * win32-low.cc (win32_target_ops): Update.
3762 (win32_resume): Turn into ...
3763 (win32_process_target::resume): ... this.
3764 (win32_process_target::detach): Update.
3765 (do_initial_child_stuff): Update.
3766 * win32-low.h (class win32_process_target): Update.
3767
13d3d99b
TBA
37682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3769
3770 Turn process_stratum_target's thread_alive op into a method of
3771 process_target.
3772
3773 * target.h (struct process_stratum_target): Remove the target op.
3774 (class process_target): Add the target op.
3775 (mythread_alive): Update the macro.
3776
3777 Update the derived classes and callers below.
3778
3779 * linux-low.cc (linux_target_ops): Update.
3780 (linux_thread_alive): Turn into ...
3781 (linux_process_target::thread_alive): ... this.
3782 (wait_for_sigstop): Update.
3783 * linux-low.h (class linux_process_target): Update.
3784 * lynx-low.cc (lynx_target_ops): Update.
3785 (lynx_thread_alive): Turn into ...
3786 (lynx_process_target::thread_alive): ... this.
3787 * lynx-low.h (class lynx_process_target): Update.
3788 * nto-low.cc (nto_target_ops): Update.
3789 (nto_thread_alive): Turn into ...
3790 (nto_process_target::thread_alive): ... this.
3791 * nto-low.h (class nto_process_target): Update.
3792 * win32-low.cc (win32_target_ops): Update.
3793 (win32_thread_alive): Turn into ...
3794 (win32_process_target::thread_alive): ... this.
3795 * win32-low.h (class win32_process_target): Update.
3796
95a49a39
TBA
37972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3798
3799 Turn process_stratum_target's join op into a method of
3800 process_target.
3801
3802 * target.h (struct process_stratum_target): Remove the target op.
3803 (class process_target): Add the target op.
3804 (join_inferior): Update the macro.
3805
3806 Update the derived classes and callers below.
3807
3808 * linux-low.cc (linux_target_ops): Update.
3809 (linux_join): Turn into ...
3810 (linux_process_target::join): ... this.
3811 * linux-low.h (class linux_process_target): Update.
3812 * lynx-low.cc (lynx_target_ops): Update.
3813 (lynx_join): Turn into ...
3814 (lynx_process_target::join): ... this.
3815 * lynx-low.h (class lynx_process_target): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 (nto_process_target::join): Define.
3818 * nto-low.h (class nto_process_target): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820 (win32_join): Turn into ...
3821 (win32_process_target::join): ... this.
3822 * win32-low.h (class win32_process_target): Update.
3823
8adb37b9
TBA
38242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825
3826 Turn process_stratum_target's mourn op into a method of
3827 process_target.
3828
3829 * target.h (struct process_stratum_target): Remove the target op.
3830 (class process_target): Add the target op.
3831
3832 Update the derived classes and callers below.
3833
3834 * target.cc (target_mourn_inferior): Update.
3835 * linux-low.cc (linux_target_ops): Update.
3836 (linux_mourn): Turn into ...
3837 (linux_process_target::mourn): ... this.
3838 (handle_extended_wait): Update.
3839 (linux_process_target::kill): Update.
3840 (linux_process_target::detach): Update.
3841 * linux-low.h (class linux_process_target): Update.
3842 * lynx-low.cc (lynx_target_ops): Update.
3843 (lynx_mourn): Turn into ...
3844 (lynx_process_target::mourn): ... this.
3845 * lynx-low.h (class lynx_process_target): Update.
3846 * nto-low.cc (nto_target_ops): Update.
3847 (nto_mourn): Turn into ...
3848 (nto_process_target::mourn): ... this.
3849 * nto-low.h (class nto_process_target): Update.
3850 * win32-low.cc (win32_target_ops): Update.
3851 (win32_mourn): Turn into ...
3852 (win32_process_target::mourn): ... this.
3853 * win32-low.h (class win32_process_target): Update.
3854
9061c9cf
TBA
38552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3856
3857 Turn process_stratum_target's detach op into a method of
3858 process_target.
3859
3860 * target.h (struct process_stratum_target): Remove the target op.
3861 (class process_target): Add the target op.
3862 (detach_inferior): Update the macro.
3863
3864 Update the derived classes and callers below.
3865
3866 * linux-low.cc (linux_target_ops): Update.
3867 (linux_detach): Turn into ...
3868 (linux_process_target::detach): ... this.
3869 * linux-low.h (class linux_process_target): Update.
3870 * lynx-low.cc (lynx_target_ops): Update.
3871 (lynx_detach): Turn into ...
3872 (lynx_process_target::detach): ... this.
3873 * lynx-low.h (class lynx_process_target): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 (nto_detach): Turn into ...
3876 (nto_process_target::detach): ... this.
3877 * nto-low.h (class nto_process_target): Update.
3878 * win32-low.cc (win32_target_ops): Update.
3879 (win32_detach): Turn into ...
3880 (win32_process_target::detach): ... this.
3881 * win32-low.h (class win32_process_target): Update.
3882
c6885a57
TBA
38832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3884
3885 Turn process_stratum_target's kill op into a method of
3886 process_target.
3887
3888 * target.h (struct process_stratum_target): Remove the target op.
3889 (class process_target): Add the target op.
3890
3891 Update the derived classes and callers below.
3892
3893 * target.cc (kill_inferior): Update.
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_kill): Turn into ...
3896 (linux_process_target::kill): ... this.
3897 * linux-low.h (class linux_process_target): Update.
3898 * lynx-low.cc (lynx_target_ops): Update.
3899 (lynx_kill): Turn into ...
3900 (lynx_process_target::kill): ... this.
3901 * lynx-low.h (class lynx_process_target): Update.
3902 * nto-low.cc (nto_target_ops): Update.
3903 (nto_kill): Turn into ...
3904 (nto_process_target::kill): ... this.
3905 * nto-low.h (class nto_process_target): Update.
3906 * win32-low.cc (win32_target_ops): Update.
3907 (win32_kill): Turn into ...
3908 (win32_process_target::kill): ... this.
3909 * win32-low.h (class win32_process_target): Update.
3910
ef03dad8
TBA
39112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3912
3913 Turn process_stratum_target's attach op into a method of
3914 process_target.
3915
3916 * target.h (struct process_stratum_target): Remove the target op.
3917 (class process_target): Add the target op.
3918 (myattach): Update the macro.
3919
3920 Update the derived classes and callers below.
3921
3922 * linux-low.cc (linux_target_ops): Update.
3923 (linux_attach): Turn into ...
3924 (linux_process_target::attach): ... this.
3925 * linux-low.h (class linux_process_target): Update.
3926 * lynx-low.cc (lynx_target_ops): Update.
3927 (lynx_attach): Turn into ...
3928 (lynx_process_target::attach): ... this.
3929 * lynx-low.h (class lynx_process_target): Update.
3930 * nto-low.cc (nto_target_ops): Update.
3931 (nto_attach): Turn into ...
3932 (nto_process_target::attach): ... this.
3933 * nto-low.h (class nto_process_target): Update.
3934 * win32-low.cc (win32_target_ops): Update.
3935 (win32_attach): Turn into ...
3936 (win32_process_target::attach): ... this.
3937 * win32-low.h (class win32_process_target): Update.
3938
6dee9afb
TBA
39392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3940
3941 Turn process_stratum_target's post_create_inferior op into a method
3942 of process_target.
3943
3944 * target.h (struct process_stratum_target): Remove the target op.
3945 (class process_target): Add the target op.
3946 (target_post_create_inferior): Update the macro.
3947 * target.cc (process_target::post_create_inferior): Define.
3948
3949 Update the derived classes and callers below.
3950
3951 * linux-low.cc (linux_target_ops): Update.
3952 (linux_post_create_inferior): Turn into ...
3953 (linux_process_target::post_create_inferior): ... this.
3954 * linux-low.h (class linux_process_target): Update.
3955 * lynx-low.cc (lynx_target_ops): Update.
3956 * nto-low.cc (nto_target_ops): Update.
3957 * win32-low.cc (win32_target_ops): Update.
3958
15295543
TBA
39592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3960
3961 Turn process_stratum_target's create_inferior op into a method of
3962 process_target.
3963
3964 * target.h (struct process_stratum_target): Remove the target op.
3965 (class process_target): Add the target op.
3966 (create_inferior): Rename the macro to ...
3967 (target_create_inferior): ... this.
3968
3969 Update the derived classes and callers below.
3970
3971 * server.cc (handle_v_run): Update.
3972 (captured_main): Update.
3973 (process_serial_event): Update.
3974 * linux-low.cc (linux_target_ops): Update.
3975 (linux_create_inferior): Turn into ...
3976 (linux_process_target::create_inferior): ... this.
3977 * linux-low.h (class linux_process_target): Update.
3978 * lynx-low.cc (lynx_target_ops): Update.
3979 (lynx_create_inferior): Turn into ...
3980 (lynx_process_target::create_inferior): ... this.
3981 * lynx-low.h (class lynx_process_target): Update.
3982 * nto-low.cc (nto_target_ops): Update.
3983 (nto_create_inferior): Turn into ...
3984 (nto_process_target::create_inferior): ... this.
3985 * nto-low.h (class nto_process_target): Update.
3986 * win32-low.cc (win32_target_ops): Update.
3987 (win32_create_inferior): Turn into ...
3988 (win32_process_target::create_inferior): ... this.
3989 * win32-low.h (class win32_process_target): Update.
3990
5ef9273d
TBA
39912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3992
3993 * target.h (class process_target): New class definition.
3994 (struct process_stratum_target) <pt>: New field with type
3995 'process_target*'.
3996 * linux-low.h (class linux_process_target): Define as a derived
3997 class of 'process_target'.
3998 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3999 as the 'pt' field.
4000 * lynx-low.h (class lynx_process_target): Define as a derived
4001 class of 'process_target'.
4002 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4003 as the 'pt' field.
4004 * nto-low.h (class nto_process_target): Define as a derived
4005 class of 'process_target'.
4006 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4007 as the 'pt' field.
4008 * win32-low.h (class win32_process_target): Define as a derived
4009 class of 'process_target'.
4010 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4011 as the 'pt' field.
4012
9f1528a1
AB
40132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4014
4015 * configure: Regenerate.
4016
bf84f706
MR
40172020-02-19 Maciej W. Rozycki <macro@wdc.com>
4018 Andrew Burgess <andrew.burgess@embecosm.com>
4019
4020 * linux-riscv-low.cc: New file.
4021 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4022 and nat/riscv-linux-tdesc.c.
4023 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4024 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4025 Define.
4026
1a627e7e
TT
40272020-02-14 Tom Tromey <tom@tromey.com>
4028
4029 * acinclude.m4: Don't include acx_configure_dir.m4.
4030 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4031 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4032 (all, install-only, uninstall, clean-info, clean)
4033 (maintainer-clean): Don't recurse.
4034 (subdir_do, all-lib): Remove.
4035 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4036 (GNULIB_H): Remove.
4037 (generated_files): Update.
4038 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4039 * configure: Rebuild.
4040 * configure.ac: Don't configure gnulib or libiberty.
4041 (GNULIB): Update.
4042
a9b34532
EZ
40432020-02-14 Eli Zaretskii <eliz@gnu.org>
4044
4045 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4046 preparing the command line for CreateProcess.
4047 (win32_create_inferior): Reflect the program name in debugging
4048 output that shows the process and its command line.
4049
feacfcac
SM
40502020-02-13 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * Makefile.in: Rename source files from .c to .cc.
4053 * %.c: Rename to %.cc.
4054 * configure.ac: Rename server.c to server.cc.
4055 * configure: Re-generate.
4056
06b3c5bd
SM
40572020-02-13 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4060
052793ad
HD
40612020-02-12 Hannes Domani <ssbssa@yahoo.de>
4062
4063 * win32-low.c (win32_create_inferior): Set signal_pid.
4064
f20e3e82
MR
40652020-02-12 Maciej W. Rozycki <macro@wdc.com>
4066 Pedro Alves <palves@redhat.com>
4067
4068 Skip building gdbserver in a cross-configuration.
4069 * configure.srv: Set $gdbserver_host depending on whether $target
4070 is $host. Use $gdbserver_host instead of $host.
4071
8ddd8e0e
SM
40722020-02-11 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * configure: Re-generate.
4075
898e7f60
SM
40762020-02-11 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * configure: Re-generate.
4079
58df732b
SM
40802020-02-11 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * acinclude.m4: Update warning.m4 path.
4083
7928d571
HD
40842020-02-09 Hannes Domani <ssbssa@yahoo.de>
4085
4086 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4087 (handle_exception): Set siginfo_er.
4088 (win32_xfer_siginfo): New function.
4089
919adfe8
TT
40902020-02-07 Tom Tromey <tom@tromey.com>
4091 Pedro Alves <palves@redhat.com>
4092
4093 * README: Update build documentation.
4094 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4095 host, not target.
4096 * configure.ac: Update paths.
4097 * configure: Rebuild.
4098 * acinclude.m4: Update paths.
4099 * Makefile.in: Update include paths.
4100 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4101 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4102 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4103 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4104 (%-generated.c): Update paths.
4105 * Move entire directory from ../gdb/gdbserver.
4106
287c844a
MR
41072020-01-29 Maciej W. Rozycki <macro@wdc.com>
4108
4109 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4110
548a204f
PFC
41112020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4112
4113 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4114 assignment instead of srv_linux_obj.
4115
a2236a08
HD
41162020-01-28 Hannes Domani <ssbssa@yahoo.de>
4117
4118 * server.c (handle_qxfer_libraries): Write segment-address with
4119 paddress.
4120
bdaed379
HD
41212020-01-24 Hannes Domani <ssbssa@yahoo.de>
4122
4123 * Makefile.in (install-strip): New target.
4124 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4125 * aclocal.m4: Regenerate.
4126 * configure: Regenerate.
4127 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4128
42cd72aa
MR
41292020-01-24 Maciej W. Rozycki <macro@wdc.com>
4130
4131 * Makefile.in (SFILES): Adjust paths to point to real files.
4132 (OBS): Move waitstatus.o to target/waitstatus.o.
4133 (TAGS): Transform paths appropriately.
4134 (%.o): Rename to...
4135 (nat/%.o): ... this pattern rule.
4136 (%.o): Rename to...
4137 (target/%.o): ... this pattern rule.
4138 * configure.srv: Adjust paths throughout to include nat/ prefix
4139 with the revant files.
4140 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4141 * configure: Regenerate.
4142
42ba50ec
MR
41432020-01-24 Maciej W. Rozycki <macro@wdc.com>
4144
4145 * Makefile.in (TAGS): Remove config files from the recipe.
4146
05ea2a05
TT
41472020-01-14 Tom Tromey <tom@tromey.com>
4148
4149 * configure: Rebuild.
4150 * configure.ac: Remove any checks that were added to common.m4.
4151 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4152 lib-link.m4.
4153
01027315
TT
41542020-01-14 Tom Tromey <tom@tromey.com>
4155
4156 * server.h: Include config.h.
4157 * gdbreplay.c: Include config.h.
4158 * configure: Rebuild.
4159 * configure.ac: Don't source common.host.
4160 * acinclude.m4: Update path.
4161 * Makefile.in (INCSUPPORT): New variable.
4162 (INCLUDE_CFLAGS): Add INCSUPPORT.
4163 (SFILES): Update paths.
4164 (version-generated.c): Update path to create-version.sh.
4165 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4166
b2ceabe8
TT
41672020-01-14 Tom Tromey <tom@tromey.com>
4168
4169 * configure.ac (LIBS): Use WIN32APILIBS.
4170 (USE_WIN32API): Don't define.
4171 * configure: Rebuild.
4172
25c51f71
TT
41732020-01-14 Tom Tromey <tom@tromey.com>
4174
4175 * configure: Rebuild.
4176
c0bd321d
SM
41772020-01-13 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * Makefile.in (%-generated.c): Remove rule for files from
4180 regformats/i386.
4181
bb564c58
SM
41822020-01-13 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * configure: Re-generate.
4185
6e37c371
SM
41862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4189 Define to static.
4190 * tracepoint.c (stop_tracing, flush_trace_buffer,
4191 about_to_request_buffer_space, get_trace_state_variable_value,
4192 set_trace_state_variable_value, gdb_collect): Add declaration.
4193
df4a0200
SM
41942020-01-13 Simon Marchi <simon.marchi@efficios.com>
4195
4196 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4197 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4198 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4199 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4200 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4201 static.
4202
89e94ec9
SM
42032020-01-13 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * inferiors.c: Include gdbsupport/common-inferior.h.
4206
2552728a
SM
42072020-01-13 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * hostio-errno.c: Include hostio.h.
4210
4025fa09
SM
42112020-01-13 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4214 prerequisite.
4215
c0b0a142
SM
42162020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4219 * linux-arm-tdesc.h: Include arch/arm.h.
4220
bb1183e2
SM
42212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4224
f5df0b5f
SM
42252020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4226
4227 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4228 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4229
5b6d1e4f
PA
42302020-01-10 Pedro Alves <palves@redhat.com>
4231
4232 * fork-child.c (post_fork_inferior): Pass target down to
4233 startup_inferior.
4234 * inferiors.c (switch_to_thread): Add process_stratum_target
4235 parameter.
4236 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4237 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4238 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4239 * remote-utils.c (prepare_resume_reply): Pass the target to
4240 switch_to_thread.
4241 * target.c (the_target): Now a process_stratum_target.
4242 (done_accessing_memory): Pass the target to switch_to_thread.
4243 (set_target_ops): Ajust to use process_stratum_target.
4244 * target.h (struct target_ops): Rename to ...
4245 (struct process_stratum_target): ... this.
4246 (the_target, set_target_ops): Adjust.
4247 (prepare_to_access_memory): Adjust comment.
4248 * win32-low.c (child_xfer_memory): Adjust to use
4249 process_stratum_target.
4250 (win32_target_ops): Now a process_stratum_target.
4251
559e7e50
EZ
42522020-01-06 Eli Zaretskii <eliz@gnu.org>
4253 Pedro Alves <palves@redhat.com>
4254
4255 * win32-low.c (get_child_debug_event): Extract the fatal exception
4256 from the exit status and convert to the equivalent Posix signal
4257 number.
4258 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4259 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4260
48189bec
HD
42612020-01-01 Hannes Domani <ssbssa@yahoo.de>
4262
4263 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4264
5dd8bf88
JB
42652020-01-01 Joel Brobecker <brobecker@adacore.com>
4266
4267 * server.c (gdbserver_version): Change copyright year to 2020.
4268 * gdbreplay.c (gdbreplay_version): Likewise.
4269
0ad6b8ee
CB
42702019-12-19 Christian Biesinger <cbiesinger@google.com>
4271
4272 * configure: Regenerate.
4273 * configure.ac: Quote variable arguments of test.
4274
1ee7b812
BE
42752019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4276
4277 * Makefile.in: Fix build with GNU Make 3.81
4278
d9fa87f4
TT
42792019-12-16 Tom Tromey <tromey@adacore.com>
4280
4281 * server.c (get_exec_file): Constify result.
4282
ab7d13f0
CB
42832019-12-10 Christian Biesinger <cbiesinger@google.com>
4284
4285 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4286 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4287 * config.in: Regenerate.
4288 * configure: Regenerate.
4289 * configure.ac: Don't check for strerror.
4290 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4291 Call safe_strerror instead of strerror.
4292 * server.h (strerror): Remove this now-unnecessary declaration.
4293 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4294 strerror.
4295 (gdb_agent_helper_thread): Likewise.
4296 * utils.c (perror_with_name): Likewise.
4297
4da8c3a8
TT
42982019-11-26 Tom Tromey <tom@tromey.com>
4299
4300 * configure, config.in: Rebuild.
4301
21987b9c
TT
43022019-11-26 Tom Tromey <tom@tromey.com>
4303
4304 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4305 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4306 gdb_sigmask.
4307 * configure, config.in: Rebuild.
4308
5e030278
TT
43092019-11-26 Tom Tromey <tom@tromey.com>
4310
4311 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4312 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4313 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4314 * acinclude.m4: Include ax_pthread.m4.
4315 * config.in, configure: Rebuild.
4316
6d91ce9a
CB
43172019-11-26 Christian Biesinger <cbiesinger@google.com>
4318
4319 * debug.c (debug_set_output): Call safe_strerror instead of
4320 strerror.
4321 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4322 (linux_kill_one_lwp): Likewise.
4323 (linux_detach_one_lwp): Likewise.
4324 (linux_wait_for_event_filtered): Likewise.
4325 (store_register): Likewise.
4326 * lynx-low.c (lynx_attach): Likewise.
4327 * mem-break.c (insert_memory_breakpoint): Likewise.
4328 (remove_memory_breakpoint): Likewise.
4329 (delete_fast_tracepoint_jump): Likewise.
4330 (set_fast_tracepoint_jump): Likewise.
4331 (uninsert_fast_tracepoint_jumps_at): Likewise.
4332 (reinsert_fast_tracepoint_jumps_at): Likewise.
4333 * nto-low.c (nto_xfer_memory): Likewise.
4334 (nto_resume): Likewise.
4335
6cdd651f
LM
43362019-11-20 Luis Machado <luis.machado@linaro.org>
4337
4338 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4339 instead of register count.
4340 * tdesc.c (tdesc_contains_feature): New function.
4341 * tdesc.h (tdesc_contains_feature): New prototype.
4342
cd850b40
CB
43432019-11-15 Christian Biesinger <cbiesinger@google.com>
4344
4345 * Makefile.in: Add safe-strerror.c.
4346 * configure: Regenerate.
4347 * configure.ac: Don't source common.host.
4348
5abebf3c
CB
43492019-11-15 Christian Biesinger <cbiesinger@google.com>
4350
4351 * config.in: Regenerate.
4352 * configure: Regenerate.
4353
e06f3d6e
AB
43542019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 * ax.c (ax_printf): Handle size_t_arg.
4357
ca3a04f6
CB
43582019-11-06 Christian Biesinger <cbiesinger@google.com>
4359
4360 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4361 * mi/mi-main.c (output_cores): Likewise.
4362 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4363 (linux_xfer_osdata_modules): Likewise.
4364 * remote.c (register_remote_support_xml): Likewise.
4365 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4366 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4367
e48f6033
CB
43682019-11-01 Christian Biesinger <cbiesinger@google.com>
4369
4370 * configure: Regenerate.
4371 * configure.ac: Remove check for strerror_r.
4372
e7e97a2e
CB
43732019-10-31 Christian Biesinger <cbiesinger@google.com>
4374
4375 * config.in: Regenerate.
4376 * configure: Regenerate.
4377 * configure.ac: Also check for strerror_r.
4378
75cafaa6
CB
43792019-10-31 Christian Biesinger <cbiesinger@google.com>
4380
4381 * ax.h (debug_agent): Remove duplicate declaration.
4382
30baf67b
TV
43832019-10-26 Tom de Vries <tdevries@suse.de>
4384
4385 * linux-aarch64-low.c: Fix typos in comments.
4386 * linux-arm-low.c: Same.
4387 * linux-low.c: Same.
4388 * linux-ppc-low.c: Same.
4389 * proc-service.c: Same.
4390 * regcache.h: Same.
4391 * server.c: Same.
4392 * tracepoint.c: Same.
4393 * win32-low.c: Same.
4394
52c64cf7
TT
43952019-10-25 Tom Tromey <tromey@adacore.com>
4396
4397 * utils.c (xstrdup): Remove.
4398
c12d372d
TT
43992019-10-23 Tom Tromey <tom@tromey.com>
4400
4401 * configure, config.in: Rebuild.
4402
4d0b984b
TT
44032019-10-23 Tom Tromey <tom@tromey.com>
4404
4405 * configure: Rebuild.
4406 * acinclude.m4: Use m4_include, not sinclude.
4407
c5adaa19
TT
44082019-10-17 Tom Tromey <tromey@adacore.com>
4409
4410 * configure: Rebuild.
4411 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4412 in AC_CONFIG_FILES invocation.
4413 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4414 invocation.
4415
fec4e896
CB
44162019-10-16 Christian Biesinger <cbiesinger@google.com>
4417
4418 * server.c: Include xml-builtin.h.
4419 (get_xml_features): Don't declare xml_builtins here.
4420
00975ff6
AB
44212019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4422
4423 * Makefile.in: Remove references to vec-ipa.o.
4424
0dc32745
AB
44252019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4426
4427 * Makefile.in: Remove references to vec.c.
4428
3e6ec53a
CB
44292019-10-02 Christian Biesinger <cbiesinger@google.com>
4430
4431 * server.c (server_waiting): Change to bool.
4432 (extended_protocol): Likewise.
4433 (response_needed): Likewise.
4434 (exit_requested): Likewise.
4435 (run_once): Likewise.
4436 (report_no_resumed): Likewise.
4437 (non_stop): Likewise.
4438 (disable_packet_vCont): Likewise.
4439 (disable_packet_Tthread): Likewise.
4440 (disable_packet_qC): Likewise.
4441 (disable_packet_qfThreadInfo): Likewise.
4442 (handle_general_set): Update.
4443 (handle_detach): Update.
4444 (handle_monitor_command): Update.
4445 (handle_query): Update.
4446 (captured_main): Update.
4447 (process_serial_event): Update.
4448 * server.h (server_waiting): Change to bool.
4449 (disable_packet_vCont): Likewise.
4450 (disable_packet_Tthread): Likewise.
4451 (disable_packet_qC): Likewise.
4452 (disable_packet_qfThreadInfo): Likewise.
4453 (run_once): Likewise.
4454 (non_stop): Likewise.
4455 * target.c (target_stop_and_wait): Update.
4456
80fd2826
TT
44572019-10-02 Tom Tromey <tromey@adacore.com>
4458
4459 * Makefile.in (SFILES): Add common-inferior.c.
4460 (OBS): Add common-inferior.o.
4461 * server.c (startup_with_shell): Don't define.
4462
46f29a9a
AB
44632019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * linux-low.c (linux_low_read_btrace): Update for change to
4466 std::vector.
4467
f9d949fb
CB
44682019-09-20 Christian Biesinger <cbiesinger@google.com>
4469
4470 * debug.c (debug_threads): Remove comment in favor of the header.
4471 * debug.h (using_threads): Add declaration.
4472 (debug_threads): Add comment.
4473 * linux-aarch64-low.c: Include debug.h and remove declaration of
4474 debug_threads.
4475 * nto-low.c: Likewise.
4476 * remote-utils.c: Likewise.
4477 * thread-db.c: Likewise.
4478
abf516c6
UW
44792019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4480
4481 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4482 and powerpc-cell64l-ipa.o.
4483 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4484 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4485 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4486 (spu*-*-*): Remove.
4487
4488 * spu-low.c: Remove file.
4489
4490 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4491 (parse_spufs_run): Remove.
4492 (ppc_get_pc): Remove Cell/B.E. support.
4493 (ppc_set_pc): Likewise.
4494 (ppc_breakpoint_at): Likewise.
4495 (ppc_arch_setup): Likewise.
4496 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4497 tdesc_powerpc_cell32l.
4498 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4499 or init_registers_powerpc_cell32l.
4500 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4501 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4502 or init_registers_powerpc_cell32l.
4503 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4504 (init_registers_powerpc_cell32l): Remove prototype.
4505 (init_registers_powerpc_cell64l): Likewise.
4506
4507 * target.h (struct target_ops): Remove qxfer_spu member.
4508 * server.c (handle_qxfer_spu): Remove.
4509 (qxfer_packets): Remove entry for "spu".
4510 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4511 * linux-low.c (SPUFS_MAGIC): Remove.
4512 (spu_enumerate_spu_ids): Remove.
4513 (linux_qxfer_spu): Remove.
4514 (linux_target_ops): Remove qxfer_spu member.
4515 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4516 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4517 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4518
2d41fa11
SDJ
45192019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4520
4521 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4522 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4523 * config.in: Regenerate.
4524 * configure: Regenerate.
4525
d59b55f0
TT
45262019-08-15 Tom Tromey <tromey@adacore.com>
4527
4528 * target.c (target_write_memory): Use gdb::byte_vector.
4529
4196ab2a
TT
45302019-08-15 Tom Tromey <tromey@adacore.com>
4531
4532 * tracepoint.c (write_inferior_data_pointer)
4533 (write_inferior_integer, write_inferior_int8)
4534 (write_inferior_uinteger, m_tracepoint_action_download)
4535 (r_tracepoint_action_download, x_tracepoint_action_download)
4536 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4537 (download_agent_expr, download_tracepoint_1)
4538 (download_trace_state_variables, upload_fast_traceframes): Update.
4539 * server.c (gdb_write_memory): Update.
4540 * remote-utils.c (relocate_instruction): Update.
4541 * proc-service.c (ps_pdwrite): Update.
4542 * mem-break.c (remove_memory_breakpoint)
4543 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4544 (uninsert_fast_tracepoint_jumps_at)
4545 (reinsert_fast_tracepoint_jumps_at): Update.
4546 * linux-x86-low.c (append_insns)
4547 (i386_install_fast_tracepoint_jump_pad)
4548 (amd64_write_goto_address, i386_write_goto_address): Update.
4549 * linux-s390-low.c (append_insns, s390_write_goto_address):
4550 Update.
4551 * linux-ppc-low.c (ppc_relocate_instruction)
4552 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4553 (ppc_write_goto_address): Update.
4554 * linux-aarch64-low.c (append_insns): Update.
4555 * target.h (struct target_ops): Update.
4556 (write_inferior_memory): Don't declare.
4557 * target.c (target_write_memory): Rename from
4558 write_inferior_memory. Remove old target_write_memory.
4559
c6778d00
TT
45602019-08-15 Tom Tromey <tromey@adacore.com>
4561
4562 * target.c (write_inferior_memory): Use std::vector.
4563
404f2902
FCE
45642019-08-06 Frank Ch. Eigler <fche@redhat.com>
4565
4566 PR build/24886
4567 * configure.ac: Drop enable-libmcheck support.
4568 * configure, config.in: Rebuild.
4569 * acinclude.m4: Don't include it.
4570
4c5aa8e0
AH
45712019-07-19 Alan Hayward <alan.hayward@arm.com>
4572
4573 * configure.srv: Remove Arm xml files.
4574
7cc17433
AH
45752019-07-19 Alan Hayward <alan.hayward@arm.com>
4576
4577 * configure.srv: Add new files. Remove xml generated files.
4578 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4579 registers.
4580 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4581 * linux-aarch32-tdesc.c: New file.
4582 * linux-aarch32-tdesc.h: New file.
4583 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4584 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4585 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4586 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4587 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4588 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4589 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4590 (arm_read_description): Call arm_linux_read_description.
4591 (initialize_low_arch): Don't init registers.
4592 * linux-arm-tdesc.c: New file.
4593 * linux-arm-tdesc.h: New file.
4594
166a82be
AH
45952019-07-10 Alan Hayward <alan.hayward@arm.com>
4596
4597 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4598 Move counter inside for.
4599 (arm_read_description): Check ptrace earlier.
4600 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4601
268a13a5
TT
46022019-07-09 Tom Tromey <tom@tromey.com>
4603
4604 * configure: Rebuild.
4605 * configure.ac: Change common to gdbsupport.
4606 * acinclude.m4: Change common to gdbsupport.
4607 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4608 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4609 common to gdbsupport.
4610 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4611 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4612 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4613 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4614 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4615 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4616 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4617 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4618 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4619 common to gdbsupport.
4620
350fab54
AH
46212019-07-04 Alan Hayward <alan.hayward@arm.com>
4622
4623 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4624 defines.
4625 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4626
2b40fda7
AH
46272019-07-04 Alan Hayward <alan.hayward@arm.com>
4628
4629 * configure.srv: Remove legacy xml.
4630 * linux-aarch64-low.c (initialize_low_arch): Remove
4631 initialize_low_tdesc call.
4632 * linux-aarch64-tdesc-selftest.c: Remove file.
4633 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4634 * linux-x86-low.c (initialize_low_arch): Remove
4635 initialize_low_tdesc call.
4636 * linux-x86-tdesc-selftest.c: Remove file.
4637 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4638
7d10623d
TV
46392019-06-20 Tom de Vries <tdevries@suse.de>
4640
4641 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4642 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4643
8d6a48df
TV
46442019-06-19 Tom de Vries <tdevries@suse.de>
4645
4646 * debug.h (debug_write): Change return type to ssize_t.
4647 * debug.c (debug_write): Same.
4648
73cc7272
TT
46492019-06-14 Tom Tromey <tom@tromey.com>
4650
4651 * configure.ac: Use new path to gnulib.
4652 * configure: Rebuild.
4653 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4654 to gnulib.
4655
08f10e02
TT
46562019-06-11 Tom Tromey <tom@tromey.com>
4657
4658 * Makefile.in (SFILES): Add alloc.c.
4659 (OBS): Add alloc.o.
4660 (IPA_OBJS): Add alloc-ipa.o.
4661 (alloc-ipa.o): New target.
4662 (%.o: ../%.c): New pattern rule.
4663
422186a9
TT
46642019-06-10 Tom Tromey <tromey@adacore.com>
4665
4666 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4667 end warning with a newline.
4668 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4669 newline.
4670 * thread-db.c (attach_thread): Don't end warning with a newline.
4671 (thread_db_notice_clone): Likewise.
4672 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4673 newline.
4674 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4675 end warning with a newline.
4676
b02f78f9
PA
46772019-06-04 Pedro Alves <palves@redhat.com>
4678
4679 * server.c (captured_main): Use make_unique_xstrdup.
4680
88ed7edb
TT
46812019-06-02 Tom Tromey <tom@tromey.com>
4682
4683 * gdbreplay.c (fromhex): Remove.
4684 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4685
33a6bc35
TT
46862019-05-29 Tom Tromey <tromey@adacore.com>
4687
4688 * configure: Rebuild.
4689
e90a813d
KB
46902019-05-06 Kevin Buettner <kevinb@redhat.com>
4691
4692 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4693 sign extension code on 32-bit builds.
4694
353ea2d1
EZ
46952019-05-03 Eli Zaretskii <eliz@gnu.org>
4696
4697 * remote-utils.c:
4698 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4699
b494cdff
TT
47002019-04-19 Tom Tromey <tom@tromey.com>
4701
4702 * server.c (struct vstop_notif): Derive from notif_event.
4703 <base>: Remove.
4704 (queue_stop_reply): Update.
4705 (remove_all_on_match_ptid): Change type. Rewrite.
4706 (discard_queued_stop_replies): Rewrite.
4707 (in_queued_stop_replies_ptid): Change type.
4708 (in_queued_stop_replies): Rewrite.
4709 (notif_stop): Update.
4710 (queue_stop_reply_callback): Update.
4711 (captured_main): Don't call initialize_notif.
4712 (push_stop_notification): Update.
4713 * notif.c (notif_write_event, handle_notif_ack)
4714 (notif_event_enque, notif_push): Update.
4715 (notif_event_xfree, initialize_notif): Remove.
4716 * notif.h (struct notif_event): Include <list>, not
4717 "common/queue.h".
4718 (struct notif_server) <queue>: Now a std::list.
4719 (notif_event_p): Remove typedef.
4720 (initialize_notif): Don't declare.
4721 (struct notif_event): Add virtual destructor.
4722
a7e559cc
AH
47232019-04-17 Alan Hayward <alan.hayward@arm.com>
4724
4725 * ax.c (ax_vdebug): Call debug_printf.
4726 * debug.c (debug_write): New function.
4727 * debug.h (debug_write): New declaration.
4728 * linux-low.c (sigchld_handler): Call debug_write.
4729
aeb2e706
AH
47302019-04-17 Alan Hayward <alan.hayward@arm.com>
4731
4732 * debug.c (debug_set_output): New function.
4733 (debug_vprintf): Send output to debug_file.
4734 (debug_flush): Likewise.
4735 * debug.h (debug_set_output): New declaration.
4736 * server.c (handle_monitor_command): Add debug-file option.
4737 (captured_main): Likewise.
4738
c1bc0935
AH
47392019-04-17 Alan Hayward <alan.hayward@arm.com>
4740
4741 * debug.c (remote_debug): Add definition.
4742 * debug.h (remote_debug): Add declaration.
4743 * hostio.c (remote_debug): Remove declaration.
4744 * remote-utils.c (struct ui_file): Likewise.
4745 (remote_debug): Likewise.
4746 * remote-utils.h (remote_debug): Likewise,
4747 * server.c (remote_debug): Remove definition.
4748
3f52fdbc
KB
47492019-04-10 Kevin Buettner <kevinb@redhat.com>
4750
4751 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4752 when using a 64-bit gdbserver.
4753
b0319eaa
TT
47542019-04-09 Tom Tromey <tromey@adacore.com>
4755
4756 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4757
eedc3f4f
TT
47582019-04-08 Tom Tromey <tom@tromey.com>
4759
4760 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4761 throw.
4762 (linux_resume_one_lwp): Likewise.
4763
230d2906
TT
47642019-04-08 Tom Tromey <tom@tromey.com>
4765
4766 * gdbreplay.c: Update.
4767 * linux-low.c: Update.
4768 * server.c: Update.
4769
a70b8144
TT
47702019-04-08 Tom Tromey <tom@tromey.com>
4771
4772 * server.c: Use C++ exception handling.
4773 * linux-low.c: Use C++ exception handling.
4774 * gdbreplay.c: Use C++ exception handling.
4775
3d6e9d23
TT
47762019-04-08 Tom Tromey <tom@tromey.com>
4777
4778 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4779 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4780 (captured_main, main): Update.
4781 * gdbreplay.c (main): Update.
4782
0570503d
PFC
47832019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4784
4785 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4786 value in argument pointer, return 1 if the entry is found and 0
4787 otherwise. Move comment.
4788 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4789 * linux-low.h (linux_get_auxv): Declare.
4790 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4791
227a9e65
TT
47922019-04-05 Tom Tromey <tromey@adacore.com>
4793
4794 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4795 variables.
4796
69f4c9cc
AH
47972019-03-28 Alan Hayward <alan.hayward@arm.com>
4798
4799 * linux-low.c (AT_HWCAP2): Add define if not already included.
4800
974c89e0
AH
48012019-03-26 Alan Hayward <alan.hayward@arm.com>
4802
4803 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4804 (aarch64_arch_setup): Call linux_get_hwcap.
4805 * linux-arm-low.c (arm_get_hwcap): Remove function.
4806 (arm_read_description): Call linux_get_hwcap.
4807 * linux-low.c (linux_get_auxv): New function.
4808 (linux_get_hwcap): Likewise.
4809 (linux_get_hwcap2): Likewise.
4810 * linux-low.h (linux_get_hwcap): New declaration.
4811 (linux_get_hwcap2): Likewise.
4812 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4813 (ppc_arch_setup): Call linux_get_hwcap.
4814 * linux-s390-low.c (s390_get_hwcap): Remove function.
4815 (s390_arch_setup): Call linux_get_hwcap.
4816
1ef53e6b
AH
48172019-03-22 Alan Hayward <alan.hayward@arm.com>
4818 Jiong Wang <jiong.wang@arm.com>
4819
4820 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4821 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4822 to fail.
4823 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4824
ee4fbcfa
AH
48252019-03-22 Alan Hayward <alan.hayward@arm.com>
4826 Jiong Wang <jiong.wang@arm.com>
4827
4828 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4829 (aarch64_get_hwcap): New function.
4830 (aarch64_arch_setup): Read APIA hwcap.
4831
6dc0ebde
AH
48322019-03-22 Alan Hayward <alan.hayward@arm.com>
4833 Jiong Wang <jiong.wang@arm.com>
4834
4835 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4836 (initialize_low_tracepoint): Likewise.
4837 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4838 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4839 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4840 (aarch64_linux_read_description): Likewise.
4841 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4842
1163a4b7
JB
48432019-03-12 John Baldwin <jhb@FreeBSD.org>
4844
4845 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4846 i386_create_target_description for 'segments' parameter.
4847 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4848 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4849 * win32-i386-low.c (i386_arch_setup): Likewise.
4850
d3a70e03
TT
48512019-03-12 Tom Tromey <tromey@adacore.com>
4852
4853 * linux-low.c (iterate_over_lwps): Update.
4854
37991b4f
TT
48552019-03-06 Tom Tromey <tom@tromey.com>
4856
4857 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4858 (captured_main): Use SCOPE_EXIT.
4859
45950eb6
SDJ
48602019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4861
4862 * configure.srv: Use '$enable_unittest' instead of '$development'
4863 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4864 case.
4865
43ac54fc
TT
48662019-02-27 Tom Tromey <tromey@adacore.com>
4867
4868 * gdbreplay.c (logchar): Handle \r\n.
4869
df0da8a2
AH
48702019-02-07 Alan Hayward <alan.hayward@arm.com>
4871
4872 * linux-low.c (linux_attach): Add process before lwp.
4873 * server.c (attach_inferior): Check if already attached.
4874
1a5c2598
TT
48752019-02-07 Tom Tromey <tom@tromey.com>
4876
4877 * x86-tdesc.h: Rename include guard.
4878 * x86-low.h: Add include guard.
4879 * wincecompat.h: Rename include guard.
4880 * win32-low.h: Add include guard.
4881 * utils.h: Rename include guard.
4882 * tracepoint.h: Rename include guard.
4883 * tdesc.h: Rename include guard.
4884 * target.h: Rename include guard.
4885 * server.h: Rename include guard.
4886 * remote-utils.h: Rename include guard.
4887 * regcache.h: Rename include guard.
4888 * nto-low.h: Rename include guard.
4889 * notif.h: Add include guard.
4890 * mem-break.h: Rename include guard.
4891 * lynx-low.h: Add include guard.
4892 * linux-x86-tdesc.h: Add include guard.
4893 * linux-s390-tdesc.h: Add include guard.
4894 * linux-ppc-tdesc-init.h: Add include guard.
4895 * linux-low.h: Add include guard.
4896 * linux-aarch64-tdesc.h: Add include guard.
4897 * linux-aarch32-low.h: Add include guard.
4898 * inferiors.h: Rename include guard.
4899 * i387-fp.h: Rename include guard.
4900 * hostio.h: Rename include guard.
4901 * gdbthread.h: Rename include guard.
4902 * gdb_proc_service.h: Rename include guard.
4903 * event-loop.h: Rename include guard.
4904 * dll.h: Rename include guard.
4905 * debug.h: Rename include guard.
4906 * ax.h: Rename include guard.
4907
956cc47c
SN
49082018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4909
4910 PR gdb/23985
4911 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4912 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4913
a0707f3c
TT
49142019-01-25 Tom Tromey <tom@tromey.com>
4915
4916 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4917
0747795c
TT
49182019-01-25 Tom Tromey <tom@tromey.com>
4919
4920 * win32-low.c: Fix common/ includes.
4921 * win32-i386-low.c: Fix common/ includes.
4922 * tracepoint.c: Fix common/ includes.
4923 * thread-db.c: Fix common/ includes.
4924 * target.h: Fix common/ includes.
4925 * symbol.c: Fix common/ includes.
4926 * spu-low.c: Fix common/ includes.
4927 * server.h: Fix common/ includes.
4928 * server.c: Fix common/ includes.
4929 * remote-utils.c: Fix common/ includes.
4930 * regcache.h: Fix common/ includes.
4931 * regcache.c: Fix common/ includes.
4932 * nto-x86-low.c: Fix common/ includes.
4933 * notif.h: Fix common/ includes.
4934 * mem-break.h: Fix common/ includes.
4935 * lynx-low.c: Fix common/ includes.
4936 * lynx-i386-low.c: Fix common/ includes.
4937 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4938 * linux-x86-low.c: Fix common/ includes.
4939 * linux-low.c: Fix common/ includes.
4940 * inferiors.h: Fix common/ includes.
4941 * i387-fp.c: Fix common/ includes.
4942 * hostio.c: Fix common/ includes.
4943 * hostio-errno.c: Fix common/ includes.
4944 * gdbthread.h: Fix common/ includes.
4945 * gdbreplay.c: Fix common/ includes.
4946 * fork-child.c: Fix common/ includes.
4947 * event-loop.c: Fix common/ includes.
4948 * ax.c:
4949 (enum gdb_agent_op): Fix common/ includes.
4950
be6d4f74
TT
49512019-01-21 Tom Tromey <tom@tromey.com>
4952
4953 * tracepoint.c: Fix includes.
4954 * remote-utils.c: Fix includes.
4955 * linux-x86-low.c: Fix includes.
4956
66d91b39
JB
49572019-01-01 Joel Brobecker <brobecker@adacore.com>
4958
4959 * gdbreplay.c (gdbreplay_version): Update copyright year in
4960 version message.
4961 * server.c (gdbserver_version): Likewise.
4962
754e3168
AH
49632018-12-05 Alan Hayward <alan.hayward@arm.com>
4964
4965 * linux-low.c (add_lwp): Switch ordering.
4966
d105de22
TT
49672018-11-29 Tom Tromey <tom@tromey.com>
4968
4969 * win32-low.c (win32_join): Take pid, not process.
4970 * target.h (struct target_ops) <join>: Change argument type.
4971 (join_inferior): Change argument name.
4972 * spu-low.c (spu_join): Take pid, not process.
4973 * server.c (handle_detach): Preserve pid before destroying
4974 process.
4975 * lynx-low.c (lynx_join): Take pid, not process.
4976 * linux-low.c (linux_join): Take pid, not process.
4977
50138245
AH
49782018-11-23 Alan Hayward <alan.hayward@arm.com>
4979
4980 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4981 (aarch64_cannot_fetch_register): Likewise.
4982 (struct linux_target_ops): Update references.
4983
64f57f3d
PFC
49842018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4985
4986 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4987
8d619c01
EBM
49882018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4989
4990 * configure.srv (ipa_ppc_linux_regobj): Add
4991 powerpc-isa207-htm-vsx32l-ipa.o and
4992 powerpc-isa207-htm-vsx64l-ipa.o.
4993 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4994 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4995 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4996 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4997 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4998 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4999 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5000 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5001 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5002 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5003 (init_registers_powerpc_isa207_htm_vsx32l)
5004 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5005 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5006 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5007 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5008 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5009 (ppc_store_tm_ctarregset): New functions.
5010 (ppc_regsets): Add entries for HTM regsets.
5011 (ppc_arch_setup): Set htm in features struct when needed. Set
5012 sizes for the HTM regsets.
5013 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5014 (initialize_low_arch): Call
5015 init_registers_powerpc_isa207_htm_vsx32l and
5016 init_registers_powerpc_isa207_htm_vsx64l.
5017 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5018 PPC_TDESC_ISA207_HTM_VSX.
5019 (initialize_low_tracepoint): Call
5020 init_registers_powerpc_isa207_htm_vsx32l and
5021 init_registers_powerpc_isa207_htm_vsx64l.
5022
232bfb86
EBM
50232018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5024
5025 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5026 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5027 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5028 (ppc_store_pmuregset): New functions.
5029 (ppc_regsets): Add entries for ebb and pmu regsets.
5030 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5031 pmu regsets are available. Set sizes for these regsets.
5032
f2cf6173
EBM
50332018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5034
5035 * configure.srv (ipa_ppc_linux_regobj): Add
5036 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5037 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5038 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5039 rs6000/powerpc-isa207-vsx32l.xml, and
5040 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5041 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5042 <PPC_TDESC_ISA207_VSX>: New enum value.
5043 (init_registers_powerpc_isa207_vsx32l): Declare.
5044 (init_registers_powerpc_isa207_vsx64l): Declare.
5045 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5046 (ppc_store_tarregset): New function.
5047 (ppc_regsets): Add entry for the TAR regset.
5048 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5049 size for the TAR regsets.
5050 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5051 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5052 and init_registers_powerpc_isa207_vsx64l.
5053 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5054 (initialize_low_tracepoint): Call
5055 init_registers_powerpc_isa207_vsx32l and
5056 init_registers_powerpc_isa207_vsx64l.
5057
7ca18ed6
EBM
50582018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5059 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5060
5061 * configure.srv (ipa_ppc_linux_regobj): Add
5062 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5063 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5064 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5065 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5066 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5067 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5068 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5069 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5070 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5071 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5072 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5073 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5074 (ppc_hwcap): Add comment.
5075 (ppc_hwcap2): New global.
5076 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5077 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5078 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5079 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5080 when needed. Set sizes for the the DSCR and PPR regsets.
5081 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5082 (initialize_low_arch): Call
5083 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5084 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5085 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5086 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5087 (initialize_low_tracepoint): Call
5088 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5089 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5090
5c849b22
PFC
50912018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5092
5093 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5094
8ecfd7bd
SDJ
50952018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5096 Simon Marchi <simark@simark.ca>
5097
5098 * acinclude.m4: Include "../selftest.m4".
5099 * configure: Regenerate.
5100 * configure.ac: Use "GDB_AC_SELFTEST".
5101 * configure.srv: Use "$enable_unittests" instead of
5102 "$development" when checking whether unit tests have been
5103 enabled.
5104 * server.c (captured_main): Update message informing that
5105 selftests have been disabled.
5106
96643e35
TT
51072018-10-04 Tom Tromey <tom@tromey.com>
5108
5109 * configure: Rebuild.
5110
da4ae14a
TT
51112018-10-04 Tom Tromey <tom@tromey.com>
5112
5113 * server.c (handle_status): Rename inner "thread".
5114 (process_serial_event): Declare "res" in 'm' case.
5115 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5116 (iterate_over_lwps): Rename inner "thread".
5117 (linux_qxfer_libraries_svr4): Rename inner "len".
5118 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5119
7c619dbd
GB
51202018-10-01 Gary Benson <gbenson@redhat.com>
5121
5122 * gdb_proc_service.h: Moved common code to
5123 common/gdb_proc_service.h.
5124
3795e814
GB
51252018-10-01 Gary Benson <gbenson@redhat.com>
5126
5127 * gdb_proc_service.h: Synchronize comments and whitespace with
5128 GDB's version of this file.
5129
49b036f1
TT
51302018-09-25 Tom Tromey <tom@tromey.com>
5131
5132 * configure: Rebuild.
5133 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5134
8ff03f0b
SM
51352018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5136
5137 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5138 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5139 ($(IPA_LIB)): Sort IPA_OBJS.
5140
a1cd91dc
SM
51412018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5142
5143 * Makefile.in: Remove references to $(ADD_DEPS).
5144
752312ba
TT
51452018-09-16 Tom Tromey <tom@tromey.com>
5146
5147 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5148 variables.
5149 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5150 variables.
5151
f1628857
TT
51522018-09-05 Tom Tromey <tom@tromey.com>
5153
5154 * configure: Rebuild.
5155
ad202fcc
SM
51562018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5157
5158 PR build/23399
5159 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5160
d3d8724a
TT
51612018-08-27 Tom Tromey <tom@tromey.com>
5162
5163 PR build/23087:
5164 * configure: Rebuild.
5165
b4f183d2
TT
51662018-08-27 Tom Tromey <tom@tromey.com>
5167
5168 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5169 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5170 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5171 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5172 (s390x_emit_stack_adjust): Add casts to unsigned char.
5173
4e2aa472
SM
51742018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5175
5176 PR gdb/23374
5177 PR gdb/23375
5178 * server.h (struct client_state) <disable_randomization>:
5179 Initialize to 1.
5180
cf4088a9
SM
51812018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5182
5183 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5184 variable.
5185 (mips_supply_ptrace_register): Likewise.
5186
a0de763e
TT
51872018-07-22 Tom Tromey <tom@tromey.com>
5188
5189 * configure: Rebuild.
5190
b0a7723d
TT
51912018-07-22 Tom Tromey <tom@tromey.com>
5192
5193 * win32-low.c (win32_create_inferior): Remove unused variables.
5194 * gdbreplay.c (remote_open): Remove unused variable.
5195 * remote-utils.c (remote_prepare): Remove unused variable.
5196 * x86-tdesc.h (X86_TDESC_H): Define.
5197 (amd64_expedite_regs): Define conditionally.
5198 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5199 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5200 * remote-utils.c (readchar): Remove unused variable.
5201
a780ef4f
PA
52022018-07-13 Pedro Alves <palves@redhat.com>
5203
5204 * linux-low.c (linux_kill): Change parameter to process_info
5205 pointer instead of pid. Adjust.
5206 * lynx-low.c (lynx_kill): Likewise.
5207 * nto-low.c (nto_kill): Likewise.
5208 * spu-low.c (spu_kill): Likewise.
5209 * win32-low.c (win32_kill): Likewise.
5210 * server.c (handle_v_kill, kill_inferior_callback)
5211 (detach_or_kill_for_exit): Adjust.
5212 * target.c (kill_inferior): Change parameter to process_info
5213 pointer instead of pid. Adjust.
5214 * target.h (struct target_ops) <kill>: Change parameter to
5215 process_info pointer instead of pid. Adjust all implementations
5216 and callers.
5217 (kill_inferior): Likewise.
5218
ef2ddb33
PA
52192018-07-13 Pedro Alves <palves@redhat.com>
5220
5221 * linux-low.c (linux_detach, linux_join): Change parameter to
5222 process_info pointer instead of pid. Adjust.
5223 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5224 * nto-low.c (nto_detach): Likewise.
5225 * spu-low.c (spu_detach, spu_join): Likewise.
5226 * win32-low.c (win32_detach, win32_join): Likewise.
5227 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5228 * target.h (struct target_ops) <detach, join>: Change parameter to
5229 process_info pointer instead of pid. Adjust all implementations
5230 and callers.
5231 (detach_inferior, join_inferior): Rename 'pid' parameter to
5232 'proc'.
5233
c7ab0aef
SDJ
52342018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5235 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 Paul Fertser <fercerpav@gmail.com>
5237 Tsutomu Seki <sekiriki@gmail.com>
5238
5239 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5240 (OBS): Add 'common/netstuff.o'.
5241 (GDBREPLAY_OBS): Likewise.
5242 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5243 (remote_open): Implement support for IPv6
5244 connections.
5245 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5246 and 'wspiapi.h'.
5247 (handle_accept_event): Accept connections from IPv6 sources.
5248 (remote_prepare): Handle IPv6-style hostnames; implement
5249 support for IPv6 connections.
5250 (remote_open): Implement support for printing connections from
5251 IPv6 sources.
5252
31445d10
PA
52532018-07-11 Pedro Alves <palves@redhat.com>
5254
5255 PR gdb/23377
5256 * mem-break.c (any_persistent_commands): Add process_info
5257 parameter and use it instead of relying on the current process.
5258 Change return type to bool.
5259 * mem-break.h (any_persistent_commands): Add process_info
5260 parameter and change return type to bool.
5261 * server.c (handle_detach): Remove require_running_or_return call.
5262 Look up the process_info for the process we're about to detach.
5263 If not found, return back error to GDB. Adjust
5264 any_persistent_commands call to pass down a process pointer.
5265
cb197132
PA
52662018-07-11 Pedro Alves <palves@redhat.com>
5267
5268 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5269 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5270 instead of collect_register_by_name.
5271 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5272 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5273
1b919490
VB
52742018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5275 Pedro Alves <palves@redhat.com>
5276
5277 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5278
d7e15655
TT
52792018-07-03 Tom Tromey <tom@tromey.com>
5280
5281 * linux-low.c: Update.
5282 * lynx-low.c: Update.
5283 * mem-break.c: Update.
5284 * nto-low.c: Update.
5285 * remote-utils.c: Update.
5286 * server.c: Update.
5287 * spu-low.c: Update.
5288 * target.c: Update.
5289 * win32-low.c: Update.
5290
26a57c92
TT
52912018-07-03 Tom Tromey <tom@tromey.com>
5292
5293 * server.c: Update.
5294
0e998d96
TT
52952018-07-03 Tom Tromey <tom@tromey.com>
5296
5297 * linux-low.c: Update.
5298
cc6bcb54
TT
52992018-07-03 Tom Tromey <tom@tromey.com>
5300
5301 * target.c: Update.
5302
e38504b3
TT
53032018-07-03 Tom Tromey <tom@tromey.com>
5304
5305 * linux-low.c: Update.
5306 * linux-mips-low.c: Update.
5307 * lynx-low.c: Update.
5308 * nto-low.c: Update.
5309 * remote-utils.c: Update.
5310 * server.c: Update.
5311 * spu-low.c: Update.
5312 * target.c: Update.
5313 * thread-db.c: Update.
5314
e99b03dc
TT
53152018-07-03 Tom Tromey <tom@tromey.com>
5316
5317 * linux-low.c: Update.
5318 * linux-mips-low.c: Update.
5319 * lynx-low.c: Update.
5320 * mem-break.c: Update.
5321 * nto-low.c: Update.
5322 * remote-utils.c: Update.
5323 * server.c: Update.
5324 * spu-low.c: Update.
5325 * target.c: Update.
5326 * tracepoint.c: Update.
5327
f2907e49
TT
53282018-07-03 Tom Tromey <tom@tromey.com>
5329
5330 * linux-low.c: Update.
5331 * linux-ppc-low.c: Update.
5332 * linux-x86-low.c: Update.
5333 * proc-service.c: Update.
5334 * server.c: Update.
5335 * spu-low.c: Update.
5336 * thread-db.c: Update.
5337 * win32-low.c: Update.
5338
fd79271b
TT
53392018-07-03 Tom Tromey <tom@tromey.com>
5340
5341 * linux-low.c: Update.
5342 * lynx-low.c: Update.
5343 * nto-low.c: Update.
5344 * remote-utils.c: Update.
5345 * spu-low.c: Update.
5346 * thread-db.c: Update.
5347 * win32-low.c: Update.
5348
c0867626
SDJ
53492018-06-29 Joel Brobecker <brobecker@adacore.com>
5350
5351 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5352 parameter in call to 'amd64_create_target_description'.
5353
2512d7ef
JK
53542018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5355
5356 * x86-tdesc.h: Remove executable permission flag.
5357
d0ac1c44
SM
53582018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5359
5360 * configure.ac: Remove AC_PREREQ, add missing quoting.
5361 * configure: Re-generate.
5362 * config.in: Re-generate.
5363 * aclocal.m4: Re-generate.
5364
c4eb05ff
SM
53652018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5366
5367 * tracepoint.h (current_traceframe): Remove declaration.
5368
02895270
AH
53692018-06-18 Alan Hayward <alan.hayward@arm.com>
5370
5371 * linux-aarch64-low.c (is_sve_tdesc): New function.
5372 (aarch64_sve_regs_copy_to_regcache): Likewise.
5373 (aarch64_sve_regs_copy_from_regcache): Likewise.
5374 (aarch64_regs_info): Add SVE checks.
5375 (initialize_low_arch): Initialize SVE.
5376
e9902bfc
AH
53772018-06-18 Alan Hayward <alan.hayward@arm.com>
5378
5379 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5380
fefa175e
AH
53812018-06-11 Alan Hayward <alan.hayward@arm.com>
5382
5383 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5384 (initialize_low_tracepoint): Likewise
5385 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5386 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5387 param.
5388 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5389 checks.
5390 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5391
b91ad3ff
AH
53922018-06-11 Alan Hayward <alan.hayward@arm.com>
5393
5394 * server.h (PBUFSIZ): Increase size
5395
f868386e
AH
53962018-06-11 Alan Hayward <alan.hayward@arm.com>
5397
5398 * regcache.c (regcache::raw_compare): New function.
5399 * regcache.h (regcache::raw_compare): New declaration.
5400
9c861883
AH
54012018-06-11 Alan Hayward <alan.hayward@arm.com>
5402
5403 * regcache.c (new_register_cache): Use new.
5404 (free_register_cache): Use delete.
5405 (register_data): Use const.
5406 (supply_register): Move body inside regcache.
5407 (regcache::raw_supply): New override function.
5408 (collect_register): Move body inside regcache.
5409 (regcache::raw_collect): New override function.
5410 (regcache::get_register_status): New override function.
5411 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5412
40591844
TT
54132018-06-09 Tom Tromey <tom@tromey.com>
5414
5415 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5416 declare queue.
5417 (event_queue): Use std::queue.
5418 (gdb_event_xfree): Remove.
5419 (initialize_event_loop, process_event, wait_for_event): Update.
5420
6341380d
SC
54212018-06-08 Stan Cox <scox@redhat.com>
5422
5423 * win32-low.c (win32_create_inferior): last_ptid and last_status
5424 moved to client_state.
5425
03349c93
PA
54262018-06-08 Pedro Alves <palves@redhat.com>
5427
5428 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5429 common/common-exceptions.o, common/common-utils.o,
5430 common/errors.o, common/print-utils.o and utils.o.
5431 * gdbreplay.c: Include "common-defs.h" instead of the two
5432 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5433 string.h or alloca.h.
5434 (perror_with_name): Delete.
5435 (remote_open): Use xstrdup instead of strdup.
5436 (main): Rename to ...
5437 (captured_main): ... this.
5438 (main): New.
5439
8dcc53b3
TT
54402018-06-08 Tom Tromey <tom@tromey.com>
5441
5442 * linux-low.c (linux_low_read_btrace): Update.
5443
c12a5089
SC
54442018-06-04 Stan Cox <scox@redhat.com>
5445
5446 * server.h (struct client_state): New.
5447 * server.c (cont_thread, general_thread, multi_process)
5448 (report_fork_events, report_vfork_events, report_exec_events)
5449 (report_thread_events, swbreak_feature, hwbreak_feature)
5450 (vCont_supported, disable_randomization, pass_signals)
5451 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5452 Moved to client_state.
5453 * remote-utils.c (remote_debug, noack_mode)
5454 (transport_is_reliable): Moved to client_state.
5455 * tracepoint.c (current_traceframe): Moved to client_state.
5456
5457 Update all callers.
5458 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5459 linux-low.c, remote-utils.h, target.c: Use client_state.
5460
122394f1
AH
54612018-05-31 Alan Hayward <alan.hayward@arm.com>
5462
5463 * configure.srv: Add new c/h file.
5464
95228a0d
AH
54652018-05-31 Alan Hayward <alan.hayward@arm.com>
5466
5467 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5468 null VQ.
5469
d8dab6c3
MR
54702018-05-25 Maciej W. Rozycki <macro@mips.com>
5471
5472 * gdb.arch/mips-fpregset-core.exp: New test.
5473 * gdb.arch/mips-fpregset-core.c: New test source.
5474
81e25b7c
EK
54752018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5476
5477 PR server/23198
5478 * hostio.c (require_int): Do not report overflow for integers
5479 between 0xfffffff and 0x7fffffff.
5480
7e947ad3
MR
54812018-05-22 Maciej W. Rozycki <macro@mips.com>
5482
5483 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5484 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5485 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5486 functions.
5487 (the_low_target): Wire them.
5488
1d75a658
PFC
54892018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5490
5491 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5492 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5493 mode. Call collect_register_by_name with vscr using
5494 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5495 (ppc_store_vrregset): Add and set vscr_offset variable as in
5496 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5497 vscr_offset.
5498
d078308a
PFC
54992018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5500
5501 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5502 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5503 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5504
7273b5fc
PFC
55052018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5506
5507 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5508 (ppc_store_vsxregset): Likewise.
5509 (ppc_fill_vrregset): Likewise.
5510 (ppc_store_vrregset): Likewise.
5511 (ppc_fill_evrregset): Likewise.
5512 (ppc_store_evrregset): Likewise.
5513 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5514 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5515 needed.
5516
2e077f5e
PFC
55172018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5518
5519 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5520 wordsize of the inferior. Call ppc_linux_target_wordsize.
5521
bd64614e
PFC
55222018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5523
5524 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5525 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5526 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5527 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5528 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5529 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5530 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5531 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5532 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5533 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5534 (tdesc_powerpc_e500l): Remove.
5535 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5536 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5537 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5538 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5539 linux-ppc-tdesc.h.
5540 (ppc_arch_setup): Remove target description matching code. Fill a
5541 ppc_linux_features struct and call ppc_linux_match_description
5542 with it.
5543
75d74cca
MR
55442018-05-22 Maciej W. Rozycki <macro@mips.com>
5545
5546 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5547 width of the requested register exceeds the width of the
5548 `ptrace' data type.
5549 (mips_cannot_store_register): Likewise.
5550
e4439e43
MR
55512018-05-21 Maciej W. Rozycki <macro@mips.com>
5552
5553 * linux-mips-low.c (mips_fetch_register): New function. Update
5554 preceding comment.
5555 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5556 (the_low_target): Wire `mips_fetch_register'.
5557
55271bf9
JB
55582018-05-10 Joel Brobecker <brobecker@adacore.com>
5559
5560 * lynx-i386-low.c (LYNXOS_178): New macro.
5561 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5562 the layout on LynxOS-178.
5563 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5564 handle floating point registers that are not supported by
5565 LynxOS-178.
5566
1a34f210
TT
55672018-05-10 Tom Tromey <tom@tromey.com>
5568
5569 * configure: Rebuild.
5570
190852c8
JB
55712018-05-10 Joel Brobecker <brobecker@adacore.com>
5572
5573 PR server/23158:
5574 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5575 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5576 Use it to set the expedite_regs field in the given tdesc.
5577 * x86-tdesc.h: New file.
5578 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5579 Adjust following the addition of the new expedite_regs parameter
5580 to init_target_desc.
5581 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5582 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5583 (i386_linux_read_description, amd64_linux_read_description):
5584 Adjust following the addition of the new expedite_regs parameter
5585 to init_target_desc.
5586 * lynx-i386-low.c: #include "x86-tdesc.h".
5587 (lynx_i386_arch_setup): Adjust following the addition of the new
5588 expedite_regs parameter to init_target_desc.
5589 * nto-x86-low.c: #include "x86-tdesc.h".
5590 (nto_x86_arch_setup): Adjust following the addition of the new
5591 expedite_regs parameter to init_target_desc.
5592 * win32-i386-low.c: #include "x86-tdesc.h".
5593 (i386_arch_setup): Adjust following the addition of the new
5594 expedite_regs parameter to init_target_desc.
5595
7dbac825
JB
55962018-05-10 Joel Brobecker <brobecker@adacore.com>
5597
5598 PR server/23158:
5599 * win32-low.c (win32_create_inferior): Add call to my_wait
5600 setting last_status global.
5601
906994d9
JB
56022018-05-10 Joel Brobecker <brobecker@adacore.com>
5603
5604 PR server/23158:
5605 * win32-low.c (create_process): Only call gdb_tilde_expand if
5606 inferior_cwd is not NULL.
5607
8ee22052
AB
56082018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5609
5610 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5611 registers to the cache if their values have changed.
5612 (i387_xsave_to_cache): Provide default values for x87 control
5613 registers when these features are available, but disabled.
5614 * regcache.c (supply_register_by_name_zeroed): New function.
5615 * regcache.h (supply_register_by_name_zeroed): Declare new
5616 function.
5617
aff689d3
TT
56182018-05-07 Tom Tromey <tom@tromey.com>
5619
5620 * configure: Rebuild.
5621
85e26832
TT
56222018-05-04 Tom Tromey <tom@tromey.com>
5623
5624 * configure: Rebuild.
5625
a3b60e45
JK
56262018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5627 Pedro Alves <palves@redhat.com>
5628
5629 * linux-aarch64-low.c (aarch64_stopped_data_address):
5630 Likewise.
5631
632e107b
TT
56322018-04-27 Tom Tromey <tom@tromey.com>
5633
5634 * configure: Rebuild.
5635
458412c3
TT
56362018-04-23 Tom Tromey <tom@tromey.com>
5637
5638 * configure: Rebuild.
5639
f31c089e
SM
56402018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * Makefile.in (depcomp): Add "..".
5643 (all_deps_files): New and use it.
5644
b319b098
AH
56452018-04-18 Alan Hayward <alan.hayward@arm.com>
5646
5647 * configure.srv (aarch64*-*-linux*): Don't include xml.
5648 (i[34567]86-*-cygwin*): Likewise.
5649 (i[34567]86-*-linux*): Likewise.
5650 (i[34567]86-*-lynxos*): Likewise.
5651 (i[34567]86-*-mingw32ce*): Likewise.
5652 (i[34567]86-*-mingw*): Likewise.
5653 (i[34567]86-*-nto*): Likewise.
5654 (tic6x-*-uclinux): Likewise.
5655 (x86_64-*-linux*): Likewise.
5656 (x86_64-*-mingw*): Likewise.
5657 (x86_64-*-cygwin*): Likewise.
5658
3b74854b
AH
56592018-04-18 Alan Hayward <alan.hayward@arm.com>
5660
5661 * tdesc.c: Remove xml parameter.
5662
e98577a9
AH
56632018-04-18 Alan Hayward <alan.hayward@arm.com>
5664
5665 * server.c (get_features_xml): Remove cast.
5666 * tdesc.c (void target_desc::accept): Fill in function.
5667 (tdesc_get_features_xml): Remove old xml creation.
5668 (print_xml_feature::visit_pre): Add xml vistor.
5669 * tdesc.h (struct target_desc): Make xmltarget mutable.
5670 (tdesc_get_features_xml): Remove declaration.
5671
d278f585
AH
56722018-04-18 Alan Hayward <alan.hayward@arm.com>
5673
5674 * tdesc.c (tdesc_architecture_name): Add new function.
5675 (tdesc_osabi_name): Likewise.
5676 (tdesc_get_features_xml): Use new functions.
5677
eee8a18d
AH
56782018-04-18 Alan Hayward <alan.hayward@arm.com>
5679
5680 * tdesc.c (tdesc_create_flags): Remove.
5681 (tdesc_add_flag): Likewise.
5682 (tdesc_named_type): Likewise.
5683 (tdesc_create_union): Likewise.
5684 (tdesc_create_struct): Likewise.
5685 (tdesc_create_vector): Likewise.
5686 (tdesc_add_bitfield): Likewise.
5687 (tdesc_add_field): Likewise.
5688 (tdesc_set_struct_size): Likewise.
5689
82ec9bc7
AH
56902018-04-18 Alan Hayward <alan.hayward@arm.com>
5691
5692 * tdesc.c (~target_desc): Remove implictly deleted items.
5693 (init_target_desc): Iterate all features.
5694 (tdesc_get_features_xml): Use vector.
5695 (tdesc_create_feature): Create feature.
5696 * tdesc.h (tdesc_feature) Remove
5697 (target_desc): Add features.
5698
ea3e7d71
AH
56992018-04-18 Alan Hayward <alan.hayward@arm.com>
5700
5701 * Makefile.in: Add common/tdesc.c
5702 * tdesc.c (init_target_desc): init all reg_defs from register
5703 vector.
5704 (tdesc_create_reg): Create tdesc_reg.
5705 * tdesc.h (tdesc_feature): Add register vector.
5706
17d08cd4
SM
57072018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5708
5709 * tdesc.h (struct target_desc) <features>: Change type to
5710 std::vector<std::string>.
5711 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5712 changes.
5713 (tdesc_get_features_xml): Likewise.
5714 (tdesc_create_feature): Likewise.
5715
5cd3e386
AH
57162018-03-26 Alan Hayward <alan.hayward@arm.com>
5717
5718 * regcache.c (find_register_by_number): Return a ref.
5719 (find_regno): Use references.
5720 (register_size): Likewise.
5721 (register_data): Likewise.
5722 * tdesc.c (target_desc::~target_desc): Remove free calls.
5723 (target_desc::operator==): Use std::vector compare.
5724 (init_target_desc): Use reference.
5725 (tdesc_create_reg): Use reg constructors.
5726 * tdesc.h (struct target_desc): Replace pointer with object.
5727
dff7492c
AH
57282018-03-23 Alan Hayward <alan.hayward@arm.com>
5729
5730 * regcache.c (find_register_by_number): Make static.
5731 (find_regno): Use find_register_by_number
5732 * regcache.h (struct reg): Remove declaration.
5733
d80e5242
AH
57342018-03-23 Alan Hayward <alan.hayward@arm.com>
5735
5736 * tdesc.c (target_desc::~target_desc): Move to here.
5737 (target_desc::operator==): Likewise.
5738 * tdesc.h (target_desc::~target_desc): Move from here.
5739 (target_desc::operator==): Likewise.
5740
f69c5afb
AA
57412018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5742
5743 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5744
ce29f843
AA
57452018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5746
5747 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5748 S390_TDESC_GS.
5749 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5750 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5751 and init_registers_s390_gs_linux64.
5752
c49bd90b
AA
57532018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5754
5755 * linux-s390-low.c (s390_fill_gs): Remove function.
5756 (s390_fill_gsbc): Remove function.
5757 (s390_regsets): Set fill functions for the guarded storage regsets
5758 to NULL.
5759
7edb9bd3
AA
57602018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5761
5762 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5763 the word size. Add comment.
5764 (s390_get_wordsize): New function.
5765 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5766 pswm with it. Instead, use s390_get_wordsize to determine the
5767 word size first and derive the correct tdesc from that directly.
5768
39be3c7e
SM
57692018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * Makefile.in: Include silent-rules.mk.
5772 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5773 (COMPILE): Add ECHO_CXX.
5774 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5775 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5776 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5777 (version-generated.c): Add ECHO_GEN.
5778 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5779 (IPAGENT_COMPILE): Add ECHO_CXX.
5780 (%-generated.c): Add ECHO_REGDAT.
5781
3ae9ce5d
TT
57822018-03-14 Tom Tromey <tom@tromey.com>
5783
5784 PR cli/14977:
5785 * ax.c (ax_printf): Special case for NULL.
5786
e6a58aa8
SM
57872018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5788
5789 * linux-low.c (linux_qxfer_libraries_svr4): Use
5790 xml_escape_text_append.
5791
f6e8a41e
SM
57922018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5795
b9671caf
SM
57962018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5797
5798 * server.c (handle_general_set): Remove unnecessary xstrdup.
5799
e80aaf61
SM
58002018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5801
5802 * server.c (parse_debug_format_options): Adjust to
5803 delim_string_to_char_ptr_vec changes.
5804 * thread-db.c (thread_db_load_search): Adjust to
5805 dirnames_to_char_ptr_vec changes.
5806
b1223e78
MM
58072018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5808
5809 * target.h (target_enable_btrace, target_disable_btrace)
5810 (target_read_btrace, target_read_btrace_conf): Turn macro into
5811 inline function. Throw error if target method is not defined.
5812 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5813 check for btrace target method. Be prepared to handle exceptions
5814 from btrace target methods.
5815
81561546
SDJ
58162018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5817
5818 * server.c (captured_main): Change order of error message printed
5819 when the current working directory cannot be found.
5820
25e3c82c
SDJ
58212018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5822
5823 * server.c: Include "filenames.h" and "pathstuff.h".
5824 (program_name): Delete variable.
5825 (program_path): New anonymous class.
5826 (get_exec_wrapper): Use "program_path" instead of
5827 "program_name".
5828 (handle_v_run): Likewise.
5829 (captured_main): Likewise.
5830 (process_serial_event): Likewise.
5831
b4987c95
SDJ
58322018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5833
5834 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5835 (OBJS): Add "pathstuff.o".
5836 * server.c (current_directory): New global variable.
5837 (captured_main): Initialize "current_directory".
5838
f46cd62a
AH
58392018-02-26 Alan Hayward <alan.hayward@arm.com>
5840
5841 * tdesc.c: Use common/tdesc.h.
5842 * tdesc.h: Likewise.
5843
a543c5ca
AH
58442018-02-20 Alan Hayward <alan.hayward@arm.com>
5845 Simon Marchi <simon.marchi@ericsson.com>
5846
5847 * Makefile.in: Switch order of make rules.
5848
b5884fa7
AH
58492018-02-19 Alan Hayward <alan.hayward@arm.com>
5850
5851 * Makefile.in: Add common directory in build.
5852 * configure.ac: Add common reference.
5853 * configure: Regenerate.
5854
de6242d3
MM
58552018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5856
5857 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5858 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5859 * spu-low.c (spu_target_ops): Likewise.
5860 * win32-low.c (win32_target_ops): Likewise.
5861 * server.c (supported_btrace_packets): Report packets unconditionally.
5862 * target.h (target_ops) <supports_btrace>: Remove.
5863 (target_supports_btrace): Remove.
5864
9ee23a85
MM
58652018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5866
5867 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5868 (handle_btrace_disable): Change return type to void. Use exceptions
5869 to report errors.
5870 (handle_btrace_general_set): Catch exception and copy message to
5871 return message.
5872
8ce47547
TT
58732018-02-08 Tom Tromey <tom@tromey.com>
5874
5875 * linux-low.c (install_software_single_step_breakpoints): Use
5876 make_scoped_restore.
5877 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5878 (do_restore_current_thread_cleanup): Remove.
5879 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5880 declare.
5881
45dd3607
TT
58822018-02-08 Tom Tromey <tom@tromey.com>
5883
5884 * mem-break.c (set_raw_breakpoint_at): Use
5885 gdb::unique_xmalloc_ptr.
5886
e671cd59
PA
58872018-01-30 Pedro Alves <palves@redhat.com>
5888
5889 PR gdb/13211
5890 * target.c (target_terminal::terminal_state): Rename to ...
5891 (target_terminal::m_terminal_state): ... this.
5892
a0aad537
JC
58932018-01-19 James Clarke <jrtc27@jrtc27.com>
5894
5895 * linux-low.c (handle_extended_wait): Surround call to
5896 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5897
4d9b86e1
SM
58982018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5899
5900 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5901 linux_ptrace_attach_fail_reason_string now returning an
5902 std::string.
5903 (linux_attach): Likewise.
5904 * thread-db.c (attach_thread): Likewise.
5905
f517c180
EA
59062018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5907
5908 PR gdb/21559
5909 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5910 checking for fs_base/gs_base fields in struct user_regs_struct.
5911 * configure: Regenerate.
5912
9a70f35c
YQ
59132018-01-16 Yao Qi <yao.qi@linaro.org>
5914
5915 PR gdb/18749
5916 * linux-low.c (fetch_register): Call supply_register instead of
5917 error.
5918
605fd3c6
YQ
59192018-01-08 Yao Qi <yao.qi@linaro.org>
5920 Simon Marchi <simon.marchi@ericsson.com>
5921
5922 * Makefile.in (OBS): Remove selftest.o.
5923 * configure.ac: Set srv_selftest_objs if $development is true.
5924 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5925 * configure: Re-generated.
5926 * server.c (captured_main): Wrap variable selftest_filter with
5927 GDB_SELF_TEST.
5928
2cc05030
SM
59292018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * server.c (parse_debug_format_options): Return std::string.
5932 (handle_monitor_command, captured_main): Adjust.
5933
e379cee6
PA
59342018-01-05 Pedro Alves <palves@redhat.com>
5935
5936 PR gdb/18653
5937 * server.c (captured_main): Pass quiet=false to
5938 save_original_signals_state.
5939
82e1e79a
JB
59402018-01-01 Joel Brobecker <brobecker@adacore.com>
5941
5942 * gdbreplay.c (gdbreplay_version): Update copyright year in
5943 version message.
5944 * server.c (gdbserver_version): Likewise.
5945
8e481c3b
TT
59462017-12-08 Tom Tromey <tom@tromey.com>
5947
5948 * ax.c (ax_printf): Update.
5949
a8806230
YQ
59502017-12-07 Yao Qi <yao.qi@linaro.org>
5951
5952 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5953 aarch64_linux_read_description.
5954 * linux-amd64-ipa.c (idx2mask): New array.
5955 (get_ipa_tdesc): Move idx2mask out.
5956 (initialize_low_tracepoint): Initialize target descriptions.
5957 * linux-i386-ipa.c (idx2mask): New array.
5958 (get_ipa_tdesc): Move idx2mask out.
5959 (initialize_low_tracepoint): Initialize target descriptions.
5960
d4a0e8b5
SM
59612017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * tdesc.c (struct tdesc_type): Change return type.
5964 (tdesc_add_flag): Change parameter type.
5965 (tdesc_add_bitfield): Likewise.
5966 (tdesc_add_field): Likewise.
5967 (tdesc_set_struct_size): Likewise.
5968
798a7429
SM
59692017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5970
5971 * regcache.c (registers_to_string): Remove unused variable.
5972
c0e15c9b
SM
59732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * inferiors.c (for_each_inferior_with_data): Remove.
5976 * inferiors.h (for_each_inferior_with_data): Remove.
5977 * server.c (handle_qxfer_threads_worker): Change parameter type.
5978 (handle_qxfer_threads_proper): Use for_each_thread.
5979
f0045347
SM
59802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * inferiors.c (for_each_inferior): Remove.
5983 (clear_inferiors): Use for_each_thread.
5984 * inferiors.h (for_each_inferior): Remove.
5985 * linux-low.c (linux_wait_for_event_filtered): Use
5986 for_each_thread.
5987 (linux_stabilize_threads): Likewise.
5988 * regcache.c (regcache_release): Likewise.
5989 * server.c (gdb_wants_all_threads_stopped): Likewise.
5990 (clear_pending_status_callback): Remove.
5991 (handle_status): Use for_each_thread.
5992 (captured_main): Likewise.
5993 * win32-low.c (child_init_thread_list): Likewise.
5994 (win32_clear_inferiors): Likewise.
5995 (fake_breakpoint_event): Likewise.
5996
9521758b
SM
59972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5998
5999 * inferiors.h (find_inferior): Remove.
6000 * inferiors.c (find_inferior): Remove.
6001
8f86d7aa
SM
60022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * linux-low.c (resume_status_pending_p): Update comment.
6005 (need_step_over_p): Update comment.
6006
e2b44075
SM
60072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * linux-low.c (proceed_one_lwp): Return void, change parameter
6010 type.
6011 (unsuspend_and_proceed_one_lwp): Likewise.
6012 (proceed_all_lwps): Use for_each_thread.
6013 (unstop_all_lwps): Likewise.
6014
c80825ff
SM
60152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * linux-low.c (linux_resume_one_thread): Return void, take
6018 parameter directly.
6019 (linux_resume): Use for_each_thread.
6020
df3e4dbe
SM
60212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6022
6023 * linux-low.c (send_sigstop_callback): Return void, change
6024 parameter type. Rename to...
6025 (send_sigstop): ... this.
6026 (suspend_and_send_sigstop_callback): Return void, change parameter
6027 type. Rename to...
6028 (suspend_and_send_sigstop): ... this.
6029 (stop_all_lwps): Use for_each_thread.
6030
5a6b0a41
SM
60312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * linux-low.c (lwp_running): Return bool, remove unused
6034 argument.
6035 (linux_stabilize_threads): Use find_thread.
6036
39a64da5
SM
60372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * linux-low.c (select_singlestep_lwp_callback): Remove.
6040 (count_events_callback): Remove.
6041 (select_event_lwp_callback): Remove.
6042 (select_event_lwp): Use find_thread/for_each_thread.
6043
a1385b7b
SM
60442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * linux-low.c (not_stopped_callback): Return bool, take filter
6047 argument directly.
6048 (linux_wait_for_event_filtered): Use find_thread.
6049 (linux_wait_1): Likewise.
6050
454296a2
SM
60512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * linux-low.c (same_lwp): Remove.
6054 (find_lwp_pid): Use find_thread.
6055
6b2a85da
SM
60562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * linux-low.c (delete_lwp_callback): Remove.
6059 (linux_mourn): Use for_each_thread.
6060
798a38e8
SM
60612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6064 args parameter, don't check for pid.
6065 (linux_detach): Use for_each_thread.
6066
e4eb0dec
SM
60672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * linux-low.c (struct counter): Remove.
6070 (second_thread_of_pid_p): Remove.
6071 (last_thread_of_process_p): Use find_thread.
6072
83e1b6c1
SM
60732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6074
6075 * inferiors.c (find_inferior_in_random): Remove.
6076 * inferiors.h (find_inferior_in_random): Remove.
6077 * linux-low.c (status_pending_p_callback): Return bool, accept
6078 parameter ptid directly.
6079 (linux_wait_for_event_filtered): Use find_thread_in_random.
6080 (linux_wait_1): Likewise.
6081
8dc7b443
SM
60822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * inferiors.c (find_inferior_id): Remove.
6085 (find_thread_ptid): Move implemention from find_inferior_id to
6086 here.
6087 * inferiors.h (find_inferior_id): Remove.
6088 * server.c (handle_status): Use find_thread_ptid.
6089 (process_serial_event): Likewise.
6090 * thread-db.c (find_one_thread): Likewise.
6091 (thread_db_thread_handle): Likewise.
6092 * win32-low.c (thread_rec): Likewise.
6093 (child_delete_thread): Likewise.
6094 (win32_thread_alive): Likewise.
6095 (get_child_debug_event): Likewise.
6096
da25033c
SM
60972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6098
6099 * linux-mips-low.c (update_watch_registers_callback): Return
6100 void, remove pid_p parameter, don't check for pid.
6101 (mips_insert_point, mips_remove_point): Use for_each_thread.
6102
c91bb56b
SM
61032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * lynx.low (lynx_delete_thread_callback): Remove.
6106 (lynx_mourn): Use for_each_thread.
6107
634a3254
SM
61082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * regcache.c (regcache_invalidate_one): Remove.
6111 (regcache_invalidate_pid): use for_each_thread.
6112
41272101
TT
61132017-11-26 Tom Tromey <tom@tromey.com>
6114
6115 * linux-low.c (linux_create_inferior): Update.
6116
f5291a6f
UW
61172017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6118
6119 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6120
6654d750
AH
61212017-11-24 Alan Hayward <alan.hayward@arm.com>
6122
6123 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6124 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6125 * linux-aarch64-tdesc-selftest.c: New file.
6126 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6127
61282017-11-24 Alan Hayward <alan.hayward@arm.com>
6129
6130 * configure.srv: Add new file.
6131 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6132 * linux-aarch64-tdesc-selftest.c: New file.
6133 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6134
49bdb7ee
AH
61352017-11-24 Alan Hayward <alan.hayward@arm.com>
6136
6137 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6138 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6139 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6140
d6d7ce56
AH
61412017-11-24 Alan Hayward <alan.hayward@arm.com>
6142
6143 * configure.srv: Add new files.
6144 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6145 aarch64_linux_read_description.
6146 * linux-aarch64-low.c (aarch64_linux_read_description):
6147 Merge with aarch64_arch_setup.
6148 (aarch64_arch_setup): Call aarch64_linux_read_description.
6149 * linux-aarch64-tdesc.c: New file.
6150 * linux-aarch64-tdesc.h: New file.
6151
506fe5f4
YQ
61522017-11-24 Yao Qi <yao.qi@linaro.org>
6153
6154 * configure.srv: Set $srv_regobj for tic6x-linux.
6155 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6156 (tic6x_read_description): Move some code to tic6x_arch_setup.
6157 (tic6x_tdesc_test): New function.
6158 (initialize_low_arch): Call selftests::register_test.
6159
29f9a567
YQ
61602017-11-22 Yao Qi <yao.qi@linaro.org>
6161
6162 * remote-utils.c (prepare_resume_reply): Use memcpy.
6163
578290ec
SM
61642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6165
6166 * linux-low.c (kill_one_lwp_callback): Return void, take
6167 argument directly, don't filter on pid.
6168 (linux_kill): Use for_each_thread.
6169
eca55aec
SM
61702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6171
6172 * linux-low.c (need_step_over_p): Return bool, remove dummy
6173 argument.
6174 (linux_resume, proceed_all_lwps): Use find_thread.
6175
25c28b4d
SM
61762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6177
6178 * linux-low.c (resume_status_pending_p): Return bool, remove
6179 flag_p argument.
6180 (linux_resume): Use find_thread.
6181
5fdda392
SM
61822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6183
6184 * linux-low.c (struct thread_resume_array): Remove.
6185 (linux_set_resume_request): Return void, take arguments
6186 directly.
6187 (linux_resume): Use for_each_thread.
6188
fcb056a5
SM
61892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6190
6191 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6192 return bool, remove data argument.
6193 (linux_stabilize_threads): Use find_thread.
6194
139720c5
SM
61952017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6196
6197 * linux-low.c (unsuspend_one_lwp): Remove.
6198 (unsuspend_all_lwps): Use for_each_thread, inline code from
6199 unsuspend_one_lwp.
6200
6d1e5673
SM
62012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6202
6203 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6204 * linux-low.c (struct iterate_over_lwps_args): Remove.
6205 (iterate_over_lwps_filter): Remove.
6206 (iterate_over_lwps): Use find_thread.
6207
bbf550d5
SM
62082017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6209
6210 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6211 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6212 code from reset_lwp_ptrace_options_callback.
6213
00192f77
SM
62142017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * linux-arm-low.c (struct update_registers_data): Remove.
6217 (update_registers_callback): Return void, take arguments
6218 directly, don't check thread's pid.
6219 (arm_insert_point, arm_remove_point): Use for_each_thread.
6220
2bee2b6c
SM
62212017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6222
6223 * win32-low.c (continue_one_thread): Return void, take argument
6224 directly.
6225 (child_continue): Use for_each_thread.
6226
0b360f19
SM
62272017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * win32-i386-low.c (update_debug_registers_callback): Rename
6230 to ...
6231 (update_debug_registers): ... this, return void, remove pid_p arg.
6232 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6233
f27866ba
SM
62342017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * inferiors.h (struct process_info): Add constructor, initialize
6237 fields..
6238 <syscalls_to_catch>: Change type to std::vector<int>.
6239 * inferiors.c (add_process): Allocate process_info with new.
6240 (remove_process): Free process_info with delete.
6241 * linux-low.c (handle_extended_wait): Adjust.
6242 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6243 * server.c (handle_general_set): Adjust.
6244
e849ea89
PA
62452017-11-16 Pedro Alves <palves@redhat.com>
6246
6247 * remote-utils.c (remote_close): Block SIGIO signals instead of
6248 uninstalling the SIGIO handler.
6249
1d0aa65c
AH
62502017-11-16 Alan Hayward <alan.hayward@arm.com>
6251
6252 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6253
3491a34c
YQ
62542017-11-16 Yao Qi <yao.qi@linaro.org>
6255
6256 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6257 (tic6x_store_gregset): Likewise.
6258 (tic6x_usrregs_info): Move it up.
6259
a602f924
AH
62602017-11-15 Alan Hayward <alan.hayward@arm.com>
6261
6262 * Makefile.in: Update arch rules.
6263 * configure.srv: Explicitly mark arch/ files.
6264
5616b6c3
AS
62652017-11-13 Andreas Schwab <schwab@suse.de>
6266
6267 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6268 function.
6269 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6270
d1928160
PA
62712017-11-06 Pedro Alves <palves@redhat.com>
6272
6273 * config.in, configure: Regenerate.
6274
bac608e7
SM
62752017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6276
6277 * target.c (struct thread_search): Remove.
6278 (thread_search_callback): Remove.
6279 (prepare_to_access_memory): Use for_each_thread instead of
6280 find_inferior. Inline code from thread_search_callback.
6281
eaddb425
SM
62822017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6283
6284 * server.c (struct visit_actioned_threads_data): Remove.
6285 (visit_actioned_threads): Change prototype to take arguments
6286 directly.
6287 (resume): Use find_thread instead of find_inferior.
6288
99078d34
SM
62892017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6290
6291 * server.c (queue_stop_reply_callback): Change prototype, return
6292 void.
6293 (find_status_pending_thread_callback): Remove.
6294 (handle_status): Replace find_inferior with find_thread and
6295 for_each_thread.
6296
cc628f3d
AH
62972017-10-25 Alan Hayward <alan.hayward@arm.com>
6298
6299 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6300 with REGNO.
6301 (aarch64_store_gregset): Likewise.
6302 (aarch64_fill_fpregset): Likewise.
6303 (aarch64_store_fpregset): Likewise.
6304
4d3bb80e
SM
63052017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6306
6307 * gdbthread.h (find_thread, for_each_thread): New functions.
6308 * inferiors.c (thread_of_pid): Remove.
6309 (find_any_thread_of_pid): Use find_thread.
6310 * linux-low.c (num_lwps): Use for_each_thread.
6311
7a7cdfa0
YQ
63122017-10-17 Yao Qi <yao.qi@linaro.org>
6313
6314 * Makefile.in: Remove one rule.
6315 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6316
e675d170
YQ
63172017-10-17 Yao Qi <yao.qi@linaro.org>
6318
6319 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6320 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6321
7eb4e0f9
YQ
63222017-10-17 Yao Qi <yao.qi@linaro.org>
6323
6324 * configure.srv: Rename arm.o with arch/arm.o.
6325
60d6cfc9
YQ
63262017-10-17 Yao Qi <yao.qi@linaro.org>
6327
6328 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6329 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6330 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6331 (arch-i386.o, arch-amd64.o): Remove rules.
6332 (arch/%.o): New rule.
6333 Update POSTCOMPILE and COMPILE.pre.
6334 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6335 * configure: Re-generated.
6336 * configure.srv: Replace arch-i386.o with arch/i386.o.
6337 Replace arch-amd64.o with arch/amd64.o.
6338
5bfda255
YQ
63392017-10-16 Yao Qi <yao.qi@linaro.org>
6340
6341 * configure: Regenerated.
6342
9c80ecd6
SM
63432017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6344
6345 * inferiors.h: (struct inferior_list): Remove.
6346 (struct inferior_list_entry); Remove.
6347 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6348 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6349 get_first_inferior): Remove.
6350 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6351 find_inferior_id, find_inferior_in_random): Change signature.
6352 * inferiors.c (all_threads): Change type to
6353 std::list<thread_info *>.
6354 (get_thread): Remove macro.
6355 (find_inferior, find_inferior_id): Change signature, implement
6356 using find_thread.
6357 (find_inferior_in_random): Change signature, implement using
6358 find_thread_in_random.
6359 (for_each_inferior, for_each_inferior_with_data): Change
6360 signature, implement using for_each_thread.
6361 (add_inferior_to_list, remove_inferior): Remove.
6362 (add_thread, get_first_thread, thread_of_pid,
6363 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6364 (get_first_inferior, one_inferior_p, clear_inferior_list):
6365 Remove.
6366 (clear_inferiors, get_thread_process): Update.
6367 * gdbthread.h: Include <list>.
6368 (struct thread_info) <entry>: Remove field.
6369 <id>: New field.
6370 (all_threads): Change type to std::list<thread_info *>.
6371 (get_first_inferior): Add doc.
6372 (find_thread, for_each_thread, find_thread_in_random): New
6373 functions.
6374 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6375 * linux-arm-low.c (update_registers_callback): Update.
6376 * linux-low.c (second_thread_of_pid_p): Update.
6377 (kill_one_lwp_callback, linux_detach_lwp_callback,
6378 delete_lwp_callback, status_pending_p_callback, same_lwp,
6379 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6380 iterate_over_lwps, not_stopped_callback,
6381 resume_stopped_resumed_lwps, count_events_callback,
6382 select_singlestep_lwp_callback, select_event_lwp_callback,
6383 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6384 suspend_and_send_sigstop_callback, wait_for_sigstop,
6385 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6386 lwp_running, linux_set_resume_request, resume_status_pending_p,
6387 need_step_over_p, start_step_over, linux_resume_one_thread,
6388 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6389 reset_lwp_ptrace_options_callback): Update.
6390 * linux-mips-low.c (update_watch_registers_callback): Update.
6391 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6392 Update.
6393 (free_register_cache_thread_one): Remove.
6394 (regcache_release): Update.
6395 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6396 handle_qxfer_threads_worker): Update.
6397 (handle_query): Update, use list iterator.
6398 (visit_actioned_threads, handle_pending_status,
6399 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6400 clear_pending_status_callback, set_pending_status_callback,
6401 find_status_pending_thread_callback, handle_status,
6402 process_serial_event): Update.
6403 * target.c (thread_search_callback): Update.
6404 * thread-db.c (thread_db_get_tls_address): Update.
6405 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6406 Update.
6407 * win32-i386-low.c (update_debug_registers_callback): Update.
6408 * win32-low.c (delete_thread_info, child_delete_thread,
6409 continue_one_thread, suspend_one_thread,
6410 get_child_debug_event): Adjust.
6411
9179355e
SM
64122017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6413
6414 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6415 * inferiors.h: Include <list>.
6416 (struct process_info) <entry>: Remove field.
6417 <pid>: New field.
6418 (pid_of): Change macro to function.
6419 (ptid_of, lwpid_of): Remove macro.
6420 (all_processes): Change type to std::list<process_info *>.
6421 (ALL_PROCESSES): Remove macro.
6422 (for_each_process, find_process): New function.
6423 * inferiors.c (all_processes): Change type to
6424 std::list<process_info *>.
6425 (find_thread_process): Adjust.
6426 (add_process): Likewise.
6427 (remove_process): Likewise.
6428 (find_process_pid): Likewise.
6429 (get_first_process): Likewise.
6430 (started_inferior_callback): Remove.
6431 (have_started_inferiors_p): Adjust.
6432 (attached_inferior_callback): Remove.
6433 (have_attached_inferiors_p): Adjust.
6434 * linux-low.c (check_zombie_leaders): Likewise.
6435 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6436 (x86_linux_update_xmltarget): Adjust.
6437 * server.c (handle_query): Likewise.
6438 (gdb_reattached_process): Remove.
6439 (handle_status): Adjust.
6440 (kill_inferior_callback): Likewise.
6441 (detach_or_kill_inferior): Remove.
6442 (print_started_pid): Likewise.
6443 (print_attached_pid): Likewise.
6444 (detach_or_kill_for_exit): Update.
6445 (process_serial_event): Likewise.
6446 * linux-arm-low.c (arm_new_fork): Likewise.
6447
c9cb8905
SM
64482017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * dll.h: Include <list>.
6451 (struct dll_info): Add constructor.
6452 <entry>: Remove field.
6453 (all_dlls): Change type to std::list<dll_info>.
6454 * dll.c: Include <algorithm>.
6455 (get_dll): Remove macro.
6456 (all_dlls): Change type to std::list<dll_info *>.
6457 (free_one_dll): Remove.
6458 (match_dll): Likewise.
6459 (loaded_dll): Adjust.
6460 (unloaded_dll): Adjust to all_dlls type change, use
6461 std::find_if. Inline code from match_dll.
6462 (clear_dlls): Adjust to all_dlls type change.
6463 * server.c (emit_dll_description): Remove.
6464 (handle_qxfer_libraries): Adjust to all_dlls type change,
6465 integrate emit_dll_description's functionality.
6466
04ec7890
SM
64672017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6468
6469 * linux-low.h (struct linux_target_ops) <delete_process>: New
6470 field.
6471 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6472 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6473 (struct linux_target_ops): Add delete_process callback.
6474 * linux-arm-low.c (arm_delete_process): New.
6475 (struct linux_target_ops): Add delete_process callback.
6476 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6477 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6478 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6479 * linux-mips-low.c (mips_linux_delete_process): New.
6480 (struct linux_target_ops): Add delete_process callback.
6481 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6482 * linux-s390-low.c (struct linux_target_ops): Likewise.
6483 * linux-sh-low.c (struct linux_target_ops): Likewise.
6484 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6485 * linux-tile-low.c (struct linux_target_ops): Likewise.
6486 * linux-x86-low.c (x86_linux_delete_process): New.
6487 (struct linux_target_ops): Add delete_process callback.
6488 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6489
466eecee
SM
64902017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * linux-aarch64-low.c (the_low_target): Add thread delete
6493 callback.
6494 * linux-arm-low.c (arm_delete_thread): New function.
6495 (the_low_target): Add thread delete callback.
6496 * linux-bfin-low.c (the_low_target): Likewise.
6497 * linux-crisv32-low.c (the_low_target): Likewise.
6498 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6499 set.
6500 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6501 field.
6502 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6503 * linux-mips-low.c (mips_linux_delete_thread): New function.
6504 (the_low_target): Add thread delete callback.
6505 * linux-ppc-low.c (the_low_target): Likewise.
6506 * linux-s390-low.c (the_low_target): Likewise.
6507 * linux-sh-low.c (the_low_target): Likewise.
6508 * linux-tic6x-low.c (the_low_target): Likewise.
6509 * linux-tile-low.c (the_low_target): Likewise.
6510 * linux-x86-low.c (the_low_target): Likewise.
6511 * linux-xtensa-low.c (the_low_target): Likewise.
6512
b79f7801
YZ
65132017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6514
6515 * win32-low.c: Include "common-inferior.h".
6516
bc3b087d
SDJ
65172017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6518
6519 * inferiors.c (set_inferior_cwd): New function.
6520 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6521 (handle_query): Inform that QSetWorkingDir is supported.
6522 * win32-low.c (create_process): Pass the inferior's cwd to
6523 CreateProcess.
6524
d092c5a2
SDJ
65252017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6526
6527 * inferiors.c (current_inferior_cwd): New global variable.
6528 (get_inferior_cwd): New function.
6529 * inferiors.h (struct process_info) <cwd>: New field.
6530
7da0a886
SDJ
65312017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6532
6533 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6534 (OBS): Add gdb_tilde_expand.o.
6535
289a6840
SM
65362017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6537
6538 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6539 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6540
256642e8
PA
65412017-09-29 Pedro Alves <palves@redhat.com>
6542
6543 * ax.c (gdb_parse_agent_expr): Constify.
6544 * ax.h (gdb_parse_agent_expr): Constify.
6545 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6546 Constify.
6547 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6548 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6549 * remote-utils.h (read_ptid): Constify.
6550 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6551 (process_point_options, process_serial_event): Constify.
6552 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6553 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6554 (cmd_qtbuffer): Constify.
6555
5b9ca4d4
PA
65562017-09-29 Pedro Alves <palves@redhat.com>
6557
6558 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6559 fails.
6560
94c207e0
PA
65612017-09-29 Pedro Alves <palves@redhat.com>
6562
6563 * linux-low.c (handle_extended_wait): Pass parent thread instead
6564 of process to thread_db_notice_clone.
6565 * linux-low.h (thread_db_notice_clone): Replace parent process
6566 parameter with parent thread parameter.
6567 * thread-db.c (find_one_thread): Add comment.
6568 (thread_db_notice_clone): Replace parent process parameter with
6569 parent thread parameter. Temporarily switch to the parent thread.
6570
75352e28
SDJ
65712017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6572
6573 * gdbthread.h: Include "common-gdbthread.h".
6574 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6575 "if" when validating the ptid.
6576 * remote-utils.c: Include "gdbthread.h".
6577 (prepare_resume_reply): Use "switch_to_thread".
6578 * target.c (done_accessing_memory): Likewise.
6579
ad339634
AA
65802017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6581
6582 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6583 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6584 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6585 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6586 s390x-gs-linux64-ipa.o to ipa_obj.
6587 * linux-s390-low.c (HWCAP_S390_GS): New define.
6588 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6589 New functions.
6590 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6591 (s390_arch_setup): Check for guarded-storage support and choose
6592 appropriate tdesc.
6593 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6594 init_registers_s390x_gs_linux64.
6595 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6596 enum value.
6597 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6598 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6599
cc4d742f
SM
66002017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6601
6602 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6603
f6327dcb
KB
66042017-09-21 Kevin Buettner <kevinb@redhat.com>
6605
6606 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6607 (thread_db_thread_handle): Declare.
6608 * linux-low.c (linux_target_ops): Initialize thread_handle.
6609 * server.c (handle_qxfer_threads_worker): Add support for
6610 "handle" attribute.
6611 * target.h (struct target_ops): Add new function pointer,
6612 thread_handle.
6613 (target_thread_handle): Define.
6614 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6615 field in lwp.
6616 (thread_db_thread_handle): New function.
6617
86299109
KB
66182017-09-21 Kevin Buettner <kevinb@redhat.com>
6619
6620 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6621 * linux-low.h (thread_db_notice_clone): Declare.
6622 * thread-db.c (thread_db_notice_clone): New function.
6623
f557a88a
PA
66242017-09-21 Pedro Alves <palves@redhat.com>
6625
6626 * server.c (gdb_read_memory, handle_status, process_serial_event)
6627 (handle_serial_event, handle_target_event): Adjust to
6628 set_desired_thread prototype change.
6629 * target.c (set_desired_thread): Remove 'use_general' parameter
6630 and adjust.
6631 * target.h (set_desired_thread): Remove 'use_general' parameter.
6632
223ffa71
TT
66332017-09-20 Tom Tromey <tom@tromey.com>
6634
6635 * target.c (target_terminal::terminal_state): Define.
6636 (target_terminal::init): Rename from target_terminal_init.
6637 (target_terminal::inferior): Rename from
6638 target_terminal_inferior.
6639 (target_terminal::ours): Rename from target_terminal_ours.
6640 (target_terminal::ours_for_output, target_terminal::info): New.
6641
04fd3ba9
SM
66422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6643
6644 * server.c (accumulate_file_name_length): Remove.
6645 (emit_dll_description): Adjust to std::string change.
6646 (handle_qxfer_libraries): Use std::string to hold document.
6647
5e187554
SM
66482017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6649
6650 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6651 return type of xml_escape_text.
6652 * server.c (emit_dll_description): Likewise.
6653
1526853e
SM
66542017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * server.c (captured_main): Accept argument for --selftest.
6657 Update run_tests call.
6658 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6659 when registering selftests.
6660
c4dfafab
SDJ
66612017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6662
6663 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6664 instead of "VEC" for "target_desc.reg_defs".
6665 (regcache_cpy): Likewise.
6666 (registers_to_string): Likewise.
6667 (registers_from_string): Likewise.
6668 (find_regno): Likewise.
6669 (supply_regblock): Likewise.
6670 (regcache_raw_read_unsigned): Likewise.
6671 * tdesc.c (init_target_desc): Likewise.
6672 (tdesc_create_reg): Likewise.
6673 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6674 (struct target_desc) <reg_defs>: Convert to "std::vector".
6675 (target_desc): Do not initialize "reg_defs".
6676 (~target_desc): Update code to use "std::vector" instead of "VEC"
6677 for "target_desc.reg_defs".
6678 (operator==): Likewise.
6679
124aceb4
SM
66802017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6681
6682 * inferiors.h (thread_to_gdb_id): Remove.
6683 * inferiors.c (thread_to_gdb_id): Remove.
6684 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6685 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6686 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6687 Likewise.
6688 * nto-low.c (nto_fetch_registers, nto_store_registers,
6689 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6690
96cde54f
SM
66912017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6692
6693 * inferiors.h (gdb_id_to_thread_id): Remove.
6694 * inferiors.c (gdb_id_to_thread_id): Remove.
6695 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6696 removal. Move pid declaration closer to where it's used.
6697
e8ca139e
SM
66982017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6699
6700 * server.c (handle_detach): New function.
6701 (process_serial_event): Move code out, call handle_detach.
6702
f8a4e119
SM
67032017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6704
6705 * server.c (require_running): Rename to ...
6706 (require_running_or_return): ... this ...
6707 (require_running_or_break): ... and this.
6708 (handle_query, process_serial_event): Adjust.
6709
0eb0a407
SM
67102017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * linux-low.c (linux_set_resume_request): Remove unused
6713 variables.
6714
785922a5
SM
67152017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6716
6717 * server.c (first_thread_of): Remove.
6718 (process_serial_event): Replace usage of first_thread_of with
6719 find_any_thread_of_pid.
6720 * tracepoint.c (same_process_p): Remove.
6721 (gdb_agent_about_to_close): Replace usage of same_process_p with
6722 find_any_thread_of_pid.
6723 * linux-x86-low.c (same_process_callback): Remove.
6724 (x86_arch_setup_process_callback): Replace usage of
6725 same_process_callback with find_any_thread_of_pid.
6726 * thread-db.c (any_thread_of): Remove.
6727 (switch_to_process): Replace usage of any_thread_of with
6728 find_any_thread_of_pid.
6729 * inferiors.c (thread_pid_matches_callback): Remove.
6730 (find_thread_process): Adjust to use find_any_thread_of_pid.
6731
a059f00c
SDJ
67322017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6733
6734 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6735 with "!VEC_empty".
a059f00c 6736
cc397f3a
SDJ
67372017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6738
6739 * linux-low.c (handle_extended_wait): Use
6740 "allocate_target_description" instead of "XNEW".
6741 * linux-x86-low.c (initialize_low_arch): Likewise.
6742
22916b07
YQ
67432017-09-05 Yao Qi <yao.qi@linaro.org>
6744
6745 * configure.srv (srv_i386_regobj): Remove.
6746 (srv_amd64_regobj): Remove.
6747 (srv_regobj): Set it to "" for x86 non-linux targets.
6748 * linux-x86-tdesc.c (i386_linux_read_description):
6749 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6750 (init_registers_i386): Remove the declaration.
6751 (tdesc_i386): Remove the declaration.
6752 (lynx_i386_arch_setup): Call i386_create_target_description.
6753 * nto-x86-low.c: Likewise.
6754 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6755 [!__x86_64__]: include arch/i386.h.
6756 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6757
38602d55
YQ
67582017-09-05 Yao Qi <yao.qi@linaro.org>
6759
6760 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6761 i386/amd64-XXX-linux from it.
6762
44b886ff
YQ
67632017-09-05 Yao Qi <yao.qi@linaro.org>
6764
6765 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6766 false.
6767 (ipa_amd64_linux_regobj): Remove.
6768 (ipa_x32_linux_regobj): Remove.
6769
b4570e4b
YQ
67702017-09-05 Yao Qi <yao.qi@linaro.org>
6771
6772 * Makefile.in (arch-amd64.o): New rule.
6773 * configure.srv: Append arch-amd64.o.
6774 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6775 (get_ipa_tdesc): Call amd64_linux_read_description.
6776 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6777 and init_registers_amd64_XXX.
6778 * linux-x86-low.c (x86_linux_read_description): Call
6779 amd64_linux_read_description.
6780 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6781 (initialize_low_arch): Don't call init_registers_x32_XXX and
6782 init_registers_amd64_XXX.
6783 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6784 and tdesc_amd64_XXX.
6785 [__x86_64__] (amd64_tdesc_test): New function.
6786 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6787 and init_registers_amd64_XXX.
6788 * linux-x86-tdesc.c: Include arch/amd64.h.
6789 (xcr0_to_tdesc_idx): New function.
6790 (i386_linux_read_description): New function.
6791 (amd64_get_ipa_tdesc_idx): New function.
6792 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6793 (amd64_get_ipa_tdesc): Declare.
6794
d1f28ea2
YQ
67952017-09-05 Yao Qi <yao.qi@linaro.org>
6796
6797 * configure.srv (srv_i386_linux_xmlfiles): Remove
6798 i386/i386-XXX-linux.xml from it.
6799
25a93583
YQ
68002017-09-05 Yao Qi <yao.qi@linaro.org>
6801
6802 * configure.srv: Set srv_i386_linux_regobj empty if $development
6803 is false.
6804 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6805 initialize_low_tdesc.
6806 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6807 with #if initialize_low_tdesc.
6808 * linux-x86-tdesc-selftest.c: New file.
6809 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6810
5f035c07
YQ
68112017-09-05 Yao Qi <yao.qi@linaro.org>
6812
6813 * Makefile.in (arch-i386.o): New rule.
6814 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6815 (x86_64-*-linux*): Likewise.
6816 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6817 include arch/i386.h.
6818 (i386_linux_read_description): Remove code and call
6819 i386_create_target_description.
6820 * tdesc.c (allocate_target_description): New function.
6821 * tdesc.h (set_tdesc_architecture): Remove declaration.
6822 (set_tdesc_osabi): Likewise.
6823
0abe8a89
YQ
68242017-09-05 Yao Qi <yao.qi@linaro.org>
6825
6826 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6827 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6828 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6829 .xmltarget.
6830 * server.c (get_features_xml): Call tdesc_get_features_xml.
6831 * tdesc.c (set_tdesc_architecture): New function.
6832 (set_tdesc_osabi): New function.
6833 (tdesc_get_features_xml): New function.
6834 (tdesc_create_feature): Add an argument.
6835 * tdesc.h (struct target_desc) <features>: New field.
6836 <arch, osabi>: New field.
6837 (~target_desc): xfree features, arch, and osabi.
6838 (target_desc::oerator==): Don't compare .xmltarget.
6839 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6840 (set_tdesc_osabi): Likewise.
6841 (tdesc_get_features_xml): Likewise.
6842
0a188386
YQ
68432017-09-05 Yao Qi <yao.qi@linaro.org>
6844
6845 * linux-x86-tdesc.c: Include selftest.h.
6846 (i386_tdesc_test): New function.
6847 (initialize_low_tdesc): Call selftests::register_test.
6848 * tdesc.h: Include regdef.h.
6849 (target_desc): Override operator == and !=.
6850
f49ff000
YQ
68512017-09-05 Yao Qi <yao.qi@linaro.org>
6852
6853 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6854 (ipa_obj): Likewise.
6855 * linux-i386-ipa.c: Include common/x86-xstate.h
6856 (get_ipa_tdesc): Call i386_linux_read_description.
6857 (initialize_low_tracepoint): Don't call init_registers_XXX
6858 functions, call initialize_low_tdesc instead.
6859 * linux-x86-low.c (x86_linux_read_description): Call
6860 i386_linux_read_description.
6861 (initialize_low_arch): Don't call init_registers_i386_XXX
6862 functions, call initialize_low_tdesc.
6863 * linux-x86-tdesc.c: New file.
6864 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6865 (i386_get_ipa_tdesc_idx): Declare.
6866 (i386_get_ipa_tdesc): Declare.
6867 (initialize_low_tdesc): Declare.
6868
2b68ef2f
YQ
68692017-09-05 Yao Qi <yao.qi@linaro.org>
6870
6871 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6872 instead of 0.
6873
f7000548
YQ
68742017-09-05 Yao Qi <yao.qi@linaro.org>
6875
6876 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6877 * regcache.c (get_thread_regcache): Use VEC_length.
6878 (init_register_cache): Likewise.
6879 (regcache_cpy): Likewise.
6880 (registers_to_string): Iterate reg_defs via VEC_iterate.
6881 (find_regno): Likewise.
6882 (find_register_by_number): Use VEC_index.
6883 (register_size): Call find_register_by_number.
6884 (register_data): Call find_register_by_number.
6885 (supply_regblock): Use VEC_length.
6886 (regcache_raw_read_unsigned): Likewise.
6887 * tdesc.c (init_target_desc): Iterate reg_defs via
6888 VEC_iterate.
6889 (default_description): Update initializer.
6890 (copy_target_description): Don't update field num_registers.
6891 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6892 <num_registers>: Remove.
6893
50a421ac
SM
68942017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6895
6896 * Makefile.in (.SECONDARY): Define target.
6897
23fdd69e
SM
68982017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6899
6900 * linux-low.c (linux_wait_1): Adjust.
6901 * server.c (queue_stop_reply_callback): Adjust.
6902
0a2dde4a
SDJ
69032017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6904
6905 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6906 QEnvironmentUnset and QEnvironmentReset packets.
6907 (handle_query): Inform remote that QEnvironmentHexEncoded,
6908 QEnvironmentUnset and QEnvironmentReset are supported.
6909
6afd337d
SM
69102017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6911
6912 * inferiors.h (inferior_target_data): Rename to ...
6913 (thread_target_data): ... this.
6914 (inferior_regcache_data): Rename to ...
6915 (thread_regcache_data): ... this.
6916 (set_inferior_regcache_data): Rename to ...
6917 (set_thread_regcache_data): ... this.
6918 * inferiors.c (inferior_target_data): Rename to ...
6919 (thread_target_data): ... this.
6920 (inferior_regcache_data): Rename to ...
6921 (thread_regcache_data): ... this.
6922 (set_inferior_regcache_data): Rename to ...
6923 (set_thread_regcache_data): ... this.
6924 (free_one_thread): Update.
6925 * linux-low.h (get_thread_lwp): Update.
6926 * regcache.c (get_thread_regcache): Update.
6927 (regcache_invalidate_thread): Update.
6928 (free_register_cache_thread): Update.
6929 * win32-i386-low.c (update_debug_registers_callback): Update.
6930 (win32_get_current_dr): Update.
6931 * win32-low.c (thread_rec): Update.
6932 (delete_thread_info): Update.
6933 (continue_one_thread): Update.
6934 (suspend_one_thread): Update.
6935
a160cc46
SM
69362017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6937
6938 * inferiors.c (set_inferior_target_data): Remove.
6939 * inferiors.h (set_inferior_target_data): Remove.
6940
6d580b63
YQ
69412017-08-18 Yao Qi <yao.qi@linaro.org>
6942
6943 * Makefile.in (OBS): Add selftest.o.
6944 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6945 * configure, config.in: Re-generated.
6946 * server.c: Include common/sefltest.h.
6947 (captured_main): Handle option --selftest.
6948
f5a29eb0
YQ
69492017-08-09 Yao Qi <yao.qi@linaro.org>
6950
6951 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6952 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6953 i386-avx-mpx.o and i386-mmx.o.
6954 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6955 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6956 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6957 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6958 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6959 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6960 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6961 i386/amd64-avx-mpx.xml.
6962
57757c2f
YQ
69632017-08-09 Yao Qi <yao.qi@linaro.org>
6964
6965 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6966 and x32-avx-avx512.o.
6967 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6968 i386/x32-avx-avx512.xml.
6969
229d26fc
SM
69702017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6971
6972 * tracepoint.h (enum class fast_tpoint_collect_result): New
6973 enumeration.
6974 (fast_tracepoint_collecting): Change return type to
6975 fast_tpoint_collect_result.
6976 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6977 * linux-low.h: Include tracepoint.h.
6978 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6979 fast_tpoint_collect_result.
6980 * linux-low.c (handle_tracepoints): Adjust.
6981 (linux_fast_tracepoint_collecting): Change return type to
6982 fast_tpoint_collect_result.
6983 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6984 linux_wait_1, stuck_in_jump_pad_callback,
6985 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6986 proceed_one_lwp): Adjust to type change.
6987
2e1e43e1
YQ
69882017-07-10 Yao Qi <yao.qi@linaro.org>
6989
6990 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6991
adc764e7
YQ
69922017-06-29 Yao Qi <yao.qi@linaro.org>
6993
6994 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6995 Remove.
6996 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6997
a206891a
SM
69982017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6999
7000 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7001
9a6c7d9c
SDJ
70022017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7003
7004 * linux-low.c (linux_create_inferior): Adjust code to access the
7005 environment information via 'gdb_environ' class.
7006 * lynx-low.c (lynx_create_inferior): Likewise.
7007 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7008 (get_environ): Return a pointer to 'our_environ'.
7009 (captured_main): Initialize 'our_environ'.
7010 * server.h (get_environ): Adjust prototype.
7011 * spu-low.c (spu_create_inferior): Adjust code to access the
7012 environment information via 'gdb_environ' class.
7013
ae3e2ccf
SM
70142017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7015
7016 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7017 usage of "register" keyword.
7018
3e019bdc
SM
70192017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * configure: Re-generate.
7022
8465943a
SM
70232017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7024
7025 * configure: Re-generate.
7026
cf0dd6f0
SM
70272017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7028
7029 * Makefile.in (COMPILE.pre): Add "-x c++".
7030
9845682b
SDJ
70312017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7032
7033 * fork-child.c: Conditionally include <signal.h>.
7034
aefd8b33
SDJ
70352017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7036
7037 * server.c (handle_general_set): Handle new packet
7038 "QStartupWithShell".
7039 (handle_query): Add "QStartupWithShell" to the list of supported
7040 packets.
7041 (gdbserver_usage): Add help text explaining the
7042 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7043 options.
7044 (captured_main): Recognize and act upon the presence of the new
7045 CLI options.
7046
2090129c
SDJ
70472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7048 Pedro Alves <palves@redhat.com>
7049
7050 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7051 * configure: Regenerate.
7052 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7053 "fork-inferior.o".
7054 (i[34567]86-*-lynxos*): Likewise.
7055 (spu*-*-*): Likewise.
7056 * fork-child.c: New file.
7057 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7058 and "environ.h".
7059 (linux_ptrace_fun): New function.
7060 (linux_create_inferior): Adjust function prototype to reflect
7061 change on "target.h". Adjust function code to use
7062 "fork_inferior".
7063 (linux_request_interrupt): Delete "signal_pid".
7064 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7065 (lynx_ptrace_fun): New function.
7066 (lynx_create_inferior): Adjust function prototype to reflect
7067 change on "target.h". Adjust function code to use
7068 "fork_inferior".
7069 * nto-low.c (nto_create_inferior): Adjust function prototype and
7070 code to reflect change on "target.h". Update comments.
7071 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7072 "common-terminal.h" and "environ.h".
7073 (terminal_fd): Moved to fork-child.c.
7074 (old_foreground_pgrp): Likewise.
7075 (restore_old_foreground_pgrp): Likewise.
7076 (last_status): Make it global.
7077 (last_ptid): Likewise.
7078 (our_environ): New variable.
7079 (startup_with_shell): Likewise.
7080 (program_name): Likewise.
7081 (program_argv): Rename to...
7082 (program_args): ...this.
7083 (wrapper_argv): New variable.
7084 (start_inferior): Delete function.
7085 (get_exec_wrapper): New function.
7086 (get_exec_file): Likewise.
7087 (get_environ): Likewise.
7088 (prefork_hook): Likewise.
7089 (post_fork_inferior): Likewise.
7090 (postfork_hook): Likewise.
7091 (postfork_child_hook): Likewise.
7092 (handle_v_run): Update code to deal with arguments coming from the
7093 remote host. Update calls from "start_inferior" to
7094 "create_inferior".
7095 (captured_main): Likewise. Initialize environment variable. Call
7096 "have_job_control".
7097 * server.h (post_fork_inferior): New prototype.
7098 (get_environ): Likewise.
7099 (last_status): Declare.
7100 (last_ptid): Likewise.
7101 (signal_pid): Likewise.
7102 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7103 (spu_ptrace_fun): New function.
7104 (spu_create_inferior): Adjust function prototype to reflect change
7105 on "target.h". Adjust function code to use "fork_inferior".
7106 * target.c (target_terminal_init): New function.
7107 (target_terminal_inferior): Likewise.
7108 (target_terminal_ours): Likewise.
7109 * target.h: Include <vector>.
7110 (struct target_ops) <create_inferior>: Update prototype.
7111 (create_inferior): Update macro.
7112 * utils.c (gdb_flush_out_err): New function.
7113 * win32-low.c (win32_create_inferior): Adjust function prototype
7114 and code to reflect change on "target.h".
7115
043a4934
SDJ
71162017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7117
7118 * inferiors.c (switch_to_thread): New function.
7119
15652511
SDJ
71202017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7121
7122 * Makefile.in (SFILE): Add "common/job-control.c".
7123 (OBS): Add "job-control.o".
7124
21ea5acd
SDJ
71252017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7126
7127 * Makefile: Remove "@host_makefile_frag@".
7128
e13cb306
PA
71292017-05-05 Pedro Alves <palves@redhat.com>
7130
7131 * configure: Regenerate.
7132
c94fee56
SDJ
71332017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7134
7135 * configure: Regenerate.
7136
a0ff9e1a
SM
71372017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7138
7139 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7140 software_single_step change of return type to
7141 std::vector<CORE_ADDR>.
7142 * linux-low.c (install_software_single_step_breakpoints):
7143 Likewise.
7144 * linux-low.h (install_software_single_step_breakpoints):
7145 Likewise.
7146
be628ab8
SDJ
71472017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7148
7149 * remote-utils.c: Include "gdb_termios.h" instead of
7150 "terminal.h".
7151 * terminal.h: Delete file.
7152
7c5ded6a
SDJ
71532017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7154
7155 * server.c: Include <vector>.
7156 <program_argv, wrapper_argv>: Convert to std::vector.
7157 (start_inferior): Rewrite function to use C++.
7158 (handle_v_run): Likewise. Update code that calculates the argv
7159 based on the vRun packet; use C++.
7160 (captured_main): Likewise.
7161
436252de
SM
71622017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7163
7164 * server.c (handle_v_cont): Initialize thread_resume::thread
7165 with null_ptid.
7166
9bf2a700
PA
71672017-04-05 Pedro Alves <palves@redhat.com>
7168
7169 * configure: Regenerate.
7170
a121b7c1
PA
71712017-04-05 Pedro Alves <palves@redhat.com>
7172
7173 * gdbreplay.c (sync_error): Constify.
7174 * linux-x86-low.c (push_opcode): Constify.
7175
21c8a587
PA
71762017-04-05 Pedro Alves <palves@redhat.com>
7177
7178 * win32-low.c (get_child_debug_event)
7179 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7180 Report TARGET_WAITKIND_SPURIOUS instead.
7181
fb32b4f7
PA
71822017-04-05 Pedro Alves <palves@redhat.com>
7183
e79be6e5
SM
7184 * remote-utils.c (remote_prepare, remote_open): Constify.
7185 * remote-utils.h (remote_prepare, remote_open): Constify.
7186 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7187
65dd1e59
SM
71882017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7189
7190 * Makefile.in (clean): Clear .deps.
7191
8fa5b777
SM
71922017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * .gitignore: Remove generated files, replace with wildcard.
7195 * (clean): Replace removal of generated files with wildcard.
7196 (version.c): Replace with...
7197 (version-generated.c): ...this.
7198 (xml-builtin.c): Replace with...
7199 (xml-builtin-generated.c): ...this.
7200 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7201 (%.c: *regformats*): Replace with...
7202 (%-generated.c: *regformats*): ...this.
7203
a12e714b
MF
72042017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7205
7206 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7207 (xtensa_fill_gregset): Call collect_register_by_name for
7208 threadptr register.
7209 (xtensa_store_gregset): Call supply_register_by_name for
7210 threadptr register.
7211
1a09b50a
MF
72122017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7213
7214 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7215 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7216 (xtensa_store_gregset): Call supply_register for all registers in
7217 a0_regnum..a0_regnum + C0_NREGS range.
7218
1a01e7c6
SM
72192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7220
7221 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7222 (ax-ipa.o: ax.c): Remove.
7223 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7224 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7225 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7226 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7227 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7228
36bc18a8
SM
72292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7230
7231 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7232 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7233 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7234 (errors-ipa.o: ../common/errors.c): Remove.
7235 (format-ipa.o: ../common/format.c): Remove.
7236 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7237
a8ebe3d5
SM
72382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7239
7240 * Makefile.in (%-ipa.o: %.c): New rule.
7241 (tracepoint-ipa.o: tracepoint.c): Remove.
7242 (utils-ipa.o: utils.c): Remove.
7243 (remote-utils-ipa.o: remote-utils.c): Remove.
7244 (regcache-ipa.o: regcache.c): Remove.
7245 (i386-linux-ipa.o: i386-linux.c): Remove.
7246 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7247 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7248 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7249 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7250 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7251 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7252 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7253 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7254 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7255 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7256 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7257 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7258 (aarch64-ipa.o: aarch64.c): Remove.
7259 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7260 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7261 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7262 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7263 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7264 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7265 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7266 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7267 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7268 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7269 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7270 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7271 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7272 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7273 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7274 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7275 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7276 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7277 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7278 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7279 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7280 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7281 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7282 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7283 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7284 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7285 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7286 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7287 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7288 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7289 (tdesc-ipa.o: tdesc.c): Remove.
7290 (x32-linux-ipa.o: x32-linux.c): Remove.
7291 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7292 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7293
50cfacb7
SM
72942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7295
7296 * Makefile.in (%.o: ../arch/%.c): New rule.
7297 (arm.o: ../arch/arm.c): Remove.
7298 (arm-linux.o: ../arch/arm-linux.c): Remove.
7299 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7300 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7301
c5a22423
SM
73022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * Makefile.in (%.o: ../nat/%.c): New rule.
7305 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7306 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7307 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7308 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7309 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7310 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7311 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7312 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7313 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7314 (linux-personality.o: ../nat/linux-personality.c): Remove.
7315 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7316 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7317 (x86-linux.o: ../nat/x86-linux.c): Remove.
7318 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7319 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7320
6bda016b
SM
73212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7322
7323 * Makefile.in (%.o: ../common/%.c): New rule.
7324 (signals.o: ../common/signals.c): Remove.
7325 (print-utils.o: ../common/print-utils.c): Remove.
7326 (rsp-low.o: ../common/rsp-low.c): Remove.
7327 (common-utils.o: ../common/common-utils.c): Remove.
7328 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7329 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7330 (vec.o: ../common/vec.c): Remove.
7331 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7332 (xml-utils.o: ../common/xml-utils.c): Remove.
7333 (ptid.o: ../common/ptid.c): Remove.
7334 (buffer.o: ../common/buffer.c): Remove.
7335 (format.o: ../common/format.c): Remove.
7336 (filestuff.o: ../common/filestuff.c): Remove.
7337 (agent.o: ../common/agent.c): Remove.
7338 (errors.o: ../common/errors.c): Remove.
7339 (environ.o: ../common/environ.c): Remove.
7340 (common-debug.o: ../common/common-debug.c): Remove.
7341 (cleanups.o: ../common/cleanups.c): Remove.
7342 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7343 (fileio.o: ../common/fileio.c): Remove.
7344 (common-regcache.o: ../common/common-regcache.c): Remove.
7345 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7346 (new-op.o: ../common/new-op.c): Remove.
7347 (btrace-common.o: ../common/btrace-common.c): Remove.
7348
21122961
SM
73492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7350
7351 * Makefile.in (%.o: ../target/%.c): New rule.
7352 (waitstatus.o: ../target/waitstatus.c): Remove.
7353
c362e621
SM
73542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7355
7356 * Makefile.in
7357 (%.c: ../regformats/%.dat,
7358 (%.c: ../regformats/arm/%.dat,
7359 (%.c: ../regformats/i386/%.dat,
7360 (%.c: ../regformats/rs6000/%.dat): New rules.
7361 (aarch64.c): Remove.
7362 (reg-arm.c): Remove.
7363 (arm-with-iwmmxt.c): Remove.
7364 (arm-with-vfpv2.c): Remove.
7365 (arm-with-vfpv3.c): Remove.
7366 (arm-with-neon.c): Remove.
7367 (reg-bfin.c): Remove.
7368 (reg-cris.c): Remove.
7369 (reg-crisv32.c): Remove.
7370 (i386.c): Remove.
7371 (i386-linux.c): Remove.
7372 (i386-avx.c): Remove.
7373 (i386-avx-linux.c): Remove.
7374 (i386-avx-avx512.c): Remove.
7375 (i386-avx-avx512-linux.c): Remove.
7376 (i386-mpx.c): Remove.
7377 (i386-mpx-linux.c): Remove.
7378 (i386-avx-mpx-avx512-pku.c): Remove.
7379 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7380 (i386-avx-mpx.c): Remove.
7381 (i386-avx-mpx-linux.c): Remove.
7382 (i386-mmx.c): Remove.
7383 (i386-mmx-linux.c): Remove.
7384 (reg-ia64.c): Remove.
7385 (reg-m32r.c): Remove.
7386 (reg-m68k.c): Remove.
7387 (reg-cf.c): Remove.
7388 (mips-linux.c): Remove.
7389 (mips-dsp-linux.c): Remove.
7390 (mips64-linux.c): Remove.
7391 (mips64-dsp-linux.c): Remove.
7392 (nios2-linux.c): Remove.
7393 (powerpc-32.c): Remove.
7394 (powerpc-32l.c): Remove.
7395 (powerpc-altivec32l.c): Remove.
7396 (powerpc-cell32l.c): Remove.
7397 (powerpc-vsx32l.c): Remove.
7398 (powerpc-isa205-32l.c): Remove.
7399 (powerpc-isa205-altivec32l.c): Remove.
7400 (powerpc-isa205-vsx32l.c): Remove.
7401 (powerpc-e500l.c): Remove.
7402 (powerpc-64l.c): Remove.
7403 (powerpc-altivec64l.c): Remove.
7404 (powerpc-cell64l.c): Remove.
7405 (powerpc-vsx64l.c): Remove.
7406 (powerpc-isa205-64l.c): Remove.
7407 (powerpc-isa205-altivec64l.c): Remove.
7408 (powerpc-isa205-vsx64l.c): Remove.
7409 (s390-linux32.c): Remove.
7410 (s390-linux32v1.c): Remove.
7411 (s390-linux32v2.c): Remove.
7412 (s390-linux64.c): Remove.
7413 (s390-linux64v1.c): Remove.
7414 (s390-linux64v2.c): Remove.
7415 (s390-te-linux64.c): Remove.
7416 (s390-vx-linux64.c): Remove.
7417 (s390-tevx-linux64.c): Remove.
7418 (s390x-linux64.c): Remove.
7419 (s390x-linux64v1.c): Remove.
7420 (s390x-linux64v2.c): Remove.
7421 (s390x-te-linux64.c): Remove.
7422 (s390x-vx-linux64.c): Remove.
7423 (s390x-tevx-linux64.c): Remove.
7424 (tic6x-c64xp-linux.c): Remove.
7425 (tic6x-c64x-linux.c): Remove.
7426 (tic6x-c62x-linux.c): Remove.
7427 (reg-sh.c): Remove.
7428 (reg-sparc64.c): Remove.
7429 (reg-spu.c): Remove.
7430 (amd64.c): Remove.
7431 (amd64-linux.c): Remove.
7432 (amd64-avx.c): Remove.
7433 (amd64-avx-linux.c): Remove.
7434 (amd64-avx-avx512.c): Remove.
7435 (amd64-avx-avx512-linux.c): Remove.
7436 (amd64-mpx.c): Remove.
7437 (amd64-mpx-linux.c): Remove.
7438 (amd64-avx-mpx-avx512-pku.c): Remove.
7439 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7440 (amd64-avx-mpx.c): Remove.
7441 (amd64-avx-mpx-linux.c): Remove.
7442 (x32.c): Remove.
7443 (x32-linux.c): Remove.
7444 (x32-avx.c): Remove.
7445 (x32-avx-linux.c): Remove.
7446 (x32-avx-avx512.c): Remove.
7447 (x32-avx-avx512-linux.c): Remove.
7448 (reg-xtensa.c): Remove.
7449 (reg-tilegx.c): Remove.
7450 (reg-tilegx32.c): Remove.
7451
1672e0d9
SDJ
74522017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7453
7454 * Makefile.in (SFILES): Add "common/environ.c".
7455 (OBJS): Add "common/environ.h".
7456
239b6d10
WT
74572017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7458
7459 * configure.ac: Check if the fs_base and gs_base members of
7460 `struct user_regs_struct' exist.
7461 * config.in: Regenerated.
7462 * configure: Likewise.
7463
694b382c
AT
74642017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7465
7466 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7467 target_read_memory.
7468 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7469 (get_next_pcs_syscall_next_pc): Likewise.
7470
7dc53023
LM
74712016-12-23 Luis Machado <lgustavo@codesourcery.com>
7472
7473 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7474 * nto-x86-low.c: Likewise.
7475
ad02e4fe
SM
74762016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7477
7478 * Makefile.in: Include disable-implicit-rules.mk.
7479
dcb07cfa
PA
74802016-11-23 Pedro Alves <palves@redhat.com>
7481
7482 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7483 (debug_vprintf): Use std::chrono::steady_clock instead of
7484 gettimeofday. Use '.' instead of ':'.
7485 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7486 (get_timestamp): Use std::chrono::steady_clock instead of
7487 gettimeofday.
7488
8629c02c
SM
74892016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7490
7491 * Makefile.in: Fix whitespace formatting.
7492
b593ecca
SM
74932016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7494
7495 * Makefile.in (SFILES, OBS): Flatten list and order
7496 alphabetically.
7497
9986ba08
PA
74982016-11-23 Pedro Alves <palves@redhat.com>
7499
7500 * event-loop.c (handle_file_event): Use warning.
7501 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7502 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7503 Use warning.
7504
4eefa7bc
PA
75052016-11-23 Pedro Alves <palves@redhat.com>
7506
7507 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7508 output.
7509 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7510 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7511 debug_printf and debug_flush for debug output.
7512 * server.c (handle_general_set): Likewise.
7513 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7514 output.
7515
5443506e
SM
75162016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7517
7518 * Makefile.in (.c.o): Replace rule with ...
7519 (%.o: %.c): ... this one.
7520
3b165252
SM
75212016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7522
7523 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7524 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7525 make.
7526 * configure.ac: Remove checks for the make program.
7527 * configure: Re-generate.
7528
0bcda685
PA
75292016-10-28 Pedro Alves <palves@redhat.com>
7530
7531 * Makefile.in (CXX_DIALECT): Get from configure.
7532 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7533 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7534 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7535 * config.in: Regenerate.
7536 * configure: Regenerate.
7537
c3805894
YQ
75382016-10-27 Yao Qi <yao.qi@linaro.org>
7539
7540 * linux-low.c (linux_supports_range_stepping): Return true if
7541 can_software_single_step return true.
7542
89342618
YQ
75432016-10-27 Yao Qi <yao.qi@linaro.org>
7544
7545 * inferiors.c (find_inferior_in_random): New function.
7546 * inferiors.h (find_inferior_in_random): Declare.
7547 * linux-low.c (linux_wait_for_event_filtered): Call
7548 find_inferior_in_random instead of find_inferior.
7549
e3652c84
YQ
75502016-10-27 Yao Qi <yao.qi@linaro.org>
7551
7552 * linux-low.c (linux_wait_1): If single-step breakpoints are
7553 inserted, remove them.
7554
5a04c4cf
PA
75552016-10-26 Pedro Alves <palves@redhat.com>
7556
7557 * linux-low.c (handle_extended_wait): Link parent/child fork
7558 threads.
7559 (linux_wait_1): Unlink them.
7560 (linux_set_resume_request): Ignore resume requests for
7561 already-resumed and unhandled fork child threads.
7562 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7563 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7564 New functions.
7565 (handle_v_requests) <vCont>: Don't call require_running.
7566 * server.h (in_queued_stop_replies): New declaration.
7567
cb93dc7f
YQ
75682016-10-24 Yao Qi <yao.qi@linaro.org>
7569
7570 PR server/20733
7571 * linux-aarch64-low.c (append_insns): Cast the return value to
7572 'uint32_t *'.
7573
a1078bea
YQ
75742016-10-10 Yao Qi <yao.qi@linaro.org>
7575
7576 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7577
1fb77080
SDJ
75782016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7579
7580 * target.c (target_supports_multi_process): New function, moved
7581 from...
7582 * target.h (target_supports_multi_process): ... here. Remove
7583 macro.
7584
39b5a3b9
TT
75852016-10-05 Tom Tromey <tom@tromey.com>
7586
7587 PR remote/20655:
7588 * tracepoint.c (handle_tracepoint_bkpts): Check
7589 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7590
c1d0b70a
YQ
75912016-10-05 Yao Qi <yao.qi@linaro.org>
7592
7593 * configure.srv: Update the path of arm-*.xml files.
7594
0a69eedb
YQ
75952016-10-05 Terry Guo <terry.guo@arm.com>
7596 Yao Qi <yao.qi@linaro.org>
7597
7598 * Makefile.in: Adjust the path of rules.
7599 * configure.srv: Update the path of xml files.
7600 * regformats/arm-with-iwmmxt.dat: Regenerated.
7601 * regformats/arm-with-neon.dat: Likewise.
7602 * regformats/arm-with-vfpv2.dat: Likewise.
7603 * regformats/arm-with-vfpv3.dat Likewise.
7604
17e16485
YQ
76052016-09-30 Yao Qi <yao.qi@linaro.org>
7606
7607 PR gdbserver/20627
7608 * target.c (target_stop_and_wait): Don't call
7609 target_continue_no_signal, use resume_stop instead.
7610
edeeb602
YQ
76112016-09-26 Yao Qi <yao.qi@linaro.org>
7612
7613 * linux-low.c (linux_wait_1): Call debug_exit.
7614
503b1c39
PA
76152016-09-23 Pedro Alves <palves@redhat.com>
7616
7617 * Makefile.in (SFILES): Add common/new-op.c.
7618 (OBS): Add common/new-op.o.
7619 (new-op.o): New rule.
7620
74172ecf
SM
76212016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7622
7623 * .gitinore: Ignore more files.
7624
fc6cda2e
YQ
76252016-09-21 Yao Qi <yao.qi@linaro.org>
7626
7627 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7628 23.
7629
bc1e6c81
SDJ
76302016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7631
7632 * server.c (start_inferior): Call target_mourn_inferior instead of
7633 mourn_inferior; pass ptid_t argument to it.
7634 (resume): Likewise.
7635 (handle_target_event): Likewise.
7636 * target.c (target_mourn_inferior): New function.
7637 * target.h (mourn_inferior): Delete macro.
7638
0e00e962
AA
76392016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7640
7641 * linux-low.c (lwp_is_stepping): New function.
7642
1d8cb77d
CL
76432016-09-06 Carl Love <cel@us.ibm.com>
7644
7645 * server.c (start_inferior): Fixed comment, requested comment change
7646 didn't get updated correctly. Removed reference to ptrace () call as
7647 it is only true on Linux systems.
7648
7313bced
CL
76492016-09-06 Carl Love <cel@us.ibm.com>
7650
7651 * server.c (start_inferior): Do not call
7652 function target_post_create_inferior () if the
7653 inferior process has already exited.
7654
cf6de44d
PA
76552016-09-05 Pedro Alves <palves@redhat.com>
7656
7657 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7658 (COMPILE.pre, CC_LD): Use CXX directly.
7659 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7660 * acinclude.m4: Don't include build-with-cxx.m4.
7661 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7662 * configure: Regenerate.
7663
c1da6748
AT
76642016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7665
7666 PR gdb/19495
7667 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7668 call writing data to own_buf.
7669
f2b9e3df
SDJ
76702016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7671
7672 * target.c (mywait): Call target_wait instead of
7673 the_target->wait.
7674 (target_wait): New function.
7675
049a8570
SDJ
76762016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7677
7678 * server.c (start_inferior): New variable 'ptid'. Replace calls
7679 to the_target->resume by target_continue{,_no_signal}, depending
7680 on the case.
7681 * target.c (target_stop_and_wait): Call target_continue_no_signal
7682 instead of the_target->resume.
7683 (target_continue): New function.
7684
3aa5cfa0
AT
76852016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7686
7687 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7688
754653a7
AZ
76892016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7690
7691 PR server/20491
7692 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7693 ps_prochandle.
7694 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7695 * linux-arm-low.c (ps_get_thread_area): Likewise.
7696 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7697 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7698 * linux-mips-low.c (ps_get_thread_area): Likewise.
7699 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7700 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7701 * linux-x86-low.c (ps_get_thread_area): Likewise.
7702 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7703
ed036b40
PA
77042016-08-19 Pedro Alves <palves@redhat.com>
7705
7706 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7707
c8ef42ee
PA
77082016-08-19 Pedro Alves <palves@redhat.com>
7709
7710 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7711 comment. Use memcpy instead of casting through unsigned long.
7712
9c235a72
PA
77132016-08-19 Pedro Alves <palves@redhat.com>
7714
7715 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7716 allocating around 0x80000000.
7717
201506da
PA
77182016-08-19 Pedro Alves <palves@redhat.com>
7719
7720 PR gdb/20415
7721 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7722 (x32-avx512-linux-ipa.o): New rules.
7723 * configure.ac (x86_64-*-linux*): New x32 check.
7724 * configure.srv (ipa_x32_linux_regobj): New.
7725 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7726 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7727 descriptions.
7728 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7729 descriptions.
7730 * configure: Regenerate.
7731
f348d89a
PA
77322016-08-09 Pedro Alves <palves@redhat.com>
7733
7734 PR gdb/18653
7735 * Makefile.in (OBS): Add signals-state-save-restore.o.
7736 (signals-state-save-restore.o): New rule.
7737 * config.in: Regenerate.
7738 * configure: Regenerate.
7739 * linux-low.c: Include "signals-state-save-restore.h".
7740 (linux_create_inferior): Call
7741 restore_original_signals_state.
7742 * server.c: Include "dispositions-save-restore.h".
7743 (captured_main): Call save_original_signals_state.
7744
1baf5149
PA
77452016-08-05 Pedro Alves <palves@redhat.com>
7746
7747 * configure: Regenerate.
7748
fcd4a73d
YQ
77492016-08-04 Yao Qi <yao.qi@linaro.org>
7750
7751 * linux-low.c (regsets_fetch_inferior_registers): Check
7752 errno is ESRCH or not.
7753
979659d0
YQ
77542016-08-02 Yao Qi <yao.qi@linaro.org>
7755
7756 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7757 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7758 (thread_db_load_search): Update.
7759 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7760 td_ta_set_event and td_ta_event_getmsg.
7761
6598661d
PA
77622016-07-26 Pedro Alves <palves@redhat.com>
7763
7764 PR server/20414
7765 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7766 of unsigned long for 64-bit registers and use uint32_t instead of
7767 unsigned int for 32-bit registers.
7768
9cf12d57
PA
77692016-07-26 Pedro Alves <palves@redhat.com>
7770
7771 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7772 to 'ptrace'.
7773
305450ed
TT
77742016-07-21 Tom Tromey <tom@tromey.com>
7775
7776 * configure: Rebuild.
7777
2583da7c
YQ
77782016-07-21 Yao Qi <yao.qi@linaro.org>
7779
7780 * mem-break.c (find_gdb_breakpoint): Cast bp to
7781 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7782
21536b36
YQ
77832016-07-21 Yao Qi <yao.qi@linaro.org>
7784
7785 * server.c (handle_v_requests): Support s and S actions
7786 if target_supports_software_single_step return true.
7787
8901d193
YQ
77882016-07-21 Yao Qi <yao.qi@linaro.org>
7789
7790 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7791 is resume_step, call maybe_hw_step.
7792 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7793 and unstop them.
7794 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7795 breakpoints or not.
7796 (proceed_one_lwp): If resume request is resume_step, install
7797 reinsert breakpoints and call maybe_hw_step.
7798
0e9a339e
YQ
77992016-07-21 Yao Qi <yao.qi@linaro.org>
7800
7801 * linux-low.c (proceed_one_lwp): Declare.
7802 (linux_resume_one_thread): Remove local variable 'step'.
7803 Lift code enqueue signal. Call proceed_one_lwp instead of
7804 linux_resume_one_lwp.
7805
4281b351
YQ
78062016-07-21 Yao Qi <yao.qi@linaro.org>
7807
7808 * linux-low.c (linux_resume_one_thread): Call
7809 enqueue_pending_signal.
7810
984a2c04
YQ
78112016-07-21 Yao Qi <yao.qi@linaro.org>
7812
7813 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7814 * inferiors.c (do_restore_current_thread_cleanup): New function.
7815 (make_cleanup_restore_current_thread): Likewise.
7816 * linux-low.c (install_software_single_step_breakpoints): Call
7817 make_cleanup_restore_current_thread. Switch current_thread to
7818 thread.
7819
bec903c9
YQ
78202016-07-21 Yao Qi <yao.qi@linaro.org>
7821
7822 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7823 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7824 (clone_one_breakpoint): Likewise.
7825 (delete_reinsert_breakpoints): Change parameter to thread.
7826 Callers updated.
7827 (has_reinsert_breakpoints): Likewise.
7828 (uninsert_reinsert_breakpoints): Likewise.
7829 (reinsert_reinsert_breakpoints): Likewise.
7830 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7831 (delete_reinsert_breakpoints): Likewise.
7832 (reinsert_reinsert_breakpoints): Likewise.
7833 (uninsert_reinsert_breakpoints): Likewise.
7834 (has_reinsert_breakpoints): Likewise.
7835
63c40ec7
YQ
78362016-07-21 Yao Qi <yao.qi@linaro.org>
7837
7838 * inferiors.c (get_thread_process): Make parameter const.
7839 * inferiors.h (get_thread_process): Update declaration.
7840 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7841 Add new parameters child_thread and parent_thread. Callers
7842 updated.
7843 * mem-break.h (clone_all_breakpoints): Update declaration.
7844
9aa76cd0
YQ
78452016-07-21 Yao Qi <yao.qi@linaro.org>
7846
7847 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7848 <command_list, handler>: Remove.
7849 (struct gdb_breakpoint): New.
7850 (struct other_breakpoint): New.
7851 (struct reinsert_breakpoint): New.
7852 (is_gdb_breakpoint): New function.
7853 (any_persistent_commands): Update command_list if
7854 is_gdb_breakpoint returns true.
7855 (set_breakpoint): Create breakpoints according to their types.
7856 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7857 (set_gdb_breakpoint_1): Likewise.
7858 (set_gdb_breakpoint): Likewise.
7859 (clear_breakpoint_conditions): Change parameter type to
7860 'struct gdb_breakpoint *'.
7861 (clear_breakpoint_commands): Likewise.
7862 (clear_breakpoint_conditions_and_commands): Likewise.
7863 (add_condition_to_breakpoint): Likewise.
7864 (add_breakpoint_condition): Likewise.
7865 (add_commands_to_breakpoint): Likewise.
7866 (check_breakpoints): Check other_breakpoint.
7867 (clone_one_breakpoint): Clone breakpopint according to its type.
7868 * mem-break.h (struct gdb_breakpoint): Declare.
7869 (set_gdb_breakpoint): Update declaration.
7870 (clear_breakpoint_conditions_and_commands): Likewise.
7871 (add_breakpoint_condition): Likewise.
7872 (add_breakpoint_commands): Likewise.
7873 * server.c (process_point_options): Change parameter type to
7874 'struct gdb_breakpoint *'.
7875
811f8301
YQ
78762016-07-21 Yao Qi <yao.qi@linaro.org>
7877
7878 * mem-break.c (set_breakpoint_at): Rename it to ...
7879 (set_breakpoint_type_at): ... it.
7880 (set_breakpoint_at): Call set_breakpoint_type_at.
7881 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7882 * mem-break.h (set_breakpoint_at): Update comments.
7883
b1c51e36
CLT
78842016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7885
7886 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7887 to buf parameter.
7888 (nios2_store_gregset): Likewise.
7889
ced2dffb
PA
78902016-07-01 Pedro Alves <palves@redhat.com>
7891 Antoine Tremblay <antoine.tremblay@ericsson.com>
7892
7893 * linux-low.c: Change interface to take the target lwp_info
7894 pointer directly and return void. Handle detaching from a zombie
7895 thread.
7896 (linux_detach_lwp_callback): New function.
7897 (linux_detach): Detach from the leader thread after detaching from
7898 the clone threads.
7899
2ac09a5b
YQ
79002016-06-28 Yao Qi <yao.qi@linaro.org>
7901
7902 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7903 for variable new_offset.
7904 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7905 (aarch64_ftrace_insn_reloc_cb): Likewise.
7906 (aarch64_ftrace_insn_reloc_tb): Likewise.
7907 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7908 PRIx64 instead of PRIx32.
7909
79e7fd4f
YQ
79102016-06-28 Yao Qi <yao.qi@linaro.org>
7911
7912 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7913 (the_low_target): Install arm_get_syscall_trapinfo.
7914
061fc021
YQ
79152016-06-28 Yao Qi <yao.qi@linaro.org>
7916
7917 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7918 function.
7919 (the_low_target): Install aarch64_get_syscall_trapinfo.
7920
4cc32bec
YQ
79212016-06-28 Yao Qi <yao.qi@linaro.org>
7922
7923 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7924 Callers updated.
7925 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7926 Remove parameter sysno.
7927 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7928 sysret.
7929
782c1122
AA
79302016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7931
7932 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7933 (s390_emit_ne_goto): Likewise.
7934 (s390_emit_lt_goto): Likewise.
7935 (s390_emit_le_goto): Likewise.
7936 (s390_emit_gt_goto): Likewise.
7937 (s390_emit_ge_goto): Likewise.
7938 (s390x_emit_eq_goto): Likewise.
7939 (s390x_emit_ne_goto): Likewise.
7940 (s390x_emit_lt_goto): Likewise.
7941 (s390x_emit_le_goto): Likewise.
7942 (s390x_emit_gt_goto): Likewise.
7943 (s390x_emit_ge_goto): Likewise.
7944 (s390_emit_ops_impl): Mark variable static.
7945 (s390x_emit_ops): Likewise.
7946
2e7b624b
YQ
79472016-06-17 Yao Qi <yao.qi@linaro.org>
7948
7949 * linux-low.c (handle_extended_wait): Call
7950 uninsert_reinsert_breakpoints for the parent process. Remove
7951 reinsert breakpoints from the child process. Reinsert them to
7952 the parent process when vfork is done.
7953 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7954 (reinsert_reinsert_breakpoints): New function.
7955 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7956 (reinsert_reinsert_breakpoints): Declare.
7957
8a81c5d7
YQ
79582016-06-17 Yao Qi <yao.qi@linaro.org>
7959
7960 * linux-low.c (handle_extended_wait): If the parent is doing
7961 step-over, remove the reinsert breakpoints from the forked child.
7962
f50bf8e5
YQ
79632016-06-17 Yao Qi <yao.qi@linaro.org>
7964
7965 * linux-low.c (unsuspend_all_lwps): Declare.
7966 (linux_low_filter_event): If thread exited, call finish_step_over.
7967 If step-over is finished, unsuspend other threads.
7968
8376a3cb
YQ
79692016-06-17 Yao Qi <yao.qi@linaro.org>
7970
7971 * linux-low.c (linux_resume_one_lwp_throw): Assert
7972 has_reinsert_breakpoints returns false.
7973 * mem-break.c (delete_disabled_breakpoints): Assert
7974 bp type isn't reinsert_breakpoint.
7975
f79b145d
YQ
79762016-06-17 Yao Qi <yao.qi@linaro.org>
7977
7978 * linux-low.c (maybe_hw_step): New function.
7979 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7980 (finish_step_over): Switch current_thread to lwp temporarily,
7981 and assert has_reinsert_breakpoints returns true.
7982 (proceed_one_lwp): Call maybe_hw_step.
7983 * mem-break.c (has_reinsert_breakpoints): New function.
7984 * mem-break.h (has_reinsert_breakpoints): Declare.
7985
0ae534d2
JT
79862016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7987
7988 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7989
fcdad592
YQ
79902016-05-17 Yao Qi <yao.qi@linaro.org>
7991
7992 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7993 instead of find_inferior.
7994
9e784964
YQ
79952016-05-05 Yao Qi <yao.qi@linaro.org>
7996
7997 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7998 Initialize res to zero.
7999
cf2ebb6e
YQ
80002016-05-05 Yao Qi <yao.qi@linaro.org>
8001
8002 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8003 to uint32_t.
8004
c1aebf87
UW
80052016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8006
8007 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8008 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8009 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8010
35fd2deb 80112016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8012 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8013
8014 * tracepoint.c (write_inferior_int8): New function.
8015 (cmd_qtenable_disable): Write enable flag using
8016 write_inferior_int8.
8017
484b3c32
YQ
80182016-04-25 Yao Qi <yao.qi@linaro.org>
8019
8020 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8021 (need_step_over_p): Return zero if the LWP has pending signals
8022 can be delivered on software single step target.
8023
85ba7d86
YQ
80242016-04-25 Yao Qi <yao.qi@linaro.org>
8025
8026 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8027 return instead of error.
8028
3539aa13
YQ
80292016-04-22 Yao Qi <yao.qi@linaro.org>
8030
8031 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8032 to 23.
8033
5b061e98
YQ
80342016-04-22 Yao Qi <yao.qi@linaro.org>
8035
8036 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8037 signal when stepping over breakpoint with software single
8038 step.
8039
3451269c
PA
80402016-04-21 Pedro Alves <palves@redhat.com>
8041
8042 * linux-s390-low.c (s390_collect_ptrace_register)
8043 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8044 add casts.
8045 (s390_check_regset): Use void * instead of gdb_byte *.
8046
a2358508
PA
80472016-04-20 Pedro Alves <palves@redhat.com>
8048
8049 * configure: Renegerate.
8050
6885166d
YQ
80512016-04-20 Yao Qi <yao.qi@linaro.org>
8052
8053 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8054 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8055 number 16.
8056 (arm_store_gregset): Likewise.
8057
2b863f51
WT
80582016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8059
8060 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8061 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8062 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8063 (amd64-avx-mpx-linux.c): New rules.
8064 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8065 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8066 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8067 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8068 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8069 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8070 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8071 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8072 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8073 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8074 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8075 * linux-x86-low.c (x86_linux_read_description): Add case for
8076 X86_XSTATE_AVX_MPX_MASK.
8077 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8078 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8079 init_registers_i386_avx_mpx_linux.
8080 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8081 (initialize_low_tracepoint): Call
8082 init_registers_i386_avx_mpx_linux.
8083 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8084 (initialize_low_tracepoint): Call
8085 init_registers_amd64_avx_mpx_linux.
8086 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8087 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8088 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8089 declarations.
8090
9b30624b
PA
80912016-04-18 Pedro Alves <palves@redhat.com>
8092
8093 * configure: Regenerate.
8094
45e3745e
AT
80952016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8096
8097 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8098 (aarch64_emit_sub): Likewise.
8099
2afc13ff
PA
81002016-04-12 Pedro Alves <palves@redhat.com>
8101
8102 * utils.c (prepare_to_throw_exception): Delete.
8103
6e774b13
SM
81042016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8105
8106 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8107
4dca19f8
MK
81082016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8109
8110 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8111
d0a9981f
MK
81122016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8113
8114 * linux-aarch64-ipa.c: Add <elf.h> include.
8115 * linux-ppc-ipa.c: Add <elf.h> include.
8116 * linux-s390-ipa.c: Add <elf.h> include.
8117
252db07e
MK
81182016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8119
8120 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8121 (get_raw_reg_ptr): Likewise.
8122 (get_trace_state_variable_value_ptr): Likewise.
8123 (set_trace_state_variable_value_ptr): Likewise.
8124 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8125 char *.
8126
14e2b6d9
MK
81272016-03-31 Wei-cheng Wang <cole945@gmail.com>
8128 Marcin Kościelnicki <koriakin@0x04.net>
8129
8130 PR/17221
8131 * linux-ppc-low.c (emit_insns): New function.
8132 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8133 (ppc_emit_prologue): New function.
8134 (ppc_emit_epilogue): New function.
8135 (ppc_emit_add): New function.
8136 (ppc_emit_sub): New function.
8137 (ppc_emit_mul): New function.
8138 (ppc_emit_lsh): New function.
8139 (ppc_emit_rsh_signed): New function.
8140 (ppc_emit_rsh_unsigned): New function.
8141 (ppc_emit_ext): New function.
8142 (ppc_emit_zero_ext): New function.
8143 (ppc_emit_log_not): New function.
8144 (ppc_emit_bit_and): New function.
8145 (ppc_emit_bit_or): New function.
8146 (ppc_emit_bit_xor): New function.
8147 (ppc_emit_bit_not): New function.
8148 (ppc_emit_equal): New function.
8149 (ppc_emit_less_signed): New function.
8150 (ppc_emit_less_unsigned): New function.
8151 (ppc_emit_ref): New function.
8152 (ppc_emit_const): New function.
8153 (ppc_emit_reg): New function.
8154 (ppc_emit_pop): New function.
8155 (ppc_emit_stack_flush): New function.
8156 (ppc_emit_swap): New function.
8157 (ppc_emit_stack_adjust): New function.
8158 (ppc_emit_call): New function.
8159 (ppc_emit_int_call_1): New function.
8160 (ppc_emit_void_call_2): New function.
8161 (ppc_emit_if_goto): New function.
8162 (ppc_emit_goto): New function.
8163 (ppc_emit_eq_goto): New function.
8164 (ppc_emit_ne_goto): New function.
8165 (ppc_emit_lt_goto): New function.
8166 (ppc_emit_le_goto): New function.
8167 (ppc_emit_gt_goto): New function.
8168 (ppc_emit_ge_goto): New function.
8169 (ppc_write_goto_address): New function.
8170 (ppc_emit_ops_impl): New static variable.
8171 (ppc64v1_emit_prologue): New function.
8172 (ppc64v2_emit_prologue): New function.
8173 (ppc64_emit_epilogue): New function.
8174 (ppc64_emit_add): New function.
8175 (ppc64_emit_sub): New function.
8176 (ppc64_emit_mul): New function.
8177 (ppc64_emit_lsh): New function.
8178 (ppc64_emit_rsh_signed): New function.
8179 (ppc64_emit_rsh_unsigned): New function.
8180 (ppc64_emit_ext): New function.
8181 (ppc64_emit_zero_ext): New function.
8182 (ppc64_emit_log_not): New function.
8183 (ppc64_emit_bit_and): New function.
8184 (ppc64_emit_bit_or): New function.
8185 (ppc64_emit_bit_xor): New function.
8186 (ppc64_emit_bit_not): New function.
8187 (ppc64_emit_equal): New function.
8188 (ppc64_emit_less_signed): New function.
8189 (ppc64_emit_less_unsigned): New function.
8190 (ppc64_emit_ref): New function.
8191 (ppc64_emit_const): New function.
8192 (ppc64v1_emit_reg): New function.
8193 (ppc64v2_emit_reg): New function.
8194 (ppc64_emit_pop): New function.
8195 (ppc64_emit_stack_flush): New function.
8196 (ppc64_emit_swap): New function.
8197 (ppc64v1_emit_call): New function.
8198 (ppc64v2_emit_call): New function.
8199 (ppc64v1_emit_int_call_1): New function.
8200 (ppc64v2_emit_int_call_1): New function.
8201 (ppc64v1_emit_void_call_2): New function.
8202 (ppc64v2_emit_void_call_2): New function.
8203 (ppc64_emit_if_goto): New function.
8204 (ppc64_emit_eq_goto): New function.
8205 (ppc64_emit_ne_goto): New function.
8206 (ppc64_emit_lt_goto): New function.
8207 (ppc64_emit_le_goto): New function.
8208 (ppc64_emit_gt_goto): New function.
8209 (ppc64_emit_ge_goto): New function.
8210 (ppc64v1_emit_ops_impl): New static variable.
8211 (ppc64v2_emit_ops_impl): New static variable.
8212 (ppc_emit_ops): New function.
8213 (linux_low_target): Wire in ppc_emit_ops.
8214
a2174ba4
MK
82152016-03-31 Wei-cheng Wang <cole945@gmail.com>
8216 Marcin Kościelnicki <koriakin@0x04.net>
8217
8218 PR/17221
8219 * Makefile.in: Add powerpc-*-ipa.o
8220 * configure.srv: Add ipa_obj for powerpc*-linux.
8221 * linux-ppc-ipa.c: New file.
8222 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8223 includes.
8224 (PPC_FIELD): New macro.
8225 (PPC_SEXT): New macro.
8226 (PPC_OP6): New macro.
8227 (PPC_BO): New macro.
8228 (PPC_LI): New macro.
8229 (PPC_BD): New macro.
8230 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8231 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8232 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8233 (ppc_get_thread_area): New function.
8234 (is_elfv2_inferior): New function.
8235 (gen_ds_form): New function.
8236 (GEN_STD): New macro.
8237 (GEN_STDU): New macro.
8238 (GEN_LD): New macro.
8239 (GEN_LDU): New macro.
8240 (gen_d_form): New function.
8241 (GEN_ADDI): New macro.
8242 (GEN_ADDIS): New macro.
8243 (GEN_LI): New macro.
8244 (GEN_LIS): New macro.
8245 (GEN_ORI): New macro.
8246 (GEN_ORIS): New macro.
8247 (GEN_LWZ): New macro.
8248 (GEN_STW): New macro.
8249 (GEN_STWU): New macro.
8250 (gen_xfx_form): New function.
8251 (GEN_MFSPR): New macro.
8252 (GEN_MTSPR): New macro.
8253 (GEN_MFCR): New macro.
8254 (GEN_MTCR): New macro.
8255 (GEN_SYNC): New macro.
8256 (GEN_LWSYNC): New macro.
8257 (gen_x_form): New function.
8258 (GEN_OR): New macro.
8259 (GEN_MR): New macro.
8260 (GEN_LWARX): New macro.
8261 (GEN_STWCX): New macro.
8262 (GEN_CMPW): New macro.
8263 (gen_md_form): New function.
8264 (GEN_RLDICL): New macro.
8265 (GEN_RLDICR): New macro.
8266 (gen_i_form): New function.
8267 (GEN_B): New macro.
8268 (GEN_BL): New macro.
8269 (gen_b_form): New function.
8270 (GEN_BNE): New macro.
8271 (GEN_LOAD): New macro.
8272 (GEN_STORE): New macro.
8273 (gen_limm): New function.
8274 (gen_atomic_xchg): New function.
8275 (gen_call): New function.
8276 (ppc_relocate_instruction): New function.
8277 (ppc_install_fast_tracepoint_jump_pad): New function.
8278 (ppc_get_min_fast_tracepoint_insn_len): New function.
8279 (ppc_get_ipa_tdesc_idx): New function.
8280 (the_low_target): Wire in the new functions.
8281 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8282 tdescs.
8283 * linux-ppc-tdesc.h: New file.
8284
a13c4696
MK
82852016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8286
8287 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8288 (alloc_jump_pad_buffer): New function.
8289 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8290 (alloc_jump_pad_buffer): New function.
8291 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8292 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8293 (alloc_jump_pad_buffer): New function.
8294 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8295 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8296 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8297 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8298
1cda1512
MK
82992016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8300
8301 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8302 * linux-amd64-ipa.c: Likewise.
8303 * linux-i386-ipa.c: Likewise.
8304 * linux-s390-ipa.c: Likewise.
8305 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8306 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8307 set_trace_state_variable_value_ptr.
8308 (struct ipa_sym_addresses): Likewise.
8309 (symbol_list): Likewise.
8310 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8311 accessing gdb_collect directly.
8312 (gdb_collect_ptr_type): New typedef.
8313 (get_raw_reg_ptr_type): New typedef.
8314 (get_trace_state_variable_value_ptr_type): New typedef.
8315 (set_trace_state_variable_value_ptr_type): New typedef.
8316 (gdb_collect_ptr): New global.
8317 (get_raw_reg_ptr): New global.
8318 (get_trace_state_variable_value_ptr): New global.
8319 (set_trace_state_variable_value_ptr): New global.
8320 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8321 accessing get_raw_reg directly.
8322 (get_get_tsv_func_addr): Likewise for
8323 get_trace_state_variable_value_ptr.
8324 (get_set_tsv_func_addr): Likewise for
8325 set_trace_state_variable_value_ptr.
8326 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8327
72fb5488
SM
83282016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8329
8330 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8331
28170b88
MK
83322016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8333
8334 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8335 packets.
8336 (relocate_instruction): Remove own_buf.
8337 * server.c (own_buf): Make global.
8338 (handle_v_requests): Make global.
8339 * server.h (own_buf): New declaration.
8340 (handle_v_requests): New prototype.
8341
f39e8743
MK
83422016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8343
8344 PR 18377
8345 * linux-s390-low.c (add_insns): New function.
8346 (s390_emit_prologue): New function.
8347 (s390_emit_epilogue): New function.
8348 (s390_emit_add): New function.
8349 (s390_emit_sub): New function.
8350 (s390_emit_mul): New function.
8351 (s390_emit_lsh): New function.
8352 (s390_emit_rsh_signed): New function.
8353 (s390_emit_rsh_unsigned): New function.
8354 (s390_emit_ext): New function.
8355 (s390_emit_log_not): New function.
8356 (s390_emit_bit_and): New function.
8357 (s390_emit_bit_or): New function.
8358 (s390_emit_bit_xor): New function.
8359 (s390_emit_bit_not): New function.
8360 (s390_emit_equal): New function.
8361 (s390_emit_less_signed): New function.
8362 (s390_emit_less_unsigned): New function.
8363 (s390_emit_ref): New function.
8364 (s390_emit_if_goto): New function.
8365 (s390_emit_goto): New function.
8366 (s390_write_goto_address): New function.
8367 (s390_emit_litpool): New function.
8368 (s390_emit_const): New function.
8369 (s390_emit_call): New function.
8370 (s390_emit_reg): New function.
8371 (s390_emit_pop): New function.
8372 (s390_emit_stack_flush): New function.
8373 (s390_emit_zero_ext): New function.
8374 (s390_emit_swap): New function.
8375 (s390_emit_stack_adjust): New function.
8376 (s390_emit_set_r2): New function.
8377 (s390_emit_int_call_1): New function.
8378 (s390_emit_void_call_2): New function.
8379 (s390_emit_eq_goto): New function.
8380 (s390_emit_ne_goto): New function.
8381 (s390_emit_lt_goto): New function.
8382 (s390_emit_le_goto): New function.
8383 (s390_emit_gt_goto): New function.
8384 (s390_emit_ge_goto): New function.
8385 (s390x_emit_prologue): New function.
8386 (s390x_emit_epilogue): New function.
8387 (s390x_emit_add): New function.
8388 (s390x_emit_sub): New function.
8389 (s390x_emit_mul): New function.
8390 (s390x_emit_lsh): New function.
8391 (s390x_emit_rsh_signed): New function.
8392 (s390x_emit_rsh_unsigned): New function.
8393 (s390x_emit_ext): New function.
8394 (s390x_emit_log_not): New function.
8395 (s390x_emit_bit_and): New function.
8396 (s390x_emit_bit_or): New function.
8397 (s390x_emit_bit_xor): New function.
8398 (s390x_emit_bit_not): New function.
8399 (s390x_emit_equal): New function.
8400 (s390x_emit_less_signed): New function.
8401 (s390x_emit_less_unsigned): New function.
8402 (s390x_emit_ref): New function.
8403 (s390x_emit_if_goto): New function.
8404 (s390x_emit_const): New function.
8405 (s390x_emit_call): New function.
8406 (s390x_emit_reg): New function.
8407 (s390x_emit_pop): New function.
8408 (s390x_emit_stack_flush): New function.
8409 (s390x_emit_zero_ext): New function.
8410 (s390x_emit_swap): New function.
8411 (s390x_emit_stack_adjust): New function.
8412 (s390x_emit_int_call_1): New function.
8413 (s390x_emit_void_call_2): New function.
8414 (s390x_emit_eq_goto): New function.
8415 (s390x_emit_ne_goto): New function.
8416 (s390x_emit_lt_goto): New function.
8417 (s390x_emit_le_goto): New function.
8418 (s390x_emit_gt_goto): New function.
8419 (s390x_emit_ge_goto): New function.
8420 (s390_emit_ops): New function.
8421 (struct linux_target_ops): Fill in emit_ops hook.
8422
abd9baf9
MK
84232016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8424
8425 PR 18377
8426 * Makefile.in: Add s390 IPA files.
8427 * configure.srv: Build IPA for s390.
8428 * linux-s390-ipa.c: New file.
8429 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8430 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8431 (tdesc_s390_linux32): Likewise.
8432 (init_registers_s390_linux32v1): Likewise.
8433 (tdesc_s390_linux32v1): Likewise.
8434 (init_registers_s390_linux32v2): Likewise.
8435 (tdesc_s390_linux32v2): Likewise.
8436 (init_registers_s390_linux64): Likewise.
8437 (tdesc_s390_linux64): Likewise.
8438 (init_registers_s390_linux64v1): Likewise.
8439 (tdesc_s390_linux64v1): Likewise.
8440 (init_registers_s390_linux64v2): Likewise.
8441 (tdesc_s390_linux64v2): Likewise.
8442 (init_registers_s390_te_linux64): Likewise.
8443 (tdesc_s390_te_linux64): Likewise.
8444 (init_registers_s390_vx_linux64): Likewise.
8445 (tdesc_s390_vx_linux64): Likewise.
8446 (init_registers_s390_tevx_linux64): Likewise.
8447 (tdesc_s390_tevx_linux64): Likewise.
8448 (init_registers_s390x_linux64): Likewise.
8449 (tdesc_s390x_linux64): Likewise.
8450 (init_registers_s390x_linux64v1): Likewise.
8451 (tdesc_s390x_linux64v1): Likewise.
8452 (init_registers_s390x_linux64v2): Likewise.
8453 (tdesc_s390x_linux64v2): Likewise.
8454 (init_registers_s390x_te_linux64): Likewise.
8455 (tdesc_s390x_te_linux64): Likewise.
8456 (init_registers_s390x_vx_linux64): Likewise.
8457 (tdesc_s390x_vx_linux64): Likewise.
8458 (init_registers_s390x_tevx_linux64): Likewise.
8459 (tdesc_s390x_tevx_linux64): Likewise.
8460 (have_hwcap_s390_vx): New static variable.
8461 (s390_arch_setup): Fill have_hwcap_s390_vx.
8462 (s390_get_thread_area): New function.
8463 (s390_ft_entry_gpr_esa): New const.
8464 (s390_ft_entry_gpr_zarch): New const.
8465 (s390_ft_entry_misc): New const.
8466 (s390_ft_entry_fr): New const.
8467 (s390_ft_entry_vr): New const.
8468 (s390_ft_main_31): New const.
8469 (s390_ft_main_64): New const.
8470 (s390_ft_exit_fr): New const.
8471 (s390_ft_exit_vr): New const.
8472 (s390_ft_exit_misc): New const.
8473 (s390_ft_exit_gpr_esa): New const.
8474 (s390_ft_exit_gpr_zarch): New const.
8475 (append_insns): New function.
8476 (s390_relocate_instruction): New function.
8477 (s390_install_fast_tracepoint_jump_pad): New function.
8478 (s390_get_min_fast_tracepoint_insn_len): New function.
8479 (s390_get_ipa_tdesc_idx): New function.
8480 (struct linux_target_ops): Wire in the above functions.
8481 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8482 * linux-s390-tdesc.h: New file.
8483
a4105d04
MK
84842016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8485
8486 * linux-s390-low.c (s390_supports_tracepoints): New function.
8487 (struct linux_target_ops): Fill supports_tracepoints hook.
8488
35ac8b3e
YQ
84892016-03-18 Yao Qi <yao.qi@linaro.org>
8490
8491 * linux-low.c (lwp_signal_can_be_delivered): New function.
8492 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8493
94610ec4
YQ
84942016-03-18 Yao Qi <yao.qi@linaro.org>
8495
8496 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8497 0 if signal is enqueued. Remove 'signal' from one debugging
8498 message. Move one debugging message to some lines below.
8499 Remove code setting 'signal' to 0.
8500
80aea927
YQ
85012016-03-18 Yao Qi <yao.qi@linaro.org>
8502
8503 * linux-low.c (linux_low_filter_event): Remove redundant
8504 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8505
b04fd3be
MK
85062016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8507
8508 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8509 (struct linux_target_ops): Wire in the above.
8510
c40c8d4b
YQ
85112016-03-03 Yao Qi <yao.qi@linaro.org>
8512
8513 * linux-low.c: Update comments to start_step_over.
8514
0f8288ae
YQ
85152016-03-03 Yao Qi <yao.qi@linaro.org>
8516
8517 PR server/19736
8518 * linux-low.c (handle_extended_wait): Set child suspended
8519 if event_lwp->bp_reinsert isn't zero.
8520
fdbd04a8
YQ
85212016-03-02 Yao Qi <yao.qi@linaro.org>
8522
8523 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8524 enqueue_pending_signal.
8525
6896a8fa
MK
85262016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8527
8528 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8529 is actually loaded.
8530
ab503087
MK
85312016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8532
8533 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8534 (s390_regmap_3264) [!__s390x__]: New global.
8535 (s390_collect_ptrace_register): Skip map entries containing -1.
8536 (s390_supply_ptrace_register): Ditto.
8537 (s390_fill_gprs_high): New function.
8538 (s390_store_gprs_high): New function.
8539 (s390_regsets): Add NT_S390_HIGH_GPRS.
8540 (s390_get_hwcap): Enable on 31-bit.
8541 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8542 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8543 Detect NT_S390_HIGH_GPRS.
8544 (s390_usrregs_info_3264): Enable on 31-bit.
8545 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8546 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8547
ae91f625
MK
85482016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8549
8550 PR gdb/13808
8551 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8552 * configure.srv: Ditto.
8553 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8554 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8555 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8556 (init_registers_amd64_linux): Remove prototype.
8557 (tdesc_amd64_linux): Remove declaration.
8558 (get_ipa_tdesc): New function.
8559 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8560 initialize remaining tdescs.
8561 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8562 (init_registers_i386_linux): Remove prototype.
8563 (tdesc_i386_linux): Remove declaration.
8564 (get_ipa_tdesc): New function.
8565 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8566 initialize remaining tdescs.
8567 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8568 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8569 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8570 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8571 (x86_get_ipa_tdesc_idx): New function.
8572 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8573 * linux-x86-tdesc.h: New file.
8574 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8575 (target_get_ipa_tdesc_idx): New macro.
8576 * tracepoint.c (ipa_tdesc_idx): New macro.
8577 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8578 (symbol_list): Add ipa_tdesc_idx.
8579 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8580 (ipa_tdesc): Remove.
8581 (ipa_tdesc_idx): New variable.
8582 (get_context_regcache): Use get_ipa_tdesc.
8583 (gdb_collect): Ditto.
8584 (gdb_probe): Ditto.
8585 * tracepoint.h (get_ipa_tdesc): New prototype.
8586 (ipa_tdesc): Remove.
8587
e7ad2f14
PA
85882016-02-24 Pedro Alves <palves@redhat.com>
8589
8590 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8591 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8592 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8593 Factor out common code between the USE_SIGTRAP_SIGINFO and
8594 !USE_SIGTRAP_SIGINFO blocks.
8595 (linux_low_filter_event): Call save_stop_reason instead of
8596 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8597 Update comments.
8598 (linux_wait_1): Update comments.
8599
657f9cde
WW
86002016-02-24 Wei-cheng Wang <cole945@gmail.com>
8601
8602 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8603 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8604 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8605 ppc_insert_point, ppc_remove_point.
8606
b00b61e1
MK
86072016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8608
8609 * linux-s390-low.c (s390_supports_z_point_type): New function.
8610 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8611
553cb527
YQ
86122016-02-16 Yao Qi <yao.qi@linaro.org>
8613
8614 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8615 PC. Get pc from regcache_read_pc.
8616
a5652c21
YQ
86172016-02-12 Yao Qi <yao.qi@linaro.org>
8618
8619 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8620 or linux_get_pc_32bit.
8621 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8622
ed443b61
YQ
86232016-02-12 Yao Qi <yao.qi@linaro.org>
8624
8625 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8626 arm_linux_get_next_pcs_fixup.
8627
020ecd38
MK
86282016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8629
8630 * tracepoint.c (x_tracepoint_action_download): Change
8631 write_inferior_data_ptr to write_inferior_data_pointer.
8632 (cmd_qtstart): Likewise.
8633 (write_inferior_data_ptr): Remove.
8634 (download_agent_expr): Change write_inferior_data_ptr to
8635 write_inferior_data_pointer.
8636 (download_tracepoint_1): Likewise.
8637 (download_tracepoint): Likewise.
8638 (download_trace_state_variables): Likewise.
8639
7cae9051
WW
86402016-02-11 Wei-cheng Wang <cole945@gmail.com>
8641 Marcin Kościelnicki <koriakin@0x04.net>
8642
8643 * tracepoint.c (struct tracepoint_action_ops): Remove.
8644 (struct tracepoint_action): Remove ops.
8645 (m_tracepoint_action_download, r_tracepoint_action_download)
8646 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8647 size and offset accordingly.
8648 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8649 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8650 (tracepoint_action_send, tracepoint_action_download): New functions.
8651 Helpers for trace action handlers.
8652 (add_tracepoint_action): Remove setup actions ops.
8653 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8654
9f6a71b4
YQ
86552016-02-10 Yao Qi <yao.qi@linaro.org>
8656
8657 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8658
1e94266c
SM
86592016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8660
8661 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8662 to AC_OUTPUT.
8663 * configure: Regenerate.
8664
8adce034
SM
86652016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8666
8667 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8668 void * to gdb_byte *.
8669 * linux-low.c (siginfo_fixup): Likewise.
8670 (linux_xfer_siginfo): Likewise.
8671 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8672 Likewise.
8673 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8674
93813b37
WT
86752016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8676
8677 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8678 to srv_tgtobj.
8679 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8680 to srv_tgtobj.
8681 * linux-x86-low.c [__x86_64__]: Include
8682 "nat/amd64-linux-siginfo.h".
8683 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8684 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8685 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8686 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8687 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8688 (cpt_si_fd, si_timerid, si_overrun): Move from
8689 nat/amd64-linux-siginfo.c.
8690 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8691
8424cc97
SM
86922016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8693
8694 * server.c (skip_to_semicolon): Remove.
8695 (process_point_options): Use strchrnul instead of
8696 skip_to_semicolon.
8697
4d18591b
YQ
86982016-01-26 Yao Qi <yao.qi@linaro.org>
8699
8700 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8701 * linux-low.c (install_software_single_step_breakpoints): Don't
8702 call regcache_read_pc.
8703 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8704 argument pc.
8705
d8020970
YQ
87062016-01-26 Yao Qi <yao.qi@linaro.org>
8707
8708 * linux-low.c (install_software_single_step_breakpoints): Call
8709 regcache_read_pc instead of get_pc.
8710
8b207339
YQ
87112016-01-26 Yao Qi <yao.qi@linaro.org>
8712
8713 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8714 (unblock_async_io): Rename to ...
8715 (block_unblock_async_io): ... it. New function.
8716 (enable_async_io): Don't install SIGIO handler. Unblock it
8717 instead.
8718 (disable_async_io): Don't ignore SIGIO. Block it instead.
8719 (initialize_async_io): Install SIGIO handler. Don't call
8720 unblock_async_io.
8721
18879fef
YQ
87222016-01-26 Yao Qi <yao.qi@linaro.org>
8723
8724 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8725 first character is '\003', call *the_target->request_interrupt.
8726
a0f8e08a
YQ
87272016-01-25 Yao Qi <yao.qi@linaro.org>
8728
8729 * remote-utils.c (new_thread_notify): Remove.
8730 (dead_thread_notify): Likewise.
8731 * remote-utils.h (new_thread_notify): Remove declaration.
8732 (dead_thread_notify): Likewise.
8733
cc5fd9ab
MK
87342016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8735
8736 * gdb.trace/pending.exp: Fix expected message on continue.
8737
99e8eb11
MK
87382016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8739
8740 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8741 it works properly on big-endian machines where sizeof (CORE_ADDR)
8742 != sizeof (void *).
8743
a994041d
PA
87442016-01-21 Pedro Alves <palves@redhat.com>
8745
8746 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8747 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8748 * configure: Regenerate.
8749
f7a6a40d
YQ
87502016-01-21 Yao Qi <yao.qi@linaro.org>
8751
8752 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8753 is_thumb and set it according to CPSR saved on the stack.
8754 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8755 arm_sigreturn_next_pc.
8756
6f69e520
YQ
87572016-01-18 Yao Qi <yao.qi@linaro.org>
8758
8759 * linux-low.c (linux_set_pc_64bit): New function.
8760 (linux_get_pc_64bit): New function.
8761 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8762 Declare.
8763 * linux-sparc-low.c (debug_threads): Remove declaration.
8764 (sparc_get_pc): Remove.
8765 (the_low_target): Use linux_get_pc_64bit instead of
8766 sparc_get_pc.
8767 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8768 (the_low_target): Use linux_get_pc_64bit and
8769 linux_set_pc_64bit.
8770
276d4552
YQ
87712016-01-18 Yao Qi <yao.qi@linaro.org>
8772
8773 * linux-arm-low.c (debug_threads): Remove declaration.
8774 (arm_get_pc, arm_set_pc): Remove.
8775 (the_low_target): Use linux_get_pc_32bit and
8776 linux_set_pc_32bit.
8777 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8778 (the_low_target): Use linux_get_pc_32bit and
8779 linux_set_pc_32bit.
8780 * linux-cris-low.c (debug_threads): Remove declaration.
8781 (cris_get_pc, cris_set_pc,): Remove.
8782 (the_low_target): Use linux_get_pc_32bit and
8783 linux_set_pc_32bit.
8784 * linux-crisv32-low.c (debug_threads): Remove declaration.
8785 (cris_get_pc, cris_set_pc): Remove.
8786 (the_low_target): Use linux_get_pc_32bit and
8787 linux_set_pc_32bit.
8788 * linux-low.c: Include inttypes.h.
8789 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8790 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8791 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8792 (the_low_target): Use linux_get_pc_32bit and
8793 linux_set_pc_32bit.
8794 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8795 (the_low_target): Use linux_get_pc_32bit and
8796 linux_set_pc_32bit.
8797 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8798 (the_low_target): Use linux_get_pc_32bit and
8799 linux_set_pc_32bit.
8800 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8801 (the_low_target): Use linux_get_pc_32bit and
8802 linux_set_pc_32bit.
8803 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8804 (the_low_target): Use linux_get_pc_32bit and
8805 linux_set_pc_32bit.
8806
eb0edac8
GB
88072016-01-18 Gary Benson <gbenson@redhat.com>
8808
8809 * configure.ac (AC_FUNC_FORK): New check.
8810 * config.in: Regenerate.
8811 * configure: Likewise.
8812
1b451dda
YQ
88132016-01-14 Yao Qi <yao.qi@linaro.org>
8814
8815 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8816 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8817 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8818 arm_get_next_pcs_ctor.
8819
82075af2
JS
88202016-01-12 Josh Stone <jistone@redhat.com>
8821 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8822
8823 * inferiors.h: Include "gdb_vecs.h".
8824 (struct process_info): Add syscalls_to_catch.
8825 * inferiors.c (remove_process): Free syscalls_to_catch.
8826 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8827 syscall_return stops.
8828 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8829 * server.c (handle_general_set): Handle QCatchSyscalls.
8830 (handle_query): Report support for QCatchSyscalls.
8831 * target.h (struct target_ops): Add supports_catch_syscall.
8832 (target_supports_catch_syscall): New macro.
8833 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8834 (struct lwp_info): Add syscall_state.
8835 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8836 Maintain syscall_state and syscalls_to_catch across exec.
8837 (get_syscall_trapinfo): New function, proxy to the_low_target.
8838 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8839 (linux_low_filter_event): Toggle syscall_state entry/return for
8840 syscall traps, and set it ignored for all others.
8841 (gdb_catching_syscalls_p): New function.
8842 (gdb_catch_this_syscall_p): New function.
8843 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8844 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8845 (linux_supports_catch_syscall): New function.
8846 (linux_target_ops): Install it.
8847 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8848 (the_low_target): Install it.
8849
8f13a3ce
MF
88502016-01-12 Mike Frysinger <vapier@gentoo.org>
8851
8852 * acinclude.m4: Include new ../warning.m4 file.
8853 * configure: Regenerated.
8854 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8855
5b3da067
MF
88562016-01-12 Mike Frysinger <vapier@gentoo.org>
8857
8858 * ax.c (is_goto_target): Mark static.
8859 * linux-low.c (register_addr): Likewise.
8860 (linux_fetch_registers, linux_store_registers): Likewise.
8861 * mem-break.c (any_persistent_commands): Fix old prototype.
8862 (add_commands_to_breakpoint): Mark static.
8863 * regcache.c (find_register_by_name): Delete unused func.
8864 * remote-utils.c (hex_or_minus_one): Mark static.
8865 * server.c (monitor_show_help): Mark static.
8866 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8867 handle_v_requests): Likewise.
8868
bc504a31
PA
88692016-01-12 Pedro Alves <palves@redhat.com>
8870
8871 Remove use of the registered trademark symbol throughout.
8872
5a0dd67a
YQ
88732016-01-08 Yao Qi <yao.qi@linaro.org>
8874
8875 * remote-utils.c (getpkt): If c is '\003', call target hook
8876 request_interrupt.
8877
b2ca446f
YQ
88782016-01-06 Yao Qi <yao.qi@linaro.org>
8879
8880 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8881 linux-aarch32-low.c.
8882 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8883 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8884 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8885 (thumb2_breakpoint): Declare.
8886 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8887 linux-aarch32-low.h.
8888 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8889 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8890 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8891
edd88788
JB
88922016-01-01 Joel Brobecker <brobecker@adacore.com>
8893
8894 * gdbreplay.c (gdbreplay_version): Change copyright year in
8895 version message.
8896 * server.c (gdbserver_version): Likewise.
8897
65da7f14
PP
88982015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8899
8900 * server.c (crc32_table): Delete.
8901 (crc32): Use libiberty's xcrc32 function.
8902
4abd5ed2
JB
89032015-12-22 Joel Brobecker <brobecker@adacore.com>
8904
8905 * lynx-low.c (lynx_delete_thread_callback): New function.
8906 (lynx_mourn): Properly delete our process and all of its
8907 threads. Remove call to clear_inferiors.
8908
0e50fe5c
JB
89092015-12-22 Joel Brobecker <brobecker@adacore.com>
8910
8911 * target.c (thread_search_callback): Add check that
8912 the thread_stopped target callback is not NULL before
8913 calling it.
8914
35adc03f
YQ
89152015-12-21 Yao Qi <yao.qi@linaro.org>
8916
8917 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8918 arm breakpoint.
8919
bd2b2909
AT
89202015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8921
8922 * server.c (handle_query): Call target_supports_software_single_step.
8923
7fe5e27e
AT
89242015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8925
8926 * linux-low.c (single_step): New function.
8927 (linux_resume_one_lwp_throw): Call single_step.
8928 (start_step_over): Likewise.
8929
d9311bfa
AT
89302015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8931
8932 * Makefile.in (SFILES): Append arch/arm-linux.c,
8933 arch/arm-get-next-pcs.c.
8934 (arm-linux.o): New rule.
8935 (arm-get-next-pcs.o): New rule.
8936 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8937 arm-linux.o.
8938 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8939 to linux-aarch32-low.c.
8940 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8941 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8942 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8943 (thumb2_breakpoint_len): Likewise.
8944 (arm_is_thumb_mode): Make non-static.
8945 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8946 from linux-aarch32-low.c.
8947 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8948 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8949 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8950 (thumb2_breakpoint_len): Likewise.
8951 (arm_is_thumb_mode): New declaration.
8952 * linux-arm-low.c: Include arch/arm-linux.h
8953 aarch/arm-get-next-pcs.h, sys/syscall.h.
8954 (get_next_pcs_ops): New struct.
8955 (get_next_pcs_addr_bits_remove): New function.
8956 (get_next_pcs_is_thumb): New function.
8957 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8958 (arm_sigreturn_next_pc): Likewise.
8959 (get_next_pcs_syscall_next_pc): Likewise.
8960 (arm_gdbserver_get_next_pcs): Likewise.
8961 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8962 Initialize.
8963 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8964 * server.h: Include gdb_vecs.h.
8965
68ce2059
AT
89662015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8967
8968 * Makefile.in (SFILES): Append common/common-regcache.c.
8969 (OBS): Append common-regcache.o.
8970 (common-regcache.o): New rule.
8971 * regcache.c (init_register_cache): Initialize cache to
8972 REG_UNAVAILABLE.
8973 (regcache_raw_read_unsigned): New function.
8974 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8975 register_status enum.
8976
fa5308bd
AT
89772015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8978
8979 * linux-aarch64-low.c (the_low_targets): Rename
8980 breakpoint_reinsert_addr to get_next_pcs.
8981 * linux-arm-low.c (the_low_targets): Likewise.
8982 * linux-bfin-low.c (the_low_targets): Likewise.
8983 * linux-cris-low.c (the_low_targets): Likewise.
8984 * linux-crisv32-low.c (the_low_targets): Likewise.
8985 * linux-low.c (can_software_single_step): Likewise.
8986 (install_software_single_step_breakpoints): New function.
8987 (start_step_over): Use install_software_single_step_breakpoints.
8988 * linux-low.h: New CORE_ADDR vector.
8989 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8990 get_next_pcs.
8991 * linux-mips-low.c (the_low_targets): Likewise.
8992 * linux-nios2-low.c (the_low_targets): Likewise.
8993 * linux-sparc-low.c (the_low_targets): Likewise.
8994
4a6ed09b
PA
89952015-12-17 Pedro Alves <palves@redhat.com>
8996
8997 * linux-low.c (linux_kill_one_lwp): Remove references to
8998 LinuxThreads.
8999 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9000 to 'kill'.
9001 (linux_init_signals): Delete.
9002 (initialize_low): Adjust.
9003 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9004
7544db95
PA
90052015-12-16 Pedro Alves <palves@redhat.com>
9006
9007 * configure.ac (compiler warning flags): When testing a
9008 -Wno-foo option, check whether -Wfoo works instead.
9009 * configure: Regenerate.
9010
8020350c
DB
90112015-12-11 Don Breazeal <donb@codesourcery.com>
9012
9013 * server.c (process_serial_event): Don't exit from gdbserver
9014 in remote mode if there are still active inferiors.
9015
db91f502
YQ
90162015-12-11 Yao Qi <yao.qi@linaro.org>
9017
9018 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9019 arm_breakpoint_at if the process is 32-bit.
9020
b37a6290
YQ
90212015-12-11 Yao Qi <yao.qi@linaro.org>
9022
9023 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9024 arm breakpoint.
9025
17b1509a
YQ
90262015-12-07 Yao Qi <yao.qi@linaro.org>
9027
9028 * configure.srv: Append arm.o to srv_tgtobj for
9029 aarch64*-*-linux* target.
9030 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9031 from linux-arm-low.c.
9032 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9033 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9034 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9035 (thumb2_breakpoint_len): Likewise.
9036 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9037 (arm_breakpoint_kinds): Likewise.
9038 (arm_breakpoint_kind_from_pc): Likewise.
9039 (arm_sw_breakpoint_from_kind): Likewise.
9040 (arm_breakpoint_kind_from_current_state): Likewise.
9041 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9042 (arm_sw_breakpoint_from_kind): Declare.
9043 (arm_breakpoint_kind_from_current_state): Declare.
9044 (arm_breakpoint_at): Declare.
9045 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9046 arm_sw_breakpoint_from_kind if process is 32-bit.
9047 (aarch64_breakpoint_kind_from_pc): New function.
9048 (aarch64_breakpoint_kind_from_current_state): New function.
9049 (the_low_target): Initialize fields breakpoint_kind_from_pc
9050 and breakpoint_kind_from_current_state.
9051 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9052 linux-aarch32-low.c.
9053 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9054 (arm_breakpoint, arm_breakpoint_len): Likewise.
9055 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9056 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9057 (arm_is_thumb_mode): Likewise.
9058 (arm_breakpoint_at): Likewise.
9059 (arm_breakpoint_kind_from_pc): Likewise.
9060 (arm_sw_breakpoint_from_kind): Likewise.
9061 (arm_breakpoint_kind_from_current_state): Likewise.
9062
9063 Revert:
9064 2015-08-04 Yao Qi <yao.qi@linaro.org>
9065
9066 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9067 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9068 * server.c (extended_protocol): Remove "static".
9069 * server.h (extended_protocol): Declare it.
9070
ece66d65
JS
90712015-12-04 Josh Stone <jistone@redhat.com>
9072
9073 * target.h (struct target_ops) <arch_setup>: Rename to ...
9074 (struct target_ops) <post_create_inferior>: ... this.
9075 (target_arch_setup): Rename to ...
9076 (target_post_create_inferior): ... this, calling post_create_inferior.
9077 * server.c (start_inferior): Update target_arch_setup calls to
9078 target_post_create_inferior.
9079 * linux-low.c (linux_low_ptrace_options): Forward declare.
9080 (linux_arch_setup): Update its comment for general use.
9081 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9082 (struct linux_target_ops): Use linux_post_create_inferior.
9083 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9084 to post_create_inferior.
9085 * nto-low.c (struct nto_target_ops): Likewise.
9086 * spu-low.c (struct spu_target_ops): Likewise.
9087 * win32-low.c (struct win32_target_ops): Likewise.
9088
e58c48b4
AT
90892015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9090
9091 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9092
fbec8956
AT
90932015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9094
9095 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9096 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9097 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9098 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9099 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9100 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9101 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9102 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9103 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9104 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9105 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9106 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9107
9b4c5f87
AT
91082015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9109
9110 * linux-low.c (linux_look_up_symbols): Don't call
9111 linux_supports_traceclone.
9112 * linux-low.h (thread_db_init): Remove use_events argument.
9113 * thread-db.c (thread_db_use_event): Remove global variable.
9114 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9115 (struct thread_db) <td_create_bp>: Remove field.
9116 (thread_db_create_event): Remove function.
9117 (thread_db_enable_reporting): Likewise.
9118 (find_one_thread): Don't check for thread_db_use_events.
9119 (attach_thread): Likewise.
9120 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9121 (try_thread_db_load_1): Don't check for thread_db_use_events.
9122 (thread_db_init): Remove use_events argument and thread events
9123 handling.
9124 (remove_thread_event_breakpoints): Remove function.
9125 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9126
7d00775e
AT
91272015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9128
9129 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9130 New function.
9131 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9132 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9133 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9134 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9135 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9136 Initialize.
9137 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9138 New function.
9139 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9140 * linux-low.c (can_hardware_single_step): Use
9141 supports_hardware_single_step.
9142 (can_software_single_step): New function.
9143 (start_step_over): Call can_software_single_step.
9144 (linux_supports_hardware_single_step): New function.
9145 (struct target_ops) <supports_software_single_step>: Initialize.
9146 * linux-low.h (struct linux_target_ops)
9147 <supports_hardware_single_step>: Initialize.
9148 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9149 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9150 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9151 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9152 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9153 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9154 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9155 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9156 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9157 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9158 Initialize.
9159 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9160 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9161 Initialize.
9162 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9163 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9164 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9165 New function.
9166 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9167 * target.h (struct target_ops): <supports_software_single_step>:
9168 New field.
9169 (target_supports_software_single_step): New macro.
9170
2d97cd35
AT
91712015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9172
9173 * linux-low.c (linux_wait_1): Fix pc advance condition.
9174 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9175 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9176
769ef81f
AT
91772015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9178
9179 * linux-arm-low.c (arm_is_thumb_mode): New function.
9180 (arm_breakpoint_at): Use arm_is_thumb_mode.
9181 (arm_breakpoint_kind_from_current_state): New function.
9182 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9183 Initialize.
9184 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9185 (linux_breakpoint_kind_from_current_state): New function.
9186 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9187 * linux-low.h (struct linux_target_ops)
9188 <breakpoint_kind_from_current_state>: New field.
9189 * target.h (struct target_ops): Likewise.
9190 (target_breakpoint_kind_from_current_state): New macro.
9191
1bebeeca
PA
91922015-11-30 Pedro Alves <palves@redhat.com>
9193
9194 * linux-low.c (linux_resume): Wake up the event loop before
9195 returning.
9196
a67a9fae
PA
91972015-11-30 Pedro Alves <palves@redhat.com>
9198
9199 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9200 check.
9201 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9202 to -1.
9203 * target.c (struct thread_search): New structure.
9204 (thread_search_callback): New function.
9205 (prev_general_thread): New global.
9206 (prepare_to_access_memory, done_accessing_memory): New functions.
9207 * target.h (prepare_to_access_memory, done_accessing_memory):
9208 Replace macros with function declarations.
9209
f2faf941
PA
92102015-11-30 Pedro Alves <palves@redhat.com>
9211
9212 PR 14618
9213 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9214 report TARGET_WAITKIND_NO_RESUMED.
9215 * remote-utils.c (prepare_resume_reply): Handle
9216 TARGET_WAITKIND_NO_RESUMED.
9217 * server.c (report_no_resumed): New global.
9218 (handle_query) <qSupported>: Handle "no-resumed+". Report
9219 "no-resumed+" support.
9220 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9221 return error if the client doesn't support no-resumed events.
9222 (push_stop_notification): New function.
9223 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9224 events if the client supports them.
9225
a681f9c9
PA
92262015-11-30 Pedro Alves <palves@redhat.com>
9227
9228 * linux-low.c (thread_still_has_status_pending_p): Don't check
9229 vCont;t here.
9230 (lwp_resumed): New function.
9231 (status_pending_p_callback): Return early if the LWP is not
9232 supposed to be resumed.
9233
65706a29
PA
92342015-11-30 Pedro Alves <palves@redhat.com>
9235
9236 * linux-low.c (handle_extended_wait): Assert that the LWP's
9237 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9238 thread create events, leave the new child's status pending.
9239 (linux_low_filter_event): If GDB wants to hear about thread exit
9240 events, leave the LWP marked dead and don't delete it.
9241 (linux_wait_for_event_filtered): Don't check for thread exit.
9242 (filter_exit_event): New function.
9243 (linux_wait_1): Use it, when returning an exit event.
9244 (linux_resume_one_lwp_throw): Assert that the LWP's
9245 waitstatus is TARGET_WAITKIND_IGNORE.
9246 * remote-utils.c (prepare_resume_reply): Handle
9247 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9248 * server.c (report_thread_events): New global.
9249 (handle_general_set): Handle QThreadEvents.
9250 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9251 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9252 TARGET_WAITKIND_THREAD_EXITED.
9253 * server.h (report_thread_events): Declare.
9254
56cf4bed
PA
92552015-11-30 Pedro Alves <palves@redhat.com>
9256
9257 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9258 the thread's last_resume_kind was resume_stop.
9259
500c1d85
PA
92602015-11-30 Pedro Alves <palves@redhat.com>
9261
9262 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9263 before returning.
9264
de979965
PA
92652015-11-30 Pedro Alves <palves@redhat.com>
9266
9267 * server.c (handle_v_requests): Handle vCtrlC.
9268
34c65914
PA
92692015-11-30 Pedro Alves <palves@redhat.com>
9270
9271 * gdbthread.h (find_any_thread_of_pid): Declare.
9272 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9273 functions.
9274 * server.c (handle_query): If current_thread is NULL, look for
9275 another thread of the selected process.
9276
79efa585 92772015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9278 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9279
9280 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9281 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9282 name in reply.
9283 * target.h (struct target_ops) <thread_name>: New field.
9284 (target_thread_name): New macro.
9285
80d82c19
JB
92862015-11-23 Joel Brobecker <brobecker@adacore.com>
9287
9288 * regcache.h (regcache_invalidate_pid): Add declaration.
9289 * regcache.c (regcache_invalidate_pid): New function, extracted
9290 from regcache_invalidate.
9291 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9292 Add trivial documentation comment.
9293 * lynx-low.c: Use regcache_invalidate_pid instead of
9294 regcache_invalidate.
9295
64da5dd5
JB
92962015-11-23 Joel Brobecker <brobecker@adacore.com>
9297
9298 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9299 and Elf64_auxv_t if the target is Android.
9300
37ce4055
DE
93012015-11-22 Doug Evans <xdje42@gmail.com>
9302
9303 * target.h: #include <sys/types.h>.
9304
06e03fff
PA
93052015-11-19 Pedro Alves <palves@redhat.com>
9306
9307 * linux-low.c (linux_process_qsupported): Change prototype.
9308 Adjust.
9309 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9310 Change prototype.
9311 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9312 and adjust to loop over all features.
9313 * server.c (handle_query) <qSupported>: Adjust to call
9314 target_process_qsupported once, passing it a vector of unprocessed
9315 features.
9316 * target.h (struct target_ops) <process_qsupported>: Change
9317 prototype.
9318 (target_process_qsupported): Adjust.
9319
9a084706
PA
93202015-11-19 Pedro Alves <palves@redhat.com>
9321
9322 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9323 mode.
9324 * configure: Regenerate.
9325
dad44a1f
PA
93262015-11-19 Pedro Alves <palves@redhat.com>
9327
9328 * configure: Regenerate.
9329
231c0592
YQ
93302015-11-19 Yao Qi <yao.qi@linaro.org>
9331
9332 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9333 type to uint32_t.
9334
6c1c9a8b
YQ
93352015-11-19 Yao Qi <yao.qi@linaro.org>
9336
9337 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9338 (struct aarch64_operand): Move enum out.
9339
9caa3311
YQ
93402015-11-19 Yao Qi <yao.qi@linaro.org>
9341
9342 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9343 struct user_fpsimd_state *.
9344 (aarch64_store_fpregset): Likewise.
9345
6a69a054
YQ
93462015-11-19 Yao Qi <yao.qi@linaro.org>
9347
9348 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9349 struct user_pt_regs *.
9350 (aarch64_store_gregset): Likewise.
9351
1798301e
PA
93522015-11-18 Pedro Alves <palves@redhat.com>
9353
9354 * Makefile.in (all_object_files): Add $IPA_OBJS.
9355
ce7715e2
PA
93562015-11-17 Pedro Alves <palves@redhat.com>
9357
9358 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9359 GDB_SIGNAL_0 and gdb_signal_to_string.
9360
c0879059
PA
93612015-11-17 Pedro Alves <palves@redhat.com>
9362
9363 * win32-low.c (handle_output_debug_string): Remove parameter.
9364 (win32_kill): Remove our_status local and adjust call to
9365 handle_output_debug_string.
9366 (get_child_debug_event): Adjust call to
9367 handle_output_debug_string.
9368
1996e237
SM
93692015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9370
9371 * linux-mips-low.c (mips_fill_gregset): Add cast.
9372 (mips_store_gregset): Likewise.
9373 (mips_fill_fpregset): Likewise.
9374 (mips_store_fpregset): Likewise.
9375
cbec665b
SM
93762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9377
9378 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9379 priv.
9380
eb3e3c67
SM
93812015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9382
9383 * linux-mips-low.c (mips_linux_new_thread): Change type of
9384 watch_type to enum target_hw_bp_type.
9385
171de4b8
SM
93862015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9387
9388 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9389 Change return type to arm_hwbp_type.
9390
04248ead
SM
93912015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9392
9393 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9394 (arm_store_gregset): Likewise.
9395 * linux-arm-low.c (arm_get_hwcap): Likewise.
9396 (arm_read_description): Likewise.
9397
04b3479c
SM
93982015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9401
2bc84e8a
SM
94022015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9403
9404 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9405 (ppc_fill_vsxregset): Likewise.
9406 (ppc_store_vsxregset): Likewise.
9407 (ppc_fill_vrregset): Likewise.
9408 (ppc_store_vrregset): Likewise.
9409 (ppc_fill_evrregset): Likewise.
9410 (ppc_store_evrregset): Likewise.
9411
e6c5bb05
SM
94122015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9413
9414 * linux-ppc-low.c (ppc_usrregs_info): Remove
9415 forward-declaration.
9416 (ppc_arch_setup): Move lower in file.
9417
7ea45d72
SM
94182015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9419
9420 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9421 (ps_pdwrite): Likewise.
9422
69291610
HW
94232015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9424
9425 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9426 to after assert checks.
9427
b42945fd
SM
94282015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9429
9430 * proc-service.c (ps_pdread): Add/adjust casts.
9431 (ps_pdwrite): Add/adjust casts.
9432
d6f85c84
SM
94332015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9434
9435 * server.c (handle_search_memory_1): Cast return value of
9436 memmem.
9437
f98cd059
SM
94382015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9439
9440 * server.c (write_qxfer_response): Change type of data to
9441 gdb_byte *.
9442
d2412fa5
PA
94432015-10-29 Pedro Alves <palves@redhat.com>
9444
9445 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9446
c17414a2
PA
94472015-10-29 Pedro Alves <palves@redhat.com>
9448
9449 * tracepoint.c (clear_installed_tracepoints): Add casts.
9450
e053fbc4
PA
94512015-10-29 Pedro Alves <palves@redhat.com>
9452
9453 * server.c (handle_v_cont, process_serial_event): Add enum
9454 gdb_signal casts to signal parsing code.
9455
add67df8
PA
94562015-10-29 Pedro Alves <palves@redhat.com>
9457
9458 * linux-low.h (NULL_REGSET): Define.
9459 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9460 * linux-arm-low.c (arm_regsets): Likewise.
9461 * linux-crisv32-low.c (cris_regsets): Likewise.
9462 * linux-m68k-low.c (m68k_regsets): Likewise.
9463 * linux-mips-low.c (mips_regsets): Likewise.
9464 * linux-nios2-low.c (nios2_regsets): Likewise.
9465 * linux-ppc-low.c (ppc_regsets): Likewise.
9466 * linux-s390-low.c (s390_regsets): Likewise.
9467 * linux-sh-low.c (sh_regsets): Likewise.
9468 * linux-sparc-low.c (sparc_regsets): Likewise.
9469 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9470 * linux-tile-low.c (tile_regsets): Likewise.
9471 * linux-x86-low.c (x86_regsets): Likewise.
9472 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9473
50bc912a
PA
94742015-10-29 Pedro Alves <palves@redhat.com>
9475
9476 * linux-low.h (NULL_REGSET): Define.
9477 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9478 * linux-arm-low.c (arm_regsets): Likewise.
9479 * linux-crisv32-low.c (cris_regsets): Likewise.
9480 * linux-m68k-low.c (m68k_regsets): Likewise.
9481 * linux-mips-low.c (mips_regsets): Likewise.
9482 * linux-nios2-low.c (nios2_regsets): Likewise.
9483 * linux-ppc-low.c (ppc_regsets): Likewise.
9484 * linux-s390-low.c (s390_regsets): Likewise.
9485 * linux-sh-low.c (sh_regsets): Likewise.
9486 * linux-sparc-low.c (sparc_regsets): Likewise.
9487 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9488 * linux-tile-low.c (tile_regsets): Likewise.
9489 * linux-x86-low.c (x86_regsets): Likewise.
9490 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9491
682b2546
DE
94922015-10-26 Doug Evans <dje@google.com>
9493
9494 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9495
963843d4
DE
94962015-10-26 Doug Evans <dje@google.com>
9497
9498 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9499
d41401ac
DE
95002015-10-26 Doug Evans <dje@google.com>
9501
9502 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9503 for debug_printf.
9504 (attach_thread, find_new_threads_callback): Ditto.
9505
3db28855
AT
95062015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9507
9508 * mem-break.h (set_breakpoint_data): Remove.
9509
fb78e89c
AT
95102015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9511
9512 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9513 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9514 (initialize_low): Remove set_breakpoint_data call.
9515 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9516 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9517 (initialize_low): Remove set_breakpoint_data call.
9518 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9519 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9520 (initialize_low): Remove set_breakpoint_data call.
9521
2e6ee069
AT
95222015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9523
9524 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9525 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9526 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9527 * target.h (target_breakpoint_kind_from_pc): New macro.
9528
1652a986
AT
95292015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9530
9531 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9532 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9533 the default breakpoint kind.
9534
abeead09
AT
95352015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9536
9537 * linux-arm-low.c (arm_supports_z_point_type): Add software
9538 breakpoint support.
9539
b0b4b501
AT
95402015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9541
9542 * linux-arm-low.c: Refactor breakpoint definitions.
9543 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9544 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9545
8689682c
AT
95462015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9547
9548 * Makefile.in: Add arm.c/o.
9549 * configure.srv: Likewise.
9550 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9551 (arm_breakpoint_kind_from_pc): New function.
9552 (arm_sw_breakpoint_from_kind): Return proper kind.
9553 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9554
27165294
AT
95552015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9556
9557 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9558 removal.
9559 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9560 (struct raw_breakpoint) <size>: Remove.
9561 (struct raw_breakpoint) <kind>: Add.
9562 (bp_size): New function.
9563 (bp_opcode): Likewise.
9564 (find_raw_breakpoint_at): Adjust for kind.
9565 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9566 (remove_memory_breakpoint): Adjust for kind call bp_size.
9567 (set_raw_breakpoint_at): Adjust for kind.
9568 (set_breakpoint): Likewise.
9569 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9570 (delete_raw_breakpoint): Adjust for kind.
9571 (delete_breakpoint): Likewise.
9572 (find_gdb_breakpoint): Likewise.
9573 (set_gdb_breakpoint_1): Likewise.
9574 (set_gdb_breakpoint): Likewise.
9575 (delete_gdb_breakpoint_1): Likewise.
9576 (delete_gdb_breakpoint): Likewise.
9577 (uninsert_raw_breakpoint): Likewise.
9578 (reinsert_raw_breakpoint): Likewise.
9579 (set_breakpoint_data): Remove.
9580 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9581 (check_mem_read): Adjust for kind call bp_size.
9582 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9583 (clone_one_breakpoint): Adjust for kind.
9584 * mem-break.h (set_gdb_breakpoint): Likewise.
9585 (delete_gdb_breakpoint): Likewise.
9586 * server.c (process_serial_event): Likewise.
9587
dd373349
AT
95882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9589
9590 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9591 (struct linux_target_ops) <breakpoint>: Remove.
9592 (struct linux_target_ops) <breakpoint_len>: Remove.
9593 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9594 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9595 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9596 (arm_sw_breakpoint_from_kind): New function.
9597 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9598 (struct linux_target_ops) <breakpoint>: Remove.
9599 (struct linux_target_ops) <breakpoint_len>: Remove.
9600 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9601 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9602 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9603 (struct linux_target_ops) <breakpoint>: Remove.
9604 (struct linux_target_ops) <breakpoint_len>: Remove.
9605 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9607 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9608 (struct linux_target_ops) <breakpoint>: Remove.
9609 (struct linux_target_ops) <breakpoint_len>: Remove.
9610 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9611 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9612 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9613 and sw_breakpoint_from_kind to increment the pc.
9614 (linux_breakpoint_kind_from_pc): New function.
9615 (linux_sw_breakpoint_from_kind): New function.
9616 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9617 (initialize_low): Call breakpoint_kind_from_pc and
9618 sw_breakpoint_from_kind to replace breakpoint_data/len.
9619 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9620 New field.
9621 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9622 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9623 (struct linux_target_ops) <breakpoint>: Remove.
9624 (struct linux_target_ops) <breakpoint_len>: Remove.
9625 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9626 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9627 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9628 (struct linux_target_ops) <breakpoint>: Remove.
9629 (struct linux_target_ops) <breakpoint_len>: Remove.
9630 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9631 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9632 * linux-mips-low.c (mips_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-nios2-low.c (nios2_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 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9643 (struct linux_target_ops) <breakpoint>: Remove.
9644 (struct linux_target_ops) <breakpoint_len>: Remove.
9645 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9646 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9647 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9648 (struct linux_target_ops) <breakpoint>: Remove.
9649 (struct linux_target_ops) <breakpoint_len>: Remove.
9650 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9651 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9652 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9653 (struct linux_target_ops) <breakpoint>: Remove.
9654 (struct linux_target_ops) <breakpoint_len>: Remove.
9655 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9656 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9657 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9658 (struct linux_target_ops) <breakpoint>: Remove.
9659 (struct linux_target_ops) <breakpoint_len>: Remove.
9660 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9661 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9662 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9663 (struct linux_target_ops) <breakpoint>: Remove.
9664 (struct linux_target_ops) <breakpoint_len>: Remove.
9665 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9666 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9667 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9668 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9669 (struct linux_target_ops) <breakpoint>: Remove.
9670 (struct linux_target_ops) <breakpoint_len>: Remove.
9671 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9672 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9673 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9674 (struct linux_target_ops) <breakpoint>: Remove.
9675 (struct linux_target_ops) <breakpoint_len>: Remove.
9676 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9677 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9678
4cd98a19
AT
96792015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9680
9681 * linux-cris-low.c (cris_get_pc): Remove void arg.
9682
774ee6d2
AR
96832015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9684
9685 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9686 variable name.
9687
833dcd29
AR
96882015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9689
9690 * inferiors.c (thread_pid_matches_callback): New function.
9691 (find_thread_process): New function.
9692 (remove_thread): Reset current_thread.
9693 (remove_process): Assert threads have been removed first.
9694
8d689ee5
YQ
96952015-10-15 Yao Qi <yao.qi@linaro.org>
9696
9697 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9698 if it is 3.
9699 (aarch64_remove_point): Likewise.
9700 * regcache.c (regcache_register_size): New function.
9701
1c2e1515
YQ
97022015-10-12 Yao Qi <yao.qi@linaro.org>
9703
9704 * linux-aarch64-low.c: Update all callers as emit_load_store
9705 is renamed to aarch64_emit_load_store.
9706
e1c587c3
YQ
97072015-10-12 Yao Qi <yao.qi@linaro.org>
9708
9709 * linux-aarch64-low.c: Update all callers of function renaming
9710 from emit_insn to aarch64_emit_insn.
9711
b6542f81
YQ
97122015-10-12 Yao Qi <yao.qi@linaro.org>
9713
9714 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9715 arch/aarch64-insn.h.
9716 (struct aarch64_memory_operand): Likewise.
9717 (ENCODE): Likewise.
9718 (emit_insn): Move to arch/aarch64-insn.c.
9719 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9720 (emit_load_store): Move to arch/aarch64-insn.c.
9721 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9722 (can_encode_int32): Remove.
9723
246994ce
YQ
97242015-10-12 Yao Qi <yao.qi@linaro.org>
9725
9726 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9727 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9728 (aarch64_relocate_instruction): Likewise.
9729 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9730 (struct aarch64_insn_visitor): Likewise.
9731
0badd99f
YQ
97322015-10-12 Yao Qi <yao.qi@linaro.org>
9733
9734 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9735 (struct aarch64_insn_visitor): New.
9736 (struct aarch64_insn_relocation_data): New.
9737 (aarch64_ftrace_insn_reloc_b): New function.
9738 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9739 (aarch64_ftrace_insn_reloc_cb): Likewise.
9740 (aarch64_ftrace_insn_reloc_tb): Likewise.
9741 (aarch64_ftrace_insn_reloc_adr): Likewise.
9742 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9743 (aarch64_ftrace_insn_reloc_others): Likewise.
9744 (visitor): New.
9745 (aarch64_relocate_instruction): Use visitor.
9746
dfaffe9d
YQ
97472015-10-12 Yao Qi <yao.qi@linaro.org>
9748
9749 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9750 int. Add argument buf.
9751 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9752 aarch64_relocate_instruction.
9753
70b439f0
YQ
97542015-10-12 Yao Qi <yao.qi@linaro.org>
9755
9756 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9757 argument insn. Remove local variable insn. Don't call
9758 target_read_uint32.
9759 (aarch64_install_fast_tracepoint_jump_pad): Call
9760 target_read_uint32.
9761
7781c06f
YQ
97622015-09-30 Yao Qi <yao.qi@linaro.org>
9763
9764 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9765 (emit_load_store_pair): Likewise.
9766
9a3c8263
SM
97672015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9768
9769 * dll.c (match_dll): Add cast(s).
9770 (unloaded_dll): Likewise.
9771 * linux-low.c (second_thread_of_pid_p): Likewise.
9772 (delete_lwp_callback): Likewise.
9773 (count_events_callback): Likewise.
9774 (select_event_lwp_callback): Likewise.
9775 (linux_set_resume_request): Likewise.
9776 * server.c (accumulate_file_name_length): Likewise.
9777 (emit_dll_description): Likewise.
9778 (handle_qxfer_threads_worker): Likewise.
9779 (visit_actioned_threads): Likewise.
9780 * thread-db.c (any_thread_of): Likewise.
9781 * tracepoint.c (same_process_p): Likewise.
9782 (match_blocktype): Likewise.
9783 (build_traceframe_info_xml): Likewise.
9784
224c3ddb
SM
97852015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9786
9787 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9788 assignment.
9789 (gdb_unparse_agent_expr): Likewise.
9790 * hostio.c (require_data): Likewise.
9791 (handle_pread): Likewise.
9792 * linux-low.c (disable_regset): Likewise.
9793 (fetch_register): Likewise.
9794 (store_register): Likewise.
9795 (get_dynamic): Likewise.
9796 (linux_qxfer_libraries_svr4): Likewise.
9797 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9798 (set_fast_tracepoint_jump): Likewise.
9799 (uninsert_fast_tracepoint_jumps_at): Likewise.
9800 (reinsert_fast_tracepoint_jumps_at): Likewise.
9801 (validate_inserted_breakpoint): Likewise.
9802 (clone_agent_expr): Likewise.
9803 * regcache.c (init_register_cache): Likewise.
9804 * remote-utils.c (putpkt_binary_1): Likewise.
9805 (decode_M_packet): Likewise.
9806 (decode_X_packet): Likewise.
9807 (look_up_one_symbol): Likewise.
9808 (relocate_instruction): Likewise.
9809 (monitor_output): Likewise.
9810 * server.c (handle_search_memory): Likewise.
9811 (handle_qxfer_exec_file): Likewise.
9812 (handle_qxfer_libraries): Likewise.
9813 (handle_qxfer): Likewise.
9814 (handle_query): Likewise.
9815 (handle_v_cont): Likewise.
9816 (handle_v_run): Likewise.
9817 (captured_main): Likewise.
9818 * target.c (write_inferior_memory): Likewise.
9819 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9820 * tracepoint.c (init_trace_buffer): Likewise.
9821 (add_tracepoint_action): Likewise.
9822 (add_traceframe): Likewise.
9823 (add_traceframe_block): Likewise.
9824 (cmd_qtdpsrc): Likewise.
9825 (cmd_qtdv): Likewise.
9826 (cmd_qtstatus): Likewise.
9827 (response_source): Likewise.
9828 (response_tsv): Likewise.
9829 (cmd_qtnotes): Likewise.
9830 (gdb_collect): Likewise.
9831 (initialize_tracepoint): Likewise.
9832
afbe19f8
PL
98332015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9834
9835 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9836 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9837 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9838 <NOP>: New.
9839 (enum aarch64_condition_codes): New enum.
9840 (w0): New static global.
9841 (fp): Likewise.
9842 (lr): Likewise.
9843 (struct aarch64_memory_operand) <type>: New
9844 MEMORY_OPERAND_POSTINDEX type.
9845 (postindex_memory_operand): New helper function.
9846 (emit_ret): New function.
9847 (emit_load_store_pair): New function, factored out of emit_stp
9848 with support for MEMORY_OPERAND_POSTINDEX.
9849 (emit_stp): Rewrite using emit_load_store_pair.
9850 (emit_ldp): New function.
9851 (emit_load_store): Likewise.
9852 (emit_ldr): Mention post-index instruction in comment.
9853 (emit_ldrh): New function.
9854 (emit_ldrb): New function.
9855 (emit_ldrsw): Mention post-index instruction in comment.
9856 (emit_str): Likewise.
9857 (emit_subs): New function.
9858 (emit_cmp): Likewise.
9859 (emit_and): Likewise.
9860 (emit_orr): Likewise.
9861 (emit_orn): Likewise.
9862 (emit_eor): Likewise.
9863 (emit_mvn): Likewise.
9864 (emit_lslv): Likewise.
9865 (emit_lsrv): Likewise.
9866 (emit_asrv): Likewise.
9867 (emit_mul): Likewise.
9868 (emit_sbfm): Likewise.
9869 (emit_sbfx): Likewise.
9870 (emit_ubfm): Likewise.
9871 (emit_ubfx): Likewise.
9872 (emit_csinc): Likewise.
9873 (emit_cset): Likewise.
9874 (emit_nop): Likewise.
9875 (emit_ops_insns): New helper function.
9876 (emit_pop): Likewise.
9877 (emit_push): Likewise.
9878 (aarch64_emit_prologue): New function.
9879 (aarch64_emit_epilogue): Likewise.
9880 (aarch64_emit_add): Likewise.
9881 (aarch64_emit_sub): Likewise.
9882 (aarch64_emit_mul): Likewise.
9883 (aarch64_emit_lsh): Likewise.
9884 (aarch64_emit_rsh_signed): Likewise.
9885 (aarch64_emit_rsh_unsigned): Likewise.
9886 (aarch64_emit_ext): Likewise.
9887 (aarch64_emit_log_not): Likewise.
9888 (aarch64_emit_bit_and): Likewise.
9889 (aarch64_emit_bit_or): Likewise.
9890 (aarch64_emit_bit_xor): Likewise.
9891 (aarch64_emit_bit_not): Likewise.
9892 (aarch64_emit_equal): Likewise.
9893 (aarch64_emit_less_signed): Likewise.
9894 (aarch64_emit_less_unsigned): Likewise.
9895 (aarch64_emit_ref): Likewise.
9896 (aarch64_emit_if_goto): Likewise.
9897 (aarch64_emit_goto): Likewise.
9898 (aarch64_write_goto_address): Likewise.
9899 (aarch64_emit_const): Likewise.
9900 (aarch64_emit_call): Likewise.
9901 (aarch64_emit_reg): Likewise.
9902 (aarch64_emit_pop): Likewise.
9903 (aarch64_emit_stack_flush): Likewise.
9904 (aarch64_emit_zero_ext): Likewise.
9905 (aarch64_emit_swap): Likewise.
9906 (aarch64_emit_stack_adjust): Likewise.
9907 (aarch64_emit_int_call_1): Likewise.
9908 (aarch64_emit_void_call_2): Likewise.
9909 (aarch64_emit_eq_goto): Likewise.
9910 (aarch64_emit_ne_goto): Likewise.
9911 (aarch64_emit_lt_goto): Likewise.
9912 (aarch64_emit_le_goto): Likewise.
9913 (aarch64_emit_gt_goto): Likewise.
9914 (aarch64_emit_ge_got): Likewise.
9915 (aarch64_emit_ops_impl): New static global variable.
9916 (aarch64_emit_ops): New target function, return
9917 &aarch64_emit_ops_impl.
9918 (struct linux_target_ops): Install it.
9919
bb903df0
PL
99202015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9921
9922 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9923 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9924 aarch64-ipa.o.
9925 * linux-aarch64-ipa.c: New file.
9926 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9927 and endian.h.
9928 (aarch64_get_thread_area): New target method.
9929 (extract_signed_bitfield): New helper function.
9930 (aarch64_decode_ldr_literal): New function.
9931 (enum aarch64_opcodes): New enum.
9932 (struct aarch64_register): New struct.
9933 (struct aarch64_operand): New struct.
9934 (x0): New static global.
9935 (x1): Likewise.
9936 (x2): Likewise.
9937 (x3): Likewise.
9938 (x4): Likewise.
9939 (w2): Likewise.
9940 (ip0): Likewise.
9941 (sp): Likewise.
9942 (xzr): Likewise.
9943 (aarch64_register): New helper function.
9944 (register_operand): Likewise.
9945 (immediate_operand): Likewise.
9946 (struct aarch64_memory_operand): New struct.
9947 (offset_memory_operand): New helper function.
9948 (preindex_memory_operand): Likewise.
9949 (enum aarch64_system_control_registers): New enum.
9950 (ENCODE): New macro.
9951 (emit_insn): New helper function.
9952 (emit_b): New function.
9953 (emit_bcond): Likewise.
9954 (emit_cb): Likewise.
9955 (emit_tb): Likewise.
9956 (emit_blr): Likewise.
9957 (emit_stp): Likewise.
9958 (emit_ldp_q_offset): Likewise.
9959 (emit_stp_q_offset): Likewise.
9960 (emit_load_store): Likewise.
9961 (emit_ldr): Likewise.
9962 (emit_ldrsw): Likewise.
9963 (emit_str): Likewise.
9964 (emit_ldaxr): Likewise.
9965 (emit_stxr): Likewise.
9966 (emit_stlr): Likewise.
9967 (emit_data_processing_reg): Likewise.
9968 (emit_data_processing): Likewise.
9969 (emit_add): Likewise.
9970 (emit_sub): Likewise.
9971 (emit_mov): Likewise.
9972 (emit_movk): Likewise.
9973 (emit_mov_addr): Likewise.
9974 (emit_mrs): Likewise.
9975 (emit_msr): Likewise.
9976 (emit_sevl): Likewise.
9977 (emit_wfe): Likewise.
9978 (append_insns): Likewise.
9979 (can_encode_int32_in): New helper function.
9980 (aarch64_relocate_instruction): New function.
9981 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9982 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9983 (struct linux_target_ops): Install aarch64_get_thread_area,
9984 aarch64_install_fast_tracepoint_jump_pad and
9985 aarch64_get_min_fast_tracepoint_insn_len.
9986
787749ea
PL
99872015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9988
9989 * Makefile.in (aarch64-insn.o): New rule.
9990 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9991
9812b2e6
YQ
99922015-09-21 Yao Qi <yao.qi@linaro.org>
9993
9994 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9995
18fe412b
YQ
99962015-09-21 Yao Qi <yao.qi@linaro.org>
9997
9998 * tracepoint.c (max_jump_pad_size): Remove.
9999
a0cc84cd
YQ
100002015-09-18 Yao Qi <yao.qi@linaro.org>
10001
10002 * linux-aarch64-low.c: Don't include sys/uio.h.
10003 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10004
d78908cf
WW
100052015-09-16 Wei-cheng Wang <cole945@gmail.com>
10006
10007 * tracepoint.c (eval_result_type): Change prototype.
10008 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10009
d57e0d50
PA
100102015-09-15 Pedro Alves <palves@redhat.com>
10011
10012 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10013 Check whether to report exec events instead of checking whether
10014 multiprocess is enabled.
10015
5a676acc
PA
100162015-09-15 Pedro Alves <palves@redhat.com>
10017
10018 PR remote/18965
10019 * remote-utils.c (prepare_resume_reply): Merge
10020 TARGET_WAITKIND_VFORK_DONE switch case with the
10021 TARGET_WAITKIND_FORKED case.
10022
7c5d0fad
YQ
100232015-09-15 Yao Qi <yao.qi@linaro.org>
10024
10025 * server.c (handle_query): Check string comparison using
10026 "else if" instead of "if".
10027
750ce8d1
YQ
100282015-09-15 Yao Qi <yao.qi@linaro.org>
10029
10030 * server.c (vCont_supported): New global variable.
10031 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10032 matches. Append ";vContSupported+" to own_buf.
10033 (handle_v_requests): Append ";s;S" to own_buf if target supports
10034 hardware single step or vCont_supported is false.
10035 (capture_main): Set vCont_supported to zero.
10036
70b90b91
YQ
100372015-09-15 Yao Qi <yao.qi@linaro.org>
10038
10039 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10040 it to ...
10041 (linux_supports_hardware_single_step): ... New function.
10042 (linux_target_ops): Update.
10043 * lynx-low.c (lynx_target_ops): Set field
10044 supports_hardware_single_step to target_can_do_hardware_single_step.
10045 * nto-low.c (nto_target_ops): Likewise.
10046 * spu-low.c (spu_target_ops): Likewise.
10047 * win32-low.c (win32_target_ops): Likewise.
10048 * target.c (target_can_do_hardware_single_step): New function.
10049 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10050 Remove. <supports_hardware_single_step>: New field.
10051 (target_supports_conditional_breakpoints): Remove.
10052 (target_supports_hardware_single_step): New macro.
10053 (target_can_do_hardware_single_step): Declare.
10054 * server.c (handle_query): Use target_supports_hardware_single_step
10055 instead of target_supports_conditional_breakpoints.
10056
ade90bde
YQ
100572015-09-15 Yao Qi <yao.qi@linaro.org>
10058
10059 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10060 function.
10061 (struct linux_target_ops the_low_target): Install
10062 aarch64_linux_siginfo_fixup.
10063
94585166
DB
100642015-09-11 Don Breazeal <donb@codesourcery.com>
10065 Luis Machado <lgustavo@codesourcery.com>
10066
10067 * linux-low.c (linux_mourn): Static declaration.
10068 (linux_arch_setup): Move in front of
10069 handle_extended_wait.
10070 (linux_arch_setup_thread): New function.
10071 (handle_extended_wait): Handle exec events. Call
10072 linux_arch_setup_thread. Make event_lwp argument a
10073 pointer-to-a-pointer.
10074 (check_zombie_leaders): Do not check stopped threads.
10075 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10076 (linux_low_filter_event): Add lwp and thread for exec'ing
10077 non-leader thread if leader thread has been deleted.
10078 Refactor code into linux_arch_setup_thread and call it.
10079 Pass child lwp pointer by reference to handle_extended_wait.
10080 (linux_wait_for_event_filtered): Update comment.
10081 (linux_wait_1): Prevent clobbering exec event status.
10082 (linux_supports_exec_events): New function.
10083 (linux_target_ops) <supports_exec_events>: Initialize new member.
10084 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10085 new member.
10086 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10087 * server.c (report_exec_events): New global variable.
10088 (handle_query): Handle qSupported query for exec-events feature.
10089 (captured_main): Initialize report_exec_events.
10090 * server.h (report_exec_events): Declare new global variable.
10091 * target.h (struct target_ops) <supports_exec_events>: New
10092 member.
10093 (target_supports_exec_events): New macro.
10094 * win32-low.c (win32_target_ops) <supports_exec_events>:
10095 Initialize new member.
10096
0568462b
MM
100972015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10098
10099 * linux-low.c (linux_low_enable_btrace): Remove.
10100 (linux_target_ops): Replace linux_low_enable_btrace with
10101 linux_enable_btrace.
10102
39edd165
YQ
101032015-09-03 Yao Qi <yao.qi@linaro.org>
10104
10105 * linux-aarch64-low.c (aarch64_insert_point): Call
10106 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10107 returns true.
10108
1db33b5a
UW
101092015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10110
10111 * linux-low.c (check_stopped_by_breakpoint): Use
10112 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10113
ab290430
PA
101142015-08-27 Pedro Alves <palves@redhat.com>
10115
10116 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10117
8d749320
SM
101182015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10119
6711b7f8
SM
10120 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10121 the XNEW-family equivalent.
8d749320
SM
10122 (compile_bytecodes): Likewise.
10123 * dll.c (loaded_dll): Likewise.
10124 * event-loop.c (append_callback_event): Likewise.
10125 (create_file_handler): Likewise.
10126 (create_file_event): Likewise.
10127 * hostio.c (handle_open): Likewise.
10128 * inferiors.c (add_thread): Likewise.
10129 (add_process): Likewise.
10130 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10131 * linux-arm-low.c (arm_new_process): Likewise.
10132 (arm_new_thread): Likewise.
10133 * linux-low.c (add_to_pid_list): Likewise.
10134 (linux_add_process): Likewise.
10135 (handle_extended_wait): Likewise.
10136 (add_lwp): Likewise.
10137 (enqueue_one_deferred_signal): Likewise.
10138 (enqueue_pending_signal): Likewise.
10139 (linux_resume_one_lwp_throw): Likewise.
10140 (linux_resume_one_thread): Likewise.
10141 (linux_read_memory): Likewise.
10142 (linux_write_memory): Likewise.
10143 * linux-mips-low.c (mips_linux_new_process): Likewise.
10144 (mips_linux_new_thread): Likewise.
10145 (mips_add_watchpoint): Likewise.
10146 * linux-x86-low.c (initialize_low_arch): Likewise.
10147 * lynx-low.c (lynx_add_process): Likewise.
10148 * mem-break.c (set_raw_breakpoint_at): Likewise.
10149 (set_breakpoint): Likewise.
10150 (add_condition_to_breakpoint): Likewise.
10151 (add_commands_to_breakpoint): Likewise.
10152 (clone_agent_expr): Likewise.
10153 (clone_one_breakpoint): Likewise.
10154 * regcache.c (new_register_cache): Likewise.
10155 * remote-utils.c (look_up_one_symbol): Likewise.
10156 * server.c (queue_stop_reply): Likewise.
10157 (start_inferior): Likewise.
10158 (queue_stop_reply_callback): Likewise.
10159 (handle_target_event): Likewise.
10160 * spu-low.c (fetch_ppc_memory): Likewise.
10161 (store_ppc_memory): Likewise.
10162 * target.c (set_target_ops): Likewise.
10163 * thread-db.c (thread_db_load_search): Likewise.
10164 (try_thread_db_load_1): Likewise.
10165 * tracepoint.c (add_tracepoint): Likewise.
10166 (add_tracepoint_action): Likewise.
10167 (create_trace_state_variable): Likewise.
10168 (cmd_qtdpsrc): Likewise.
10169 (cmd_qtro): Likewise.
10170 (add_while_stepping_state): Likewise.
10171 * win32-low.c (child_add_thread): Likewise.
10172 (get_image_name): Likewise.
10173
ed8b7b42
YQ
101742015-08-25 Yao Qi <yao.qi@linaro.org>
10175
10176 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10177
db3cb7cb
YQ
101782015-08-25 Yao Qi <yao.qi@linaro.org>
10179
10180 * Makefile.in (aarch64-linux.o): New rule.
10181 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10182 srv_tgtobj.
10183 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10184 (aarch64_init_debug_reg_state): Make it extern.
10185 (aarch64_linux_prepare_to_resume): Remove.
10186
f6011a1c
YQ
101872015-08-25 Yao Qi <yao.qi@linaro.org>
10188
10189 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10190 lwp_arch_private_info and ptid_of_lwp.
10191
88e2cf7e
YQ
101922015-08-25 Yao Qi <yao.qi@linaro.org>
10193
10194 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10195 Find proc_info by find_process_pid. All callers updated.
10196
5e35436e
YQ
101972015-08-25 Yao Qi <yao.qi@linaro.org>
10198
10199 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10200 Remove.
10201 (debug_reg_change_callback): Remove.
10202 (aarch64_notify_debug_reg_change): Remove.
10203
4a8a7965
YQ
102042015-08-25 Yao Qi <yao.qi@linaro.org>
10205
10206 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10207 Call current_lwp_ptid.
10208
32a271ee
YQ
102092015-08-25 Yao Qi <yao.qi@linaro.org>
10210
10211 * linux-aarch64-low.c (debug_reg_change_callback): Use
10212 debug_printf.
10213
0d51c8d7
YQ
102142015-08-25 Yao Qi <yao.qi@linaro.org>
10215
10216 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10217
31a43dd5
YQ
102182015-08-25 Yao Qi <yao.qi@linaro.org>
10219
10220 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10221
8ee52567
YQ
102222015-08-25 Yao Qi <yao.qi@linaro.org>
10223
10224 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10225 the code.
10226
ff3f0f45
YQ
102272015-08-25 Yao Qi <yao.qi@linaro.org>
10228
10229 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10230 Remove.
10231 (debug_reg_change_callback): Remove argument entry and add argument
10232 lwp. Remove local variable thread. Don't print thread id in the
10233 debugging output. Don't check whether pid of thread equals to pid.
10234 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10235 iterate_over_lwps instead find_inferior.
10236
3d40fbb5
PA
102372015-08-24 Pedro Alves <palves@redhat.com>
10238
10239 * inferiors.c (get_first_process): New function.
10240 * inferiors.h (get_first_process): New declaration.
10241 * remote-utils.c (read_ptid): Default to the first process in the
10242 list, instead of to the current thread's process.
10243
438e1e42
PA
102442015-08-24 Pedro Alves <palves@redhat.com>
10245
10246 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10247 * event-loop.c: Likewise.
10248 * remote-utils.c: Likewise.
10249 * tracepoint.c: Likewise.
10250
a8c6d4fc
PA
102512015-08-24 Pedro Alves <palves@redhat.com>
10252
10253 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10254 ptid_get_lwp.
10255
99b0bb12
PA
102562015-08-21 Pedro Alves <palves@redhat.com>
10257
10258 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10259 instead of literal 1.
10260
f8904751
PA
102612015-08-21 Pedro Alves <palves@redhat.com>
10262
10263 * tdesc.c (default_description): Explicitly zero-initialize.
10264
465a859e
PA
102652015-08-21 Pedro Alves <palves@redhat.com>
10266
10267 PR gdb/18749
10268 * inferiors.c (remove_thread): Discard any pending stop reply for
10269 this thread.
10270 * server.c (remove_all_on_match_pid): Rename to ...
10271 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10272 instead of a pid.
10273 (discard_queued_stop_replies): Change parameter to a ptid. Now
10274 extern.
10275 (handle_v_kill, kill_inferior_callback, captured_main)
10276 (process_serial_event): Adjust.
10277 * server.h (discard_queued_stop_replies): Declare.
10278
f0db101d
PA
102792015-08-21 Pedro Alves <palves@redhat.com>
10280
10281 * linux-low.c (wait_for_sigstop): Always switch to no thread
10282 selected if the previously current thread dies.
10283 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10284 process instead of the current thread's.
10285 * remote-utils.c (input_interrupt): Don't check if there's no
10286 current thread.
10287 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10288 current thread to the general thread fails, error out.
10289 (handle_qxfer_auxv, handle_qxfer_libraries)
10290 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10291 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10292 (handle_query): Check if there's a thread selected instead of
10293 checking whether there's any thread in the thread list.
10294 (handle_qxfer_threads, handle_qxfer_btrace)
10295 (handle_qxfer_btrace_conf): Don't error out early if there's no
10296 thread in the thread list.
10297 (handle_v_cont, myresume): Don't set the current thread to the
10298 continue thread.
10299 (process_serial_event) <Hg handling>: Also set thread_id if the
10300 previous general thread is still alive.
10301 (process_serial_event) <g/G handling>: If setting the current
10302 thread to the general thread fails, error out.
10303 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10304 thread's lwp instead of the current thread's.
10305 * target.c (set_desired_thread): If the desired thread was not
10306 found, leave the current thread pointing to NULL. Return an int
10307 (boolean) indicating success.
10308 * target.h (set_desired_thread): Change return type to int.
10309
40045d91
MF
103102015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10311
10312 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10313 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10314 #includes.
10315 (ps_get_thread_area): New function.
10316
45face3b
GB
103172015-08-19 Gary Benson <gbenson@redhat.com>
10318
10319 * hostio.c (handle_pread): Do not attempt to read more data
10320 than hostio_reply_with_data can fit in a packet.
10321
16d5f642
JB
103222015-08-18 Joel Brobecker <brobecker@adacore.com>
10323
10324 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10325
a738da3a
MF
103262015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10327
10328 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10329
33ebda9d
PA
103302015-08-06 Pedro Alves <palves@redhat.com>
10331
10332 * tracepoint.c (expr_eval_result): Now an int.
10333
a44892be
PA
103342015-08-06 Pedro Alves <palves@redhat.com>
10335
10336 * gdbthread.h (struct regcache): Forward declare.
10337 (struct thread_info) <regcache_data>: Now a struct regcache
10338 pointer.
10339 * inferiors.c (inferior_regcache_data)
10340 (set_inferior_regcache_data): Now work with struct regcache
10341 pointers.
10342 * inferiors.h (struct regcache): Forward declare.
10343 (inferior_regcache_data, set_inferior_regcache_data): Now work
10344 with struct regcache pointers.
10345 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10346 (free_register_cache_thread): Remove struct regcache pointer
10347 casts.
10348
608a1e46
PA
103492015-08-06 Pedro Alves <palves@redhat.com>
10350
10351 * server.c (captured_main): On error, print the exception message
10352 to stderr, and if run_once is set, throw a quit.
10353
f0ce0d3a
PA
103542015-08-06 Pedro Alves <palves@redhat.com>
10355
10356 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10357 the current thread.
10358
bf47e248
PA
103592015-08-06 Pedro Alves <palves@redhat.com>
10360
10361 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10362 reading beyond the passed in buffer length.
10363
b6b9ffcc
PL
103642015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10365
10366 * tracepoint.c (symbol_list) <required>: Remove.
10367
863d01bd
PA
103682015-08-06 Pedro Alves <palves@redhat.com>
10369
10370 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10371 count if stopping and suspending threads.
10372 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10373 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10374 (linux_detach): Complete an ongoing step-over.
10375 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10376 throughout.
10377 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10378 (linux_wait_1): If passing a signal to the inferior after
10379 finishing a step-over, unsuspend and re-resume all lwps. If we
10380 see a single-step event but the thread should be continuing, don't
10381 pass the trap to gdb.
10382 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10383 internal_error instead of gdb_assert.
10384 (enqueue_pending_signal): New function.
10385 (check_ptrace_stopped_lwp_gone): Add debug output.
10386 (start_step_over): Use internal_error instead of gdb_assert.
10387 (complete_ongoing_step_over): New function.
10388 (linux_resume_one_thread): Don't resume a suspended thread.
10389 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10390 it stepping.
10391
00db26fa
PA
103922015-08-06 Pedro Alves <palves@redhat.com>
10393
10394 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10395 (linux_thread_alive): Use lwp_is_marked_dead.
10396 (extended_event_reported): Delete.
10397 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10398 instead of extended_event_reported.
10399 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10400 as well.
10401 (lwp_is_marked_dead): New function.
10402 (lwp_running): Use lwp_is_marked_dead.
10403 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10404 comment.
10405
ad071a30
PA
104062015-08-06 Pedro Alves <palves@redhat.com>
10407
10408 * linux-low.c (linux_wait_1): Move fork event output out of the
10409 !report_to_gdb check. Pass event_child->waitstatus to
10410 target_waitstatus_to_string instead of ourstatus.
10411
524b57e6
YQ
104122015-08-04 Yao Qi <yao.qi@linaro.org>
10413
10414 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10415 if current_thread is 32 bit.
10416
6085d6f6
YQ
104172015-08-04 Yao Qi <yao.qi@linaro.org>
10418
10419 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10420 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10421 * server.c (extended_protocol): Remove "static".
10422 * server.h (extended_protocol): Declare it.
10423
8a7e4587
YQ
104242015-08-04 Yao Qi <yao.qi@linaro.org>
10425
10426 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10427 both aarch64 and aarch32.
10428 (aarch64_set_pc): Likewise.
10429
3b53ae99
YQ
104302015-08-04 Yao Qi <yao.qi@linaro.org>
10431
10432 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10433 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10434 arm-with-neon.xml to srv_xmlfiles.
10435 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10436 (is_64bit_tdesc): New function.
10437 (aarch64_linux_read_description): New function.
10438 (aarch64_arch_setup): Call aarch64_linux_read_description.
10439 (regs_info): Rename to regs_info_aarch64.
10440 (aarch64_regs_info): Return right regs_info.
10441 (initialize_low_arch): Call initialize_low_arch_aarch32.
10442
bd9e6534
YQ
104432015-08-04 Yao Qi <yao.qi@linaro.org>
10444
10445 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10446 * linux-aarch32-low.c: New file.
10447 * linux-aarch32-low.h: New file.
10448 * linux-arm-low.c (arm_fill_gregset): Move it to
10449 linux-aarch32-low.c.
10450 (arm_store_gregset): Likewise.
10451 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10452 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10453 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10454 (regs_info): Rename to regs_info_arm.
10455 (arm_regs_info): Return regs_info_aarch32 if
10456 have_ptrace_getregset is 1 and target description is
10457 arm_with_neon or arm_with_vfpv3.
10458 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10459 Call initialize_low_arch_aarch32 instead.
10460
ded48a5e
YQ
104612015-08-04 Yao Qi <yao.qi@linaro.org>
10462
10463 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10464 * linux-low.c: ... here.
10465 * linux-low.h (have_ptrace_getregset): Declare it.
10466
96e9210f
PA
104672015-08-04 Pedro Alves <palves@redhat.com>
10468
10469 * thread-db.c (struct thread_db): Use new typedefs.
10470 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10471 CHK calls.
10472 (disable_thread_event_reporting): Cast result of dlsym to
10473 destination function pointer type.
10474 (thread_db_mourn): Use td_ta_delete_ftype.
10475
af60a1ef
SL
104762015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10477
10478 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10479 arch variant.
10480 (CDX_BREAKPOINT): Define for R2.
10481 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10482 (the_low_target): Add comments.
10483
e8b41681
YQ
104842015-07-30 Yao Qi <yao.qi@linaro.org>
10485
10486 * linux-arm-low.c (arm_hwcap): Remove it.
10487 (arm_read_description): New local variable arm_hwcap. Don't
10488 set arm_hwcap to zero.
10489
89abb039
YQ
104902015-07-30 Yao Qi <yao.qi@linaro.org>
10491
10492 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10493 Use regcache->tdesc instead.
10494 (arm_store_wmmxregset): Likewise.
10495 (arm_fill_vfpregset): Likewise.
10496 (arm_store_vfpregset): Likewise.
10497
deca266c
YQ
104982015-07-30 Yao Qi <yao.qi@linaro.org>
10499
10500 * linux-arm-low.c: Include arch/arm.h.
10501 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10502 (arm_store_gregset): Likewise.
10503
aa58a496
SM
105042015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10505
10506 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10507 ptrace's 4th parameter.
10508
50904b25
YQ
105092015-07-27 Yao Qi <yao.qi@linaro.org>
10510
10511 * configure.srv (case aarch64*-*-linux*): Don't set
10512 srv_linux_usrregs.
10513
5826e159
PA
105142015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10515
10516 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10517 sys/ptrace.h.
10518 * linux-arm-low.c: Likewise.
10519 * linux-cris-low.c: Likewise.
10520 * linux-crisv32-low.c: Likewise.
10521 * linux-low.c: Likewise.
10522 * linux-m68k-low.c: Likewise.
10523 * linux-mips-low.c: Likewise.
10524 * linux-nios2-low.c: Likewise.
10525 * linux-s390-low.c: Likewise.
10526 * linux-sparc-low.c: Likewise.
10527 * linux-tic6x-low.c: Likewise.
10528 * linux-tile-low.c: Likewise.
10529 * linux-x86-low.c: Likewise.
10530
54019719
PA
105312015-07-24 Pedro Alves <palves@redhat.com>
10532
10533 * config.in: Regenerate.
10534 * configure: Regenerate.
10535
eb7aa561
PA
105362015-07-24 Pedro Alves <palves@redhat.com>
10537
10538 * acinclude.m4: Include ../ptrace.m4.
10539 * configure.ac: Call GDB_AC_PTRACE.
10540 * config.in, configure: Regenerate.
10541
55d7b841
YQ
105422015-07-24 Yao Qi <yao.qi@linaro.org>
10543
10544 * linux-low.c (linux_create_inferior): Remove setting to
10545 proc->priv->new_inferior.
10546 (linux_attach): Likewise.
10547 (linux_low_filter_event): Likewise.
10548 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10549
c06cbd92
YQ
105502015-07-24 Yao Qi <yao.qi@linaro.org>
10551
10552 * linux-low.c (linux_arch_setup): New function.
10553 (linux_low_filter_event): If proc->tdesc is NULL and
10554 proc->attached is true, call the_low_target.arch_setup.
10555 Otherwise, keep status pending, and return.
10556 (linux_resume_one_lwp_throw): Don't call get_pc if
10557 thread->while_stepping isn't NULL. Don't call
10558 get_thread_regcache if proc->tdesc is NULL.
10559 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10560 (linux_target_ops): Install arch_setup.
10561 * server.c (start_inferior): Call the_target->arch_setup.
10562 * target.h (struct target_ops) <arch_setup>: New field.
10563 (target_arch_setup): New marco.
10564 * lynx-low.c (lynx_target_ops): Update.
10565 * nto-low.c (nto_target_ops): Update.
10566 * spu-low.c (spu_target_ops): Update.
10567 * win32-low.c (win32_target_ops): Update.
10568
5ae3ebba
YQ
105692015-07-24 Yao Qi <yao.qi@linaro.org>
10570
10571 * linux-low.c (linux_add_process): Don't set
10572 proc->priv->new_inferior.
10573 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10574 (linux_attach): Likewise.
10575
eb97750b
YQ
105762015-07-24 Yao Qi <yao.qi@linaro.org>
10577
10578 * server.c (start_inferior): Code refactor.
10579
51aee833
YQ
105802015-07-24 Yao Qi <yao.qi@linaro.org>
10581
10582 * server.c (process_serial_event): Set general_thread.
10583
af1b22f3
YQ
105842015-07-21 Yao Qi <yao.qi@linaro.org>
10585
10586 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10587 aarch64_linux_get_debug_reg_capacity.
10588
554717a3
YQ
105892015-07-17 Yao Qi <yao.qi@linaro.org>
10590
10591 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10592 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10593 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10594 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10595 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10596 (AARCH64_HWP_ALIGNMENT): Likewise.
10597 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10598 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10599 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10600 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10601 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10602 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10603 (struct aarch64_debug_reg_state): Likewise.
10604 (struct arch_lwp_info): Likewise.
10605 (aarch64_align_watchpoint): Likewise.
10606 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10607 (aarch64_watchpoint_length): Likewise.
10608 (aarch64_point_encode_ctrl_reg): Likewise
10609 (aarch64_point_is_aligned): Likewise.
10610 (aarch64_align_watchpoint): Likewise.
10611 (aarch64_linux_set_debug_regs):
10612 (aarch64_dr_state_insert_one_point): Likewise.
10613 (aarch64_dr_state_remove_one_point): Likewise.
10614 (aarch64_handle_breakpoint): Likewise.
10615 (aarch64_handle_aligned_watchpoint): Likewise.
10616 (aarch64_handle_unaligned_watchpoint): Likewise.
10617 (aarch64_handle_watchpoint): Likewise.
10618
c67ca4de
YQ
106192015-07-17 Yao Qi <yao.qi@linaro.org>
10620
10621 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10622 and don't aarch64_get_debug_reg_state. All callers update.
10623 (aarch64_handle_aligned_watchpoint): Likewise.
10624 (aarch64_handle_unaligned_watchpoint): Likewise.
10625 (aarch64_handle_watchpoint): Likewise.
10626 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10627 (aarch64_remove_point): Likewise.
10628
25abf979
YQ
106292015-07-17 Yao Qi <yao.qi@linaro.org>
10630
10631 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10632 debug_printf.
10633 (aarch64_handle_unaligned_watchpoint): Likewise.
10634
db1ff28b
JK
106352015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10636
10637 Revert the previous 3 commits:
10638 Move gdb_regex* to common/
10639 Move linux_find_memory_regions_full & co.
10640 gdbserver build-id attribute generator
10641
700ca40f
JK
106422015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10643 Jan Kratochvil <jan.kratochvil@redhat.com>
10644
10645 gdbserver build-id attribute generator.
10646 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10647 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10648 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10649 (find_phdr): New.
10650 (get_dynamic): Use find_pdhr to traverse program headers.
10651 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10652 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10653 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10654 (get_hex_build_id): New.
10655 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10656 to reply XML document.
10657
9904185c
JK
106582015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10659 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 * target.c: Include target/target-utils.h and fcntl.h.
10662 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10663 (target_fileio_read_stralloc): New functions.
10664
6e5b4429
JK
106652015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 * Makefile.in (OBS): Add gdb_regex.o.
10668 (gdb_regex.o): New.
10669 * config.in: Rebuilt.
10670 * configure: Rebuilt.
10671
ddc98fbf
JK
106722015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10673 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10676 * Makefile.in (OBS): Add target-utils.o.
10677 (linux-maps.o, target-utils.o): New.
10678 * configure.srv (srv_linux_obj): Add linux-maps.o.
10679
e57bb7a0
PL
106802015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10681
10682 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10683 function, return 1.
10684 (the_low_target): Install it.
10685
586b02a9
PA
106862015-07-14 Pedro Alves <palves@redhat.com>
10687
10688 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10689 Instead, ignore ECHILD, and throw an error for other errnos.
10690
58c1b36c
PA
106912015-07-10 Pedro Alves <palves@redhat.com>
10692
10693 * event-loop.c (struct callback_event) <data>: Change type to
10694 gdb_client_data instance instead of gdb_client_data pointer.
10695 (append_callback_event): Adjust.
10696
421530db
PL
106972015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10698
10699 * linux-aarch64-low.c: Add comments for each linux_target_ops
10700 method. Remove comments already covered in target_ops and
10701 linux_target_ops definitions.
10702 (the_low_target): Add comments for each unimplemented method.
10703
c2d65f38
YQ
107042015-07-09 Yao Qi <yao.qi@linaro.org>
10705
10706 * linux-aarch64-low.c (aarch64_regmap): Remove.
10707 (aarch64_usrregs_info): Remove.
10708 (regs_info): Set field usrregs to NULL.
10709
b20a6524
MM
107102015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10711
10712 * linux-low.c: Include "rsp-low.h"
10713 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10714 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10715 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10716 (handle_btrace_enable_pt): New.
10717 (handle_btrace_general_set): Support "pt".
10718 (handle_btrace_conf_general_set): Support "pt:size".
10719
96c97461
PL
107202015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10721
10722 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10723 Z_PACKET_SW_BP.
10724
37d66942
PL
107252015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10726
10727 * linux-aarch64-low.c: Remove comment about endianness.
10728 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10729 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10730 memcmp.
10731
dc06243f
GB
107322015-06-24 Gary Benson <gbenson@redhat.com>
10733
10734 * linux-i386-ipa.c (stdint.h): Do not include.
10735 * lynx-i386-low.c (stdint.h): Likewise.
10736 * lynx-ppc-low.c (stdint.h): Likewise.
10737 * mem-break.c (stdint.h): Likewise.
10738 * thread-db.c (stdint.h): Likewise.
10739 * tracepoint.c (stdint.h): Likewise.
10740 * win32-low.c (stdint.h): Likewise.
10741
124e13d9
SM
107422015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10743
10744 * server.c (write_qxfer_response): Update call to
10745 remote_escape_output.
10746
909c2cda
JK
107472015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10748 Jan Kratochvil <jan.kratochvil@redhat.com>
10749
10750 Merge multiple hex conversions.
10751 * gdbreplay.c (tohex): Rename to 'fromhex'.
10752 (logchar): Use fromhex.
10753
24c05f46
JK
107542015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10755
10756 * server.c (handle_qxfer_libraries): Set `version' attribute for
10757 <library-list>.
10758
14d2069a
GB
107592015-06-10 Gary Benson <gbenson@redhat.com>
10760
10761 * target.h (struct target_ops) <multifs_open>: New field.
10762 <multifs_unlink>: Likewise.
10763 <multifs_readlink>: Likewise.
10764 * linux-low.c (nat/linux-namespaces.h): New include.
10765 (linux_target_ops): Initialize the_target->multifs_open,
10766 the_target->multifs_unlink and the_target->multifs_readlink.
10767 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10768 * hostio.c (hostio_fs_pid): New static variable.
10769 (hostio_handle_new_gdb_connection): New function.
10770 (handle_setfs): Likewise.
10771 (handle_open): Use the_target->multifs_open as appropriate.
10772 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10773 (handle_readlink): Use the_target->multifs_readlink as
10774 appropriate.
10775 (handle_vFile): Handle vFile:setfs packets.
10776 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10777 after target_handle_new_gdb_connection.
10778
4b8b5e72
GB
107792015-06-10 Gary Benson <gbenson@redhat.com>
10780
10781 * configure.ac (AC_CHECK_FUNCS): Add setns.
10782 * config.in: Regenerate.
10783 * configure: Likewise.
10784 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10785 (linux-namespaces.o): New rule.
10786 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10787
3ac2e371
GB
107882015-06-09 Gary Benson <gbenson@redhat.com>
10789
10790 * hostio.c (handle_open): Process mode argument with
10791 fileio_to_host_mode.
10792
ca9b78ce
YQ
107932015-06-01 Yao Qi <yao.qi@linaro.org>
10794
10795 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10796 * linux-x86-low.c: Likewise.
10797
bfacd19d
DB
107982015-05-28 Don Breazeal <donb@codesourcery.com>
10799
10800 * linux-low.c (handle_extended_wait): Initialize
10801 thread_info.last_resume_kind for new fork children.
10802
452003ef
PA
108032015-05-15 Pedro Alves <palves@redhat.com>
10804
10805 * target.h (target_handle_new_gdb_connection): Rewrite using if
10806 wrapped in do/while.
10807
1041a03c
JB
108082015-05-14 Joel Brobecker <brobecker@adacore.com>
10809
10810 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10811 * configure, config.in: Regenerate.
10812 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10813 Declare typedef.
10814
c269dbdb
DB
108152015-05-12 Don Breazeal <donb@codesourcery.com>
10816
10817 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10818 PTRACE_EVENT_VFORK_DONE.
10819 (linux_low_ptrace_options, extended_event_reported): Add vfork
10820 events.
10821 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10822 and "vforkdone" for RSP 'T' Stop Reply Packet.
10823 * server.h (report_vfork_events): Declare
10824 global variable.
10825
3a8a0396
DB
108262015-05-12 Don Breazeal <donb@codesourcery.com>
10827
10828 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10829 (the_low_target) <new_fork>: Initialize new member.
10830 * linux-arm-low.c (arm_new_fork): New function.
10831 (the_low_target) <new_fork>: Initialize new member.
10832 * linux-low.c (handle_extended_wait): Call new target function
10833 new_fork.
10834 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10835 * linux-mips-low.c (mips_add_watchpoint): New function
10836 extracted from mips_insert_point.
10837 (the_low_target) <new_fork>: Initialize new member.
10838 (mips_linux_new_fork): New function.
10839 (mips_insert_point): Call mips_add_watchpoint.
10840 * linux-x86-low.c (x86_linux_new_fork): New function.
10841 (the_low_target) <new_fork>: Initialize new member.
10842
de0d863e
DB
108432015-05-12 Don Breazeal <donb@codesourcery.com>
10844
10845 * linux-low.c (handle_extended_wait): Implement return value,
10846 rename argument 'event_child' to 'event_lwp', handle
10847 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10848 (linux_low_ptrace_options): New function.
10849 (linux_low_filter_event): Call linux_low_ptrace_options,
10850 use different argument fo linux_enable_event_reporting,
10851 use return value from handle_extended_wait.
10852 (extended_event_reported): New function.
10853 (linux_wait_1): Call extended_event_reported and set
10854 status to report fork events.
10855 (linux_write_memory): Add pid to debug message.
10856 (reset_lwp_ptrace_options_callback): New function.
10857 (linux_handle_new_gdb_connection): New function.
10858 (linux_target_ops): Initialize new structure member.
10859 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10860 * lynx-low.c: Initialize new structure member.
10861 * remote-utils.c (prepare_resume_reply): Implement stop reason
10862 "fork" for "T" stop message.
10863 * server.c (handle_query): Call handle_new_gdb_connection.
10864 * server.h (report_fork_events): Declare global flag.
10865 * target.h (struct target_ops) <handle_new_gdb_connection>:
10866 New member.
10867 (target_handle_new_gdb_connection): New macro.
10868 * win32-low.c: Initialize new structure member.
10869
ddcbc397
DB
108702015-05-12 Don Breazeal <donb@codesourcery.com>
10871
10872 * mem-break.c (APPEND_TO_LIST): Define macro.
10873 (clone_agent_expr): New function.
10874 (clone_one_breakpoint): New function.
10875 (clone_all_breakpoints): New function.
10876 * mem-break.h: Declare new functions.
10877
89245bc0
DB
108782015-05-12 Don Breazeal <donb@codesourcery.com>
10879
10880 * linux-low.c (linux_supports_fork_events): New function.
10881 (linux_supports_vfork_events): New function.
10882 (linux_target_ops): Initialize new structure members.
10883 (initialize_low): Call linux_check_ptrace_features.
10884 * lynx-low.c (lynx_target_ops): Initialize new structure
10885 members.
10886 * server.c (report_fork_events, report_vfork_events):
10887 New global flags.
10888 (handle_query): Add new features to qSupported packet and
10889 response.
10890 (captured_main): Initialize new global variables.
10891 * target.h (struct target_ops) <supports_fork_events>:
10892 New member.
10893 <supports_vfork_events>: New member.
10894 (target_supports_fork_events): New macro.
10895 (target_supports_vfork_events): New macro.
10896 * win32-low.c (win32_target_ops): Initialize new structure
10897 members.
10898
835205d0
GB
108992015-05-12 Gary Benson <gbenson@redhat.com>
10900
10901 * server.c (handle_qxfer_exec_file): Use current process
10902 if annex is empty.
10903
21e94bd9
SL
109042015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10905
10906 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10907 Remove HAVE_PTRACE_GETREGS conditionals.
10908 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10909 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10910
45614f15
YQ
109112015-05-08 Yao Qi <yao.qi@linaro.org>
10912
10913 * linux-low.c (linux_supports_conditional_breakpoints): New
10914 function.
10915 (linux_target_ops): Install new target method.
10916 * lynx-low.c (lynx_target_ops): Install NULL hook for
10917 supports_conditional_breakpoints.
10918 * nto-low.c (nto_target_ops): Likewise.
10919 * spu-low.c (spu_target_ops): Likewise.
10920 * win32-low.c (win32_target_ops): Likewise.
10921 * server.c (handle_query): Check
10922 target_supports_conditional_breakpoints.
10923 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10924 New field.
10925 (target_supports_conditional_breakpoints): New macro.
10926
80ad801e
PA
109272015-05-06 Pedro Alves <palves@redhat.com>
10928
10929 PR server/18081
10930 * server.c (start_inferior): If the process exits, mourn it.
10931
819843c7
GB
109322015-04-21 Gary Benson <gbenson@redhat.com>
10933
10934 * hostio.c (fileio_open_flags_to_host): Factored out to
10935 fileio_to_host_openflags in common/fileio.c. Single use
10936 updated.
10937
a2d5a9d7
MF
109382015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10939
10940 * linux-xtensa-low.c (xtensa_fill_gregset)
10941 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10942 XCHAL_HAVE_LOOP.
10943
deb44829
MF
109442015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10945
10946 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10947 (regs_info): Replace usrregs pointer with NULL.
10948
e57f1de3
GB
109492015-04-17 Gary Benson <gbenson@redhat.com>
10950
10951 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10952 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10953 * server.c (handle_qxfer_exec_file): New function.
10954 (qxfer_packets): Add exec-file entry.
10955 (handle_query): Report qXfer:exec-file:read as supported packet.
10956
62828379
RN
109572015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10958
10959 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10960
b88bb450
GB
109612015-04-09 Gary Benson <gbenson@redhat.com>
10962
10963 * hostio-errno.c (errno_to_fileio_error): Remove function.
10964 Update caller to use remote_fileio_to_fio_error.
10965
c8f4bfdd
YQ
109662015-04-09 Yao Qi <yao.qi@linaro.org>
10967
10968 * linux-low.c (linux_insert_point): Call
10969 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10970 (linux_remove_point): Call remove_memory_breakpoint if type is
10971 raw_bkpt_type_sw.
10972 * linux-x86-low.c (x86_insert_point): Don't call
10973 insert_memory_breakpoint.
10974 (x86_remove_point): Don't call remove_memory_breakpoint.
10975
41f98f02
PA
109762015-04-01 Pedro Alves <palves@redhat.com>
10977 Cleber Rosa <crosa@redhat.com>
10978
10979 * server.c (gdbserver_usage): Reorganize and extend the usage
10980 message.
10981
2bf6fb9d
PA
109822015-03-24 Pedro Alves <palves@redhat.com>
10983
10984 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10985 output. Also dump TRAP_TRACE.
10986 (linux_low_filter_event): In debug output, distinguish a
10987 resume_stop SIGSTOP from a delayed SIGSTOP.
10988
369f6daa
GB
109892015-03-24 Gary Benson <gbenson@redhat.com>
10990
10991 * linux-x86-low.c (x86_linux_new_thread): Moved to
10992 nat/x86-linux.c.
10993 (x86_linux_prepare_to_resume): Likewise.
10994
8e5d4070
GB
109952015-03-24 Gary Benson <gbenson@redhat.com>
10996
10997 * Makefile.in (x86-linux-dregs.o): New rule.
10998 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10999 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11000 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11001 (x86_linux_dr_get): Likewise.
11002 (x86_linux_dr_set): Likewise.
11003 (update_debug_registers_callback): Likewise.
11004 (x86_linux_dr_set_addr): Likewise.
11005 (x86_linux_dr_get_addr): Likewise.
11006 (x86_linux_dr_set_control): Likewise.
11007 (x86_linux_dr_get_control): Likewise.
11008 (x86_linux_dr_get_status): Likewise.
11009 (x86_linux_update_debug_registers): Likewise.
11010
2b95d440
GB
110112015-03-24 Gary Benson <gbenson@redhat.com>
11012
11013 * linux-x86-low.c (x86_linux_update_debug_registers):
11014 New function, factored out from...
11015 (x86_linux_prepare_to_resume): ...this.
11016
14b0bc68
GB
110172015-03-24 Gary Benson <gbenson@redhat.com>
11018
11019 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11020 (x86_linux_dr_set): Likewise.
11021 (update_debug_registers_callback): Likewise.
11022 (x86_linux_dr_set_addr): Likewise.
11023 (x86_linux_dr_get_addr): Likewise.
11024 (x86_linux_dr_set_control): Likewise.
11025 (x86_linux_dr_get_control): Likewise.
11026 (x86_linux_dr_get_status): Likewise.
11027 (x86_linux_prepare_to_resume): Likewise.
11028
5dfe6ca8
GB
110292015-03-24 Gary Benson <gbenson@redhat.com>
11030
11031 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11032 Use perror_with_name. Pass string through gettext.
11033 (x86_linux_dr_set): Likewise.
11034
d33472ad
GB
110352015-03-24 Gary Benson <gbenson@redhat.com>
11036
11037 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11038 (x86_linux_dr_set_addr): ...this.
11039 (x86_dr_low_get_addr): Rename to...
11040 (x86_linux_dr_get_addr): ...this.
11041 (x86_dr_low_set_control): Rename to...
11042 (x86_linux_dr_set_control): ...this.
11043 (x86_dr_low_get_control): Rename to...
11044 (x86_linux_dr_get_control): ...this.
11045 (x86_dr_low_get_status): Rename to...
11046 (x86_linux_dr_get_status): ...this.
11047 (x86_dr_low): Update with new function names.
11048
4b134ca1
GB
110492015-03-24 Gary Benson <gbenson@redhat.com>
11050
11051 * Makefile.in (x86-linux.o): New rule.
11052 * configure.srv: Add x86-linux.o to relevant targets.
11053 * linux-low.c (lwp_set_arch_private_info): New function.
11054 (lwp_arch_private_info): Likewise.
11055 * linux-x86-low.c: Include nat/x86-linux.h.
11056 (arch_lwp_info): Removed structure.
11057 (update_debug_registers_callback):
11058 Use lwp_set_debug_registers_changed.
11059 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11060 and lwp_set_debug_registers_changed.
11061 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11062
34c703da
GB
110632015-03-24 Gary Benson <gbenson@redhat.com>
11064
11065 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11066 * linux-arm-low.c (arm_new_thread): Likewise.
11067 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11068 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11069 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11070 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11071
cff068da
GB
110722015-03-24 Gary Benson <gbenson@redhat.com>
11073
11074 * linux-low.c (ptid_of_lwp): New function.
11075 (lwp_is_stopped): Likewise.
11076 (lwp_stop_reason): Likewise.
11077 * linux-x86-low.c (update_debug_registers_callback):
11078 Use lwp_is_stopped.
11079 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11080 lwp_stop_reason.
11081
b2f7c7e8
GB
110822015-03-24 Gary Benson <gbenson@redhat.com>
11083
11084 * linux-low.h (linux_stop_lwp): Remove declaration.
11085
6d4ee8c6
GB
110862015-03-24 Gary Benson <gbenson@redhat.com>
11087
11088 * linux-low.h: Include nat/linux-nat.h.
11089 * linux-low.c (iterate_over_lwps_args): New structure.
11090 (iterate_over_lwps_filter): New function.
11091 (iterate_over_lwps): Likewise.
11092 * linux-x86-low.c (update_debug_registers_callback):
11093 Update signature to what iterate_over_lwps expects.
11094 Remove PID check that iterate_over_lwps now performs.
11095 (x86_dr_low_set_addr): Use iterate_over_lwps.
11096 (x86_dr_low_set_control): Likewise.
11097
70a0bb6b
GB
110982015-03-24 Gary Benson <gbenson@redhat.com>
11099
11100 * linux-x86-low.c (x86_debug_reg_state): New function.
11101 (x86_linux_prepare_to_resume): Use the above.
11102
7b669087
GB
111032015-03-24 Gary Benson <gbenson@redhat.com>
11104
11105 * linux-low.c (current_lwp_ptid): New function.
11106 * linux-x86-low.c: Include nat/linux-nat.h.
11107 (x86_dr_low_get_addr): Use current_lwp_ptid.
11108 (x86_dr_low_get_control): Likewise.
11109 (x86_dr_low_get_status): Likewise.
11110
eef49a3d
PA
111112015-03-20 Pedro Alves <palves@redhat.com>
11112
11113 * tracepoint.c (cmd_qtstatus): Make "str" const.
11114
b2333d22
PA
111152015-03-20 Pedro Alves <palves@redhat.com>
11116
11117 * server.c (handle_general_set): Make "req_str" const.
11118
23f238d3
PA
111192015-03-19 Pedro Alves <palves@redhat.com>
11120
11121 * linux-low.c (linux_resume_one_lwp): Rename to ...
11122 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11123 instead call perror_with_name.
11124 (check_ptrace_stopped_lwp_gone): New function.
11125 (linux_resume_one_lwp): Reimplement as wrapper around
11126 linux_resume_one_lwp_throw that swallows errors if the LWP is
11127 gone.
11128
91baf43f
PA
111292015-03-19 Pedro Alves <palves@redhat.com>
11130
11131 * linux-low.c (count_events_callback, select_event_lwp_callback):
11132 No longer check whether the thread has resume_stop as last resume
11133 kind.
11134
8bf3b159
PA
111352015-03-19 Pedro Alves <palves@redhat.com>
11136
11137 * linux-low.c (count_events_callback, select_event_lwp_callback):
11138 Use the lwp's status_pending_p field, not the thread's.
11139
b90fc188
PA
111402015-03-19 Pedro Alves <palves@redhat.com>
11141
11142 * linux-low.c (select_event_lwp_callback): Update comments to
11143 no longer mention SIGTRAP.
11144
464b0089
GB
111452015-03-18 Gary Benson <gbenson@redhat.com>
11146
11147 * server.c (handle_query): Do not report vFile:fstat as supported.
11148
aa9e327f
GB
111492015-03-11 Gary Benson <gbenson@redhat.com>
11150
11151 * hostio.c (sys/types.h): New include.
11152 (sys/stat.h): Likewise.
11153 (common-remote-fileio.h): Likewise.
11154 (handle_fstat): New function.
11155 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11156
791c0056
GB
111572015-03-11 Gary Benson <gbenson@redhat.com>
11158
11159 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11160 struct stat.st_blocks and struct stat.st_blksize.
11161 * configure: Regenerate.
11162 * config.in: Likewise.
11163 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11164 (OBS): Add common-remote-fileio.o.
11165 (common-remote-fileio.o): New rule.
11166
9a9df970
PA
111672015-03-09 Pedro Alves <palves@redhat.com>
11168
11169 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11170 'struct sockaddr' pointer in 'accept' call.
11171
9eb1356e
PA
111722015-03-09 Pedro Alves <palves@redhat.com>
11173
11174 Revert:
11175 2015-03-07 Pedro Alves <palves@redhat.com>
11176 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11177 or <winsock2.h> here. Instead include "gdb_socket.h".
11178 (remote_open): Use union gdb_sockaddr_u.
11179 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11180 or <winsock2.h> here. Instead include "gdb_socket.h".
11181 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11182 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11183 or <sys/un.h>.
11184 (init_named_socket, gdb_agent_helper_thread): Use union
11185 gdb_sockaddr_u.
11186
aac331e4
PA
111872015-03-07 Pedro Alves <palves@redhat.com>
11188
11189 * configure.ac (build_warnings): Move
11190 -Wdeclaration-after-statement to the C-specific set.
11191 * configure: Regenerate.
11192
366c75fc
PA
111932015-03-07 Pedro Alves <palves@redhat.com>
11194
11195 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11196 or <winsock2.h> here. Instead include "gdb_socket.h".
11197 (remote_open): Use union gdb_sockaddr_u.
11198 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11199 or <winsock2.h> here. Instead include "gdb_socket.h".
11200 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11201 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11202 or <sys/un.h>.
11203 (init_named_socket, gdb_agent_helper_thread): Use union
11204 gdb_sockaddr_u.
11205
492d29ea
PA
112062015-03-07 Pedro Alves <palves@redhat.com>
11207
11208 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11209 instead.
11210
60a191ed
YQ
112112015-03-06 Yao Qi <yao.qi@linaro.org>
11212
11213 * linux-aarch64-low.c (aarch64_insert_point): Use
11214 show_debug_regs as a boolean.
11215 (aarch64_remove_point): Likewise.
11216
f5771b1d
PA
112172015-03-05 Pedro Alves <palves@redhat.com>
11218
11219 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11220 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11221 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11222 * nto-low.c (nto_target_ops): Likewise.
11223 * spu-low.c (spu_target_ops): Likewise.
11224 * win32-low.c (win32_target_ops): Likewise.
11225
3e572f71
PA
112262015-03-04 Pedro Alves <palves@redhat.com>
11227
72f4393d 11228 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11229 Decide whether a breakpoint triggered based on the SIGTRAP's
11230 siginfo.si_code.
72f4393d
L
11231 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11232 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11233 (linux_low_filter_event): Check for breakpoints before checking
11234 watchpoints.
11235 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11236 siginfo.si_code.
72f4393d
L
11237 (linux_stopped_by_sw_breakpoint)
11238 (linux_supports_stopped_by_sw_breakpoint)
11239 (linux_stopped_by_hw_breakpoint)
11240 (linux_supports_stopped_by_hw_breakpoint): New functions.
11241 (linux_target_ops): Install new target methods.
3e572f71 11242
1ec68e26
PA
112432015-03-04 Pedro Alves <palves@redhat.com>
11244
11245 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11246 * server.c (swbreak_feature, hwbreak_feature): New globals.
11247 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11248 (captured_main): Clear swbreak_feature and hwbreak_feature.
11249 * server.h (swbreak_feature, hwbreak_feature): Declare.
11250 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11251 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11252 supports_stopped_by_hw_breakpoint>: New fields.
11253 (target_supports_stopped_by_sw_breakpoint)
11254 (target_stopped_by_sw_breakpoint)
11255 (target_supports_stopped_by_hw_breakpoint)
11256 (target_stopped_by_hw_breakpoint): Declare.
11257
15c66dd6
PA
112582015-03-04 Pedro Alves <palves@redhat.com>
11259
11260 enum lwp_stop_reason -> enum target_stop_reason
11261 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11262 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11263 (linux_wait_1, stuck_in_jump_pad_callback)
11264 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11265 (linux_stopped_by_watchpoint):
11266 * linux-low.h (enum lwp_stop_reason): Delete.
11267 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11268 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11269
98fc70d6
YQ
112702015-03-04 Yao Qi <yao.qi@linaro.org>
11271
11272 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11273
dd2ac174
GB
112742015-03-03 Gary Benson <gbenson@redhat.com>
11275
11276 * hostio.c (handle_vFile): Fix prefix lengths.
11277
d68e53f4
MM
112782015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11279
11280 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11281 ptr_bits.
11282
bf2d68ab
AA
112832015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11284
11285 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11286 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11287 (clean): Add "rm -f" for above C files.
11288 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11289 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11290 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11291 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11292 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11293 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11294 (init_registers_s390x_vx_linux64)
11295 (init_registers_s390x_tevx_linux64)
11296 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11297 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11298 declarations.
11299 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11300 (s390_store_vxrs_high): New functions.
11301 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11302 NT_S390_VXRS_HIGH.
11303 (s390_arch_setup): Add logic for selecting one of the new target
11304 descriptions. Activate the new vector regsets if applicable.
11305 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11306 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11307 and init_registers_s390x_tevx_linux64.
11308
c966a859
PA
113092015-03-01 Pedro Alves <palves@redhat.com>
11310
11311 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11312 parameter.
11313
4180215b
PA
113142015-02-27 Pedro Alves <palves@redhat.com>
11315
11316 * linux-x86-low.c (u_debugreg_offset): New function.
11317 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11318
749bab01
PA
113192015-02-27 Pedro Alves <palves@redhat.com>
11320
11321 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11322 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11323 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11324 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11325 (ps_lsetfpregs, ps_getpid)
11326 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11327 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11328 (ps_lsetxregs, ps_plog): Declare.
11329
3c14e5a3
PA
113302015-02-27 Pedro Alves <palves@redhat.com>
11331
11332 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11333 IP_AGENT_EXPORT_FUNC.
11334 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11335 IP_AGENT_EXPORT_FUNC.
11336 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11337 (IP_AGENT_EXPORT): Delete.
11338 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11339 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11340 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11341 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11342 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11343 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11344 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11345 (traceframe_read_count, traceframe_write_count)
11346 (traceframes_created, trace_state_variables, get_raw_reg)
11347 (get_trace_state_variable_value, set_trace_state_variable_value)
11348 (ust_loaded, helper_thread_id, cmd_buf): Use
11349 IPA_SYM_EXPORTED_NAME.
11350 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11351 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11352 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11353 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11354 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11355 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11356 EXTERN_C_PUSH/EXTERN_C_POP.
11357 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11358 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11359 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11360 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11361 (traceframe_write_count, traceframe_read_count)
11362 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11363 (about_to_request_buffer_space, get_trace_state_variable_value)
11364 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11365 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11366 EXTERN_C_PUSH/EXTERN_C_POP.
11367 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11368 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11369 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11370 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11371 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11372 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11373 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11374 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11375 Define.
11376 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11377 (IP_AGENT_EXPORT_VAR_DECL): Define.
11378 (tracing): Declare.
11379 (gdb_agent_get_raw_reg): Declare.
11380
fe978cb0
PA
113812015-02-27 Tom Tromey <tromey@redhat.com>
11382 Pedro Alves <palves@redhat.com>
11383
11384 Rename symbols whose names are reserved C++ keywords throughout.
11385
3bc3d82a
PA
113862015-02-27 Pedro Alves <palves@redhat.com>
11387
11388 * Makefile.in (COMPILER): New, get it from autoconf.
11389 (CXX): Get from autoconf instead.
11390 (COMPILE.pre): Use COMPILER.
11391 (CC-LD): Rename to ...
11392 (CC_LD): ... this. Use COMPILER.
11393 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11394 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11395 * acinclude.m4: Include build-with-cxx.m4.
11396 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11397 Disable -Werror by default if building in C++ mode.
11398 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11399 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11400 the C++ compiler. Save/restore CXXFLAGS too.
11401 * configure: Regenerate.
11402
07697489
PA
114032015-02-27 Pedro Alves <palves@redhat.com>
11404
11405 * acinclude.m4: Include libiberty.m4.
11406 * configure.ac: Call libiberty_INIT.
11407 * config.in, configure: Regenerate.
11408
9beb7c4e
PA
114092015-02-26 Pedro Alves <palves@redhat.com>
11410
11411 * linux-low.c (linux_wait_1): When incrementing the PC past a
11412 program breakpoint always use the_low_target.breakpoint_len as
11413 increment, rather than the maximum between that and
11414 the_low_target.decr_pc_after_break.
11415
8090aef2
PA
114162015-02-23 Pedro Alves <palves@redhat.com>
11417
11418 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11419 thread was doing a step-over; always adjust the PC if
11420 we stepped over a permanent breakpoint.
11421 (linux_wait_1): If we stepped over breakpoint that was on top of a
11422 permanent breakpoint, manually advance the PC past it.
11423
bc9540e8
PA
114242015-02-23 Pedro Alves <palves@redhat.com>
11425
11426 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11427 modes.
11428 (x86_fill_gregset, x86_store_gregset): Use it when handling
11429 $orig_eax.
11430
2db9a427
PA
114312015-02-20 Pedro Alves <palves@redhat.com>
11432
11433 * thread-db.c: Include "nat/linux-procfs.h".
11434 (thread_db_init): Skip listing new threads if the kernel supports
11435 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11436
afa8d396
PA
114372015-02-20 Pedro Alves <palves@redhat.com>
11438
11439 * linux-low.c (status_pending_p_callback): Use ptid_match.
11440
c9587f88
AT
114412015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11442
11443 PR breakpoints/16812
11444 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11445 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11446 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11447
b05ec7a5
AT
114482015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11449
11450 PR breakpoints/15956
11451 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11452
d33501a5
MM
114532015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11454
11455 * linux-low.c (linux_low_btrace_conf): Print size.
11456 * server.c (handle_btrace_conf_general_set): New.
11457 (hanle_general_set): Call handle_btrace_conf_general_set.
11458 (handle_query): Report Qbtrace-conf:bts:size as supported.
11459
f4abbc16
MM
114602015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11461
11462 * linux-low.c (linux_low_enable_btrace): Update parameters.
11463 (linux_low_btrace_conf): New.
11464 (linux_target_ops)<to_btrace_conf>: Initialize.
11465 * server.c (current_btrace_conf): New.
11466 (handle_btrace_enable): Rename to ...
11467 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11468 to target_enable_btrace. Update comment. Update users.
11469 (handle_qxfer_btrace_conf): New.
11470 (qxfer_packets): Add btrace-conf entry.
11471 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11472 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11473 (target_ops)<read_btrace_conf>: New.
11474 (target_enable_btrace): Update parameters.
11475 (target_read_btrace_conf): New.
11476
043c3577
MM
114772015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11478
11479 * server.c (handle_btrace_general_set): Remove call to
11480 target_supports_btrace.
11481 (supported_btrace_packets): New.
11482 (handle_query): Call supported_btrace_packets.
11483 * target.h: include btrace-common.h.
11484 (btrace_target_info): Removed.
11485 (supports_btrace, target_supports_btrace): Update parameters.
11486
734b0e4b
MM
114872015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11488
11489 * Makefile.in (SFILES): Add common/btrace-common.c.
11490 (OBS): Add common/btrace-common.o.
11491 (btrace-common.o): Add build rules.
11492 * linux-low: Include btrace-common.h.
11493 (linux_low_read_btrace): Use struct btrace_data. Call
11494 btrace_data_init and btrace_data_fini.
11495
d6c146e9
PA
114962015-02-06 Pedro Alves <palves@redhat.com>
11497
11498 * thread-db.c (find_new_threads_callback): Add debug output.
11499
20ba1ce6
PA
115002015-02-04 Pedro Alves <palves@redhat.com>
11501
11502 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11503 (resume_stopped_resumed_lwps): New function.
11504 (linux_wait_for_event_filtered): Use it.
11505
8cc73a39
SDJ
115062015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11507
11508 * Makefile.in (SFILES): Add linux-personality.c.
11509 (linux-personality.o): New rule.
11510 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11511 list of objects to be built.
11512 * linux-low.c: Include nat/linux-personality.h.
11513 (linux_create_inferior): Remove code to disable address space
11514 randomization (moved to ../nat/linux-personality.c). Create
11515 cleanup to disable address space randomization.
11516
fb23d554
SDJ
115172015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11518
11519 * Makefile.in (posix-strerror.o): New rule.
11520 (mingw-strerror.o): Likewise.
11521 * configure: Regenerated.
11522 * configure.ac: Source file ../common/common.host. Initialize new
11523 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11524
cdf43629
YQ
115252015-01-14 Yao Qi <yao@codesourcery.com>
11526
11527 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11528 (ppc-linux.o): New rule.
11529 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11530 * configure.ac: AC_CHECK_FUNCS(getauxval).
11531 * config.in: Re-generated.
11532 * configure: Re-generated.
11533 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11534 ppc64_64bit_inferior_p
11535
514c5338
YQ
115362015-01-14 Yao Qi <yao@codesourcery.com>
11537
11538 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11539 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11540 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11541 (PT_ORIG_R3, PT_TRAP): Likewise.
11542 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11543 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11544 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11545
3368c1e5
JB
115462015-01-10 Joel Brobecker <brobecker@adacore.com>
11547
11548 * i387-fp.c (i387_cache_to_xsave): In look over
11549 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11550 zmmh_low_space field by use of zmmh_high_space.
11551
582511be
PA
115522015-01-09 Pedro Alves <palves@redhat.com>
11553
11554 * linux-low.c (step_over_bkpt): Move higher up in the file.
11555 (handle_extended_wait): Don't store the stop_pc here.
11556 (get_stop_pc): Adjust comments and rename to ...
11557 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11558 stopped for a software breakpoint or hardware breakpoint.
11559 (thread_still_has_status_pending_p): New function.
11560 (status_pending_p_callback): Use
11561 thread_still_has_status_pending_p. If the event is no longer
11562 interesting, resume the LWP.
11563 (handle_tracepoints): Add assert.
11564 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11565 (wstatus_maybe_breakpoint): New function.
11566 (cancel_breakpoint): Delete function.
11567 (check_stopped_by_watchpoint): New function, factored out from
11568 linux_low_filter_event.
11569 (lp_status_maybe_breakpoint): Delete function.
11570 (linux_low_filter_event): Remove filter_ptid argument.
11571 Leave thread group exits pending here. Store the LWP's stop PC.
11572 Always leave events pending.
11573 (linux_wait_for_event_filtered): Pull all events out of the
11574 kernel, and leave them all pending.
11575 (count_events_callback, select_event_lwp_callback): Consider all
11576 events.
11577 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11578 (select_event_lwp): Only give preference to the stepping LWP in
11579 all-stop mode. Adjust comments.
11580 (ignore_event): New function.
11581 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11582 references to cancel_breakpoints. Adjust to renames. Also give
11583 equal priority to all LWPs that have had events in non-stop mode.
11584 If reporting a software breakpoint event, unadjust the LWP's PC.
11585 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11586 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11587 Adjust.
11588 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11589 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11590 (linux_stopped_by_watchpoint): Adjust.
11591 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11592 * linux-low.h (enum lwp_stop_reason): New.
11593 (struct lwp_info) <stop_pc>: Adjust comment.
11594 <stopped_by_watchpoint>: Delete field.
11595 <stop_reason>: New field.
11596 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11597 * mem-break.c (software_breakpoint_inserted_here)
11598 (hardware_breakpoint_inserted_here): New function.
11599 * mem-break.h (software_breakpoint_inserted_here)
11600 (hardware_breakpoint_inserted_here): Declare.
11601 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11602 (cancel_breakpoints): Delete.
11603 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11604 (upload_fast_traceframes): Remove references to
11605 cancel_breakpoints.
11606
a33e3959
PA
116072015-01-09 Pedro Alves <palves@redhat.com>
11608
11609 * thread-db.c (find_new_threads_callback): Ignore thread if the
11610 kernel thread ID is -1.
11611
8784d563
PA
116122015-01-09 Pedro Alves <palves@redhat.com>
11613
11614 * linux-low.c (linux_attach_fail_reason_string): Move to
11615 nat/linux-ptrace.c, and rename.
11616 (linux_attach_lwp): Update comment.
11617 (attach_proc_task_lwp_callback): New function.
11618 (linux_attach): Adjust to rename and use
11619 linux_proc_attach_tgid_threads.
11620 (linux_attach_fail_reason_string): Delete declaration.
11621
76f2b779
JB
116222015-01-01 Joel Brobecker <brobecker@adacore.com>
11623
11624 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11625 * server.c (gdbserver_version): Likewise.
11626
fafcc06a
SDJ
116272014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11628
11629 * remote-utils.c: Include ctype.h.
11630 (input_interrupt): Explicitly handle the case when the char
11631 received is the NUL byte. Improve the printing of non-ASCII
11632 characters.
11633
beed38b8
JB
116342014-12-16 Joel Brobecker <brobecker@adacore.com>
11635
11636 * linux-low.c (linux_low_filter_event): Update call to
11637 linux_enable_event_reporting following the addition of
11638 a new parameter to that function.
11639
bf330350
CU
116402014-12-16 Catalin Udma <catalin.udma@freescale.com>
11641
11642 PR server/17457
11643 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11644 (AARCH64_FPCR_REGNO): Likewise.
11645 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11646 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11647 (aarch64_store_fpregset): Likewise.
11648
5227d625
JB
116492014-12-15 Joel Brobecker <brobecker@adacore.com>
11650
11651 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11652 Remove FIXME comment about assumption about N.
11653
f93b65a0
JB
116542014-12-13 Joel Brobecker <brobecker@adacore.com>
11655
11656 * configure.ac: If large-file support is disabled in GDBserver,
11657 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11658 * configure: Regenerate.
11659
e5a9158d
AA
116602014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11661
11662 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11663 warning upon ENODATA from ptrace.
11664 * linux-s390-low.c (s390_store_tdb): New.
11665 (s390_regsets): Add regset for NT_S390_TDB.
11666
feea5f36
AA
116672014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11668
11669 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11670 without a fill_function.
11671 * linux-s390-low.c (s390_fill_last_break): Remove.
11672 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11673 (s390_arch_setup): Use regset's size instead of fill_function for
11674 loop end condition.
11675
098dbe61
AA
116762014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11677
11678 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11679 the regset's store function when ptrace returned an error.
11680 * regcache.c (get_thread_regcache): Invalidate register cache
11681 before fetching inferior's registers.
11682
28eef672
AA
116832014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11684
11685 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11686 while-loop as for-loop.
11687 (regsets_store_inferior_registers): Likewise.
11688
bdca27a2
YQ
116892014-11-28 Yao Qi <yao@codesourcery.com>
11690
11691 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11692 * config.in, configure: Re-generate.
11693 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11694 is defined.
11695
9c232dda
YQ
116962014-11-21 Yao Qi <yao@codesourcery.com>
11697
11698 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11699 (AC_CHECK_HEADERS): Remove malloc.h.
11700 * configure: Re-generated.
11701 * config.in: Re-generated.
11702 * server.h: Don't include alloca.h and malloc.h.
11703 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11704 Don't include malloc.h.
11705
43968415
JB
117062014-11-17 Joel Brobecker <brobecker@adacore.com>
11707
11708 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11709 corresponding ERRNO check in same block.
11710
40e91bc7
PA
117112014-11-12 Pedro Alves <palves@redhat.com>
11712
11713 * server.c (cont_thread): Update comment.
11714 (start_inferior, attach_inferior): No longer clear cont_thread.
11715 (handle_v_cont): No longer set cont_thread.
11716 (captured_main): Clear cont_thread each time a GDB connects.
11717
c2c118cf
PA
117182014-11-12 Pedro Alves <palves@redhat.com>
11719
11720 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11721 thread, and don't resume all threads if the Hc thread has exited.
11722
78708b7c
PA
117232014-11-12 Pedro Alves <palves@redhat.com>
11724
11725 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11726 the process group instead of to a specific LWP.
11727
a2abc7de
PA
117282014-10-15 Pedro Alves <palves@redhat.com>
11729
11730 PR server/17487
11731 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11732 parameter.
11733 (arm_set_thread_context): Delete.
11734 (the_low_target): Adjust.
11735 * win32-i386-low.c (debug_registers_changed)
11736 (debug_registers_used): Delete.
11737 (update_debug_registers_callback): New function.
11738 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11739 needing to update their debug registers.
11740 (win32_get_current_dr): New function.
11741 (x86_dr_low_get_addr, x86_dr_low_get_control)
11742 (x86_dr_low_get_status): Fetch the debug register from the thread
11743 record's context.
11744 (i386_initial_stuff): Adjust.
11745 (i386_get_thread_context): Remove current_event parameter. Don't
11746 clear debug_registers_changed nor copy DR values to
11747 debug_reg_state.
11748 (i386_set_thread_context): Delete.
11749 (i386_prepare_to_resume): New function.
11750 (i386_thread_added): Mark the thread as needing to update irs
11751 debug registers.
11752 (the_low_target): Remove i386_set_thread_context and install
11753 i386_prepare_to_resume.
11754 * win32-low.c (win32_get_thread_context): Adjust.
11755 (win32_set_thread_context): Use SetThreadContext
11756 directly.
11757 (win32_prepare_to_resume): New function.
11758 (win32_require_context): New function, factored out from ...
11759 (thread_rec): ... this.
11760 (continue_one_thread): Call win32_prepare_to_resume on each thread
11761 we're about to continue.
11762 (win32_resume): Call win32_prepare_to_resume on the event thread.
11763 * win32-low.h (struct win32_thread_info)
11764 <debug_registers_changed>: New field.
11765 (struct win32_target_ops): Change prototype of set_thread_context,
11766 delete set_thread_context and add prepare_to_resume.
11767 (win32_require_context): New declaration.
11768
a442d071
GB
117692014-10-08 Gary Benson <gbenson@redhat.com>
11770
11771 * server.h: Do not include common-exceptions.h.
11772
6f1947e8
GB
117732014-10-08 Gary Benson <gbenson@redhat.com>
11774
11775 * server.h: Do not include cleanups.h.
11776
63b434a4
JH
117772014-09-30 James Hogan <james.hogan@imgtec.com>
11778
11779 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11780 mips64-dsp-linux.c.
11781
c4d9ceb6
YQ
117822014-09-23 Yao Qi <yao@codesourcery.com>
11783
11784 * linux-low.c (lp_status_maybe_breakpoint): New function.
11785 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11786 (count_events_callback): Likewise.
11787 (select_event_lwp_callback): Likewise.
11788 (cancel_breakpoints_callback): Likewise.
11789
89a5711c
DB
117902014-09-19 Don Breazeal <donb@codesourcery.com>
11791
11792 * linux-low.c (handle_extended_wait): Call
11793 linux_ptrace_get_extended_event.
11794 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11795 linux_is_extended_waitstatus.
11796
bffc0964
JB
117972014-09-16 Joel Brobecker <brobecker@adacore.com>
11798
11799 * Makefile.in (CPPFLAGS): Define.
11800 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11801 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11802
0bfdf32f
GB
118032014-09-16 Gary Benson <gbenson@redhat.com>
11804
11805 * inferiors.h (current_inferior): Renamed as...
11806 (current_thread): New variable. All uses updated.
11807 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11808 (maybe_move_out_of_jump_pad): Likewise.
11809 (cancel_breakpoint): Likewise.
11810 (linux_low_filter_event): Likewise.
11811 (wait_for_sigstop): Likewise.
11812 (linux_resume_one_lwp): Likewise.
11813 (need_step_over_p): Likewise.
11814 (start_step_over): Likewise.
11815 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11816 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11817 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11818 and save_inferior as saved_thread.
11819 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11820 saved_thread.
11821 (regcache_invalidate_thread): Likewise.
11822 * remote-utils.c (prepare_resume_reply): Likewise.
11823 * thread-db.c (thread_db_get_tls_address): Likewise.
11824 (disable_thread_event_reporting): Likewise.
11825 (remove_thread_event_breakpoints): Likewise.
11826 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11827 as saved_thread.
11828 * target.h (set_desired_inferior): Renamed as...
11829 (set_desired_thread): New declaration. All uses updated.
11830 * server.c (myresume): Updated comment to reference thread instead
11831 of inferior.
11832 (handle_serial_event): Likewise.
11833 (handle_target_event): Likewise.
11834
361c8ade
GB
118352014-09-12 Tom Tromey <tromey@redhat.com>
11836 Gary Benson <gbenson@redhat.com>
11837
11838 * regcache.h: Include common-regcache.h.
11839 (regcache_read_pc): Don't declare.
11840 * regcache.c (get_thread_regcache_for_ptid): New function.
11841
bd9269f7
GB
118422014-09-11 Tom Tromey <tromey@redhat.com>
11843 Gary Benson <gbenson@redhat.com>
11844
11845 * symbol.c: New file.
11846 * Makefile.in (SFILES): Add symbol.c.
11847 (OBS): Add symbol.o.
11848
f8c1d06b
GB
118492014-09-11 Gary Benson <gbenson@redhat.com>
11850
11851 * target.c (target_stop_ptid, target_continue_ptid): New
11852 functions.
11853
721ec300
GB
118542014-09-11 Tom Tromey <tromey@redhat.com>
11855 Gary Benson <gbenson@redhat.com>
11856
11857 * target.h: Include target/target.h.
11858 * target.c (target_read_memory, target_read_uint32)
11859 (target_write_memory): New functions.
11860
c5e92cca
GB
118612014-09-11 Gary Benson <gbenson@redhat.com>
11862
11863 * server.h (debug_hw_points): Don't declare.
11864 * server.c (debug_hw_points): Don't define. Replace all uses
11865 with show_debug_regs.
11866 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11867 all uses with show_debug_regs.
11868
2e4bb98a
EBM
118692014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11870
11871 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11872 endianness into account.
11873 (ppc_supply_ptrace_register): Likewise.
11874
ac740bc7
JH
118752014-09-03 James Hogan <james.hogan@imgtec.com>
11876
11877 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11878 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11879
97ea6506
GB
118802014-09-03 Gary Benson <gbenson@redhat.com>
11881
11882 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11883 ALL_DEBUG_ADDRESS_REGISTERS.
11884
df7e5265
GB
118852014-09-02 Gary Benson <gbenson@redhat.com>
11886
11887 * i386-low.h: Renamed as...
11888 * x86-low.h: New file. All type, function and variable name
11889 prefixes changed from "i386_" to "x86_". All references updated.
11890 * i386-low.c: Renamed as...
11891 * x86-low.c: New file. All type, function and variable name
11892 prefixes changed from "i386_" to "x86_". All references updated.
11893
ed859da7
GB
118942014-09-02 Gary Benson <gbenson@redhat.com>
11895
11896 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11897 (x86_linux_new_thread): Likewise.
11898
860789c7
GB
118992014-08-29 Gary Benson <gbenson@redhat.com>
11900
11901 * server.h (setjmp.h): Do not include.
11902 (toplevel): Do not declare.
11903 (common-exceptions.h): Include.
11904 (cleanups.h): Likewise.
11905 * server.c (toplevel): Do not define.
11906 (exit_code): New static global.
11907 (detach_or_kill_for_exit_cleanup): New function.
11908 (main): New function. Original main renamed to...
11909 (captured_main): New function.
11910 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11911
ff55e1b5
GB
119122014-08-29 Gary Benson <gbenson@redhat.com>
11913
11914 * Makefile.in (SFILES): Add common/common-exceptions.c.
11915 (OBS): Add common-exceptions.o.
11916 (common-exceptions.o): New rule.
11917 * utils.c (prepare_to_throw_exception): New function.
11918
e9bcb658
GB
119192014-08-29 Gary Benson <gbenson@redhat.com>
11920
11921 * config.in: Regenerate.
11922 * configure: Likewise.
11923
e3180625
GB
119242014-08-29 Gary Benson <gbenson@redhat.com>
11925
11926 * Makefile.in (SFILES): Add common/cleanups.c.
11927 (OBS): cleanups.o.
11928 (cleanups.o): New rule.
11929
e3d6ba5d
GB
119302014-08-29 Gary Benson <gbenson@redhat.com>
11931
11932 * utils.c (internal_vwarning): New function.
11933
7096e886
GB
119342014-08-28 Gary Benson <gbenson@redhat.com>
11935
11936 * utils.h (fatal): Remove declaration.
11937 * utils.c (fatal): Remove function.
11938
14ce3192
GB
119392014-08-28 Gary Benson <gbenson@redhat.com>
11940
11941 * tracepoint.c (gdb_agent_init): Replace fatal with
11942 perror_with_name.
11943 (initialize_tracepoint): Likewise.
11944
50278d59
GB
119452014-08-28 Gary Benson <gbenson@redhat.com>
11946
11947 * remote-utils.c (remote_prepare): Replace fatal with error.
11948
aa96c426
GB
119492014-08-28 Gary Benson <gbenson@redhat.com>
11950
11951 * linux-low.c (linux_async): Replace fatal with warning.
11952 Tidy up and return.
11953 (linux_start_non_stop): Return -1 if linux_async failed.
11954
f7160e97
GB
119552014-08-28 Gary Benson <gbenson@redhat.com>
11956
11957 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11958 gdb_assert.
11959 (i386_dr_low_get_addr): Remove vague comment.
11960 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11961 gdb_assert.
11962
38e08fca
GB
119632014-08-28 Gary Benson <gbenson@redhat.com>
11964
11965 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11966 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11967 internal_error.
11968 (linux_resume_one_lwp): Likewise.
11969 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11970 gdb_assert.
11971 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11972 with internal_error.
11973 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11974 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11975 (find_register_by_name): Replace fatal with internal_error.
11976 (find_regno): Likewise.
11977 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11978 * thread-db.c (thread_db_create_event): Likewise.
11979 (thread_db_load_search): Likewise.
11980 (try_thread_db_load_1): Likewise.
11981 * tracepoint.c (get_jump_space_head): Replace fatal with
11982 internal_error.
11983 (claim_trampoline_space): Likewise.
11984 (have_fast_tracepoint_trampoline_buffer): Likewise.
11985 (cmd_qtstart): Likewise.
11986 (stop_tracing): Likewise.
11987 (fast_tracepoint_collecting): Likewise.
11988 (target_malloc): Likewise.
11989 (download_tracepoint): Likewise.
11990 (download_trace_state_variables): Replace check with gdb_assert.
11991 (upload_fast_traceframes): Replace fatal with internal_error.
11992
34abf635
GB
119932014-08-19 Tom Tromey <tromey@redhat.com>
11994 Gary Benson <gbenson@redhat.com>
11995
11996 * Makefile.in (SFILES): Add common/common-debug.c.
11997 (OBS): Add common-debug.o.
11998 (common-debug.o): New rule.
11999 * debug.h (debug_printf): Don't declare.
12000 * debug.c (debug_printf): Renamed and rewritten as...
12001 (debug_vprintf): New function.
12002
f6e94d78
GB
120032014-08-19 Gary Benson <gbenson@redhat.com>
12004
12005 * utils.h: Do not include print-utils.h.
12006
9239eeab
GB
120072014-08-19 Tom Tromey <tromey@redhat.com>
12008 Gary Benson <gbenson@redhat.com>
12009
12010 * server.h: Add static assertion.
12011 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12012
ef87c8bb
GB
120132014-08-19 Tom Tromey <tromey@redhat.com>
12014 Gary Benson <gbenson@redhat.com>
12015
12016 * Makefile.in (SFILES): Add common/errors.c.
12017 (OBS): Add errors.o.
12018 (IPA_OBS): Add errors-ipa.o.
12019 (errors.o): New rule.
12020 (errors-ipa.o): Likewise.
12021 * utils.h (perror_with_name, error, warning): Don't declare.
12022 * utils.c (warning): Renamed and rewritten as...
12023 (vwarning): New function.
12024 (error): Renamed and rewritten as...
12025 (verror): New function.
12026 (internal_error): Renamed and rewritten as...
12027 (internal_verror): New function.
12028
bb974a24
GB
120292014-08-07 Gary Benson <gbenson@redhat.com>
12030
12031 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12032 * configure: Regenerate.
12033 * config.in: Likewise.
12034 * server.h: Do not include errno.h.
12035 * event-loop.c: Likewise.
12036 * hostio-errno.c: Likewise.
12037 * linux-low.c: Likewise.
12038 * remote-utils.c: Likewise.
12039 * spu-low.c: Likewise.
12040 * utils.c: Likewise.
12041 * gdbreplay.c: Unconditionally include errno.h.
12042
6d3d12eb
GB
120432014-08-07 Gary Benson <gbenson@redhat.com>
12044
12045 * server.h: Do not include string.h.
12046 * event-loop.c: Likewise.
12047 * linux-low.c: Likewise.
12048 * regcache.c: Likewise.
12049 * remote-utils.c: Likewise.
12050 * spu-low.c: Likewise.
12051 * utils.c: Likewise.
12052
dccbb609
GB
120532014-08-07 Gary Benson <gbenson@redhat.com>
12054
12055 * server.h: Do not include gdb_assert.h.
12056
e76df0d0
GB
120572014-08-07 Gary Benson <gbenson@redhat.com>
12058
12059 * server.h: Do not include common-utils.h.
12060
4cb9c816
GB
120612014-08-07 Gary Benson <gbenson@redhat.com>
12062
12063 * server.h: Do not include ptid.h.
12064 * notif.h: Likewise.
12065
3995eeee
GB
120662014-08-07 Gary Benson <gbenson@redhat.com>
12067
12068 * server.h: Do not include gdb_locale.h.
12069
cb9f1a9b
GB
120702014-08-07 Gary Benson <gbenson@redhat.com>
12071
12072 * server.h: Do not include gdb/signals.h.
12073 * win32-low.c: Likewise.
12074
a5fceff8
GB
120752014-08-07 Gary Benson <gbenson@redhat.com>
12076
12077 * server.h: Do not include pathmax.h.
12078
b9391142
GB
120792014-08-07 Gary Benson <gbenson@redhat.com>
12080
12081 * server.h: Do not include libiberty.h.
12082 * linux-bfin-low.c: Likewise.
12083
0e443c87
GB
120842014-08-07 Gary Benson <gbenson@redhat.com>
12085
12086 * server.h: Do not include ansidecl.h.
12087
8ebb3f56
GB
120882014-08-07 Gary Benson <gbenson@redhat.com>
12089
12090 * linux-x86-low.c: Do not include stddef.h.
12091 * lynx-ppc-low.c: Likewise.
12092 * tracepoint.c: Likewise.
12093
8980bdf6
GB
120942014-08-07 Gary Benson <gbenson@redhat.com>
12095
12096 * server.h: Do not include stdarg.h.
12097 * nto-low.c: Likewise.
12098
d7096f71
GB
120992014-08-07 Gary Benson <gbenson@redhat.com>
12100
12101 * server.h: Do not include stdlib.h.
12102 * inferiors.c: Likewise.
12103 * linux-low.c: Likewise.
12104 * regcache.c: Likewise.
12105 * spu-low.c: Likewise.
12106 * tracepoint.c: Likewise.
12107 * utils.c: Likewise.
12108
d02f550d
GB
121092014-08-07 Gary Benson <gbenson@redhat.com>
12110
12111 * server.h: Do not include stdio.h.
12112 * linux-low.c: Likewise.
12113 * remote-utils.c: Likewise.
12114 * spu-low.c: Likewise.
12115 * utils.c: Likewise.
12116 * wincecompat.c: Likewise.
12117
87f6c4e3
GB
121182014-08-06 Gary Benson <gbenson@redhat.com>
12119
12120 * regcache.c (init_register_cache): Move conditionals inside if.
12121
7089dca4
GB
121222014-08-06 Gary Benson <gbenson@redhat.com>
12123
12124 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12125
462f517e
GB
121262014-07-31 Gary Benson <gbenson@redhat.com>
12127
12128 * ax.h: Do not include server.h.
12129 * gdbthread.h: Likewise.
12130 * lynx-low.h: Likewise.
12131 * notif.h: Likewise.
12132
976411d6
GB
121332014-07-30 Gary Benson <gbenson@redhat.com>
12134
12135 * server.h: Include common-defs.h.
12136 Do not include config.h or build-gnulib-gdbserver/config.h.
12137
d41f6d8e
GB
121382014-07-30 Gary Benson <gbenson@redhat.com>
12139
12140 * hostio-errno.c: Move server.h to top of includes list.
12141 * inferiors.c: Likewise.
12142 * linux-x86-low.c: Likewise.
12143 * notif.c: Include server.h.
12144
314c6a35
TT
121452014-07-24 Tom Tromey <tromey@redhat.com>
12146 Gary Benson <gbenson@redhat.com>
12147
12148 * server.h (CORE_ADDR): Now unsigned.
12149
69ff6be5
PA
121502014-07-16 Pedro Alves <palves@redhat.com>
12151
12152 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12153
ce9e3fe7
PA
121542014-07-15 Pedro Alves <palves@redhat.com>
12155
12156 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12157 copy.
12158
e76126e8
PA
121592014-07-11 Pedro Alves <palves@redhat.com>
12160
12161 * linux-low.c (kill_wait_lwp): New function, based on
12162 kill_one_lwp_callback, but use my_waitpid directly.
12163 (kill_one_lwp_callback, linux_kill): Use it.
12164
8e9db26e
PA
121652014-06-23 Pedro Alves <palves@redhat.com>
12166
12167 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12168 before setting DR0..DR3.
12169
698b3e08
GB
121702014-06-20 Gary Benson <gbenson@redhat.com>
12171
12172 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12173 * configure: Regenerated.
12174 * config.in: Likewise.
12175
125f8a3d
GB
121762014-06-20 Gary Benson <gbenson@redhat.com>
12177
12178 * Makefile.in (SFILES): Update locations for files moved
12179 from common to nat.
12180 (object file files): Reordered.
12181
42995dbd
GB
121822014-06-20 Gary Benson <gbenson@redhat.com>
12183
12184 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12185 (i386_dr_low_set_addr): Likewise.
12186 (i386_dr_low_get_addr): Likewise.
12187 (i386_dr_low_can_set_control): Likewise.
12188 (i386_dr_low_set_control): Likewise.
12189 (i386_dr_low_get_control): Likewise.
12190 (i386_dr_low_get_status): Likewise.
12191 (i386_get_debug_register_length): Likewise.
12192 * linux-x86-low.c (i386_dr_low_set_addr):
12193 Changed signature. Made static.
12194 (i386_dr_low_get_addr): Likewise.
12195 (i386_dr_low_set_control): Likewise.
12196 (i386_dr_low_get_control): Likewise.
12197 (i386_dr_low_get_status): Likewise.
12198 (i386_dr_low): New global variable.
12199 * win32-i386-low.c (i386_dr_low_set_addr):
12200 Changed signature. Made static.
12201 (i386_dr_low_get_addr): Likewise.
12202 (i386_dr_low_set_control): Likewise.
12203 (i386_dr_low_get_control): Likewise.
12204 (i386_dr_low_get_status): Likewise.
12205 (i386_dr_low): New global variable.
12206
e1d2394b
MS
122072014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12208
12209 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12210 * Makefile.in (AR, AR_FLAGS): Define.
12211 * configure: Regenerate.
12212
3a8ee006
GB
122132014-06-19 Gary Benson <gbenson@redhat.com>
12214
12215 * Makefile.in (i386-dregs.o): New rule.
12216 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12217 * i386-low.c (target.h): Remove include.
12218 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12219 (DR_CONTROL_SHIFT): Likewise.
12220 (DR_CONTROL_SIZE): Likewise.
12221 (DR_RW_EXECUTE): Likewise.
12222 (DR_RW_WRITE): Likewise.
12223 (DR_RW_READ): Likewise.
12224 (DR_RW_IORW): Likewise.
12225 (DR_LEN_1): Likewise.
12226 (DR_LEN_2): Likewise.
12227 (DR_LEN_4): Likewise.
12228 (DR_LEN_8): Likewise.
12229 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12230 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12231 (DR_ENABLE_SIZE): Likewise.
12232 (DR_LOCAL_SLOWDOWN): Likewise.
12233 (DR_GLOBAL_SLOWDOWN): Likewise.
12234 (DR_CONTROL_RESERVED): Likewise.
12235 (I386_DR_CONTROL_MASK): Likewise.
12236 (I386_DR_VACANT): Likewise.
12237 (I386_DR_LOCAL_ENABLE): Likewise.
12238 (I386_DR_GLOBAL_ENABLE): Likewise.
12239 (I386_DR_DISABLE): Likewise.
12240 (I386_DR_SET_RW_LEN): Likewise.
12241 (I386_DR_GET_RW_LEN): Likewise.
12242 (I386_DR_WATCH_HIT): Likewise.
12243 (i386_wp_op_t): Likewise.
12244 (i386_show_dr): Likewise.
12245 (i386_length_and_rw_bits): Likewise.
12246 (i386_insert_aligned_watchpoint): Likewise.
12247 (i386_remove_aligned_watchpoint): Likewise.
12248 (i386_handle_nonaligned_watchpoint): Likewise.
12249 i386_update_inferior_debug_regs(): Likewise.
12250 (i386_dr_insert_watchpoint): Likewise.
12251 (i386_dr_remove_watchpoint): Likewise.
12252 (i386_dr_region_ok_for_watchpoint): Likewise.
12253 (i386_dr_stopped_data_address): Likewise.
12254 (i386_dr_stopped_by_watchpoint): Likewise.
12255
8f26655c
GB
122562014-06-19 Gary Benson <gbenson@redhat.com>
12257
12258 * i386-low.c (i386_dr_show): Renamed to
12259 i386_show_dr and made static. All uses updated.
12260 (i386_dr_length_and_rw_bits): Renamed to
12261 i386_length_and_rw_bits and made static.
12262 All uses updated.
12263 (i386_dr_insert_aligned_watchpoint): Renamed to
12264 i386_insert_aligned_watchpoint and made static.
12265 All uses updated.
12266 (i386_dr_remove_aligned_watchpoint): Renamed to
12267 i386_remove_aligned_watchpoint and made static.
12268 All uses updated.
12269 (i386_dr_update_inferior_debug_regs): Renamed to
12270 i386_update_inferior_debug_regs and made static.
12271 All uses updated.
12272
b9228891
GB
122732014-06-18 Gary Benson <gbenson@redhat.com>
12274
5171def3
GB
12275 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12276 (i386_dr_low_can_set_control): Likewise.
12277 (i386_get_debug_register_length): Likewise.
12278 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12279 (i386_dr_low_can_set_control): Likewise.
12280 (i386_get_debug_register_length): Likewise.
12281
122822014-06-17 Gary Benson <gbenson@redhat.com>
12283
b9228891
GB
12284 * i386-low.h (i386-dregs.h): New include.
12285 (DR_FIRSTADDR): Now in i386-dregs.h.
12286 (DR_LASTADDR): Likewise.
12287 (DR_NADDR): Likewise.
12288 (DR_STATUS): Likewise.
12289 (DR_CONTROL): Likewise.
12290 (i386_debug_reg_state): Likewise.
12291 (i386_dr_insert_watchpoint): Likewise.
12292 (i386_dr_remove_watchpoint): Likewise.
12293 (i386_dr_region_ok_for_watchpoint): Likewise.
12294 (i386_dr_stopped_data_address): Likewise.
12295 (i386_dr_stopped_by_watchpoint): Likewise.
12296 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12297
4be83cc2
GB
122982014-06-18 Gary Benson <gbenson@redhat.com>
12299
12300 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12301 i386_dr_insert_watchpoint.
12302 (i386_low_remove_watchpoint): Renamed to
12303 i386_dr_remove_watchpoint.
12304 (i386_low_region_ok_for_watchpoint): Renamed to
12305 i386_dr_region_ok_for_watchpoint.
12306 (i386_low_stopped_data_address): Renamed to
12307 i386_dr_stopped_data_address.
12308 (i386_low_stopped_by_watchpoint): Renamed to
12309 i386_dr_stopped_by_watchpoint.
12310 * i386-low.c (i386_show_dr): Renamed to
12311 i386_dr_show and made nonstatic. All uses updated.
12312 (i386_length_and_rw_bits): Renamed to
12313 i386_dr_length_and_rw_bits and made nonstatic.
12314 All uses updated.
12315 (i386_insert_aligned_watchpoint): Renamed to
12316 i386_dr_insert_aligned_watchpoint and made nonstatic.
12317 All uses updated.
12318 (i386_remove_aligned_watchpoint): Renamed to
12319 i386_dr_remove_aligned_watchpoint and made nonstatic.
12320 All uses updated.
12321 (i386_update_inferior_debug_regs): Renamed to
12322 i386_dr_update_inferior_debug_regs and made nonstatic.
12323 All uses updated.
12324 (i386_low_insert_watchpoint): Renamed to
12325 i386_dr_insert_watchpoint. All uses updated.
12326 (i386_low_remove_watchpoint): Renamed to
12327 i386_dr_remove_watchpoint. All uses updated.
12328 (i386_low_region_ok_for_watchpoint): Renamed to
12329 i386_dr_region_ok_for_watchpoint. All uses updated.
12330 (i386_low_stopped_data_address): Renamed to
12331 i386_dr_stopped_data_address. All uses updated.
12332 (i386_low_stopped_by_watchpoint): Renamed to
12333 i386_dr_stopped_by_watchpoint. All uses updated.
12334
131aa0d4
GB
123352014-06-18 Gary Benson <gbenson@redhat.com>
12336
12337 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12338 (i386_dr_low_can_set_control): Likewise.
12339 (i386_insert_aligned_watchpoint): New check.
12340
d9305f7f
GB
123412014-06-18 Gary Benson <gbenson@redhat.com>
12342
12343 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12344 Renamed to state.
12345
e927c9fc
GB
123462014-06-18 Gary Benson <gbenson@redhat.com>
12347
12348 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12349 instead of fatal and error.
12350 (i386_handle_nonaligned_watchpoint): Likewise.
12351
1b6d4134
GB
123522014-06-18 Gary Benson <gbenson@redhat.com>
12353
12354 * i386-low.c (i386_get_debug_register_length): New macro.
12355 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12356 (i386_show_dr): Use debug_printf instead of fprintf. Use
12357 phex to format values.
12358
6e62758f
GB
123592014-06-18 Gary Benson <gbenson@redhat.com>
12360
12361 * i386-low.h: Comment changes.
12362 * i386-low.c: Likewise.
12363
fc6e2f03
GB
123642014-06-18 Gary Benson <gbenson@redhat.com>
12365
12366 * i386-low.c: Whitespace changes.
12367
f9d1eeed
TT
123682014-06-12 Tom Tromey <tromey@redhat.com>
12369
12370 * utils.c (freeargv): Remove.
12371
0b04e523
TT
123722014-06-12 Tom Tromey <tromey@redhat.com>
12373
12374 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12375 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12376 (parse_debug_format_options): Likewise.
12377 (gdbserver_usage): Likewise.
12378 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12379 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12380 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12381 against libiberty.
12382 ($(LIBGNU)): Depend on libiberty.
12383 (all-lib): Recurse into all subdirs.
12384 (install-only): Invoke "install" target in subdirs.
12385 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12386 targets.
12387 * configure: Rebuild.
12388 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12389 for vasprintf, vsnprintf, or gettimeofday.
12390 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12391 srv_tgtobj.
12392
270c9937
JB
123932014-06-05 Joel Brobecker <brobecker@adacore.com>
12394
12395 * development.sh: Delete.
12396 * Makefile.in (config.status): Adjust dependency on development.sh.
12397 * configure.ac: Adjust development.sh source call.
12398 * configure: Regenerate.
12399
0a261ed8
PA
124002014-06-02 Pedro Alves <palves@redhat.com>
12401
12402 * ax.c (gdb_free_agent_expr): New function.
12403 * ax.h (gdb_free_agent_expr): New declaration.
12404 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12405 list.
12406 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12407 static.
12408 (clear_breakpoint_conditions_and_commands): New function.
12409 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12410 (clear_breakpoint_conditions_and_commands): New declaration.
12411
e9dae05e
RR
124122014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12413
12414 * linux-aarch64-low.c (asm/ptrace.h): Include.
12415
5876f503
JK
124162014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12417
12418 Fix TLS access for -static -pthread.
12419 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12420 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12421 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12422
802e8e6d
PA
124232014-05-20 Pedro Alves <palves@redhat.com>
12424
12425 * linux-aarch64-low.c (aarch64_insert_point)
12426 (aarch64_remove_point): No longer check whether the type is
12427 supported here. Adjust to new interface.
12428 (the_low_target): Install aarch64_supports_z_point_type as
12429 supports_z_point_type method.
12430 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12431 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12432 instead of a Z packet char. Adjust.
12433 (arm_supports_z_point_type): New function.
12434 (arm_insert_point, arm_remove_point): Adjust to new interface.
12435 (the_low_target): Install arm_supports_z_point_type.
12436 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12437 (cris_insert_point, cris_remove_point): Adjust to new interface.
12438 Don't check whether the type is supported here.
12439 (the_low_target): Install cris_supports_z_point_type.
12440 * linux-low.c (linux_supports_z_point_type): New function.
12441 (linux_insert_point, linux_remove_point): Adjust to new interface.
12442 * linux-low.h (struct linux_target_ops) <insert_point,
12443 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12444 raw_breakpoint pointer parameter.
12445 <supports_z_point_type>: New method.
12446 * linux-mips-low.c (mips_supports_z_point_type): New function.
12447 (mips_insert_point, mips_remove_point): Adjust to new interface.
12448 Use mips_supports_z_point_type.
12449 (the_low_target): Install mips_supports_z_point_type.
12450 * linux-ppc-low.c (the_low_target): Install NULL as
12451 supports_z_point_type method.
12452 * linux-s390-low.c (the_low_target): Install NULL as
12453 supports_z_point_type method.
12454 * linux-sparc-low.c (the_low_target): Install NULL as
12455 supports_z_point_type method.
12456 * linux-x86-low.c (x86_supports_z_point_type): New function.
12457 (x86_insert_point): Adjust to new insert_point interface. Use
12458 insert_memory_breakpoint. Adjust to new
12459 i386_low_insert_watchpoint interface.
12460 (x86_remove_point): Adjust to remove_point interface. Use
12461 remove_memory_breakpoint. Adjust to new
12462 i386_low_remove_watchpoint interface.
12463 (the_low_target): Install x86_supports_z_point_type.
12464 * lynx-low.c (lynx_target_ops): Install NULL as
12465 supports_z_point_type callback.
12466 * nto-low.c (nto_supports_z_point_type): New.
12467 (nto_insert_point, nto_remove_point): Adjust to new interface.
12468 (nto_target_ops): Install nto_supports_z_point_type.
12469 * mem-break.c: Adjust intro comment.
12470 (struct raw_breakpoint) <raw_type, size>: New fields.
12471 <inserted>: Update comment.
12472 <shlib_disabled>: Delete field.
12473 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12474 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12475 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12476 (raw_bkpt_type_to_target_hw_bp_type): New function.
12477 (find_enabled_raw_code_breakpoint_at): New function.
12478 (find_raw_breakpoint_at): New type and size parameters. Use them.
12479 (insert_memory_breakpoint): New function, based off
12480 set_raw_breakpoint_at.
12481 (remove_memory_breakpoint): New function.
12482 (set_raw_breakpoint_at): Reimplement.
12483 (set_breakpoint): New, based on set_breakpoint_at.
12484 (set_breakpoint_at): Reimplement.
12485 (delete_raw_breakpoint): Go through the_target->remove_point
12486 instead of assuming memory breakpoints.
12487 (find_gdb_breakpoint_at): Delete.
12488 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12489 (find_gdb_breakpoint): New function.
12490 (set_gdb_breakpoint_at): Delete.
12491 (z_type_supported): New function.
12492 (set_gdb_breakpoint_1): New function, loosely based off
12493 set_gdb_breakpoint_at.
12494 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12495 (delete_gdb_breakpoint_at): Delete.
12496 (delete_gdb_breakpoint_1): New function, loosely based off
12497 delete_gdb_breakpoint_at.
12498 (delete_gdb_breakpoint): New function.
12499 (clear_gdb_breakpoint_conditions): Rename to ...
12500 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12501 breakpoint.
12502 (add_condition_to_breakpoint): Make static.
12503 (add_breakpoint_condition): Take a struct breakpoint pointer
12504 instead of an address. Adjust.
12505 (gdb_condition_true_at_breakpoint): Rename to ...
12506 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12507 z_type parameter.
12508 (gdb_condition_true_at_breakpoint): Reimplement.
12509 (add_breakpoint_commands): Take a struct breakpoint pointer
12510 instead of an address. Adjust.
12511 (gdb_no_commands_at_breakpoint): Rename to ...
12512 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12513 parameter. Return true if no breakpoint was found. Change debug
12514 output.
12515 (gdb_no_commands_at_breakpoint): Reimplement.
12516 (run_breakpoint_commands): Rename to ...
12517 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12518 and change return type to boolean.
12519 (run_breakpoint_commands): New function.
12520 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12521 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12522 breakpoint. Go through the_target->remove_point instead of
12523 assuming memory breakpoint.
12524 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12525 software and hardware breakpoints.
12526 (reinsert_raw_breakpoint): Go through the_target->insert_point
12527 instead of assuming memory breakpoint.
12528 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12529 software and hardware breakpoints.
12530 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12531 Check both software and hardware breakpoints.
12532 (validate_inserted_breakpoint): Assert the breakpoint is a
12533 software breakpoint. Set the inserted flag to -1 instead of
12534 setting shlib_disabled.
12535 (delete_disabled_breakpoints): Adjust.
12536 (validate_breakpoints): Only validate software breakpoints.
12537 Adjust to inserted flag change.
12538 (check_mem_read, check_mem_write): Skip breakpoint types other
12539 than software breakpoints. Adjust to inserted flag change.
12540 * mem-break.h (enum raw_bkpt_type): New enum.
12541 (raw_breakpoint, struct process_info): Forward declare.
12542 (Z_packet_to_target_hw_bp_type): Delete declaration.
12543 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12544 (set_gdb_breakpoint, delete_gdb_breakpoint)
12545 (clear_breakpoint_conditions): New declarations.
12546 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12547 (breakpoint_inserted_here): Update comment.
12548 (add_breakpoint_condition, add_breakpoint_commands): Replace
12549 address parameter with a breakpoint pointer parameter.
12550 (gdb_breakpoint_here): Update comment.
12551 (delete_gdb_breakpoint_at): Delete.
12552 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12553 * server.c (process_point_options): Take a struct breakpoint
12554 pointer instead of an address. Adjust.
12555 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12556 delete_gdb_breakpoint.
12557 * spu-low.c (spu_target_ops): Install NULL as
12558 supports_z_point_type method.
12559 * target.h: Include mem-break.h.
12560 (struct target_ops) <prepare_to_access_memory>: Update comment.
12561 <supports_z_point_type>: New field.
12562 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12563 instead of a char. Also take a raw breakpoint pointer.
12564 * win32-arm-low.c (the_low_target): Install NULL as
12565 supports_z_point_type.
12566 * win32-i386-low.c (i386_supports_z_point_type): New function.
12567 (i386_insert_point, i386_remove_point): Adjust to new interface.
12568 (the_low_target): Install i386_supports_z_point_type.
12569 * win32-low.c (win32_supports_z_point_type): New function.
12570 (win32_insert_point, win32_remove_point): Adjust to new interface.
12571 (win32_target_ops): Install win32_supports_z_point_type.
12572 * win32-low.h (struct win32_target_ops):
12573 <supports_z_point_type>: New method.
12574 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12575 instead of a char. Also take a raw breakpoint pointer.
12576
932539e3
PA
125772014-05-20 Pedro Alves <palves@redhat.com>
12578
12579 * mem-break.h: Include break-common.h.
12580 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12581 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12582 (Z_packet_to_target_hw_bp_type): New declaration.
12583 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12584 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12585 (Z_PACKET_ACCESS_WP): Delete macros.
12586 (Z_packet_to_hw_type): Delete function.
12587 * i386-low.h: Don't include break-common.h here.
12588 (Z_packet_to_hw_type): Delete declaration.
12589 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12590 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12591 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12592 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12593 * linux-aarch64-low.c: Don't include break-common.h here.
12594 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12595 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12596 (Z_packet_to_target_hw_bp_type): Delete function.
12597 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12598 function.
12599 (mips_insert_point, mips_remove_point): Use
12600 Z_packet_to_target_hw_bp_type.
12601
4ff0d3d8
PA
126022014-05-20 Pedro Alves <palves@redhat.com>
12603
12604 * linux-aarch64-low.c: Include break-common.h.
12605 (enum target_point_type): Delete.
12606 (Z_packet_to_point_type): Rename to ...
12607 (Z_packet_to_target_hw_bp_type): ... this, and return a
12608 target_hw_bp_type instead.
12609 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12610 instead of an enum target_point_type.
12611 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12612 breakpoint type.
12613 (aarch64_dr_state_insert_one_point)
12614 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12615 (aarch64_handle_aligned_watchpoint)
12616 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12617 Take an enum target_hw_bp_type instead of an enum
12618 target_point_type.
12619 (aarch64_supports_z_point_type): New function.
12620 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12621 use Z_packet_to_target_hw_bp_type.
12622
786dc519
JB
126232014-05-20 Joel Brobecker <brobecker@adacore.com>
12624
12625 * configure.ac: Only use -Werror by default when DEVELOPMENT
12626 is true.
12627 * configure: Regenerate.
12628
9e0aa64f
JK
126292014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12630
12631 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12632 * linux-x86-low.c (X86_64_USER_REGS): New.
12633 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12634
2b577b92
YQ
126352014-04-28 Yao Qi <yao@codesourcery.com>
12636
12637 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12638 name.
12639
94611da2
PA
126402014-04-25 Pedro Alves <palves@redhat.com>
12641
12642 PR server/16255
12643 * linux-low.c (linux_attach_fail_reason_string): New function.
12644 (linux_attach_lwp): Delete.
12645 (linux_attach_lwp_1): Rename to ...
12646 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12647 argument. Remove "initial" parameter. Return int instead of
12648 void. Don't error or warn here.
12649 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12650 failure to attach to the tgid. Call warning when failing to
12651 attach to an lwp.
12652 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12653 argument. Remove "initial" parameter. Return int instead of
12654 void. Don't error or warn here.
12655 (linux_attach_fail_reason_string): New declaration.
12656 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12657 interface change. Use linux_attach_fail_reason_string.
12658
01f9f808
MS
126592014-04-24 Michael Sturm <michael.sturm@mintel.com>
12660 Walfred Tedeschi <walfred.tedeschi@intel.com>
12661
12662 * Makefile.in: Added rules to handle new files
12663 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12664 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12665 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12666 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12667 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12668 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12669 x32-avx512-linux.o.
12670 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12671 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12672 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12673 i386/x32-avx512.xml.
12674 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12675 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12676 i386/x32-avx512-linux.xml.
12677 * i387-fp.c (num_avx512_k_registers): New constant for number
12678 of K registers.
12679 (num_avx512_zmmh_low_registers): New constant for number of
12680 lower ZMM registers (0-15).
12681 (num_avx512_zmmh_high_registers): New constant for number of
12682 higher ZMM registers (16-31).
12683 (num_avx512_ymmh_registers): New contant for number of higher
12684 YMM registers (ymm16-31 added by avx521 on x86_64).
12685 (num_avx512_xmm_registers): New constant for number of higher
12686 XMM registers (xmm16-31 added by AVX512 on x86_64).
12687 (struct i387_xsave): Add space for AVX512 registers.
12688 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12689 Add code to handle AVX512 registers.
12690 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12691 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12692 prototypei from generated file.
12693 (tdesc_amd64_avx512_linux): Likewise.
12694 (init_registers_x32_avx512_linux): Likewise.
12695 (tdesc_x32_avx512_linux): Likewise.
12696 (init_registers_i386_avx512_linux): Likewise.
12697 (tdesc_i386_avx512_linux): Likewise.
12698 (x86_64_regmap): Add AVX512 registers.
12699 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12700 mask.
12701 (initialize_low_arch): Add code to initialize AVX512 registers.
12702
51aa91f9
PA
127032014-04-23 Pedro Alves <palves@redhat.com>
12704
12705 * mem-break.c (find_gdb_breakpoint_at): Make static.
12706 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12707
a4165e94
PA
127082014-04-23 Pedro Alves <palves@redhat.com>
12709
12710 * i386-low.c: Don't include break-common.h here.
12711 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12712 prototype to take target_hw_bp_type as argument instead of a Z
12713 packet char.
12714 * i386-low.h: Include break-common.h here.
12715 (Z_packet_to_hw_type): Declare.
12716 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12717 prototypes.
12718 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12719 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12720 (x86_remove_point): Convert the packet number to a
12721 target_hw_bp_type before calling i386_low_remove_watchpoint.
12722 * win32-i386-low.c (i386_insert_point): Convert the packet number
12723 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12724 (i386_remove_point): Convert the packet number to a
12725 target_hw_bp_type before calling i386_low_remove_watchpoint.
12726
b8acf843
PA
127272014-04-23 Pedro Alves <palves@redhat.com>
12728
12729 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12730
d708bcd1
PA
127312014-04-10 Pedro Alves <palves@redhat.com>
12732
12733 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12734 Check if the condition or command is NULL before checking if the
12735 breakpoint is known. On success, return true.
12736 * mem-break.h (add_breakpoint_condition): Document return.
12737 (add_breakpoint_commands): Add describing comment.
12738 * server.c (skip_to_semicolon): New function.
12739 (process_point_options): Use it.
12740
2eec7d5b
PA
127412014-04-09 Pedro Alves <palves@redhat.com>
12742
12743 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12744 to lwpid_of.
12745
fa96cb38
PA
127462014-02-27 Pedro Alves <palves@redhat.com>
12747
12748 PR 12702
12749 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12750 macros.
12751 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12752 output.
12753 (last_thread_of_process_p): Take a PID argument instead of a
12754 thread pointer.
12755 (linux_wait_for_lwp): Delete.
12756 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12757 functions.
12758 (linux_low_filter_event): New function, party factored out from
12759 linux_wait_for_event.
12760 (linux_wait_for_event): Rename to ...
12761 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12762 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12763 sigsuspend. Check for zombie leaders.
12764 (linux_wait_for_event): Reimplement as wrapper around
12765 linux_wait_for_event_filtered.
12766 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12767 a normal or signal exit is seen, it's the whole process exiting.
12768 (wait_for_sigstop): No longer a for_each_inferior callback.
12769 Rewrite on top of linux_wait_for_event_filtered.
12770 (stop_all_lwps): Call wait_for_sigstop directly.
12771 * server.c (resume, handle_target_event): Handle
12772 TARGET_WAITKIND_NO_RESUMED.
12773
d763de10
JB
127742014-02-26 Joel Brobecker <brobecker@adacore.com>
12775
12776 * win32-low.c (psapi_get_dll_name,
12777 * win32_CreateToolhelp32Snapshot): Delete.
12778 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12779 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12780 Delete.
12781 (handle_load_dll): Add function description.
12782 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12783
850a0f76
JB
127842014-02-26 Joel Brobecker <brobecker@adacore.com>
12785
12786 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12787 Add comment.
12788 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12789 base address when calling win32_add_one_solib.
12790 (handle_load_dll): Delete local variable load_addr.
12791 Remove 0x1000 offset applied to DLL base address when calling
12792 win32_add_one_solib.
12793 (handle_unload_dll): Add comment.
12794
f25b3fc3
JB
127952014-02-26 Joel Brobecker <brobecker@adacore.com>
12796
12797 * win32-low.c (win32_add_all_dlls): Renames
12798 win32_ensure_ntdll_loaded. Rewrite function documentation.
12799 Adjust implementation to always load all DLLs.
12800 Add 0x1000 offset to DLL base address when calling
12801 win32_add_one_solib.
12802 (child_initialization_done): New static global.
12803 (do_initial_child_stuff): Set child_initialization_done to
12804 zero during child initialization, and 1 after. Replace call
12805 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12806 Add comment.
12807 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12808 (handle_unload_dll): Add function documentation.
12809 (get_child_debug_event): Ignore load and unload DLL events
12810 during child initialization.
12811
d86d4aaf
DE
128122014-02-20 Doug Evans <dje@google.com>
12813
3bc32da3 12814 Remove global all_lwps.
d86d4aaf
DE
12815 * inferiors.h (ptid_of): Move here from linux-low.h.
12816 (pid_of, lwpid_of): Ditto.
12817 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12818 parameter is a struct thread_info * now.
12819 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12820 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12821 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12822 directly.
12823 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12824 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12825 * linux-arm-low.c (update_registers_callback): Update, "entry"
12826 parameter is a struct thread_info * now.
12827 Fetch lwpid from current_inferior directly.
12828 (arm_insert_point): Pass &all_threads to find_inferior instead of
12829 &all_lwps.
12830 (arm_remove_point): Ditto.
12831 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12832 (arm_prepare_to_resume): Fetch pid from thread.
12833 (arm_read_description): Fetch lwpid from current_inferior directly.
12834 * linux-low.c (all_lwps): Delete.
12835 (delete_lwp): Delete call to remove_inferior.
12836 (handle_extended_wait): Fetch lwpid from thread.
12837 (add_lwp): Don't set lwp->entry.id. Remove call to
12838 add_inferior_to_list.
12839 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12840 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12841 (kill_one_lwp_callback): Ditto.
12842 (linux_kill): Don't dereference NULL pointer.
12843 Fetch ptid,lwpid from thread.
12844 (get_detach_signal): Fetch ptid from thread.
12845 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12846 Simplify call to regcache_invalidate_thread.
12847 (delete_lwp_callback): Update, "entry" parameter is a
12848 struct thread_info * now. Fetch pid from thread.
12849 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12850 (status_pending_p_callback): Update, "entry" parameter is a
12851 struct thread_info * now. Fetch ptid from thread.
12852 (find_lwp_pid): Update, "entry" parameter is a
12853 struct thread_info * now.
12854 (linux_wait_for_lwp): Fetch pid from thread.
12855 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12856 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12857 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12858 (dequeue_one_deferred_signal): Ditto.
12859 (cancel_breakpoint): Fetch ptid from current_inferior.
12860 (linux_wait_for_event): Pass &all_threads to find_inferior,
12861 not &all_lwps. Fetch ptid, lwpid from thread.
12862 (count_events_callback): Update, "entry" parameter is a
12863 struct thread_info * now.
12864 (select_singlestep_lwp_callback): Ditto.
12865 (select_event_lwp_callback): Ditto.
12866 (cancel_breakpoints_callback): Ditto.
12867 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12868 not &all_lwps.
12869 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12870 (unsuspend_one_lwp): Update, "entry" parameter is a
12871 struct thread_info * now.
12872 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12873 not &all_lwps.
12874 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12875 Fetch lwpid from thread, not lwp.
12876 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12877 Pass &all_threads to find_inferior, not &all_lwps.
12878 (send_sigstop): Fetch lwpid from thread, not lwp.
12879 (send_sigstop_callback): Update, "entry" parameter is a
12880 struct thread_info * now.
12881 (suspend_and_send_sigstop_callback): Ditto.
12882 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12883 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12884 struct thread_info * now.
12885 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12886 from thread, lwp.
12887 (lwp_running): Update, "entry" parameter is a
12888 struct thread_info * now.
12889 (stop_all_lwps): Fetch ptid from thread.
12890 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12891 (linux_resume_one_lwp): Fetch lwpid from thread.
12892 (linux_set_resume_request): Update, "entry" parameter is a
12893 struct thread_info * now. Fetch pid, lwpid from thread.
12894 (resume_status_pending_p): Update, "entry" parameter is a
12895 struct thread_info * now.
12896 (need_step_over_p): Ditto. Fetch lwpid from thread.
12897 (start_step_over): Fetch lwpid from thread.
12898 (linux_resume_one_thread): Update, "entry" parameter is a
12899 struct thread_info * now. Fetch lwpid from thread.
12900 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12901 (proceed_one_lwp): Update, "entry" parameter is a
12902 struct thread_info * now. Fetch lwpid from thread.
12903 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12904 struct thread_info * now.
12905 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12906 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12907 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12908 directly.
12909 (regsets_store_inferior_registers): Ditto.
12910 (fetch_register, store_register): Ditto.
12911 (linux_read_memory, linux_write_memory): Ditto.
12912 (linux_request_interrupt): Ditto.
12913 (linux_read_auxv): Ditto.
12914 (linux_xfer_siginfo): Ditto.
12915 (linux_qxfer_spu): Ditto.
12916 (linux_qxfer_libraries_svr4): Ditto.
12917 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12918 moved to inferiors.h.
12919 (get_lwp): Delete.
12920 (get_thread_lwp): Update.
12921 (struct lwp_info): Delete member "entry". Simplify comment for
12922 member "thread".
12923 (all_lwps): Delete.
12924 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12925 current_inferior directly.
12926 (update_watch_registers_callback): Update, "entry" parameter is a
12927 struct thread_info * now. Fetch pid from thread.
12928 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12929 (mips_insert_point): Fetch lwpid from current_inferior.
12930 Pass &all_threads to find_inferior, not &all_lwps.
12931 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12932 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12933 directly.
12934 (mips_stopped_data_address): Ditto.
12935 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12936 directly.
12937 * linux-tile-low.c (tile_arch_setup): Ditto.
12938 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12939 (update_debug_registers_callback): Update, "entry" parameter is a
12940 struct thread_info * now. Fetch pid from thread.
12941 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12942 Pass &all_threads to find_inferior, not &all_lwps.
12943 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12944 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12945 Pass &all_threads to find_inferior, not &all_lwps.
12946 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12947 (i386_dr_low_get_status): Ditto.
12948 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12949 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12950 (x86_linux_read_description): Ditto.
12951 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12952
3b8361aa
DE
129532014-02-20 Doug Evans <dje@google.com>
12954
12955 * inferiors.c (get_first_inferior): Fix buglet.
12956
f7667f0d
DE
129572014-02-19 Doug Evans <dje@google.com>
12958
12959 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12960 * inferiors.c (add_thread): Change result type to struct thread_info *.
12961 All callers updated.
12962 (add_lwp): Call add_thread here instead of in callers.
12963 All callers updated.
12964 * linux-low.h (get_lwp_thread): Rewrite.
12965 (struct lwp_info): New member "thread".
12966
b3312d80
DE
129672014-02-19 Doug Evans <dje@google.com>
12968
12969 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12970 All callers updated.
12971
ecc6f45c
DE
129722014-02-19 Doug Evans <dje@google.com>
12973
12974 * inferiors.c (add_thread): Fix whitespace.
12975
649ebbca
DE
129762014-02-19 Doug Evans <dje@google.com>
12977
12978 * dll.c (clear_dlls): Replace accessing list implemention details
12979 with API function.
12980 * gdbthread.h (get_first_thread): Declare.
12981 * inferiors.c (for_each_inferior_with_data): New function.
12982 (get_first_thread): New function.
12983 (find_thread_ptid): Simplify.
12984 (get_first_inferior): New function.
12985 (clear_list): Delete.
12986 (one_inferior_p): New function.
12987 (clear_inferior_list): New function.
12988 (clear_inferiors): Update.
12989 * inferiors.h (for_each_inferior_with_data): Declare.
12990 (clear_inferior_list): Declare.
12991 (one_inferior_p): Declare.
12992 (get_first_inferior): Declare.
12993 * linux-low.c (linux_wait_for_event): Replace accessing list
12994 implemention details with API function.
12995 * server.c (target_running): Ditto.
12996 (accumulate_file_name_length): New function.
12997 (emit_dll_description): New function.
12998 (handle_qxfer_libraries): Replace accessing list implemention
12999 details with API function.
13000 (handle_qxfer_threads_worker): New function.
13001 (handle_qxfer_threads_proper): Replace accessing list implemention
13002 details with API function.
13003 (handle_query): Ditto.
13004 (visit_actioned_threads_callback_ftype): New typedef.
13005 (visit_actioned_threads_data): New struct.
13006 (visit_actioned_threads): Rewrite to be find_inferior callback.
13007 (resume): Call find_inferior.
13008 (handle_status): Replace accessing list implemention
13009 details with API function.
13010 (process_serial_event): Replace accessing list implemention details
13011 with API function.
13012 * target.c (set_desired_inferior): Replace accessing list implemention
13013 details with API function.
13014 * tracepoint.c (same_process_p): New function.
13015 (gdb_agent_about_to_close): Replace accessing list implemention
13016 details with API function.
13017 * win32-low.c (child_delete_thread): Replace accessing list
13018 implemention details with API function.
13019 (match_dll_by_basename): New function.
13020 (dll_is_loaded_by_basename): New function.
13021 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13022 details call to dll_is_loaded_by_basename.
13023
80894984
DE
130242014-02-19 Doug Evans <dje@google.com>
13025
13026 * dll.h (struct dll_info): Add comment.
13027 * gdbthread.h (struct thread_info): Add comment.
13028 (current_ptid): Simplify.
13029 * inferiors.c (add_process): Update.
13030 (remove_process): Update.
13031 * inferiors.h (struct process_info): Rename member "head" to "entry".
13032 * linux-low.c (delete_lwp): Update.
13033 (add_lwp): Update.
13034 (last_thread_of_process_p): Update.
13035 (kill_one_lwp_callback, linux_kill): Update.
13036 (status_pending_p_callback): Update.
13037 (wait_for_sigstop): Update. Simplify read of ptid.
13038 (start_step_over): Update.
13039 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13040 (get_lwp_thread): Update.
13041 (struct lwp_info): Rename member "head" to "entry".
13042 * regcache.h (inferior_list_entry): Delete.
13043 * server.c (kill_inferior_callback): Update.
13044 (detach_or_kill_inferior_callback): Update.
13045 (print_started_pid): Update.
13046 (print_attached_pid): Update.
13047 (process_serial_event): Simplify read of ptid.
13048 * thread-db.c (thread_db_create_event): Update.
13049 (thread_db_get_tls_address): Update.
13050 * win32-low.c (current_inferior_ptid): Simplify.
13051
46917d26
TT
130522014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13055 argument.
13056 (target_supports_btrace): Update.
13057
0759a81e
YQ
130582014-02-14 Yao Qi <yao@codesourcery.com>
13059
13060 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13061 (rsp-low-ipa.o): New target.
13062
a7191e8b
TT
130632014-02-12 Tom Tromey <tromey@redhat.com>
13064
13065 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13066 convert_ascii_to_int.
13067 * regcache.c (registers_to_string): Likewise.
13068 * remote-utils.c (decode_M_packet): Likewise.
13069 * server.c (process_serial_event): Likewise.
13070
ff0e980e
TT
130712014-02-12 Tom Tromey <tromey@redhat.com>
13072
13073 * server.c (handle_query, handle_v_run): Use hex2bin, not
13074 unhexify.
13075 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13076
e9371aff
TT
130772014-02-12 Tom Tromey <tromey@redhat.com>
13078
13079 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13080 convert_int_to_ascii.
13081 * regcache.c (registers_to_string, collect_register_as_string):
13082 Likewise.
13083 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13084 Likewise.
13085 * server.c (process_serial_event): Likewise.
13086 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13087 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13088
971dc0b8
TT
130892014-02-12 Tom Tromey <tromey@redhat.com>
13090
13091 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13092 bin2hex, not hexify.
13093 * tracepoint.c (cmd_qtstatus): Likewise.
13094
0a822afb
TT
130952014-02-12 Tom Tromey <tromey@redhat.com>
13096
13097 * remote-utils.c (monitor_output): Pass explicit length to
13098 hexify.
13099
9c3d6531
TT
131002014-02-12 Tom Tromey <tromey@redhat.com>
13101
13102 * tracepoint.c: Include rsp-low.h.
13103 * server.c: Include rsp-low.h.
13104 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13105 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13106 declare.
13107 * remote-utils.c: Include rsp-low.h.
13108 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13109 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13110 (convert_int_to_ascii, convert_ascii_to_int): Move to
13111 common/rsp-low.c.
13112 * regcache.c: Include rsp-low.h.
13113 * ax.c: Include rsp-low.h.
13114 * Makefile.in (SFILES): Add common/rsp-low.c.
13115 (OBS): Add rsp-low.o.
13116 (rsp-low.o): New target.
13117
01fd3ea5
TT
131182014-02-12 Tom Tromey <tromey@redhat.com>
13119
13120 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13121 Include print-utils.h.
13122 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13123 (plongest, thirty_two, phex_nz): Remove.
13124 * Makefile.in (SFILES): Add common/print-utils.c.
13125 (OBS): Add print-utils.o.
13126 (print-utils-ipa.o): New target.
13127 (print-utils.o): New target.
13128 (IPA_OBJS): Add print-utils-ipa.o.
13129
e99dc820
TT
131302014-02-06 Tom Tromey <tromey@redhat.com>
13131
13132 * Makefile.in (SFILES): Fix indentation.
13133
ee1e2d4f
DE
131342014-02-05 Doug Evans <dje@google.com>
13135
13136 * linux-low.c (linux_wait_for_event): Improve comment.
13137 (linux_wait_1): Keep current_inferior in sync with event_child.
13138
f5a02773
DE
131392014-01-22 Doug Evans <dje@google.com>
13140
13141 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13142
87ce2a04
DE
131432014-01-22 Doug Evans <dje@google.com>
13144
13145 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13146 * configure: Regenerate.
13147 * config.in: Regenerate.
13148 * Makefile.in (SFILES): Add debug.c.
13149 (OBS): Add debug.o.
13150 * debug.c: New file.
13151 * debug.h: New file.
13152 * linux-aarch64-low.c (*): Update all debugging printfs to use
13153 debug_printf instead of fprintf.
13154 * linux-arm-low.c (*): Ditto.
13155 * linux-cris-low.c (*): Ditto.
13156 * linux-crisv32-low.c (*): Ditto.
13157 * linux-m32r-low.c (*): Ditto.
13158 * linux-sparc-low.c (*): Ditto.
13159 * linux-x86.c (*): Ditto.
13160 * linux-low.c (*): Ditto.
13161 (linux_wait_1): Add calls to debug_enter, debug_exit.
13162 (linux_wait): Remove redundant debugging printf.
13163 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13164 (linux_resume, unstop_all_lwps): Ditto.
13165 * mem-break.c (*): Update all debugging printfs to use
13166 debug_printf instead of fprintf.
13167 * remote-utils.c (*): Ditto.
13168 * thread-db.c (*): Ditto.
13169 * server.c #include <ctype.h>, "gdb_vecs.h".
13170 (debug_threads): Moved to debug.c.
13171 (*): Update all debugging printfs to use debug_printf instead of
13172 fprintf.
13173 (start_inferior): Replace call to fflush with call to debug_flush.
13174 (monitor_show_help): Mention set debug-format.
13175 (parse_debug_format_options): New function.
13176 (handle_monitor_command): Handle "monitor set debug-format".
13177 (gdbserver_usage): Mention --debug-format.
13178 (main): Parse --debug-format.
13179 * server.h (debug_threads): Declaration moved to debug.h.
13180 #include "debug.h".
13181 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13182 trace_debug_1 that uses debug_printf.
13183 (tracepoint_look_up_symbols): Update all debugging printfs to use
13184 debug_printf instead of fprintf.
13185
e671835b
BS
131862014-01-20 Baruch Siach <baruch@tkos.co.il>
13187
13188 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13189 sys/ptrace.h.
13190
b5737fa9
PA
131912014-01-17 Pedro Alves <palves@redhat.com>
13192
ea38d2a9 13193 PR build/16445
c7faa97a
PA
13194 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13195 defined after including gdb_proc_service.h.
b5737fa9 13196
40ed484e
DE
131972014-01-16 Doug Evans <dje@google.com>
13198
13199 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13200 (match_dll): Use it.
13201
969c39fb
MM
132022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13203
13204 * target.h (target_ops) <read_btrace>: Change parameters and
13205 return type to allow error reporting.
13206 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13207 trace reading errors on.
13208 * linux-low.c (linux_low_read_btrace): Pass trace reading
13209 errors on.
13210 (linux_low_disable_btrace): New.
13211
ab7f45ba
DE
132122014-01-15 Doug Evans <dje@google.com>
13213
13214 * inferiors.c (thread_id_to_gdb_id): Delete.
13215 * inferiors.h (thread_id_to_gdb_id): Delete.
13216
66af0f44
EZ
132172014-01-13 Eli Zaretskii <eliz@gnu.org>
13218
13219 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13220 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13221 versions.
13222
9939e131
PA
132232014-01-08 Pedro Alves <palves@redhat.com>
13224
13225 * server.c (handle_status): Don't discard previous queued stop
13226 replies or thread's pending status here.
13227 (main) <disconnection>: Do it here instead.
13228
b7ea362b
PA
132292014-01-08 Pedro Alves <palves@redhat.com>
13230
13231 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13232 * server.c (visit_actioned_threads, handle_pending_status): New
13233 function.
13234 (handle_v_cont): Factor out parts to ...
13235 (resume): ... this new function. If in all-stop, and a thread
13236 being resumed has a pending status, report it without actually
13237 resuming.
13238 (myresume): Adjust to use the new 'resume' function.
13239 (clear_pending_status_callback, set_pending_status_callback)
13240 (find_status_pending_thread_callback): New functions.
13241 (handle_status): Handle the case of multiple threads having
13242 interesting statuses to report. Report threads' real last signal
13243 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13244 with an interesting thread to report the status for, instead of
13245 always reporting the status of the first thread.
13246
28498c42
JB
132472014-01-01 Joel Brobecker <brobecker@adacore.com>
13248
13249 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13250 * gdbreplay.c (gdbreplay_version): Likewise.
13251
f45c82da
YZ
132522013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13253
13254 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13255 iov.iov_len with the real length in use.
13256
379a5e2d
JB
132572013-12-13 Joel Brobecker <brobecker@adacore.com>
13258
13259 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13260 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13261 for all targets that use win32-low.c.
13262 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13263 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13264
4210d83e
PA
132652013-12-13 Pedro Alves <palves@redhat.com>
13266
13267 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13268 if equal to TARGET_WAITKIND_LOADED.
13269 * win32-low.c (cached_status): New static global.
13270 (win32_wait): Add declaration.
13271 (do_initial_child_stuff): Flush all initial pending debug events
13272 up to the initial breakpoint.
13273 (win32_wait): If CACHED_STATUS was set, return that instead
13274 of doing a real wait. Remove the code resuming the execution
13275 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13276 during the initial phase. Also remove the code changing
13277 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13278 TARGET_WAITKIND_STOPPED.
13279
e7f0d979
YQ
132802013-12-11 Yao Qi <yao@codesourcery.com>
13281
13282 * notif.c (handle_notif_ack): Return 0 if no notification
13283 matches.
13284
ebcf782c
DE
132852013-11-20 Doug Evans <dje@google.com>
13286
13287 * linux-low.c (linux_set_resume_request): Fix comment.
13288
20ad9378
DE
132892013-11-20 Doug Evans <dje@google.com>
13290
13291 * linux-low.c (resume_status_pending_p): Tweak comment.
13292
a196ebeb
WT
132932013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13294
13295 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13296 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13297 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13298 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13299 (srv_amd64_regobj): Add amd64-mpx.o.
13300 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13301 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13302 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13303 * i387-fp.c (num_pl_bnd_register) Added constant.
13304 (num_pl_bnd_cfg_registers) Added constant.
13305 (struct i387_xsave) Added reserved area and MPX fields.
13306 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13307 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13308 function.
13309 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13310 (init_registers_amd64_mpx_linux): Declare new function.
13311 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13312 (x86_64_regmap): Add MPX registers.
13313 (x86_linux_read_description): Add MPX case.
13314 (initialize_low_arch): Initialize MPX targets.
13315
0080a2f6
TT
133162013-11-18 Tom Tromey <tromey@redhat.com>
13317
13318 * configure: Rebuild.
13319 * configure.ac: Don't check for stdlib.h.
13320 * gdbreplay.c: Unconditionally include stdlib.h.
13321
2978b111
TT
133222013-11-18 Tom Tromey <tromey@redhat.com>
13323
13324 * config.in: Rebuild.
13325 * configure: Rebuild.
13326 * configure.ac: Don't use AC_HEADER_DIRENT.
13327
a3d08894
TT
133282013-11-18 Tom Tromey <tromey@redhat.com>
13329
13330 * server.h: Don't check HAVE_STRING_H.
13331 * gdbreplay.c: Don't check HAVE_STRING_H.
13332 * configure: Rebuild.
13333
0a5dd17d
TT
133342013-11-18 Tom Tromey <tromey@redhat.com>
13335
13336 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13337 LIBGNU.
13338
1bd2f0ba
TT
133392013-11-08 Tom Tromey <tromey@redhat.com>
13340
13341 * configure, config.in: Rebuild.
13342 * configure.ac: Remove unused configury.
13343
3266f10b
TT
133442013-11-08 Tom Tromey <tromey@redhat.com>
13345
13346 * acinclude.m4: Include common.m4, codeset.m4.
13347 * configure, config.in: Rebuild.
13348 * configure.ac: Use GDB_AC_COMMON.
13349
6682d959
AA
133502013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13351
13352 * linux-s390-low.c (HWCAP_S390_TE): New define.
13353 (s390_arch_setup): Consider the TE field in the HWCAP for
13354 determining 'have_regset_tdb'.
13355
fd0a4d76
SDJ
133562013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13357
13358 PR gdb/16014
13359 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13360 call to sizeof.
13361
1a3d890b
PA
133622013-10-02 Pedro Alves <palves@redhat.com>
13363
13364 * server.c (process_serial_event): Don't output "GDBserver
13365 exiting" if GDB is connected through stdio.
13366 * target.c (mywait): Likewise, be silent if GDB is connected
13367 through stdio.
13368
97ad4581
JB
133692013-10-01 Joel Brobecker <brobecker@adacore.com>
13370
13371 * lynx-low.c (lynx_add_threads_after_attach): New function.
13372 (lynx_attach): Remove call to add_thread. Add call to
13373 lynx_add_threads_after_attach instead.
13374
5b4e221c
MF
133752013-09-28 Mike Frysinger <vapier@gentoo.org>
13376
13377 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13378 * config.in, configure: Regenerated.
13379
ee47b2f8
YQ
133802013-09-18 Yao Qi <yao@codesourcery.com>
13381
13382 PR server/15959
13383 * server.c (start_inferior): Clear 'resume_info'.
13384
d6707650 133852013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13386
d6707650
JW
13387 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13388 for each register.
13389
9243dd0e 133902013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13391
9243dd0e
JW
13392 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13393 linux-tile-low.o to srv_tgtobj.
13394
c623a6ef
WN
133952013-09-16 Will Newton <will.newton@linaro.org>
13396
13397 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13398 out regs.
13399
fb71d39e
PA
134002013-09-06 Pedro Alves <palves@redhat.com>
13401
13402 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13403 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13404 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13405 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13406 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13407 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13408
8e7e9910
PA
134092013-09-06 Pedro Alves <palves@redhat.com>
13410
13411 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13412 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13413
7c3a12ca
PA
134142013-09-06 Pedro Alves <palves@redhat.com>
13415
13416 * linux-amd64-ipa.c: Include tracepoint.h.
13417 * linux-i386-ipa.c: Include tracepoint.h.
13418
8eb3d7b6
RW
134192013-09-06 Ricard Wanderlof <ricardw@axis.com>
13420
13421 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13422 (ps_get_thread_area): New function.
13423
eddddb9d
RW
134242013-09-06 Ricard Wanderlof <ricardw@axis.com>
13425
13426 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13427 (initialize_low_arch): Call init_registers_crisv32 rather than
13428 init_register_crisv32.
13429
533b0600
PA
134302013-09-05 Pedro Alves <palves@redhat.com>
13431
13432 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13433 to ...
13434 * hostio.h: ... this new file.
13435 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13436 win32-low.c: Include hostio.h.
13437
0ce3d3b5
PA
134382013-09-05 Pedro Alves <palves@redhat.com>
13439
13440 * server.h (gdb_client_data, handler_func, callback_handler_func)
13441 (delete_file_handler, add_file_handler, append_callback_event)
13442 (delete_callback_event, start_event_loop, initialize_event_loop):
13443 Move to event-loop.h and include it.
13444 * event-loop.h: New file.
13445
799cdc37
PA
134462013-09-05 Pedro Alves <palves@redhat.com>
13447
13448 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13449 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13450 (loaded_dll, unloaded_dll): Move to ...
13451 * dll.h: ... this new file.
13452 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13453
6a6bbd9d
PA
134542013-09-05 Pedro Alves <palves@redhat.com>
13455
13456 * server.h (current_process, get_thread_process, all_processes)
13457 (add_inferior_to_list, for_each_inferior, current_inferior)
13458 (remove_inferior, add_process, remove_process, find_process_pid)
13459 (have_started_inferiors_p, have_attached_inferiors_p)
13460 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13461 (clear_inferiors, find_inferior, find_inferior_id)
13462 (inferior_target_data, set_inferior_target_data)
13463 (inferior_regcache_data, set_inferior_regcache_data): Move to
13464 inferiors.h, and include it.
13465 * inferiors.h: New file.
13466
f699aaba
PA
134672013-09-05 Pedro Alves <palves@redhat.com>
13468
13469 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13470 Move ...
72f4393d 13471 * ax.h: ... here.
f699aaba 13472
c144c7a0
PA
134732013-09-05 Pedro Alves <palves@redhat.com>
13474
13475 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13476 tracepoint.h.
13477 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13478 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13479 (handle_tracepoint_general_set, handle_tracepoint_query)
13480 (tracepoint_finished_step, tracepoint_was_hit)
13481 (release_while_stepping_state_list, current_traceframe)
13482 (in_readonly_region, traceframe_read_mem)
13483 (fetch_traceframe_registers, traceframe_read_sdata)
13484 (traceframe_read_info, struct fast_tpoint_collect_status)
13485 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13486 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13487 (supply_fast_tracepoint_registers)
13488 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13489 (ipa_tdesc, claim_trampoline_space)
13490 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13491 (agent_mem_read, agent_get_trace_state_variable_value)
13492 (agent_set_trace_state_variable_value, agent_tsv_read)
13493 (agent_mem_read_string, get_raw_reg_func_addr)
13494 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13495 * tracepoint.h: ... this new file.
13496
ff42e6ab
PA
134972013-09-05 Pedro Alves <palves@redhat.com>
13498
13499 * server.h (perror_with_name, error, fatal, warning, paddress)
13500 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13501 include it.
13502 * utils.h: New file.
13503
541af0f4
PA
135042013-09-05 Pedro Alves <palves@redhat.com>
13505
13506 * server.h (remote_debug, noack_mode, transport_is_reliable)
13507 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13508 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13509 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13510 (write_enn, initialize_async_io, enable_async_io)
13511 (disable_async_io, check_remote_input_interrupt_request)
13512 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13513 (dead_thread_notify, prepare_resume_reply)
13514 (decode_address_to_semicolon, decode_address, decode_m_packet)
13515 (decode_M_packet, decode_X_packet, decode_xfer_write)
13516 (decode_search_memory_packet, unhexify, hexify)
13517 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13518 (look_up_one_symbol, relocate_instruction)
13519 (monitor_output): Move to remote-utils.h, and include it.
13520 * remote-utils.h: New file.
13521
eebdf26b
PA
135222013-09-05 Pedro Alves <palves@redhat.com>
13523
13524 * server.h (_): Delete.
13525
3aafd2ff
PA
135262013-09-02 Pedro Alves <palves@redhat.com>
13527
13528 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13529 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13530 allocated.
13531 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13532
cee83bcb
PM
135332013-09-02 Pierre Muller <muller@sourceware.org>
13534
13535 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13536 or WriteProcessMemory complete successfully and handle
13537 ERROR_PARTIAL_COPY error.
13538
9a13b2fa
PA
135392013-09-02 Pedro Alves <palves@redhat.com>
13540
13541 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13542 error instead of EIO.
13543
602e3198
JK
135442013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13545
13546 PR server/15604
13547 * linux-low.c: Include filestuff.h.
13548 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13549 * lynx-low.c: Include filestuff.h.
13550 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13551 * server.c: Include filestuff.h.
13552 (main): Call notice_open_fds.
13553 * spu-low.c: Include filestuff.h.
13554 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13555
96d7229d
LM
135562013-08-22 Luis Machado <lgustavo@codesourcery.com>
13557
13558 * Makefile.in: Explain why ../target and ../nat are not
13559 listed as include file search paths.
13560 (linux-waitpid.o): New object file rule.
13561 * configure.srv (srv_native_linux_obj): New variable.
13562 Replace all occurrences of linux native object files with
13563 $srv_native_linux_obj.
13564 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13565 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13566 (linux_enable_event_reporting): Remove declaration.
13567 (my_waitpid): Moved to common/linux-waitpid.c.
13568 (linux_wait_for_event): Pass ptid when calling
13569 linux_enable_event_reporting.
13570 (linux_supports_tracefork_flag): Remove.
13571 (linux_enable_event_reporting): Likewise.
13572 (linux_tracefork_grandchild): Remove.
13573 (STACK_SIZE): Moved to common/linux-ptrace.c.
13574 (linux_tracefork_child): Remove.
13575 (linux_test_for_tracefork): Remove.
13576 (linux_look_up_symbols): Call linux_supports_traceclone.
13577 (initialize_low): Remove call to linux_test_for_tracefork.
13578 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13579 common/linux-ptrace.h.
13580 (PTRACE_TYPE_ARG4): Likewise.
13581 Include linux-ptrace.h.
13582
32940073
PA
135832013-08-21 Pedro Alves <palves@redhat.com>
13584
13585 * config.in: Renegerate.
13586
33b60d58 135872013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13588
33b60d58
LM
13589 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13590 (SFILES): Remove $(srcdir)/common/target-common.c and
13591 add $(srcdir)/target/waitstatus.c.
13592 (OBS): Remove target-common.o and add waitstatus.o.
13593 (server_h): Remove $(srcdir)/../common/target-common.h and
13594 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13595 and $(srcdir)/../target/waitstatus.h.
13596 (target-common.o): Remove.
13597 (waitstatus.o): New target object file.
13598 * target.h: Do not include target-common.h and
13599 include target/resume.h, target/wait.h and
13600 target/waitstatus.h.
13601
b8e1b30e
LM
136022013-08-13 Luis Machado <lgustavo@codesourcery.com>
13603
13604 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13605 to PTRACE_TYPE_ARG3.
13606 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13607 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13608 PTRACE_TYPE_ARG4.
13609 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13610 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13611
7a60ad40
YQ
136122013-07-27 Jie Zhang <jie@codesourcery.com>
13613 Daniel Jacobowitz <dan@codesourcery.com>
13614 Yao Qi <yao@codesourcery.com>
13615
13616 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13617 (mips-linux-watch.o): New rule.
13618 (mips_linux_watch_h): New variable.
13619 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13620 srv_tgtobj.
13621 * linux-mips-low.c: Include mips-linux-watch.h.
13622 (struct arch_process_info, struct arch_lwp_info): New.
13623 (update_watch_registers_callback): New function.
13624 (mips_linux_new_process, mips_linux_new_thread) New functions.
13625 (mips_linux_prepare_to_resume, mips_insert_point): New
13626 functions.
13627 (mips_remove_point, mips_stopped_by_watchpoint): New
13628 functions.
13629 (rsp_bp_type_to_target_hw_bp_type): New function.
13630 (mips_stopped_data_address): New function.
13631 (the_low_target): Add watchpoint support functions.
13632
de6f69ad
YQ
136332013-07-27 Yao Qi <yao@codesourcery.com>
13634
13635 * i386-low.c: Include break-common.h.
13636 (enum target_hw_bp_type): Remove.
13637
3360c0bf
LM
136382013-07-24 Luis Machado <lgustavo@codesourcery.com>
13639
13640 * Makefile.in (SFILES): /common/target-common.c.
13641 (OBS): Add target-common.o.
13642 (server_h): Add $(srcdir)/../common/target-common.h.
13643 (target-common.o): New target.
13644 * server.c (queue_stop_reply_callback): Free
13645 status string after use.
13646 * target.c (target_waitstatus_to_string): Remove.
13647 * target.h: Include target-common.h.
13648 (resume_kind): Likewise.
13649 (target_waitkind): Likewise.
13650 (target_waitstatus): Likewise.
13651 (TARGET_WNOHANG): Likewise.
13652
bd885420
YQ
136532013-07-04 Yao Qi <yao@codesourcery.com>
13654
13655 * Makefile.in (host_alias): Use @host_noncanonical@.
13656 (target_alias): Use @target_noncanonical@.
13657 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13658 ACX_NONCANONICAL_HOST.
13659 * configure: Regenerated.
13660
13661 Revert:
13662 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13663
13664 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13665 * configure: Rebuild.
13666 * Makefile.in (version_host, version_target): Get from configure.
13667 (version.c): Use $(version_host) and $(version_target).
13668
17ef446e
PA
136692013-07-03 Pedro Alves <palves@redhat.com>
13670
13671 * Makefile.in (config.status): Depend on development.sh.
13672 * acinclude.m4: Include libmcheck.m4.
13673 * configure: Regenerate.
13674
7a9a7487
MG
136752013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13676
13677 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13678 attribute inside the parentheses.
13679 (winapi_DebugSetProcessKillOnExit): Ditto.
13680 (winapi_DebugBreakProcess): Ditto.
13681 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13682
49b64de6
MG
136832013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13684
13685 * notif.h (notif_event): Add a dummy member to avoid compiler
13686 errors.
13687
d5749ee7
PA
136882013-07-01 Pedro Alves <palves@redhat.com>
13689
13690 * hostio.c (HOSTIO_PATH_MAX): Define.
13691 (require_filename, handle_open, handle_unlink, handle_readlink):
13692 Use it.
13693
d8d2a3ee
PA
136942013-07-01 Pedro Alves <palves@redhat.com>
13695
13696 * server.h: Include "pathmax.h".
13697 * linux-low.c: Don't include sys/param.h.
13698 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13699 MAXPATHLEN.
13700 * win32-low.c: Don't include sys/param.h.
13701 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13702
bc7dea8d
PA
137032013-07-01 Pedro Alves <palves@redhat.com>
13704
13705 * event-loop.c: Don't check HAVE_UNISTD_H before including
13706 <unistd.h>.
13707 * gdbreplay.c: Likewise.
13708 * remote-utils.c: Likewise.
13709 * server.c: Likewise.
13710 * configure.ac: Don't check for unistd.h.
13711 * configure: Regenerate.
13712
d6c2da54
TT
137132013-06-28 Tom Tromey <tromey@redhat.com>
13714
13715 * Makefile.in (version.c): Use version.in, not
13716 common/version.in.
13717
257b6bec
MG
137182013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13719
13720 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13721 * configure: Rebuild.
13722 * Makefile.in (version_host, version_target): Get from configure.
13723 (version.c): Use $(version_host) and $(version_target).
13724
86ebe149
DK
137252013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13726
13727 Fix trace-status to output user name without trailing colon.
13728 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13729
f30aa5af
DK
137302013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13731
13732 Fix trace-status to output proper start-time and stop-time.
13733 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13734 output start time and stop time in hex as gdb expects.
13735
28a93511
YQ
137362013-06-26 Pedro Alves <pedro@codesourcery.com>
13737
13738 * tracepoint.c (build_traceframe_info_xml): Output trace state
13739 variables present in the trace buffer.
13740
01208463
TT
137412013-06-24 Tom Tromey <tromey@redhat.com>
13742
13743 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13744 create-version.sh.
13745 (version.o): Remove.
13746 * gdbreplay.c: Include version.h.
13747 (version, host_name): Don't declare.
13748 * server.h: Include version.h.
13749 (version, host_name): Don't declare.
13750
760256f9
PA
137512013-06-12 Pedro Alves <palves@redhat.com>
13752
13753 * linux-x86-low.c (linux_is_elf64): Delete global.
13754 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13755 with local linux_pid_exe_is_elf_64_file use.
13756
030031ee
PA
137572013-06-11 Pedro Alves <palves@redhat.com>
13758
13759 * linux-low.c (regset_disabled, disable_regset): New functions.
13760 (regsets_fetch_inferior_registers)
13761 (regsets_store_inferior_registers): Use them.
13762 (initialize_regsets_info); Don't allocate the disabled_regsets
13763 array here.
13764 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13765 comment.
13766
5da6eb0a
PA
137672013-06-11 Pedro Alves <palves@redhat.com>
13768
13769 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13770 xmalloc.
13771
7e5aaa09
PA
137722013-06-11 Pedro Alves <palves@redhat.com>
13773
13774 * linux-x86-low.c (initialize_low_arch): Call
13775 init_registers_x32_avx_linux.
13776
d878444c
JK
137772013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13778
13779 Fix compatibility with Android Bionic.
13780 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13781 it is not empty.
13782
3aee8918
PA
137832013-06-07 Pedro Alves <palves@redhat.com>
13784
5f2b57b5 13785 PR server/14823
3aee8918
PA
13786 * Makefile.in (OBS): Add tdesc.o.
13787 (IPA_OBJS): Add tdesc-ipa.o.
13788 (tdesc-ipa.o): New rule.
13789 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13790 interface.
13791 * linux-low.c (new_inferior): Delete.
13792 (disabled_regsets, num_regsets): Delete.
13793 (linux_add_process): Adjust to set the new per-process
13794 new_inferior flag.
13795 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13796 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13797 was a stop. When calling arch_setup, switch the current inferior
13798 to the thread that got an event.
13799 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13800 (regsets_fetch_inferior_registers)
13801 (regsets_store_inferior_registers): New regsets_info parameter.
13802 Adjust to use it.
13803 (linux_register_in_regsets): New regs_info parameter. Adjust to
13804 use it.
13805 (register_addr, fetch_register, store_register): New usrregs_info
13806 parameter. Adjust to use it.
13807 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13808 parameter regs_info. Adjust to use it.
13809 (linux_fetch_registers): Get the current inferior's regs_info, and
13810 adjust to use it.
13811 (linux_store_registers): Ditto.
13812 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13813 (initialize_low): Don't initialize the target_regsets here. Call
13814 initialize_low_arch.
13815 * linux-low.h (target_regsets): Delete declaration.
13816 (struct regsets_info): New.
13817 (struct usrregs_info): New.
13818 (struct regs_info): New.
13819 (struct process_info_private) <new_inferior>: New field.
13820 (struct linux_target_ops): Delete the num_regs, regmap, and
13821 regset_bitmap fields. New field regs_info.
13822 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13823 * i387-fp.c (num_xmm_registers): Delete.
13824 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13825 calls to new interface.
13826 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13827 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13828 Infer the number of xmm registers from the regcache's target
13829 description.
13830 * i387-fp.h (num_xmm_registers): Delete.
13831 * inferiors.c (add_thread): Don't install the thread's regcache
13832 here.
13833 * proc-service.c (gregset_info): Fetch the current inferior's
13834 regs_info. Adjust to use it.
13835 * regcache.c: Include tdesc.h.
13836 (register_bytes, reg_defs, num_registers)
13837 (gdbserver_expedite_regs): Delete.
13838 (get_thread_regcache): If the thread doesn't have a regcache yet,
13839 create one, instead of aborting gdbserver.
13840 (regcache_invalidate_one): Rename to ...
13841 (regcache_invalidate_thread): ... this.
13842 (regcache_invalidate_one): New.
13843 (regcache_invalidate): Only invalidate registers of the current
13844 process.
13845 (init_register_cache): Add target_desc parameter, and use it.
13846 (new_register_cache): Ditto. Assert the target description has a
13847 non zero registers_size.
13848 (regcache_cpy): Add assertions. Adjust.
13849 (realloc_register_cache, set_register_cache): Delete.
13850 (registers_to_string, registers_from_string): Adjust.
13851 (find_register_by_name, find_regno, find_register_by_number)
13852 (register_cache_size): Add target_desc parameter, and use it.
13853 (free_register_cache_thread, free_register_cache_thread_one)
13854 (regcache_release, register_cache_size): New.
13855 (register_size): Add target_desc parameter, and use it.
13856 (register_data, supply_register, supply_register_zeroed)
13857 (supply_regblock, supply_register_by_name, collect_register)
13858 (collect_register_as_string, collect_register_by_name): Adjust.
13859 * regcache.h (struct target_desc): Forward declare.
13860 (struct regcache) <tdesc>: New field.
13861 (init_register_cache, new_register_cache): Add target_desc
13862 parameter.
13863 (regcache_invalidate_thread): Declare.
13864 (regcache_invalidate_one): Delete declaration.
13865 (regcache_release): Declare.
13866 (find_register_by_number, register_cache_size, register_size)
13867 (find_regno): Add target_desc parameter.
13868 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13869 declarations.
13870 * remote-utils.c: Include tdesc.h.
13871 (outreg, prepare_resume_reply): Adjust.
13872 * server.c: Include tdesc.h.
13873 (gdbserver_xmltarget): Delete declaration.
13874 (get_features_xml, process_serial_event): Adjust.
13875 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13876 declare.
13877 (struct process_info) <tdesc>: New field.
13878 (ipa_tdesc): Declare.
13879 * tdesc.c: New file.
13880 * tdesc.h: New file.
13881 * tracepoint.c: Include tdesc.h.
13882 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13883 (get_context_regcache): Adjust to pass ipa_tdesc down.
13884 (do_action_at_tracepoint): Adjust to get the register cache size
13885 from the context regcache's description.
13886 (traceframe_walk_blocks): Adjust to get the register cache size
13887 from the current trace frame's description.
13888 (traceframe_get_pc): Adjust to get current trace frame's
13889 description and pass it down.
13890 (gdb_collect): Adjust to get the register cache size from the
13891 IPA's description.
13892 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13893 (gdbserver_xmltarget): Delete.
13894 (initialize_low_tracepoint): Set the ipa's target description.
13895 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13896 (initialize_low_tracepoint): Set the ipa's target description.
13897 * linux-x86-low.c: Include tdesc.h.
13898 [__x86_64__] (is_64bit_tdesc): New.
13899 (ps_get_thread_area, x86_get_thread_area): Use it.
13900 (i386_cannot_store_register): Rename to ...
13901 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13902 (i386_cannot_fetch_register): Rename to ...
13903 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13904 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13905 to new interface.
13906 (target_regsets): Rename to ...
13907 (x86_regsets): ... this.
13908 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13909 interface.
13910 (x86_siginfo_fixup): Use is_64bit_tdesc.
13911 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13912 (tdesc_x32_avx_linux, tdesc_x32_linux)
13913 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13914 Declare.
13915 (x86_linux_update_xmltarget): Delete.
13916 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13917 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13918 (AMD64_LINUX_USER64_CS): New.
13919 (x86_linux_read_description): New, based on
13920 x86_linux_update_xmltarget.
13921 (same_process_callback): New.
13922 (x86_arch_setup_process_callback): New.
13923 (x86_linux_update_xmltarget): New.
13924 (x86_regsets_info): New.
13925 (amd64_linux_regs_info): New.
13926 (i386_linux_usrregs_info): New.
13927 (i386_linux_regs_info): New.
13928 (x86_linux_regs_info): New.
13929 (x86_arch_setup): Reimplement.
13930 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13931 (x86_emit_ops): Ditto.
13932 (the_low_target): Adjust. Install x86_linux_regs_info,
13933 x86_cannot_fetch_register, and x86_cannot_store_register.
13934 (initialize_low_arch): New.
13935 * linux-ia64-low.c (tdesc_ia64): Declare.
13936 (ia64_fetch_register): Adjust.
13937 (ia64_usrregs_info, regs_info): New globals.
13938 (ia64_regs_info): New function.
13939 (the_low_target): Adjust.
13940 (initialize_low_arch): New function.
13941 * linux-sparc-low.c (tdesc_sparc64): Declare.
13942 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13943 Adjust.
13944 (sparc_arch_setup): New function.
13945 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13946 (the_low_target): Adjust.
13947 (initialize_low_arch): New function.
13948 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13949 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13950 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13951 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13952 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13953 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13954 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13955 (tdesc_powerpc_isa205_vsx64l): Declare.
13956 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13957 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13958 (ppc_set_pc, ppc_get_hwcap): Adjust.
13959 (ppc_usrregs_info): Forward declare.
13960 (!__powerpc64__) ppc_regmap_adjusted: New global.
13961 (ppc_arch_setup): Adjust to the current process'es target
13962 description.
13963 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13964 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13965 (ppc_store_evrregset): Adjust.
13966 (target_regsets): Rename to ...
13967 (ppc_regsets): ... this, and make static.
13968 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13969 (ppc_regs_info): New function.
13970 (the_low_target): Adjust.
13971 (initialize_low_arch): New function.
13972 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13973 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13974 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13975 (tdesc_s390x_linux64v2): Declare.
13976 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13977 (s390_fill_gregset, s390_store_last_break): Adjust.
13978 (target_regsets): Rename to ...
13979 (s390_regsets): ... this, and make static.
13980 (s390_get_pc, s390_set_pc): Adjust.
13981 (s390_get_hwcap): New target_desc parameter, and use it.
13982 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13983 (s390_arch_setup): Adjust to set the current process'es target
13984 description. Don't adjust the regmap.
13985 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13986 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13987 (regs_info_3264): New globals.
13988 (s390_regs_info): New function.
13989 (the_low_target): Adjust.
13990 (initialize_low_arch): New function.
13991 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13992 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13993 [__mips64] (init_registers_mips_linux)
13994 (init_registers_mips_dsp_linux): Delete defines.
13995 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13996 (have_dsp): New global.
13997 (mips_read_description): New, based on mips_arch_setup.
13998 (mips_arch_setup): Reimplement.
13999 (get_usrregs_info): New function.
14000 (mips_cannot_fetch_register, mips_cannot_store_register)
14001 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14002 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14003 (target_regsets): Rename to ...
14004 (mips_regsets): ... this, and make static.
14005 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14006 (dsp_regs_info, regs_info): New globals.
14007 (mips_regs_info): New function.
14008 (the_low_target): Adjust.
14009 (initialize_low_arch): New function.
14010 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14011 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14012 Declare.
14013 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14014 (arm_read_description): New, with bits factored from
14015 arm_arch_setup.
14016 (arm_arch_setup): Reimplement.
14017 (target_regsets): Rename to ...
14018 (arm_regsets): ... this, and make static.
14019 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14020 (arm_regs_info): New function.
14021 (the_low_target): Adjust.
14022 (initialize_low_arch): New function.
14023 * linux-m68k-low.c (tdesc_m68k): Declare.
14024 (target_regsets): Rename to ...
14025 (m68k_regsets): ... this, and make static.
14026 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14027 (m68k_regs_info): New function.
14028 (m68k_arch_setup): New function.
14029 (the_low_target): Adjust.
14030 (initialize_low_arch): New function.
14031 * linux-sh-low.c (tdesc_sharch): Declare.
14032 (target_regsets): Rename to ...
14033 (sh_regsets): ... this, and make static.
14034 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14035 (sh_regs_info, sh_arch_setup): New functions.
14036 (the_low_target): Adjust.
14037 (initialize_low_arch): New function.
14038 * linux-bfin-low.c (tdesc_bfin): Declare.
14039 (bfin_arch_setup): New function.
14040 (bfin_usrregs_info, regs_info): New globals.
14041 (bfin_regs_info): New function.
14042 (the_low_target): Adjust.
14043 (initialize_low_arch): New function.
14044 * linux-cris-low.c (tdesc_cris): Declare.
14045 (cris_arch_setup): New function.
14046 (cris_usrregs_info, regs_info): New globals.
14047 (cris_regs_info): New function.
14048 (the_low_target): Adjust.
14049 (initialize_low_arch): New function.
14050 * linux-cris-low.c (tdesc_crisv32): Declare.
14051 (cris_arch_setup): New function.
14052 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14053 (cris_regs_info): New function.
14054 (the_low_target): Adjust.
14055 (initialize_low_arch): New function.
14056 * linux-m32r-low.c (tdesc_m32r): Declare.
14057 (m32r_arch_setup): New function.
14058 (m32r_usrregs_info, regs_info): New globals.
14059 (m32r_regs_info): Adjust.
14060 (initialize_low_arch): New function.
14061 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14062 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14063 (tic6x_usrregs_info): Forward declare.
14064 (tic6x_read_description): New function, based on ...
14065 (tic6x_arch_setup): ... this. Reimplement.
14066 (target_regsets): Rename to ...
14067 (tic6x_regsets): ... this, and make static.
14068 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14069 (tic6x_regs_info): New function.
14070 (the_low_target): Adjust.
14071 (initialize_low_arch): New function.
14072 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14073 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14074 (target_regsets): Rename to ...
14075 (xtensa_regsets): ... this, and make static.
14076 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14077 globals.
14078 (xtensa_arch_setup, xtensa_regs_info): New functions.
14079 (the_low_target): Adjust.
14080 (initialize_low_arch): New function.
14081 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14082 (nios2_arch_setup): Set the current process'es tdesc.
14083 (target_regsets): Rename to ...
14084 (nios2_regsets): ... this.
14085 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14086 (nios2_regs_info): New function.
14087 (the_low_target): Adjust.
14088 (initialize_low_arch): New function.
a261b8f5
PA
14089 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14090 (aarch64_arch_setup): Set the current process'es tdesc.
14091 (target_regsets): Rename to ...
14092 (aarch64_regsets): ... this.
14093 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14094 (aarch64_regs_info): New function.
14095 (the_low_target): Adjust.
14096 (initialize_low_arch): New function.
3aee8918
PA
14097 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14098 globals.
14099 (target_regsets): Rename to ...
14100 (tile_regsets): ... this.
14101 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14102 (tile_regs_info): New function.
14103 (tile_arch_setup): Set the current process'es tdesc.
14104 (the_low_target): Adjust.
14105 (initialize_low_arch): New function.
14106 * spu-low.c (tdesc_spu): Declare.
14107 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14108 * win32-arm-low.c (tdesc_arm): Declare.
14109 (arm_arch_setup): New function.
14110 (the_low_target): Install arm_arch_setup instead of
14111 init_registers_arm.
14112 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14113 (init_windows_x86): Rename to ...
14114 (i386_arch_setup): ... this. Set `win32_tdesc'.
14115 (the_low_target): Adjust.
14116 * win32-low.c (win32_tdesc): New global.
14117 (child_add_thread): Don't create the thread cache here.
14118 (do_initial_child_stuff): Set the new process'es tdesc.
14119 * win32-low.h (struct target_desc): Forward declare.
14120 (win32_tdesc): Declare.
14121 * lynx-i386-low.c (tdesc_i386): Declare global.
14122 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14123 * lynx-low.c (lynx_tdesc): New global.
14124 (lynx_add_process): Set the new process'es tdesc.
14125 * lynx-low.h (struct target_desc): Forward declare.
14126 (lynx_tdesc): Declare global.
14127 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14128 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14129 * nto-low.c (nto_tdesc): New global.
14130 (do_attach): Set the new process'es tdesc.
14131 * nto-low.h (struct target_desc): Forward declare.
14132 (nto_tdesc): Declare.
14133 * nto-x86-low.c (tdesc_i386): Declare.
14134 (nto_x86_arch_setup): Set `nto_tdesc'.
14135
b1fbec62
GB
141362013-06-04 Gary Benson <gbenson@redhat.com>
14137
14138 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14139 to qSupported response when appropriate.
14140 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14141 with nonzero-length annex.
14142 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14143 arguments supplied in annex.
14144
d1ec4ce7
DE
141452013-05-31 Doug Evans <dje@google.com>
14146
ac44adcb 14147 PR server/15594
d1ec4ce7
DE
14148 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14149 64 bits in 64-cross-32 environment.
14150
9b25f2d3
PA
141512013-05-28 Pedro Alves <palves@redhat.com>
14152
14153 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14154 (aarch64-without-fpu.c): Delete rule.
14155 * configure.srv (aarch64*-*-linux*): Remove references to
14156 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14157 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14158 declaration.
14159
6740dc9c
PA
141602013-05-24 Pedro Alves <palves@redhat.com>
14161
14162 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14163 instead of strchr/decode_address. Error if the range isn't split
14164 with a ','. Don't assume there's be a ':' in the action.
14165
c2d6af84
PA
141662013-05-23 Yao Qi <yao@codesourcery.com>
14167 Pedro Alves <palves@redhat.com>
14168
14169 * linux-low.c (lwp_in_step_range): New function.
14170 (linux_wait_1): If the thread was range stepping and stopped
14171 outside the stepping range, report the stop to GDB. Otherwise,
14172 continue stepping. Add range stepping debug output.
14173 (linux_set_resume_request): Copy the step range from the resume
14174 request to the lwp.
14175 (linux_supports_range_stepping): New.
14176 (linux_target_ops) <supports_range_stepping>: Set to
14177 linux_supports_range_stepping.
14178 * linux-low.h (struct linux_target_ops)
14179 <supports_range_stepping>: New field.
14180 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14181 * linux-x86-low.c (x86_supports_range_stepping): New.
14182 (the_low_target) <supports_range_stepping>: Set to
14183 x86_supports_range_stepping.
14184 * server.c (handle_v_cont): Handle 'r' action.
14185 (handle_v_requests): Append ";r" if the target supports range
14186 stepping.
14187 * target.h (struct thread_resume) <step_range_start,
14188 step_range_end>: New fields.
14189 (struct target_ops) <supports_range_stepping>:
14190 New field.
14191 (target_supports_range_stepping): New macro.
14192
58794e1a
JB
141932013-05-17 Joel Brobecker <brobecker@adacore.com>
14194
14195 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14196 confusion in comment.
14197
d631c5a7
JB
141982013-05-17 Joel Brobecker <brobecker@adacore.com>
14199
14200 * lynx-low.c (struct process_info_private): New type.
14201 (lynx_add_process): New function.
14202 (lynx_create_inferior, lynx_attach): Replace calls to
14203 add_process by calls to lynx_add_process.
14204 (lynx_resume): If PTID is null, then try using
14205 current_process()->private->last_wait_event_ptid.
14206 Add comments.
14207 (lynx_clear_inferiors): Delete. The contents of that function
14208 has been inlined in lynx_mourn;
14209 (lynx_wait_1): Save the ptid in the process's private data.
14210 (lynx_mourn): Free the process' private data. Replace call
14211 to lynx_clear_inferiors by call to clear_inferiors.
14212
96f7a20f
YQ
142132013-05-17 Yao Qi <yao@codesourcery.com>
14214
14215 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14216 the right place.
14217
db0dfaa0
LM
142182013-05-16 Luis Machado <lgustavo@codesourcery.com>
14219
14220 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14221 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14222 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14223 PT_TEXT_END_ADDR guards. Update comments.
14224 (linux_target_op) <read_offsets>: Conditionally define to
14225 linux_read_offsets if the target is UCLIBC and if it defines
14226 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14227
68f5f838
SL
142282013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14229 Andrew Jenner <andrew@codesourcery.com>
14230
14231 * Makefile.in (SFILES): Add linux-nios2-low.c.
14232 (clean): Add action to delete nios2-linux.c.
14233 (nios2-linux.c): New rule.
14234 * configure.srv: Add nios2*-*-linux*.
14235 * linux-nios2-low.c: New.
14236
1ebff1fd
HAQ
142372013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14238
14239 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14240
f6150862
HZ
142412013-04-25 Hui Zhu <hui@codesourcery.com>
14242
14243 PR gdb/15186
f6150862
HZ
14244 * ax.c (ax_printf): Add fflush.
14245
614c279d
TT
142462013-04-22 Tom Tromey <tromey@redhat.com>
14247
14248 * Makefile.in (SFILES): Add filestuff.c.
14249 (OBS): Add filestuff.o.
14250 (filestuff.o): New target.
14251 * config.in, configure: Rebuild.
14252 * configure.ac: Check for fdwalk, pipe2.
14253
7d4e5717
PA
142542013-04-17 Pedro Alves <palves@redhat.com>
14255
14256 * configure.ac (USE_THREAD_DB): Delete variable.
14257 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14258 Don't AC_SUBST USE_THREAD_DB.
14259 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14260 * config.in, configure: Regenerate.
14261
d5c93e41
PA
142622013-04-16 Pedro Alves <palves@redhat.com>
14263
14264 * linux-low.h (struct lwp_info) <thread_known>: Move under
14265 the USE_THREAD_DB #ifdef.
14266
04f5fe89
PA
142672013-04-16 Pedro Alves <palves@redhat.com>
14268
14269 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14270 (linux-low.o): Delete rule.
14271 * linux-low.h: Always include "gdb_thread_db.h" instead of
14272 conditionally including thread_db.h.
14273 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14274 HAVE_THREAD_DB_H.
14275
480b27bf
JK
142762013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14277
14278 * Makefile.in (install-only): Fix make install regression.
14279
43662968
JK
142802013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14281
14282 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14283 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14284 installation.
14285 * gdbserver.1: Remove.
14286
3e74e146
PA
142872013-03-22 Pedro Alves <palves@redhat.com>
14288
14289 * linux-low.c (handle_extended_wait): Don't call
14290 linux_enable_event_reporting.
14291
a8347a2a
TT
142922013-03-15 Tony Theodore <tonyt@logyst.com>
14293
14294 PR build/9098:
14295 * Makefile.in (SHELL): Use @SHELL@.
14296
eeb56fa7
SDJ
142972013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14298
14299 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14300 compiler warning.
14301
4fa7e2ff
JB
143022013-03-13 Joel Brobecker <brobecker@adacore.com>
14303
14304 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14305 Remove extraneous NULL element.
14306
8ddb1965
YQ
143072013-03-13 Yao Qi <yao@codesourcery.com>
14308
14309 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14310 'V' block in trace frame.
14311
9accd112
MM
143122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14313
14314 * target.h (struct target_ops): Add btrace ops.
14315 (target_supports_btrace): New macro.
14316 (target_enable_btrace): New macro.
14317 (target_disable_btrace): New macro.
14318 (target_read_btrace): New macro.
14319 * gdbthread.h (struct thread_info): Add btrace field.
14320 * server.c: Include btrace-common.h.
14321 (handle_btrace_general_set): New function.
14322 (handle_btrace_enable): New function.
14323 (handle_btrace_disable): New function.
14324 (handle_general_set): Call handle_btrace_general_set.
14325 (handle_qxfer_btrace): New function.
14326 (struct qxfer qxfer_packets[]): Add btrace entry.
14327 * inferiors.c (remove_thread): Disable btrace.
14328 * linux-low: Include linux-btrace.h.
14329 (linux_low_enable_btrace): New function.
14330 (linux_low_read_btrace): New function.
14331 (linux_target_ops): Add btrace ops.
14332 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14333 Add srv_linux_btrace=yes.
14334 (x86_64-*-linux*): Add linux-btrace.o.
14335 Add srv_linux_btrace=yes.
14336 * configure.ac: Define HAVE_LINUX_BTRACE.
14337 * config.in: Regenerated.
14338 * configure: Regenerated.
14339
5cc22e4c
MM
143402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14341
14342 * server.c (handle_qxfer): Preserve error message if -3 is
14343 returned.
14344 (qxfer): Document the -3 return value.
14345
7c97f91e
MM
143462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14347
14348 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14349 (linux_btrace_h): New variable.
14350 (linux-btrace.o): New rule.
14351
be9a119c 143522013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14353 Hafiz Abid Qadeer <abidh@codesourcery.com>
14354
14355 * tracepoint.c (trace_buffer_size): New global.
14356 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14357 (init_trace_buffer): Change to one-argument function. Allocate
14358 trace buffer memory.
14359 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14360 handle QTBuffer:size packet.
14361 (cmd_bigqtbuffer_size): New function.
14362 (initialize_tracepoint): Call init_trace_buffer with
14363 DEFAULT_TRACE_BUFFER_SIZE.
14364 * server.c (handle_query): Add QTBuffer:size in the
14365 supported packets.
14366
e64f7499
YQ
143672013-03-07 Yao Qi <yao@codesourcery.com>
14368
14369 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14370 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14371 of -1.
14372 (cmd_qtsp): Adjust condition. Do post increment.
14373 Set cur_action and cur_step_action back to 0.
14374
f0ae6fc3
PA
143752013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14376
14377 PR server/15236
14378 * linux-low.c (linux_write_memory): Return early success if LEN is
14379 zero.
14380
b5b0b0af
CV
143812013-03-05 Corinna Vinschen <vinschen@redhat.de>
14382
334ad4a8 14383 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14384
589bc927
TT
143852013-02-28 Tom Tromey <tromey@redhat.com>
14386
14387 * configure.ac: Invoke AC_SYS_LARGEFILE.
14388 * configure, config.in: Rebuild.
14389
dfe07582
CV
143902013-02-28 Corinna Vinschen <vinschen@redhat.com>
14391
14392 * win32-low.c: Throughout, fix format strings and casts of
14393 printf-like functions to avoid type related warnings on all
14394 platforms.
14395 (get_child_debug_event): Print dwDebugEventCode as hex since
14396 that's how it's usually documented.
14397
736cd585
YQ
143982013-02-28 Yao Qi <yao@codesourcery.com>
14399
14400 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14401 pulongest.
14402
e1f58301
JW
144032013-02-27 Jiong Wang <jiwang@tilera.com>
14404
14405 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14406 (reg-tilegx32.c): New rule.
14407 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14408 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14409 different register info initializer according to elf class.
14410 (init_registers_tilgx32): New function. The tilegx32 register info
14411 initializer.
14412 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14413 (tile_store_gregset): Likewise.
14414
d171ca78
YQ
144152013-02-27 Yao Qi <yao@codesourcery.com>
14416
14417 * server.c (process_point_options): Print debug message when
14418 debug_threads is true.
14419
282bbdf3
YQ
144202013-02-26 Yao Qi <yao@codesourcery.com>
14421
14422 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14423
aca22551
PA
144242013-02-19 Pedro Alves <palves@redhat.com>
14425 Kai Tietz <ktietz@redhat.com>
14426
14427 PR gdb/15161
14428
14429 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14430 instead of strtoul to extract address from packet.
14431 (process_serial_event) <'z'>: Likewise.
14432
4f3cee1c
YQ
144332013-02-18 Yao Qi <yao@codesourcery.com>
14434
14435 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14436
8e1d55a3
PA
144372013-02-14 Pedro Alves <palves@redhat.com>
14438
14439 Plug memory leak.
14440
14441 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14442 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14443
458820da
PA
144442013-02-14 Pedro Alves <palves@redhat.com>
14445
14446 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14447
baea0dae
PA
144482013-02-14 Pedro Alves <palves@redhat.com>
14449
14450 * tracepoint.c (save_string): Delete.
14451 (add_tracepoint_action): Use savestring instead of save_string.
14452
0b1afbb3
PA
144532013-02-12 Pedro Alves <palves@redhat.com>
14454
14455 * linux-xtensa-low.c: Ditto.
14456 * xtensa-xtregs.c: Ditto.
14457
8a4ac37e
PA
144582013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14459
14460 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14461 thread_db.
14462
148de6bb
MS
144632013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14464
14465 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14466 aarch64_num_wp_regs and aarch64_num_bp_regs to
14467 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14468
55fac6e0
MS
144692013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14470
14471 * linux-aarch64-low.c (ps_get_thread_area): Replace
14472 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14473
176eb98c
MS
144742013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14475 Marcus Shawcroft <marcus.shawcroft@arm.com>
14476 Nigel Stephens <nigel.stephens@arm.com>
14477 Yufeng Zhang <yufeng.zhang@arm.com>
14478
14479 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14480 (aarch64.c, aarch64-without-fpu.c): New targets.
14481 * configure.srv (aarch64*-*-linux*): New.
14482 * linux-aarch64-low.c: New file.
14483
56f7af9c
MS
144842013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14485
43aaf8b6 14486 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14487 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14488 (dequeue_one_deferred_signal, linux_resume_one_thread)
14489 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14490 (linux_tracefork_grandchild, linux_test_for_tracefork)
14491 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14492 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14493 where the argument is 0.
14494
60f662b0
YQ
144952013-01-25 Yao Qi <yao@codesourcery.com>
14496
14497 * event-loop.c: Include "queue.h".
14498 (gdb_event_p): New typedef.
14499 (struct gdb_event) <next_event>: Remove.
14500 (event_queue): Change to QUEUE(gdb_event_p).
14501 (async_queue_event): Remove.
14502 (gdb_event_xfree): New.
14503 (initialize_event_loop): New.
14504 (process_event): Use API from QUEUE.
14505 (wait_for_event): Likewise.
14506 * server.c (main): Call initialize_event_loop.
14507 * server.h (initialize_event_loop): Declare.
14508
5ae4861a
YQ
145092013-01-18 Yao Qi <yao@codesourcery.com>
14510
14511 * ax.h (struct eval_agent_expr_context): New.
14512 (gdb_eval_agent_expr): Update declaration.
14513 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14514 TFRAME. Add new argument CTX.
14515 * server.h (struct eval_agent_expr_context): Declare.
14516 (agent_mem_read, agent_tsv_read): Update declaration.
14517 (agent_mem_read_string): Likewise.
14518 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14519 (add_traceframe_block): Add new argument TPOINT.
14520 Increase TPOINT->traceframe_usage.
14521 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14522 eval_tracepoint_agent_expr.
14523 (condition_true_at_tracepoint): Likewise.
14524 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14525 (agent_mem_read_string, agent_tsv_read): Likewise.
14526
85e00e85
YQ
145272013-01-16 Yao Qi <yao@codesourcery.com>
14528
14529 * linux-low.c (linux_resume_one_lwp): Don't check
14530 'lwp->bp_reinsert != 0'.
14531
4039cf45
JB
145322013-01-07 Joel Brobecker <brobecker@adacore.com>
14533 Pedro Alves <palves@redhat.com>
14534
14535 * lynx-low.c (ptrace_request_to_str): Define a temporary
14536 macro and use it to simplify this function's implementation.
14537
9044dee2
JB
145382013-01-07 Joel Brobecker <brobecker@adacore.com>
14539
14540 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14541 sets errno.
14542
e6352c8f
JB
145432013-01-07 Joel Brobecker <brobecker@adacore.com>
14544
14545 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14546
50681a27
JB
145472013-01-07 Joel Brobecker <brobecker@adacore.com>
14548
14549 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14550
3f6e77ef
JB
145512013-01-07 Joel Brobecker <brobecker@adacore.com>
14552
14553 * lynx-low.c (lynx_resume): Use the resume_info parameter
14554 to determine the ptid for the lynx_ptrace call, unless
14555 it is equal to minus_one_ptid, in which case we use the
14556 ptid of the current_inferior.
14557 (lynx_wait_1): After having received a thread create/exit
14558 event, resume the inferior's execution using the signaling
14559 thread's ptid, rather than the old ptid.
14560
7fda33ae
JB
145612013-01-07 Joel Brobecker <brobecker@adacore.com>
14562
14563 * lynx-low.c (lynx_resume): Delete variable ret.
14564
b9786c74
JB
145652013-01-01 Joel Brobecker <brobecker@adacore.com>
14566
14567 * gdbreplay.c (gdbreplay_version): Update copyright year.
14568 * server.c (gdbserver_version): Likewise.
14569
8b93d60f
JB
145702012-12-17 Joel Brobecker <brobecker@adacore.com>
14571
14572 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14573 new thread.
14574
037335a7
JB
145752012-12-17 Joel Brobecker <brobecker@adacore.com>
14576
14577 * lynx-low.c (ptrace_request_to_str): Add handling for
14578 PTRACE_GETTRACESIG.
14579
52d4cbd8
JB
145802012-12-17 Joel Brobecker <brobecker@adacore.com>
14581
14582 * lynx-low.c (lynx_attach): Delete variable new_process.
14583
ab8f6ca9
JB
145842012-12-17 Joel Brobecker <brobecker@adacore.com>
14585
14586 * lynx-low.c (lynx_create_inferior): Delete variable
14587 new_process.
14588
78cbc024
JB
145892012-12-17 Joel Brobecker <brobecker@adacore.com>
14590
14591 * lynx-low.c (ptrace_request_to_str): Do not handle
14592 PTRACE_GETTHREADLIST if this macro does not exist.
14593
14a00470
YQ
145942012-12-15 Yao Qi <yao@codesourcery.com>
14595
14596 * Makefile.in (OBS): Add notif.o.
14597 * notif.c, notif.h: New.
14598 * server.c: Include "notif.h".
14599 (struct vstop_notif) <next>: Remove.
14600 <base>: New field.
14601 (queue_stop_reply): Update.
14602 (push_event, send_next_stop_reply): Remove.
14603 (discard_queued_stop_replies): Update.
14604 (notif_stop): New variable.
14605 (handle_v_stopped): Remove.
14606 (handle_v_requests): Don't call handle_v_stopped. Call
14607 handle_ack_notif instead.
14608 (queue_stop_reply_callback): Call notif_event_enque instead
14609 of queue_stop_reply.
14610 (handle_status): Don't call send_next_stop_reply, call
14611 notif_write_event instead.
14612 (kill_inferior_callback): Likewise.
14613 (detach_or_kill_inferior_callback): Likewise.
14614 (main): Call initialize_notif.
14615 (process_serial_event): Call QUEUE_is_empty.
14616 (handle_target_event): Call notif_push instead of push event.
14617 * server.h (push_event): Remove declaration.
14618
61c125b9
TT
146192012-12-10 Tom Tromey <tromey@redhat.com>
14620
14621 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14622 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14623 macros.
14624 (.c.o): Rewrite.
14625 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14626 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14627 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14628 (amd64-linux-ipa.o, ax.o): Rewrite.
14629 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14630 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14631 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14632 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14633 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14634 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14635 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14636 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14637 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14638 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14639 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14640 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14641 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14642 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14643 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14644 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14645 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14646 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14647 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14648 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14649 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14650 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14651 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14652 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14653 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14654 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14655 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14656 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14657 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14658 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14659 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14660 (reg-tilegx.o): Remove.
14661 (all_object_files): New macro.
14662 Include .deps files.
14663 * aclocal.m4, configure: Rebuild.
14664 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14665 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14666 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14667
e90e9ad9
TT
146682012-12-05 Tom Tromey <tromey@redhat.com>
14669
14670 PR gdb/14917:
14671 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14672
02d403bf 146732012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14674
14675 * configure.ac: Check for linux/perf_event.h.
14676 * config.in: Regenerated.
14677 * configure: Regenerated.
14678
0270a750
PA
146792012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14680
14681 * hostio.c (handle_readlink): Decrease buffer size
14682 parameter passed to readlink by one byte.
14683
8c29b58e
YQ
146842012-11-26 Yao Qi <yao@codesourcery.com>
14685
14686 * configure.ac (build_warnings): Append '-Wempty-body'.
14687 * configure: Regenerated.
14688 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14689 body.
14690
8bdce1ff
PM
146912012-11-15 Pierre Muller <muller@sourceware.org>
14692
14693 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14694 * config.in: Regenerate.
14695 * configure: Regenerate.
14696 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14697 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14698 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14699 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14700 header.
14701 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14702 instead of <sys/wait.h> header.
14703 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14704
02d403bf 147052012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14706
14707 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14708 (various make rules): Remove -DGDBSERVER
14709
fbd5db48
YQ
147102012-11-09 Yao Qi <yao@codesourcery.com>
14711
14712 * spu-low.c (current_ptid): Move it to ..
14713 * gdbthread.h: ... here. New.
14714 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14715 * server.c (myresume, process_serial_event): Likewise.
14716 * thread-db.c (thread_db_find_new_threads): Likewise.
14717 * tracepoint.c (run_inferior_command): Likewise.
14718
b3dc46ff
AB
147192012-10-01 Andrew Burgess <aburgess@broadcom.com>
14720
14721 * server.c (handle_search_memory_1): Include access length in
14722 warning message.
14723
07c04788
HPN
147242012-09-05 Michael Brandt <michael.brandt@axis.com>
14725
14726 * linux-crisv32-low.c: Fix compile errors.
14727
918d227b
YQ
147282012-09-04 Yao Qi <yao@codesourcery.com>
14729
14730 * tracepoint.c (cmd_qtsv): Adjust debug message.
14731 Don't check CUR_TPOINT.
14732
18c1b81a
YQ
147332012-08-28 Yao Qi <yao@codesourcery.com>
14734
14735 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14736 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14737 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14738 Remove declarations of xmalloc, xreallloc, xstrdup and
14739 freeargv.
14740 * Makefile.in (libiberty_h): New.
14741 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14742 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14743
dc82f37b
YQ
147442012-08-23 Yao Qi <yao@codesourcery.com>
14745
14746 * server.h: Remove declaration of 'xsnprintf'.
14747
406b1477
KS
147482012-08-22 Keith Seitz <keiths@redhat.com>
14749
14750 * server.h: Include build-gnulib-gbserver/config.h.
14751 * gdbreplay.c: Likewise.
14752
e6712ff1
DE
147532012-08-08 Doug Evans <dje@google.com>
14754
14755 * Makefile.in (SFILES): Add gdb_vecs.c.
14756 (OBS): Add gdb_vecs.o.
14757 (gdb_vecs_h, host_defs_h): New variables.
14758 (thread-db.o): Add $(gdb_vecs_h) dependency.
14759 (gdb_vecs.o): New rule.
14760 * thread-db.c: #include "gdb_vecs.h".
14761 (thread_db_load_search): Use a vector to iterate over path elements.
14762 Handle text appearing after "$pdir".
14763
14764 * configure.ac: Add check for strstr.
14765 * config.in: Regenerate.
14766 * configure: Regenerate.
14767
7c3270ae
UW
147682012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14769
14770 * hostio.c (handle_pread): If pread fails, fall back to attempting
14771 lseek/read.
14772 (handle_pwrite): Likewise for pwrite.
14773
b62e2b27
UW
147742012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14775
14776 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14777 between unsupported TYPE and unimplementable ADDR/LEN combination.
14778 (arm_insert_point): Act on new return value.
14779
78a99e91
PA
147802012-07-31 Pedro Alves <palves@redhat.com>
14781
14782 * server.c (process_point_options): Only skip tokens if we find
14783 one that is unrecognized. Don't treat 'X' specially while
14784 skipping unrecognized tokens.
14785
fcf303ab
UW
147862012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14787
14788 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14789 to 4-byte-align HW breakpoint addresses for Thumb.
14790
7255706c
YQ
147912012-07-27 Yao Qi <yao@codesourcery.com>
14792
14793 PR remote/14161.
14794
14795 * server.h: Declare gdb_agent_about_to_close.
14796 * target.c (kill_inferior): Include "agent.h".
14797 New. Send command 'kill'.
14798 * target.h (kill_inferior): Removed macro.
14799 * tracepoint.c (gdb_agent_about_to_close): New.
14800 (gdb_agent_helper_thread): Handle command 'close'.
14801 Wait endlessly until the inferior stops.
14802 Install gdb_agent_remove_socket to atexit hook.
14803 (agent_socket_name): New static variable.
14804 (gdb_agent_socket_init): Replace local variable 'name' with
14805 'agent_socket_name'.
14806 (gdb_agent_remove_socket): New.
14807
5a3f286f
YQ
148082012-07-27 Yao Qi <yao@codesourcery.com>
14809
14810 * server.c (process_point_options): Stop at 'X' when parsing.
14811
961bd387
ME
148122012-07-19 Michael Eager <eager@eagercon.com>
14813
a261b8f5 14814 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14815 to hw_execute.
14816 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14817 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14818 hardware breakpoint.
14819
aa7c7447
JK
148202012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14821
14822 * gdbserver/linux-low.c (initialize_low): Call
14823 linux_ptrace_init_warnings.
14824
7f216e7c
DE
148252012-07-02 Doug Evans <dje@google.com>
14826
14827 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14828 pointer to int.
14829
d3ce09f5
SS
148302012-07-02 Stan Shebs <stan@codesourcery.com>
14831
14832 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14833 (ax.o): Add it to build rule.
14834 (ax-ipa.o): Ditto.
14835 (OBS): Add format.o.
14836 (IPA_OBS): Add format.o.
14837 * server.c (handle_query): Claim support for breakpoint commands.
14838 (process_point_options): Add command case.
14839 (process_serial_event): Leave running if there are printfs in
14840 effect.
14841 * mem-break.h (any_persistent_commands): Declare.
14842 (add_breakpoint_commands): Declare.
14843 (gdb_no_commands_at_breakpoint): Declare.
14844 (run_breakpoint_commands): Declare.
14845 * mem-break.c (struct point_command_list): New struct.
14846 (struct breakpoint): New field command_list.
14847 (any_persistent_commands): New function.
14848 (add_commands_to_breakpoint): New function.
14849 (add_breakpoint_commands): New function.
14850 (gdb_no_commands_at_breakpoint): New function.
14851 (run_breakpoint_commands): New function.
14852 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14853 locally.
14854 * ax.c: Include format.h.
14855 (ax_printf): New function.
14856 (gdb_eval_agent_expr): Add printf opcode.
14857
2f8f6aed
YQ
148582012-06-13 Yao Qi <yao@codesourcery.com>
14859
14860 * server.c (start_inferior): Remove duplicated writes to fields
14861 'last_resume_kind' and 'last_status' of 'current_inferior'.
14862
0c9070b3
YQ
148632012-06-12 Yao Qi <yao@codesourcery.com>
14864 Pedro Alves <palves@redhat.com>
14865
14866 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14867 comment.
14868 * server.c (handle_v_cont): Extend comment.
14869
c52daf70
YQ
148702012-06-11 Yao Qi <yao@codesourcery.com>
14871
14872 * linux-low.c (linux_attach): Add 'static'.
14873
d38bbb0a
YQ
148742012-06-06 Yao Qi <yao@codesourcery.com>
14875
14876 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14877
89dc0afd
JK
148782012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14879
14880 Fix gcc -flto compilation warning.
14881 * server.c (main): Make variable multi_mode and attach volatile.
14882
75f62ce7
TJB
148832012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14884
14885 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14886 if the platform doesn't know about it.
14887
65f479b6
PA
148882012-05-30 Jeff Kenton <jkenton@tilera.com>
14889
14890 * Makefile.in (SFILES): Add linux-tile-low.c.
14891 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14892 * configure.srv: Handle tilegx-*-linux*.
14893 * linux-tile-low.c: New file.
14894
0c5bf5a9
JK
148952012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14896
14897 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14898
a493e3e2
PA
148992012-05-24 Pedro Alves <palves@redhat.com>
14900
14901 PR gdb/7205
14902
43aaf8b6 14903 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14904
2ea28649
PA
149052012-05-24 Pedro Alves <palves@redhat.com>
14906
14907 PR gdb/7205
14908
14909 Replace target_signal with gdb_signal throughout.
14910
8d409d16
MR
149112012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14912
14913 * linux-low.c (linux_store_registers): Avoid the copying sequence
14914 when no data has been retrieved by ptrace.
14915
23512c01
MGD
149162012-05-22 Will Deacon <will.deacon@arm.com>
14917
14918 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14919 Include asm/ptrace.h.
14920 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14921 already defined.
14922
4934b29e
MR
149232012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14924
14925 * linux-low.c (linux_store_registers): Don't re-retrieve data
14926 with ptrace that has already been obtained from /proc. Always
14927 copy any data retrieved with ptrace to the buffer supplied.
14928
bde24c0a
PA
149292012-05-11 Yao Qi <yao@codesourcery.com>
14930 Pedro Alves <palves@redhat.com>
14931
14932 * linux-low.c (enum stopping_threads_kind): New.
14933 (stopping_threads): Change type to `enum stopping_threads_kind'.
14934 (handle_extended_wait): If stopping and suspending threads, leave
14935 the new_lwp suspended too.
14936 (linux_wait_for_event): Adjust.
14937 (stop_all_lwps): Set `stopping_threads' to
14938 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14939 whether we're suspending threads or just stopping them. Assert no
14940 recursion happens.
14941
623b6bdf
YQ
149422012-04-29 Yao Qi <yao@codesourcery.com>
14943
14944 * server.h: Move some code to ...
14945 * gdbthread.h: ... here. New.
14946 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14947 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14948 (nto-low.o, win32-low.o): Likewise.
14949 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14950 * regcache.c, remote-utils.c, server.c: Likewise.
14951 * target.c, tracepoint.c, win32-low.c: Likewise.
14952
f15f9948
TJB
149532012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14954
14955 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14956 (PTRACE_ARG4_TYPE): Likewise.
14957 (PTRACE_XFER_TYPE): Likewise.
14958 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14959 ptrace to PTRACE_ARG3_TYPE.
14960 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14961 (PTRACE_ARG4_TYPE): Likewise.
14962 (PTRACE_XFER_TYPE): Likewise.
14963 (linux_detach_one_lwp): Cast fourth argument of
14964 ptrace to long then PTRACE_ARG4_TYPE.
14965 (regsets_fetch_inferior_registers): Cast third argument of
14966 ptrace to long then PTRACE_ARG3_TYPE.
14967 (regsets_store_inferior_registers): Likewise.
14968
38ea300a
PA
149692012-04-20 Pedro Alves <palves@redhat.com>
14970
14971 * configure: Regenerate.
14972
c971b7fa
PA
149732012-04-19 Pedro Alves <palves@redhat.com>
14974
43aaf8b6 14975 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14976 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14977 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14978 (all, install-only, uninstall, clean-info, all-lib, clean): No
14979 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14980 (maintainer-clean realclean distclean): Use subdir_do.
14981 (subdir_do): New.
14982 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14983 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14984 * acinclude.m4: Include acx_configure_dir.m4.
14985 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14986 calls. Call AC_PROG_RANLIB. Configure gnulib using
14987 ACX_CONFIGURE_DIR.
14988 (GNULIB): New.
14989 (GNULIB_STDINT_H): Adjust.
14990 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14991 * gdbreplay.c: Include build-gnulib/config.h.
14992 * server.h: Likewise.
14993 * aclocal.m4: Regenerate.
14994 * config.in: Regenerate.
14995 * configure: Regenerate.
c971b7fa 14996
809277f8
PA
149972012-04-19 Pedro Alves <palves@redhat.com>
14998
14999 * Makefile.in (LIBGNU, INCGNU): Adjust.
15000 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15001 (all, install-only, uninstall, clean-info, all-lib, clean)
15002 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15003 * configure.ac: Adjust AC_OUTPUT output.
15004 * aclocal.m4: Regenerate.
15005 * configure: Regenerate.
15006
fd9bb8b8
PA
150072012-04-19 Pedro Alves <palves@redhat.com>
15008
15009 * Makefile.in (generated_files): New.
15010 (server_h): Remove the explicit dependency on config.h, and depend
15011 on $generated_files.
15012
1c298c66
PA
150132012-04-19 Pedro Alves <palves@redhat.com>
15014
15015 * Makefile.in (INCGNU): Add -Ignulib.
15016
57c4b50b
PA
150172012-04-19 Pedro Alves <palves@redhat.com>
15018
15019 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15020 (INCGNU): ... this, and spell out -I here.
15021 (GNULIB_LIB): Rename to ...
15022 (LIBGNU): ... this.
15023 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15024
1030e047
PA
150252012-04-19 Pedro Alves <palves@redhat.com>
15026
15027 * config.in: Regenerate.
15028
447d4319
PA
150292012-04-19 Pedro Alves <palves@redhat.com>
15030
15031 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15032 * server.h (memmem): Remove declaration.
15033 * config.in: Regenerate.
15034 * configure: Regenerate.
15035
aad9eab9
YQ
150362012-04-19 Yao Qi <yao@codesourcery.com>
15037
15038 * Makefile.in (SFILES): Add common/vec.c.
15039 (OBS): Add vec.o.
15040 (vec.o): New rule.
15041
3e10640f
YQ
150422012-04-19 Yao Qi <yao@codesourcery.com>
15043
15044 * remote-utils.c (prepare_resume_reply): Replace with macro
15045 target_core_of_thread.
15046 * server.c (handle_qxfer_threads_proper): Likewise.
15047 * target.h (traget_core_of_thread): New macro.
15048
71622373
PA
150492012-04-18 Pedro Alves <palves@redhat.com>
15050
15051 * aclocal.m4: Regenerate.
15052 * configure: Regenerate.
15053
80d26939
YQ
150542012-04-16 Yao Qi <yao@codesourcery.com>
15055
15056 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15057 duplicated on address.
15058
42476b70
YQ
150592012-04-16 Yao Qi <yao@codesourcery.com>
15060
15061 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15062 (struct tracepoint_action_ops) <send>: New field.
15063 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15064 (agent_expr_send, x_tracepoint_action_send): New.
15065 (l_tracepoint_action_send): New.
15066 (cmd_qtdp): Download and install tracepoint
15067 according to `use_agent'.
15068 (run_inferior_command): Add one more parameter `len'.
15069 Update callers.
15070 (tracepoint_send_agent): New.
15071 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15072
7bc83639
YQ
150732012-04-16 Yao Qi <yao@codesourcery.com>
15074
15075 * tracepoint.c (download_tracepoints): Moved to ...
15076 (cmd_qtstart): ... here.
15077
5f18041e
YQ
150782012-04-14 Yao Qi <yao@codesourcery.com>
15079
15080 * tracepoint.c: Include inttypes.h.
15081 (struct collect_memory_action): Use sized types.
15082 (struct tracepoint): Likewise.
15083 (cmd_qtdp, stop_tracing): Update print specifiers.
15084 (cmd_qtp, response_tracepoint): Likewise.
15085 (collect_data_at_tracepoint): Likewise.
15086 (collect_data_at_step): Likewise.
15087
55a8c076
YQ
150882012-04-14 Yao Qi <yao@codesourcery.com>
15089
15090 Import gnulib module inttypes.
15091 * aclocal.m4, config.in, configure: Regenerated.
15092
dc750257
YQ
150932012-04-14 Yao Qi <yao@codesourcery.com>
15094
15095 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15096 Makefile and config.status at last.
15097
0ab5faf9
YQ
150982012-04-13 Yao Qi <yao@codesourcery.com>
15099
15100 * tracepoint.c: Include stdint.h unconditionally.
15101
18f5fd81
TJB
151022012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15103
15104 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15105 on BFD_HAVE_SYS_PROCFS_TYPE.
15106 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15107 * configure: Regenerate.
15108 * config.in: Likewise.
15109
4d47af5c
L
151102012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15111
15112 * Makefile.in (clean): Also remove x32.c x32-linux.c
15113 x32-avx.c x32-avx-linux.c.
15114 (x32.o): New target.
15115 (x32.c): Likewise.
15116 (x32-linux.o): Likewise.
15117 (x32-linux.c): Likewise.
15118 (x32-avx.o): Likewise.
15119 (x32-avx.c): Likewise.
15120 (x32-avx-linux.o): Likewise.
15121 (x32-avx-linux.c): Likewise.
15122
15123 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15124 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15125 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15126 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15127 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15128 i386/x32-avx-linux.xml.
15129
15130 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15131 (init_registers_x32_avx_linux): Likwise.
15132 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15133 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15134
ecedbe58
PA
151352012-04-13 Pedro Alves <palves@redhat.com>
15136
15137 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15138 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15139 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15140 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15141 the sub-make.
15142
c92b5177
L
151432012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15144
15145 * linux-x86-low.c (compat_x32_clock_t): New.
15146 (compat_x32_siginfo_t): Likewise.
15147 (compat_x32_siginfo_from_siginfo): Likewise.
15148 (siginfo_from_compat_x32_siginfo): Likewise.
15149 (linux_is_elf64): Likewise.
15150 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15151 and siginfo_from_compat_x32_siginfo for x32.
15152 (x86_arch_setup): Set linux_is_elf64.
15153
214d508e
L
151542012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15155
15156 PR gdb/13969
15157 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15158 e_machine field.
15159 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15160 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15161 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15162 compatible with process.
15163
c9a1864a
YQ
151642012-04-12 Yao Qi <yao@codesourcery.com>
15165
15166 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15167 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15168 (install-only, install-info, clean): Handle sub dir gnulib.
15169 (all-lib, am--refresh): New targets.
15170 (memmem.o): Remove target.
15171 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15172 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15173 (AC_REPLACE_FUNCS): Remove memmem.
15174 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15175 (AC_OUTPUT): Generate Makefile in gnulib/.
15176 * aclocal.m4, config.in, configure: Regenerated.
15177
367ba2c2
MR
151782012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15179
15180 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15181
9d236627
PA
151822012-04-05 Pedro Alves <palves@redhat.com>
15183
15184 -Werror=strict-aliasing
15185
15186 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15187 pointer.
15188
111217b3
PA
151892012-04-04 Pedro Alves <palves@redhat.com>
15190
15191 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15192 (sparc_store_gregset_from_stack, sparc_store_gregset)
15193 (sparc_breakpoint_at): Fix formatting.
15194
8365dcf5
TJB
151952012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15196
15197 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15198 are available.
15199 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15200 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15201 * config.in: Regenerate.
15202 * configure: Likewise.
15203
689cc2ae
PA
152042012-03-29 Pedro Alves <palves@redhat.com>
15205
15206 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15207 Correct ptrace arguments.
15208
c14dfd32
PA
152092012-03-28 Pedro Alves <palves@redhat.com>
15210
15211 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15212 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15213 (IA64_FR1_REGNUM): New defines.
15214 (ia64_fetch_register): New.
15215 (the_low_target): Install it.
15216 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15217 field.
15218 * linux-low.c (linux_fetch_registers): Try the
15219 the_low_target.fetch_register hook first.
15220
15221 * linux-arm-low.c (the_low_target): Adjust.
15222 * linux-bfin-low.c (the_low_target): Adjust.
15223 * linux-cris-low.c (the_low_target): Adjust.
15224 * linux-crisv32-low.c (the_low_target): Adjust.
15225 * linux-m32r-low.c (the_low_target): Adjust.
15226 * linux-m68k-low.c (the_low_target): Adjust.
15227 * linux-mips-low.c (the_low_target): Adjust.
15228 * linux-ppc-low.c (the_low_target): Adjust.
15229 * linux-s390-low.c (the_low_target): Adjust.
15230 * linux-sh-low.c (the_low_target): Adjust.
15231 * linux-sparc-low.c (the_low_target): Adjust.
15232 * linux-tic6x-low.c (the_low_target): Adjust.
15233 * linux-x86-low.c (the_low_target): Adjust.
15234 * linux-xtensa-low.c (the_low_target): Adjust.
15235
63c88e13
PA
152362012-03-26 Pedro Alves <palves@redhat.com>
15237
15238 * server.c (handle_qxfer_libraries): Don't bail early if
15239 the_target->qxfer_libraries_svr4 is not NULL.
15240
fb723180
PA
152412012-03-26 Pedro Alves <palves@redhat.com>
15242
15243 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15244
0afae3cf
PA
152452012-03-23 Pedro Alves <palves@redhat.com>
15246
15247 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15248 "library-list-svr4" element's start tag when the the DSO list is
15249 empty.
15250
485f1ee4
PA
152512012-03-23 Pedro Alves <palves@redhat.com>
15252
15253 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15254 a variable whose type size is the same as the inferior's pointer
15255 size.
15256
a5362b9a
TS
152572012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15258
15259 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15260 struct siginfo.
15261 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15262 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15263 * linux-low.h: Include <signal.h>.
15264 (struct siginfo): Remove forward declaration.
15265 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15266 struct siginfo.
15267
d226c142
MF
152682012-03-21 Mike Frysinger <vapier@gentoo.org>
15269
15270 * .gitignore: Ignore more files.
15271
122f36ef
PA
152722012-03-19 Pedro Alves <palves@redhat.com>
15273 Jan Kratochvil <jan.kratochvil@redhat.com>
15274
15275 * server.c (cont_thread, general_thread): Add describing comments.
15276 (start_inferior): Clear `cont_thread'.
15277 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15278 of a process.
15279
fc3e5175
YQ
152802012-03-15 Yao Qi <yao@codesourcery.com>
15281
15282 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15283 handling to ...
15284 (cmd_qtdp): ... here.
15285
8d0d92cd
YQ
152862012-03-15 Yao Qi <yao@codesourcery.com>
15287
15288 * tracepoint.c (struct tracepoint_action_ops): New.
15289 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15290 (m_tracepoint_action_download): New.
15291 (r_tracepoint_action_download): New.
15292 (x_tracepoint_action_download): New.
15293 (l_tracepoint_action_download): New.
15294 (add_tracepoint_action): Install `action->ops' according type.
15295 (download_tracepoint_1): Move code `download' function pointer
15296 of various tracepoint_action_ops.
15297
87b0bb13
JK
152982012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15299
15300 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15301 linux_ptrace_attach_warnings.
15302
5f572dec
JK
153032012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15304
15305 * Makefile.in (linux-ptrace.o): New.
15306 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15307 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15308 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15309 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15310 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15311 of these targets.
15312 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15313
f4647387
YQ
153142012-03-08 Yao Qi <yao@codesourcery.com>
15315 Pedro Alves <palves@redhat.com>
15316
15317 Fix PR server/13392.
15318 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15319 offset of JMP insn.
15320 * tracepoint.c (remove_tracepoint): New.
15321 (cmd_qtdp): Call remove_tracepoint when failed to install.
15322
9b224c5e
PA
153232012-03-07 Pedro Alves <palves@redhat.com>
15324
15325 * linux-low.c (get_detach_signal): New.
15326 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15327 Pass on pending signals to PTRACE_DETACH. Check the result of the
15328 ptrace call.
15329 * server.c (program_signals, program_signals_p): New.
15330 (handle_general_set): Handle QProgramSignals.
15331 * server.h (program_signals, program_signals_p): Declare.
15332
e237a7e2
JK
153332012-03-05 Pedro Alves <palves@redhat.com>
15334 Jan Kratochvil <jan.kratochvil@redhat.com>
15335
15336 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15337 New comment why.
15338
5808517f
YQ
153392012-03-03 Yao Qi <yao@codesourcery.com>
15340
15341 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15342 agent_look_up_symbols.
15343
58b4daa5
YQ
153442012-03-03 Yao Qi <yao@codesourcery.com>
15345
15346 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15347 (linux-x86-low.o): Likewise.
15348 * server.h: Remove in_process_agent_loaded.
15349 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15350 common/agent.c.
15351 Update callers.
15352
8ffcbaaf
YQ
153532012-03-03 Yao Qi <yao@codesourcery.com>
15354
15355 * tracepoint.c (gdb_agent_capability): New global.
15356 (in_process_agent_loaded_ust): Renamed to
15357 `in_process_agent_supports_ust'.
15358 Update callers.
15359 (in_process_agent_supports_ust): Call agent_capability_check.
15360 (clear_installed_tracepoints): Assert that agent supports
15361 agent.
15362
d1feda86
YQ
153632012-03-03 Yao Qi <yao@codesourcery.com>
15364
15365 * linux-low.c (linux_supports_agent): New.
15366 (linux_target_ops): Initialize field `supports_agent' with
15367 linux_supports_agent.
15368 * target.h (struct target_ops) <supports_agent>: New.
15369 (target_supports_agent): New macro.
15370 * server.c (handle_general_set): Handle packet 'QAgent'.
15371 (handle_query): Send `QAgent+'.
15372 * Makefile.in (server.o): Depends on agent.h.
15373
2fa291ac
YQ
153742012-03-03 Yao Qi <yao@codesourcery.com>
15375
15376 * Makefile.in (OBS): Add agent.o.
15377 Add new rule for agent.o.
15378 Track dependence of tracepoint.c on agent.h.
15379 * tracepoint.c (run_inferior_command_1):
15380 (run_inferior_command): Call agent_run_command.
15381 (gdb_ust_connect_sync_socket): Deleted. Move it to
15382 common/agent.c.
15383 (resume_thread, stop_thread): Likewise.
15384 (gdb_ust_socket_init): Renamed to ...
15385 (gdb_agent_socket_init): ... New.
15386 (gdb_ust_thread): Renamed to ...
15387 (gdb_agent_helper_thread): ... New.
15388 (gdb_ust_init): Move some code to ...
15389 (gdb_agent_init): ... here. New.
15390 [HAVE_UST]: Call gdb_ust_init.
15391 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15392 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15393 * config.in, configure: Regenerated.
15394
05044653
PA
153952012-03-02 Pedro Alves <palves@redhat.com>
15396
15397 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15398 * linux-low.c (struct simple_pid_list): New.
15399 (stopped_pids): New a struct simple_pid_list pointer.
15400 (add_to_pid_list, pull_pid_from_list): New.
15401 (handle_extended_wait): Don't assume the first signal new children
15402 report is SIGSTOP. Adjust call to pull_pid_from_list.
15403 (linux_wait_for_lwp): Adjust.
15404
8d00225b
YQ
154052012-03-02 Yao Qi <yao@codesourcery.com>
15406
15407 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15408 debug log.
15409
19560ba5
YQ
154102012-03-02 Yao Qi <yao@codesourcery.com>
15411
15412 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15413 `stop_pc' and `tpoint'. Update caller.
15414
1faeff08
MR
154152012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15416
15417 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15418 * linux-low.c (use_linux_regsets): New macro.
15419 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15420 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15421 (linux_register_in_regsets): New function.
15422 (usr_fetch_inferior_registers): Skip registers covered by
15423 regsets.
15424 (usr_store_inferior_registers): Likewise.
15425 (usr_fetch_inferior_registers): New macro.
15426 (usr_store_inferior_registers): Likewise.
15427 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15428 (linux_store_registers): Likewise.
15429 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15430 prototype.
15431 (init_registers_mips64_dsp_linux): Likewise.
15432 (init_registers_mips_linux): New macro.
15433 (init_registers_mips_dsp_linux): Likewise.
15434 (mips_dsp_num_regs): Likewise.
15435 (DSP_BASE, DSP_CONTROL): New fallback macros.
15436 (mips_base_regs): New macro.
15437 (mips_regmap): Use it. Fix the size.
15438 (mips_dsp_regmap): New variable.
15439 (mips_dsp_regset_bitmap): Likewise.
15440 (mips_arch_setup): New function.
15441 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15442 than mips_regmap.
15443 (mips_cannot_store_register): Likewise.
15444 (the_low_target): Update .arch_setup, .num_regs and .regmap
15445 initializers. Add .regset_bitmap initializer.
15446 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15447 initializer.
15448 * linux-bfin-low.c (the_low_target): Likewise.
15449 * linux-cris-low.c (the_low_target): Likewise.
15450 * linux-crisv32-low.c (the_low_target): Likewise.
15451 * linux-ia64-low.c (the_low_target): Likewise.
15452 * linux-m32r-low.c (the_low_target): Likewise.
15453 * linux-m68k-low.c (the_low_target): Likewise.
15454 * linux-ppc-low.c (the_low_target): Likewise.
15455 * linux-s390-low.c (the_low_target): Likewise.
15456 * linux-sh-low.c (the_low_target): Likewise.
15457 * linux-sparc-low.c (the_low_target): Likewise.
15458 * linux-tic6x-low.c (the_low_target): Likewise.
15459 * linux-x86-low.c (the_low_target): Likewise.
15460 * linux-xtensa-low.c (the_low_target): Likewise.
15461 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15462 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15463 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15464 srv_xmlfiles.
15465 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15466 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15467
c03e6ccc
YQ
154682012-02-29 Yao Qi <yao@codesourcery.com>
15469 Pedro Alves <palves@redhat.com>
15470
15471 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15472 `step_over_finished' is true.
15473
644cebc9
PA
154742012-02-27 Pedro Alves <palves@redhat.com>
15475
15476 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15477 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15478
c14d7ab2
PA
154792012-02-27 Pedro Alves <palves@redhat.com>
15480
15481 PR server/9684
15482 * linux-low.c (pid_is_stopped): New.
15483 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15484
412c89dd
LM
154852012-02-25 Luis Machado <lgustavo@codesourcery.com>
15486
15487 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15488 of conditions.
15489
b745defe
MR
154902012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15491
15492 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15493
9f3a5c85
LM
154942012-02-24 Luis Machado <lgustavo@codesourcery>
15495
15496 * server.c (handle_query): Advertise support for target-side
15497 breakpoint condition evaluation.
15498 (process_point_options): New function.
15499 (process_serial_event): When inserting a breakpoint, check for
15500 a target-side condition that should be evaluated.
15501
15502 * mem-break.c: Include regcache.h and ax.h.
15503 (point_cond_list_t): New data structure.
15504 (breakpoint) <cond_list>: New field.
15505 (find_gdb_breakpoint_at): Make non-static.
15506 (delete_gdb_breakpoint_at): Clear any target-side
15507 conditions.
15508 (clear_gdb_breakpoint_conditions): New function.
15509 (add_condition_to_breakpoint): Likewise.
15510 (add_breakpoint_condition): Likewise.
15511 (gdb_condition_true_at_breakpoint): Likewise.
15512 (gdb_breakpoint_here): Return result directly instead
15513 of going through a local variable.
15514
15515 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15516 (clear_gdb_breakpoint_conditions): Likewise.
15517 (add_breakpoint_condition): Likewise.
15518 (gdb_condition_true_at_breakpoint): Likewise.
15519
15520 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15521 (need_step_over_p): Take target-side breakpoint condition into
15522 consideration.
15523
5e1dc496
LM
155242012-02-24 Luis Machado <lgustavo@codesourcery>
15525
15526 * server.h: Include tracepoint.h.
15527 (agent_mem_read, agent_get_trace_state_variable_value,
15528 agent_set_trace_state_variable_value,
15529 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15530 get_set_tsv_func_addr): New prototypes.
15531
15532 * ax.h: New include file.
15533 * ax.c: New source file.
15534
15535 * tracepoint.c: Include ax.h.
15536 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15537 agent_expr, eval_result_type): Move to ax.h.
15538 (parse_agent_expr): Rename to ...
15539 (gdb_parse_agent_expr): ... this, make it non-static and move
15540 to ax.h.
15541 (unparse_agent_expr) Rename to ...
15542 (gdb_unparse_agent_expr): ... this, make it non-static and move
15543 to ax.h.
15544 (eval_agent_expr): Rename to ...
15545 (eval_tracepoint_agent_expr): ... this.
15546 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15547 forward declarations.
15548 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15549 (agent_get_trace_state_variable_value): New function.
15550 (agent_set_trace_state_variable_value): New function.
15551 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15552 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15553 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15554 (condition_true_at_tracepoint): Likewise.
15555 (parse_agent_expr): Rename to ...
15556 (gdb_parse_agent_expr): ... this and move to ax.c.
15557 (unparse_agent_expr): Rename to ...
15558 (gdb_unparse_agent_expr): ... this and move to ax.c.
15559 (gdb_agent_op_name): Move to ax.c.
15560 (eval_agent_expr): Rename to ...
15561 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15562 and move to ax.c.
15563 (eval_tracepoint_agent_expr): New function.
15564 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15565 non-static.
5e1dc496
LM
15566 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15567 ax.c.
15568 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15569 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15570 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15571 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15572 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15573 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15574 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15575 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15576 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15577 (compile_bytecodes): Remove forward declaration.
15578 (is_goto_target): Move to ax.c.
15579 (compile_bytecodes): Move to ax.c and call
15580 agent_get_trace_state_variable_value (...) and
15581 agent_set_trace_state_variable_value (...).
15582
15583 * Makefile.in: Update ax.c and IPA dependencies.
15584
277e4e52
PA
155852012-02-24 Pedro Alves <palves@redhat.com>
15586
15587 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15588 (cmd_bigqtbuffer_circular): ... this. Only handle
15589 'QTBuffer:circular:'.
15590 (handle_tracepoint_general_set): Adjust.
15591
bf4c19f7
YQ
155922012-02-16 Yao Qi <yao@codesourcery.com>
15593
15594 * inferiors.c: Move code to ...
15595 * dll.c: .... here. New.
15596 * server.h: Declare clear_dlls.
15597 * Makefile.in (SFILES): Add dll.c.
15598 (OBS): Add dll.o
15599 (dll.o): New rule.
15600
d73f2619
YQ
156012012-02-11 Yao Qi <yao@codesourcery.com>
15602
15603 * server.c: (handle_monitor_command): Add a new parameter
15604 `own_buf'.
15605 (handle_query): Update caller.
15606
f8255c2a
JB
156072012-02-09 Joel Brobecker <brobecker@adacore.com>
15608
15609 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15610 * configure, config.in: Regenerate.
15611 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15612 is not defined.
15613
da84f473
PA
156142012-02-02 Pedro Alves <palves@redhat.com>
15615
15616 Try SIGKILL first, then PTRACE_KILL.
15617 * linux-low.c (linux_kill_one_lwp): New.
15618 (linux_kill_one_lwp): Rename to ...
15619 (kill_one_lwp_callback): ... this. Use the new
15620 linux_kill_one_lwp.
15621
e886a173
PA
156222012-02-02 Pedro Alves <palves@redhat.com>
15623
15624 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15625 inferior.
15626
be07f1a2
PA
156272012-01-27 Pedro Alves <palves@redhat.com>
15628
15629 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15630 (elf_64_file_p): Make static.
15631 (linux_pid_exe_is_elf_64_file): New.
15632 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15633 Delete declarations.
15634 (linux_pid_exe_is_elf_64_file): Declare.
15635 * linux-x86-low.c (x86_arch_setup): Use
15636 linux_pid_exe_is_elf_64_file.
15637
d8301ad1
JK
156382012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15639
15640 * linux-low.c (linux_wait_for_event_1): Rename to ...
15641 (linux_wait_for_event): ... here and merge it with former
15642 linux_wait_for_event - new variable wait_ptid, use it.
15643 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15644
01b17894
PA
156452012-01-23 Pedro Alves <palves@redhat.com>
15646
15647 * server.c (main): Avoid yet another case of infinite loop while
15648 detaching/killing after a longjmp.
15649
e825046f
JK
156502012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15651
15652 Code cleanup.
15653 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15654
b9e7b9c3
UW
156552012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15656
15657 * hostio.c (handle_readlink): New function.
15658 (handle_vFile): Call it to handle "vFile:readlink" packets.
15659
901f9912
UW
156602012-01-20 Pedro Alves <palves@redhat.com>
15661 Ulrich Weigand <ulrich.weigand@linaro.org>
15662
15663 * server.c (handle_v_requests): Only support vAttach and vRun to
15664 start multiple processes when in extended protocol mode.
15665
fc1ab1a0
PA
156662012-01-17 Pedro Alves <palves@redhat.com>
15667
15668 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15669 memalign plus mprotect to allocate the scratch buffer.
15670
7d5d4e98
PA
156712012-01-13 Pedro Alves <palves@redhat.com>
15672
15673 * server.c (attach_inferior): Clear `cont_thread'.
15674
f128d5e9
PA
156752012-01-13 Pedro Alves <palves@redhat.com>
15676
15677 * server.c (main): Avoid infinite loop while detaching/killing
15678 after a longjmp.
15679
06db92f0
DE
156802012-01-09 Doug Evans <dje@google.com>
15681
15682 * server.c (start_inferior): Set last_ptid in --wrapper case.
15683
32d92999
YQ
156842012-01-06 Yao Qi <yao@codesourcery.com>
15685
15686 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15687 defined.
15688 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15689
5e0a92a9
YQ
156902012-01-04 Yao Qi <yao@codesourcery.com>
15691
15692 * tracepoint.c (cmd_qtdp): Print debug message
15693 for static tracepoint.
15694
ae639e8c
YQ
156952012-01-04 Yao Qi <yao@codesourcery.com>
15696
15697 * tracepoint.c (trace_vdebug): Differentiate debug message
15698 between gdbserver and IPA.
15699
f72429c5
YQ
157002012-01-03 Yao Qi <yao@codesourcery.com>
15701
15702 * tracepoint.c (tracepoint_was_hit): Don't collect for
15703 static tracepoint.
15704
12c3e59c
JB
157052012-01-02 Joel Brobecker <brobecker@adacore.com>
15706
15707 * terminal.h: Reformat copyright header.
15708
67827812
JB
157092012-01-02 Joel Brobecker <brobecker@adacore.com>
15710
15711 * server.c (gdbserver_version): Update copyright year.
15712 * gdbreplay.c (gdbreplay_version): Likewise.
15713
3e52c33d
JK
157142011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15715
15716 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15717
15718 Revert:
15719 2011-12-18 Hui Zhu <teawater@gmail.com>
15720 * linux-low.c (linux_create_inferior): Save return value to ret.
15721
66f1260e
HZ
157222011-12-18 Hui Zhu <teawater@gmail.com>
15723
15724 * linux-low.c (linux_create_inferior): Save return value to ret.
15725
e77616d7
DE
157262011-12-16 Doug Evans <dje@google.com>
15727
e7b06c57
DE
15728 * linux-low.c (linux_create_inferior): If stdio connection,
15729 redirect stdin from /dev/null, stdout to stderr.
15730 * remote-utils.c (remote_is_stdio): New static global.
15731 (remote_connection_is_stdio): New function.
15732 (remote_prepare): Handle stdio connection.
15733 (remote_open): Ditto.
15734 (remote_close): Don't close stdin for stdio connections.
15735 (read_prim,write_prim): New functions. Replace all calls to
15736 read/write to these.
15737 * server.c (main): Watch for "-" argument. Move call to
15738 remote_prepare before start_inferior.
15739 * server.h (STDIO_CONNECTION_NAME): New macro.
15740 (remote_connection_is_stdio): Declare.
15741
e77616d7
DE
15742 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15743 in debugging output.
15744
82067193
YQ
157452011-12-15 Yao Qi <yao@codesourcery.com>
15746
15747 * tracepoint.c: Include sys/syscall.h.
15748 (gdb_ust_thread): Remove preprocessor conditional.
15749
82bfbe7e
PA
157502011-12-14 Pedro Alves <pedro@codesourcery.com>
15751
15752 * linux-low.c (linux_detach_one_lwp): Call
15753 the_low_target.prepare_to_resume before detaching.
15754
712c6575
YQ
157552011-12-14 Yao Qi <yao@codesourcery.com>
15756
15757 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15758 of write.
15759
d54d1edf
YQ
157602011-12-14 Yao Qi <yao@codesourcery.com>
15761
15762 * i386-low.c (i386_low_stopped_data_address): Initialize local
15763 variable `control'.
15764
6210a125
PA
157652011-12-13 Pedro Alves <pedro@codesourcery.com>
15766
15767 PR remote/13492
15768
15769 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15770 DR_CONTROL unless necessary. Extend comments.
15771 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15772 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15773
2ece8244
YQ
157742011-12-13 Yao Qi <yao@codesourcery.com>
15775
15776 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15777 macros.
15778 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15779
784867a5
JK
157802011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15781
15782 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15783 Print new debug message for such case.
15784
6bf36717
JK
157852011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15786
15787 Fix overlapping memcpy.
15788 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15789 the read_inferior_memory transfer.
15790 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15791 write_inferior_memory transfer.
15792 (set_fast_tracepoint_jump): New variable buf. Use it for the
15793 read_inferior_memory and write_inferior_memory transfers.
15794 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15795 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15796 Use it for the write_inferior_memory transfer.
15797 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15798 buffers.
15799
50275556
MR
158002011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15801
15802 * linux-low.c (fetch_register, store_register): Make code
15803 consistent, fix formatting.
15804
7325beb4
MR
158052011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15806
15807 * linux-low.c (usr_store_inferior_registers): Factor out code
15808 to handle individual registers into...
15809 (store_register): ... this new function.
15810
c642a434
UW
158112011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15812
15813 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15814 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15815 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15816 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15817 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15818 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15819 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15820 (srv_xmlfiles): Add new XML files.
15821
15822 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15823 and <sys/uio.h>.
15824 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15825 (init_registers_s390_linux32v1): Add prototype.
15826 (init_registers_s390_linux32v2): Likewise.
15827 (init_registers_s390_linux64v1): Likewise.
15828 (init_registers_s390_linux64v2): Likewise.
15829 (init_registers_s390x_linux64v1): Likewise.
15830 (init_registers_s390x_linux64v2): Likewise.
15831 (s390_num_regs): Increment to 52.
15832 (s390_regmap): Add orig_r2 register.
15833 (s390_num_regs_3264): Increment to 68.
15834 (s390_regmap_3264): Add orig_r2 register.
15835 (s390_collect_ptrace_register): Handle orig_r2 register.
15836 (s390_supply_ptrace_register): Likewise.
15837 (s390_fill_last_break): New function.
15838 (s390_store_last_break): Likewise.
15839 (s390_fill_system_call): New function.
15840 (s390_store_system_call): Likewise.
15841 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15842 register sets.
15843 (s390_check_regset): New function.
15844 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15845 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15846 Update target_regsets for available register sets.
15847
2268b414
JK
158482011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15849 Jan Kratochvil <jan.kratochvil@redhat.com>
15850
15851 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15852 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15853 New.
15854 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15855 * linux-low.h (struct process_info_private): New member r_debug.
15856 * server.c (handle_qxfer_libraries): Call
15857 the_target->qxfer_libraries_svr4.
15858 (handle_qxfer_libraries_svr4): New function.
15859 (qxfer_packets): New entry "libraries-svr4".
15860 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15861 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15862 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15863 PACKET_qXfer_libraries_svr4.
15864
d6db1fab
UW
158652011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15866
15867 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15868 PSW address/mask between 8-byte and 16-byte formats.
15869 (s390_supply_ptrace_register): Likewise.
15870 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15871 basic addressing mode bit.
15872
242f5f1c
SS
158732011-11-24 Stan Shebs <stan@codesourcery.com>
15874
15875 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15876
f196051f
SS
158772011-11-17 Stan Shebs <stan@codesourcery.com>
15878
15879 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15880 (tracing_start_time): New global.
15881 (tracing_stop_time): New global.
15882 (tracing_user_name): New global.
15883 (tracing_notes): New global.
15884 (tracing_stop_note): New global.
15885 (cmd_qtstart): Set traceframe_usage, start_time.
15886 (stop_tracing): Set stop_time.
15887 (cmd_qtstatus): Report additional status.
15888 (cmd_qtp): New function.
15889 (handle_tracepoint_query): Call it.
15890 (cmd_qtnotes): New function.
15891 (handle_tracepoint_general_set): Call it.
15892 (get_timestamp): Rename from tsv_get_timestamp.
15893
405f8e94
SS
158942011-11-14 Stan Shebs <stan@codesourcery.com>
15895 Kwok Cheung Yeung <kcy@codesourcery.com>
15896
15897 * linux-x86-low.c (small_jump_insn): New.
15898 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15899 trampoline and error message, build a trampoline and issue a small
15900 jump instruction to it.
15901 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15902 trampoline and error message.
15903 (x86_get_min_fast_tracepoint_insn_len): New.
15904 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15905 * linux-low.h (struct linux_target_ops): Add arguments to
15906 install_fast_tracepoint_jump_pad operation, add new operation.
15907 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15908 arguments.
15909 (linux_get_min_fast_tracepoint_insn_len): New function.
15910 (linux_target_op): Add new operation.
15911 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15912 (gdb_trampoline_buffer_end): Ditto.
15913 (gdb_trampoline_buffer_error): Ditto.
15914 (struct ipa_sym_addresses): Add fields for new IPA variables.
15915 (symbol_list): Add entries for new IPA variables.
15916 (struct tracepoint): Add fields to hold the address range of the
15917 trampoline used by the tracepoint.
15918 (trampoline_buffer_head): New static variable.
15919 (trampoline_buffer_tail): Ditto.
15920 (claim_trampoline_space): New function.
15921 (have_fast_tracepoint_trampoline_buffer): New function.
15922 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15923 structure.
15924 (install_fast_tracepoint): Ditto, also add error buffer argument.
15925 (cmd_qtminftpilen): New function.
15926 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15927 (fast_tracepoint_from_trampoline_address): New function.
15928 (fast_tracepoint_collecting): Handle trampoline as part of jump
15929 pad space.
15930 (set_trampoline_buffer_space): New function.
15931 (initialize_tracepoint): Initialize new IPA variables.
15932 * target.h (struct target_ops): Add arguments to
15933 install_fast_tracepoint_jump_pad operation, add new
15934 get_min_fast_tracepoint_insn_len operation.
15935 (target_get_min_fast_tracepoint_insn_len): New.
15936 (install_fast_tracepoint_jump_pad): Add arguments.
15937 * server.h (IPA_BUFSIZ): Define.
15938 * linux-i386-ipa.c: Include extra header files.
15939 (initialize_fast_tracepoint_trampoline_buffer): New function.
15940 (initialize_low_tracepoint): Call it.
15941 * server.h (set_trampoline_buffer_space): Declare.
15942 (claim_trampoline_space): Ditto.
15943 (have_fast_tracepoint_trampoline_buffer): Ditto.
15944
1e4d1764
YQ
159452011-11-14 Yao Qi <yao@codesourcery.com>
15946
15947 * server.c (handle_query): Handle InstallInTrace for qSupported.
15948 * tracepoint.c (add_tracepoint): Sort list.
15949 (install_tracepoint, download_tracepoint): New.
15950 (cmd_qtdp): Call them to install and download tracepoints.
15951 (sort_tracepoints): Removed.
15952 (cmd_qtstart): Update.
15953
5c73ff4e
YQ
159542011-11-14 Yao Qi <yao@codesourcery.com>
15955
15956 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15957 * mem-break.h: Declare.
15958 * tracepoint.c (cmd_qtstart): Move some code to ...
15959 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15960 New.
15961 (download_tracepoints): Move some code to ...
15962 (download_tracepoint_1): ... here. New.
15963
86a30030
YQ
159642011-11-08 Yao Qi <yao@codesourcery.com>
15965
15966 * remote-utils.c (relocate_instruction): A comment fix.
15967
8d26e50c
JB
159682011-11-07 Joel Brobecker <brobecker@adacore.com>
15969
15970 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15971 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15972 dr_status_mirror and dr_control_mirror from debug_reg_state.
15973 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15974 (i386_initial_stuff): Remove use of deleted globals.
15975 (i386_get_thread_context, i386_set_thread_context,
15976 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15977 from debug_reg_state.
15978
a59306a3
YQ
159792011-11-05 Yao Qi <yao@codesourcery.com>
15980
15981 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15982 address as TPOINT's.
15983
3065dfb6
SS
159842011-11-02 Stan Shebs <stan@codesourcery.com>
15985
15986 * tracepoint.c (agent_mem_read_string): New function.
15987 (eval_agent_expr): Call it for tracenz.
15988 * server.c (handle_query): Report support for tracenz.
15989
fd0d8c7c
YQ
159902011-11-02 Yao Qi <yao@codesourcery.com>
15991
15992 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15993
609086b1
YQ
159942011-11-02 Yao Qi <yao@codesourcery.com>
15995
15996 * target.h: Fix a typo in comment.
15997
b9fd1791
PA
159982011-10-31 Pedro Alves <pedro@codesourcery.com>
15999
16000 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16001 clobber the breakpoints' shadows with fast tracepoint jumps.
16002 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16003 * target.c (write_inferior_memory): Also pass MYADDR down to
16004 check_mem_write.
16005
03583c20
UW
160062011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16007
16008 * configure.ac: Check support for personality routine.
16009 * configure: Regenerate.
16010 * config.in: Likewise.
16011 * linux-low.c: Include <sys/personality.h>.
16012 Define ADDR_NO_RANDOMIZE if necessary.
16013 (linux_create_inferior): Disable address space randomization when
16014 forking inferior, if requested.
16015 (linux_supports_disable_randomization): New function.
16016 (linux_target_ops): Install it.
16017 * server.h (disable_randomization): Declare.
16018 * server.c (disable_randomization): New global variable.
16019 (handle_general_set): Handle QDisableRandomization.
16020 (handle_query): Likewise for qSupported.
16021 (main): Support --disable-randomization and --no-disable-randomization
16022 command line arguments.
16023 * target.h (struct target_ops): Add supports_disable_randomization.
16024 (target_supports_disable_randomization): New macro.
16025
723b724b
MF
160262011-09-29 Mike Frysinger <vapier@gentoo.org>
16027
16028 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16029 ifdef check.
16030 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16031 [!PT_GETDSBT] (target_loadmap): New definition.
16032 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16033 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16034 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16035 and PT_GETDSBT to LINUX_LOADMAP.
16036 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16037 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16038
55329a5c 160392011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16040
16041 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16042 (arm_linux_hwbp_cap): New static variable.
16043 (arm_linux_get_hwbp_cap): Replace by ...
16044 (arm_linux_init_hwbp_cap): ... this new function.
16045 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16046 (arm_linux_get_hw_watchpoint_count): Likewise.
16047 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16048 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16049 (arm_prepare_to_resume): Use perror_with_name instead of error.
16050
55329a5c 160512011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16052
16053 * linux-arm-low.c: Include <signal.h>.
16054 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16055 (struct arm_linux_hwbp_cap): New data type.
16056 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16057 (struct arm_linux_hw_breakpoint): New data type.
16058 (MAX_BPTS, MAX_WPTS): Define.
16059 (struct arch_process_info, struct arch_lwp_info): New data types.
16060 (arm_linux_get_hwbp_cap): New function.
16061 (arm_linux_get_hw_breakpoint_count): Likewise.
16062 (arm_linux_get_hw_watchpoint_count): Likewise.
16063 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16064 (arm_hwbp_control_initialize): Likewise.
16065 (arm_hwbp_control_is_enabled): Likewise.
16066 (arm_hwbp_control_is_initialized): Likewise.
16067 (arm_hwbp_control_disable): Likewise.
16068 (arm_linux_hw_breakpoint_equal): Likewise.
16069 (arm_linux_hw_point_initialize): Likewise.
16070 (struct update_registers_data): New data structure.
16071 (update_registers_callback: New function.
16072 (arm_insert_point): Likewise.
16073 (arm_remove_point): Likewise.
16074 (arm_stopped_by_watchpoint): Likewise.
16075 (arm_stopped_data_address): Likewise.
16076 (arm_new_process): Likewise.
16077 (arm_new_thread): Likewise.
16078 (arm_prepare_to_resume): Likewise.
16079 (the_low_target): Register arm_insert_point, arm_remove_point,
16080 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16081 arm_new_thread, and arm_prepare_to_resume.
16082
6b9801d4
SS
160832011-09-15 Stan Shebs <stan@codesourcery.com>
16084
16085 * server.h (struct emit_ops): Add compare-goto fields.
16086 * tracepoint.c (gdb_agent_op_sizes): New table.
16087 (emit_eq_goto): New function.
16088 (emit_ne_goto): New function.
16089 (emit_lt_goto): New function.
16090 (emit_le_goto): New function.
16091 (emit_gt_goto): New function.
16092 (emit_ge_goto): New function.
16093 (is_goto_target): New function.
16094 (compile_bytecodes): Recognize special cases of compare-goto
16095 combinations and call specialized emitters for them.
16096 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16097 (amd64_emit_ne_goto): New function.
16098 (amd64_emit_lt_goto): New function.
16099 (amd64_emit_le_goto): New function.
16100 (amd64_emit_gt_goto): New function.
16101 (amd64_emit_ge_goto): New function.
16102 (amd64_emit_ops): Add the new functions.
16103 (i386_emit_eq_goto): New function.
16104 (i386_emit_ne_goto): New function.
16105 (i386_emit_lt_goto): New function.
16106 (i386_emit_le_goto): New function.
16107 (i386_emit_gt_goto): New function.
16108 (i386_emit_ge_goto): New function.
16109 (i386_emit_ops): Add the new functions.
16110
bf15cbda
SS
161112011-09-08 Stan Shebs <stan@codesourcery.com>
16112
16113 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16114 (i386_emit_epilogue): Restore %ebx.
16115
943ca1dd
JZ
161162011-08-31 Jie Zhang <jzhang918@gmail.com>
16117
16118 * server.c (step_thread): Remove definition.
16119 (process_serial_event): Don't handle Hs.
16120 * server.h (step_thread): Remove declaration.
16121 * target.c (set_desired_inferior): Remove use of step_thread.
16122
e3deef73
LM
161232011-08-24 Luis Machado <lgustavo@codesourcery.com>
16124
16125 * linux-low.c: Include linux-procfs.h.
16126 (linux_attach_lwp_1): Update comments.
16127 (linux_attach): Scan for existing threads when attaching to a
16128 process that is the tgid.
16129 * Makefile.in: Update dependencies.
16130
13da1c97
LM
161312011-08-24 Luis Machado <lgustavo@codesourcery.com>
16132
16133 * configure.srv: Add linux-procfs.o dependencies.
16134
881127c9
YQ
161352011-08-14 Yao Qi <yao@codesourcery.com>
16136
16137 * target.h (struct target_ops): Fix indent.
16138 * win32-low.c (win32_target_ops): Fix comment.
16139
58dbd541
YQ
161402011-08-14 Andrew Jenner <andrew@codesourcery.com>
16141 Yao Qi <yao@codesourcery.com>
16142
16143 * Makefile.in (clean): Remove tic6x-*.c files.
16144 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16145 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16146 (tic6x-c64xp-linux.c): Likewise.
16147 * configure.srv: Add support for tic6x-*-uclinux.
16148 * linux-tic6x-low.c: New.
16149 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16150
78d85199
YQ
161512011-08-14 Andrew Stubbs <ams@codesourcery.com>
16152 Yao Qi <yao@codesourcery.com>
16153
16154 * target.h (struct target_ops): Add read_loadmap.
16155 * linux-low.c (struct target_loadseg): New type.
16156 (struct target_loadmap): New type.
16157 (linux_read_loadmap): New function.
16158 (linux_target_ops): Add linux_read_loadmap.
16159 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16160 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16161 to NULL.
78d85199 16162
a959a88d
EZ
161632011-08-05 Eli Zaretskii <eliz@gnu.org>
16164
16165 * win32-low.c: Include <stdint.h>.
16166
1ced966e
PA
161672011-07-22 Pedro Alves <pedro@codesourcery.com>
16168
16169 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16170 to the inferior here.
16171 (i386_remove_aligned_watchpoint): Ditto.
16172 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16173 fit part of the watchpoint in the debug registers.
16174 (i386_update_inferior_debug_regs): New.
16175 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16176 registers, and only update the inferior on success.
16177 (i386_low_remove_watchpoint): Ditto.
16178
d26e3629
KY
161792011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16180
16181 * linux-low.c (compare_ints, unique, list_threads, show_process,
16182 linux_core_of_thread): Delete.
16183 (linux_target_ops): Change linux_core_of_thread to
16184 linux_common_core_of_thread.
16185 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16186 * utils.c (malloc_failure): Change type of argument.
16187 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16188 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16189 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16190 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16191 (IPA_OBJS): Add common-utils-ipa.o.
16192 (ptid_h, linux_osdata_h): New macros.
16193 (server_h): Add common/common-utils.h, common/xml-utils.h,
16194 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16195 common/ptid.h.
16196 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16197 ptid.o, buffer.o): New rules.
16198 (linux-low.o): Add common/linux-osdata.h as a dependency.
16199 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16200 * configure.ac: Add AC_HEADER_DIRENT check.
16201 * config.in: Regenerate.
16202 * configure: Regenerate.
16203 * remote-utils.c (xml_escape_text): Delete.
16204 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16205 buffer_xml_printf): Move to common/buffer.c.
16206 * server.c (main): Remove call to initialize_inferiors.
16207 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16208 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16209 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16210 internal_error, gdb_assert, gdb_assert_fail): Delete.
16211 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16212 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16213 common/buffer.h.
16214 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16215 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16216 initialize_inferiors): Delete.
16217
2275a1a7
PA
162182011-07-20 Pedro Alves <pedro@codesourcery.com>
16219
16220 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16221 symbol error.
16222
0a5b1e09
PA
162232011-05-31 Pedro Alves <pedro@codesourcery.com>
16224
16225 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16226 assertion.
16227 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16228
6938fd34
YQ
162292011-05-26 Yao Qi <yao@codesourcery.com>
16230
16231 * Makefile.in (thread-db.o): Track dependence to
16232 common/gdb_thread_db.h.
16233 * thread-db.c: include gdb_thread_db.h from right place.
16234
b481f9e0
TT
162352011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16236
16237 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16238 __FILE__ and __LINE__ to internal_error.
16239
98a5dd13
DE
162402011-05-13 Doug Evans <dje@google.com>
16241
16242 * thread-db.c (try_thread_db_load_from_sdir): New function.
16243 (try_thread_db_load_from_dir): New function.
16244 (thread_db_load_search): Handle $sdir, ignore $pdir.
16245 Remove trying of system directories if search of
16246 libthread-db-search-path fails, that is now done via $sdir.
16247
d248b706
KY
162482011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16249
16250 * server.c (handle_query): Add EnableDisableTracepoints to the list
16251 of supported features.
43aaf8b6 16252 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16253 tracepoints.
43aaf8b6
PA
16254 (cmd_qtenable_disable): New.
16255 (cmd_qtstart): Install tracepoints even if disabled.
16256 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16257 receiving a QTEnable or QTDisable packet.
16258 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16259 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16260 tracepoints.
16261 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16262
84e578fb
DE
162632011-05-10 Doug Evans <dje@google.com>
16264
16265 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16266
71f55dd8
DE
162672011-05-04 Doug Evans <dje@google.com>
16268
16269 * linux-low.c (linux_join): Skip process lookup.
16270 * spu-low.c (spu_join): Ditto.
16271 * server.c (join_inferiors_callback): Delete.
16272 (process_serial_event): For 'D' packet (detach) call join_inferior
16273 directly.
16274
4d393d60
JM
162752011-05-04 Joseph Myers <joseph@codesourcery.com>
16276
16277 * README: Don't mention xscale*-*-linux*.
16278 * configure.srv (xscale*-*-linux*): Don't handle target.
16279
b00ad6ff
NF
162802011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16281
16282 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16283 casting pointers.
16284 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16285 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16286 (i386_emit_void_call_2): Likewise.
16287
af96c192
YQ
162882011-04-26 Yao Qi <yao@codesourcery.com>
16289
43aaf8b6
PA
16290 * linux-low.c: Move common macros to linux-ptrace.h.
16291 Include linux-ptrace.h.
af96c192
YQ
16292 * Makefile.in (linux_ptrace_h): New.
16293 (linux-low.o): Depends on linux-ptrace.h.
16294
03f2bd59
JK
162952011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16296
16297 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16298 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16299 (remote_prepare): New function with most of the TCP code from ...
16300 (remote_open): ... here. Detect PORT here unconditionally. Move also
16301 setting transport_is_reliable.
16302 * server.c (run_once): New variable.
16303 (gdbserver_usage): Document it.
16304 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16305 the first run if RUN_ONCE.
16306 * server.h (run_once, remote_prepare): New declarations.
16307
7a9dd1b2
TT
163082011-04-19 Tom Tromey <tromey@redhat.com>
16309
16310 * win32-low.c (handle_load_dll): Remove duplicate "the".
16311
81239425
PM
163122011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16313
16314 Remove support for old Cygwin 1.5 versions.
16315 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16316 function to avoid warning.
16317 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16318 warning.
16319
9e0627f1
PM
163202011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16321
16322 * gdbserver/server.h (Macro _): Define it if not available.
16323
588eebee
MS
163242011-03-14 Michael Snyder <msnyder@vmware.com>
16325
348af9f7 16326 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16327
43f70d4c
JB
163282011-03-10 Joel Brobecker <brobecker@adacore.com>
16329
16330 * Makefile.in (maintainer-clean realclean distclean): Remove
16331 "make ... subdir_do" command.
16332
348af9f7
MS
163332011-03-10 Michael Snyder <msnyder@vmware.com>
16334
16335 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16336
16337 * server.c (handle_v_run): Free alloced buffer on early return.
16338
e637a4f5
YQ
163392011-03-09 Yao Qi <yao@codesourcery.com>
16340
16341 Revert:
16342 2011-03-04 Yao Qi <yao@codesourcery.com>
16343
16344 * Makefile.in: Remove GNU make feature --directory.
16345
16346 2011-03-05 Yao Qi <yao@codesourcery.com>
16347
16348 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16349 (subdir_do): New make target. Copied from gdb/Makefile.
16350 (maintainer-clean, realclean, distclean, clean): Call corresponding
16351 make targets in common/Makefile.
16352
16353 2011-02-11 Yao Qi <yao@codesourcery.com>
16354
16355 * configure.ac: Call AC_PROG_RANLIB.
16356 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16357 * configure: Regenerate.
16358
e6edda56
JK
163592011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16360
16361 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16362
e5141119
JB
163632011-03-06 Yao Qi <yao@codesourcery.com>
16364
16365 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16366
64794aa4
JB
163672011-03-05 Yao Qi <yao@codesourcery.com>
16368
16369 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16370 (subdir_do): New make target. Copied from gdb/Makefile.
16371 (maintainer-clean, realclean, distclean, clean): Call corresponding
16372 make targets in common/Makefile.
16373
7a762829
YQ
163742011-03-04 Yao Qi <yao@codesourcery.com>
16375
16376 * Makefile.in: Remove GNU make feature --directory.
16377
348af9f7
MS
163782011-03-04 Michael Snyder <msnyder@vmware.com>
16379
16380 * server.c (queue_stop_reply): Call xmalloc not malloc.
16381
163822011-03-02 Michael Snyder <msnyder@vmware.com>
16383
16384 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16385
9f72fee2
MS
163862011-02-28 Michael Snyder <msnyder@vmware.com>
16387
588eebee
MS
16388 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16389 (cmd_qtframe): Ditto.
16390 (cmd_qtbuffer): Ditto.
16391 (cmd_bigqtbuffer): Ditto.
16392
9f72fee2
MS
16393 * utils.c (decimal2str): Initialize 'width' to nine, then
16394 don't mess with it.
16395
8040bd49
UW
163962011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16397
16398 * hostio.c (require_data): Free *data, not data.
16399
7e52cbd0
JK
164002011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16401
16402 * hostio.c (require_data): Use free, not xfree.
16403
9130f83e
MS
164042011-02-27 Michael Snyder <msnyder@vmware.com>
16405
4b812f4e
MS
16406 * server.c (handle_query): Discard unused value.
16407
9130f83e
MS
16408 * hostio.c (require_data): Free malloc memory before returning
16409 error.
16410
69d37113
MS
164112011-02-26 Michael Snyder <msnyder@vmware.com>
16412
16413 * linux-low.c (list_threads): Call closedir for dirent.
16414
35f5825a
MS
164152011-02-27 Michael Snyder <msnyder@vmware.com>
16416
2a589cef
MS
16417 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16418 a case statement falls through.
16419
0adea5f7
MS
16420 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16421
35f5825a
MS
16422 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16423 in comparison.
16424
238f1c74
MS
164252011-02-26 Michael Snyder <msnyder@vmware.com>
16426
16427 * utils.c (decimal2str): Eliminate dead code and dead param.
16428 (pulongest): Drop dead param from call to decimal2str.
16429 (plongest): Ditto.
16430
633ff500
JB
164312011-02-24 Joel Brobecker <brobecker@adacore.com>
16432
16433 Revert the following patch (not approved yet):
16434 2011-02-21 Hui Zhu <teawater@gmail.com>
16435 * tracepoint.c (tp_printf): New function.
16436 (eval_agent_expr): Handle gdb_agent_op_printf.
16437
f9c6ff72
HZ
164382011-02-21 Hui Zhu <teawater@gmail.com>
16439
16440 * tracepoint.c (tp_printf): New function.
16441 (eval_agent_expr): Handle gdb_agent_op_printf.
16442
94d5e490
TT
164432011-02-18 Tom Tromey <tromey@redhat.com>
16444
16445 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16446 (tracepoint.o): Likewise.
16447 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16448 (gdb_agent_op_names): Likewise.
16449
c7f96d2b
TT
164502011-02-18 Tom Tromey <tromey@redhat.com>
16451
16452 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16453 gdb_agent_op_rot>: New constants.
16454 (gdb_agent_op_names): Add pick and roll.
16455 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16456 cases.
16457
0feedb2c
JK
164582011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16459
16460 * aclocal.m4: Regenerated with aclocal-1.11.1.
16461
b3b9301e
PA
164622011-02-14 Pedro Alves <pedro@codesourcery.com>
16463
16464 * server.c (handle_qxfer_traceframe_info): New.
16465 (qxfer_packets): Register "traceframe-info".
16466 (handle_query): Report support for qXfer:traceframe-info:read+.
16467 * tracepoint.c (match_blocktype): New.
16468 (traceframe_find_block_type): Rename to ...
16469 (traceframe_walk_blocks): ... this. Add callback filter argument,
16470 and use it.
16471 (traceframe_find_block_type): New, reimplemented on top of
16472 traceframe_walk_blocks.
16473 (build_traceframe_info_xml): New.
16474 (traceframe_read_info): New.
16475 * server.h (traceframe_read_info): Declare.
16476
4f3e6fb7
YQ
164772011-02-11 Yao Qi <yao@codesourcery.com>
16478
16479 * configure.ac: Call AC_PROG_RANLIB.
16480 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16481 * configure: Regenerate.
16482
764880b7
PA
164832011-02-07 Pedro Alves <pedro@codesourcery.com>
16484
16485 * server.c (gdb_read_memory): Change return semantics to allow
16486 partial transfers.
16487 (handle_search_memory_1): Adjust.
16488 (process_serial_event) <'m' packet>: Handle partial transfers.
16489 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16490
1c79eb8a
PA
164912011-01-28 Pedro Alves <pedro@codesourcery.com>
16492
16493 * regcache.c (init_register_cache): Initialize
16494 regcache->register_status.
16495 (free_register_cache): Release regcache->register_status.
16496 (regcache_cpy): Copy register_status.
16497 (registers_to_string): Print 'x's for unavailable registers.
16498 (supply_register): Mark the register's status valid or
16499 unavailable, depending on whether a buffer was passed in or not.
16500 (supply_register_zeroed): New.
16501 (supply_regblock): Mark the registers' status valid or
16502 unavailable, depending on whether a buffer was passed in or not.
16503 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16504 (struct regcache): New `register_status' field.
16505 (supply_register_zeroed): Declare.
16506 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16507 supply_register_zeroed, rather than passing a NULL buffer to
16508 supply_register.
16509 * tracepoint.c (fetch_traceframe_registers): Update comment.
16510
85724a0e
PA
165112011-01-28 Pedro Alves <pedro@codesourcery.com>
16512
16513 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16514 buffer explicit.
16515
d08aafef
PA
165162011-01-25 Pedro Alves <pedro@codesourcery.com>
16517
16518 * server.h (decode_xfer_write): Change prototype.
16519 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16520 and don't extract the annex here.
16521 * server.c (decode_xfer_read): Remove `annex' parameter,
16522 and don't extract the annex here.
16523 (decode_xfer): New.
16524 (struct qxfer): New.
16525 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16526 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16527 (handle_qxfer_statictrace): New functions, abstracted out from
16528 handle_query, and made to use the struct qxfer interface.
16529 (handle_threads_qxfer_proper): Rename to ...
16530 (handle_qxfer_threads_proper): ... this.
16531 (handle_threads_qxfer): Rename to ...
16532 (handle_qxfer_threads): ... this. Adjust.
16533 (qxfer_packets): New array.
16534 (handle_qxfer): New function.
16535 (handle_query): Use handle_qxfer.
16536
493e2a69
MS
165372011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16538
16539 * gdbreplay.c: Shorten lines of >= 80 columns.
16540 * linux-low.c: Ditto.
16541 * linux-ppc-low.c: Ditto.
16542 * linux-s390-low.c: Ditto.
16543 * linux-sparc-low.c: Ditto.
16544 * linux-x86-low.c: Ditto.
16545 * linux-xtensa-low.c: Ditto.
16546 * mem-break.c: Ditto.
16547 * nto-low.c: Ditto.
16548 * regcache.h: Ditto.
16549 * remote-utils.c: Ditto.
16550 * server.c: Ditto.
16551 * server.h: Ditto.
16552 * thread-db.c: Ditto.
16553 * tracepoint.c: Ditto.
16554 * utils.c: Ditto.
16555 * win32-low.h: Ditto.
16556
44944448
JB
165572011-01-05 Joel Brobecker <brobecker@adacore.com>
16558
16559 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16560 update.
16561
71ce852c
JB
165622011-01-01 Joel Brobecker <brobecker@adacore.com>
16563
16564 * server.c (gdbserver_version): Update copyright year in version
16565 output.
16566 * gdbreplay.c (gdbreplay_version): Ditto.
16567
eb826dc6
MF
165682010-12-29 Jie Zhang <jie.zhang@analog.com>
16569
16570 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16571 * linux-bfin-low.c: New file.
16572 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16573 PT_DATA_ADDR for BFIN targets.
16574 * Makefile.in (SFILES): Add linux-bfin-low.c.
16575 (clean): Remove reg-bfin.c.
16576 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16577 * README: Mention supported Blackfin targets.
16578
39ab222a
MF
165792010-12-23 Mike Frysinger <vapier@gentoo.org>
16580
16581 * .gitignore: New file.
16582
a1f2ce7d
MF
165832010-11-16 Mike Frysinger <vapier@gentoo.org>
16584
16585 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16586
f474844c
JZ
165872010-10-22 Jie Zhang <jie@codesourcery.com>
16588
16589 * Makefile.in: Add FLAGS_TO_PASS variable.
16590 (install): Remove dependency of install-only and recursively
16591 invoke make for install-only.
16592
f1048712
DE
165932010-10-04 Doug Evans <dje@google.com>
16594
16595 * Makefile.in (uninstall): Use $(DESTDIR).
16596
b53a1623
PA
165972010-09-24 Pedro Alves <pedro@codesourcery.com>
16598
e6ee044d
PA
16599 PR gdb/11842
16600
b53a1623
PA
16601 * linux-x86-low.c (compat_siginfo_from_siginfo)
16602 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16603 si_code is < 0. Check for si_code == SI_TIMER before checking for
16604 si_code < 0.
16605
fa1bd1e4
JB
166062010-09-13 Joel Brobecker <brobecker@adacore.com>
16607
16608 * lynx-i386-low.c: New file.
16609 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16610
47fac8f8
JB
166112010-09-13 Joel Brobecker <brobecker@adacore.com>
16612
16613 * lynx-low.c (ptrace_request_to_str): Remove handling for
16614 request values that have been removed in LynxOS 5.x.
16615
1adfc54d
JB
166162010-09-13 Joel Brobecker <brobecker@adacore.com>
16617
16618 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16619 <ptrace.h>
16620
c2a66c29
NS
166212010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16622
16623 * configure.ac: Add --enable-inprocess-agent option.
16624 * configure: Rebuilt.
16625
32fcada3
YQ
166262010-09-06 Yao Qi <yao@codesourcery.com>
16627
16628 * linux-low.c (linux_kill): Remove unused variable.
16629 (linux_stabilize_threads): Likewise.
16630 * server.c (start_inferior): Likewise.
16631 (queue_stop_reply_callback): Likewise.
16632 * tracepoint.c (do_action_at_tracepoint): Likewise.
16633
0cccb683
YQ
166342010-09-06 Yao Qi <yao@codesourcery.com>
16635
16636 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16637 on return.
16638
423ec54c
JK
166392010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16640
16641 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16642
12ac6819
PA
166432010-09-06 Pedro Alves <pedro@codesourcery.com>
16644
16645 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16646 "$(IPA_DEPFILES)".
16647
8ed54b31
JB
166482010-09-01 Joel Brobecker <brobecker@adacore.com>
16649
16650 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16651 gdbserver/lynx-ppc-low.c: New files.
16652 * Makefile.in (lynx_low_h): New variable.
16653 (lynx-low.o, lynx-ppc-low.o): New rules.
16654 * configure.ac: On LynxOS, link with -lnetinet.
16655 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16656 * configure: regenerate.
16657
bb0116a4
JB
166582010-09-01 Joel Brobecker <brobecker@adacore.com>
16659
16660 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16661 * configure.ac: Add check for vasprintf and vsnprintf.
16662 * configure, config.in: Regenerate.
16663 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16664
a778ab81 166652010-09-01 Joel Brobecker <brobecker@adacore.com>
16666
16667 * gdbreplay.c: Move include of alloca.h up, next to include of
16668 malloc.h.
16669 * server.h: Add include of malloc.h.
16670 * mem-break.c: Remove include of malloc.h.
16671 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16672
8b034a19 166732010-09-01 Joel Brobecker <brobecker@adacore.com>
16674
16675 * Makefile.in (memmem.o): Build with -Wno-error.
16676
166772010-09-01 Joel Brobecker <brobecker@adacore.com>
16678
16679 * utils.c (xsnprintf): Make non-static.
16680 * server.h: Add xsnprintf declaration.
16681 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16682 replace calls to snprintf by calls to xsnprintf throughout.
16683
166842010-09-01 Joel Brobecker <brobecker@adacore.com>
16685
16686 * configure.ac: Add configure check for alloca.
16687 * configure, config.in: Regenerate.
16688 * server.h: Include alloca.h if it exists.
16689 * gdbreplay.c: Include alloca.h if it exists.
16690
1a981360
PA
166912010-08-28 Pedro Alves <pedro@codesourcery.com>
16692
16693 * linux-low.c (__SIGRTMIN): Define if not already defined.
16694 (linux_create_inferior): Check for __ANDROID__ rather than
16695 __SIGRTMIN.
16696 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16697 are already deferred.
16698 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16699 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16700 stopped and already has a pending signal to report.
16701 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16702 a pending signal to report or is moving out of a jump pad.
16703 (linux_init_signals): Check for __ANDROID__ rather than
16704 __SIGRTMIN.
16705
b4d51a55
PA
167062010-08-28 Pedro Alves <pedro@codesourcery.com>
16707
16708 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16709 debug_threads check. Avoid a linear search when not doing debug
16710 output.
16711
ec48365d
PA
167122010-08-27 Pedro Alves <pedro@codesourcery.com>
16713
16714 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16715 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16716 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16717 (process_event): Change local fd's type to gdb_fildes_t.
16718 (create_file_handler): Adjust prototype.
16719 (delete_file_handler): Adjust prototype.
16720 (handle_file_event): Adjust prototype. Use pfildes.
16721 (create_file_event): Adjsut prototype.
16722 * remote-utils.c (remote_desc, listen_desc): Change type to
16723 gdb_fildes_t.
16724 * server.h: New gdb_fildes_t typedef.
16725 [USE_WIN32API]: Include winsock2.h.
16726 (delete_file_handler, add_file_handler): Adjust prototypes.
16727 (pfildes): Declare.
16728 * utils.c (pfildes): New.
16729
854d88f0
PA
167302010-08-27 Pedro Alves <pedro@codesourcery.com>
16731
16732 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16733 * configure: Regenerate.
16734
0146f85b
PA
167352010-08-27 Pedro Alves <pedro@codesourcery.com>
16736
16737 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16738 (linux_done_accessing_memory): ... this.
16739 (linux_target_ops): Adjust.
16740 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16741 * nto-low.c (nto_target_ops): Adjust comment.
16742 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16743 * spu-low.c (spu_target_ops): Adjust comment.
16744 * target.h (target_ops): Rename unprepare_to_access_memory field
16745 to done_accessing_memory.
16746 (unprepare_to_access_memory): Rename to ...
16747 (done_accessing_memory): ... this.
16748
90d74c30
PA
167492010-08-26 Pedro Alves <pedro@codesourcery.com>
16750
16751 * linux-low.c (linux_prepare_to_access_memory): New.
16752 (linux_unprepare_to_access_memory): New.
16753 (linux_target_ops): Install them.
16754 * server.c (read_memory): Rename to ...
16755 (gdb_read_memory): ... this. Use
16756 prepare_to_access_memory/prepare_to_access_memory.
16757 (write_memory): Rename to ...
16758 (gdb_write_memory): ... this. Use
16759 prepare_to_access_memory/prepare_to_access_memory.
16760 (handle_search_memory_1): Adjust.
16761 (process_serial_event): Adjust.
16762 * target.h (struct target_ops): New fields
16763 prepare_to_access_memory and unprepare_to_access_memory.
16764 (prepare_to_access_memory, unprepare_to_access_memory): New.
16765 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16766 prepare_to_access_memory/prepare_to_access_memory.
16767 * nto-low.c (nto_target_ops): Adjust.
16768 * spu-low.c (spu_target_ops): Adjust.
16769 * win32-low.c (win32_target_ops): Adjust.
16770
fd467969
PA
167712010-08-26 Pedro Alves <pedro@codesourcery.com>
16772
16773 * Makefile.in (WARN_CFLAGS): Get it from configure.
16774 (WERROR_CFLAGS): New.
16775 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16776 * configure.ac: Introduce --enable-werror, which adds -Werror to
16777 the compiler command line. Enabled by default. Disable with
16778 --disable-werror. Add -Wdeclaration-after-statement
16779 Wpointer-arith and -Wformat-nonliteral to warning flags.
16780 * configure: Regenerate.
16781
331e2f5f
PA
167822010-08-26 Pedro Alves <pedro@codesourcery.com>
16783
16784 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16785
e581f2b4
PA
167862010-08-26 Pedro Alves <pedro@codesourcery.com>
16787
16788 * gdbreplay.c (remote_error): New.
16789 (gdbchar): New.
16790 (expect): Use gdbchar. Check for error reading from GDB.
16791 Clarify sync error output.
16792 (play): Check for errors writing to GDB.
16793 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16794 * remote-utils.c (getpkt): Check for errors writing to the remote
16795 descriptor.
16796
3c11dd79
PA
167972010-08-25 Pedro Alves <pedro@codesourcery.com>
16798
16799 * linux-low.c (linux_wait_1): Move non-debugging code out of
16800 `debug_threads' control.
16801
d20a8ad9
PA
168022010-08-25 Pedro Alves <pedro@codesourcery.com>
16803
16804 * linux-low.c (linux_wait_1): Don't set last_status here.
16805 * server.c (push_event, queue_stop_reply_callback): Assert we're
16806 not pushing a TARGET_WAITKIND_IGNORE event.
16807 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16808 (myresume, handle_target_event): Set the thread's last_resume_kind
16809 and last_status from the target returned status.
16810
964e4306
PA
168112010-08-25 Pedro Alves <pedro@codesourcery.com>
16812
16813 PR threads/10729
16814
16815 * linux-x86-low.c (update_debug_registers_callback): New.
16816 (i386_dr_low_set_addr): Use it.
16817 (i386_dr_low_get_addr): New.
16818 (i386_dr_low_set_control): Use update_debug_registers_callback.
16819 (i386_dr_low_get_control): New.
16820 (i386_dr_low_get_status): Adjust.
16821 * linux-low.c (linux_stop_lwp): New.
16822 * linux-low.h (linux_stop_lwp): Declare.
16823
16824 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16825 argument instead of a i386_debug_reg_state.
16826 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16827 a i386_debug_reg_state.
16828 (i386_insert_aligned_watchpoint): Adjust.
16829 (i386_remove_aligned_watchpoint): Adjust.
16830 (i386_low_stopped_data_address): Read the debug registers from the
16831 inferior instead of from the mirrors.
16832 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16833 (i386_dr_low_get_addr): Declare.
16834 (i386_dr_low_get_control): Declare.
16835 (i386_dr_low_get_status): Change prototype.
16836
16837 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16838 (i386_dr_low_get_addr): New.
16839 (i386_dr_low_get_control): New.
16840 (i386_dr_low_get_status): Adjust prototype. Return
16841 dr_status_mirror.
16842 (i386_initial_stuff): Clear dr_status_mirror and
16843 dr_control_mirror.
16844 (i386_get_thread_context): Adjust.
16845 (i386_set_thread_context): Adjust.
16846 (i386_thread_added): Adjust.
16847
5f21a75b
PA
168482010-08-24 Pedro Alves <pedro@codesourcery.com>
16849
16850 * linux-low.h (linux_thread_area): Delete declaration.
16851
3e4c1235
TS
168522010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16853
16854 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16855 after its termination.
16856
1971b033
PA
168572010-08-09 Pedro Alves <pedro@codesourcery.com>
16858
16859 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16860 (gdb_wants_all_stopped): Delete.
16861 (linux_wait_1): Don't call them.
16862 * server.c (handle_v_cont): Tag all threads as want-stopped.
16863 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16864 stopped as "client-wants-stopped".
16865
310444ac
PA
168662010-07-31 Pedro Alves <pedro@codesourcery.com>
16867
16868 * Makefile.in (signals_h): New.
16869 (server_h): Depend on it.
16870 (server.o): Don't depend on $(signals_def).
16871 (signals.o): Depend on $(signals_def).
16872
a19cae16
JK
168732010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16874
16875 * Makefile.in (signals_def): New.
16876 (server_h): Append include/gdb/signals.h and signals_def.
16877 (server.o): Append signals_def.
16878
30d50328
JK
168792010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16880
16881 * server.c (handle_target_event): Use target_signal_to_host for
16882 resume_info.sig initialization.
16883 * target.h (struct thread_resume) <sig>: New comment.
16884
5c3216e2
OS
168852010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16886
c6f46ca0
OS
16887 * server.c (handle_query): strcpy() the returned string from paddress()
16888 instead of sprintf().
5c3216e2
OS
16889 * utils.c (paddress): Return phex_nz().
16890
6bd31874
JB
168912010-07-07 Joel Brobecker <brobecker@adacore.com>
16892
16893 * server.c (handle_v_cont): Call mourn_inferior if process
16894 just exited.
16895 (myresume): Likewise.
16896
0fb4aa4b
PA
168972010-07-01 Pedro Alves <pedro@codesourcery.com>
16898
16899 Static tracepoints, and integration with UST.
16900
16901 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16902 * mem-break.c (uninsert_all_breakpoints)
16903 (reinsert_all_breakpoints): New.
16904 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16905 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16906 (gdb_agent_ust_loaded, helper_thread_id)
16907 (gdb_agent_helper_thread_id): New macros.
16908 (struct ipa_sym_addresses): Add addr_ust_loaded,
16909 addr_helper_thread_id, addr_cmd_buf.
16910 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16911 (in_process_agent_loaded_ust): New.
16912 (write_e_ust_not_loaded): New.
16913 (maybe_write_ipa_ust_not_loaded): New.
16914 (struct collect_static_trace_data_action): New.
16915 (enum tracepoint_type) <static_tracepoint>: New.
16916 (struct tracepoint) <handle>: Mention static tracepoints.
16917 (struct static_tracepoint_ctx): New.
16918 (CMD_BUF_SIZE): New.
16919 (add_tracepoint_action): Handle static tracepoint actions.
16920 (unprobe_marker_at): New.
16921 (clear_installed_tracepoints): Handle static tracepoints.
16922 (cmd_qtdp): Handle static tracepoints.
16923 (probe_marker_at): New.
16924 (cmd_qtstart): Handle static tracepoints.
16925 (response_tracepoint): Handle static tracepoints.
16926 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16927 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16928 (get_context_regcache): Handle static tracepoints.
16929 (do_action_at_tracepoint): Handle static tracepoint actions.
16930 (traceframe_find_block_type): Handle static trace data blocks.
16931 (traceframe_read_sdata): New.
16932 (download_tracepoints): Download static tracepoint actions.
16933 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16934 (GDB_PROBE_NAME): New.
16935 (ust_ops): New.
16936 (GET_UST_SYM): New.
16937 (USTF): New.
16938 (dlsym_ust): New.
16939 (ust_marker_to_static_tracepoint): New.
16940 (gdb_probe): New.
16941 (collect_ust_data_at_tracepoint): New.
16942 (gdb_ust_probe): New.
16943 (UNIX_PATH_MAX, SOCK_DIR): New.
16944 (gdb_ust_connect_sync_socket): New.
16945 (resume_thread, stop_thread): New.
16946 (run_inferior_command): New.
16947 (init_named_socket): New.
16948 (gdb_ust_socket_init): New.
16949 (cstr_to_hexstr): New.
16950 (next_st): New.
16951 (first_marker, next_marker): New.
16952 (response_ust_marker): New.
16953 (cmd_qtfstm, cmd_qtsstm): New.
16954 (unprobe_marker_at, probe_marker_at): New.
16955 (cmd_qtstmat, gdb_ust_thread): New.
16956 (gdb_ust_init): New.
16957 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16958 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16959 (ST_REGENTRY): New.
16960 (x86_64_st_collect_regmap): New.
16961 (X86_64_NUM_ST_COLLECT_GREGS): New.
16962 (AMD64_RIP_REGNUM): New.
16963 (supply_static_tracepoint_registers): New.
16964 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16965 (ST_REGENTRY): New.
16966 (i386_st_collect_regmap): New.
16967 (i386_NUM_ST_COLLECT_GREGS): New.
16968 (supply_static_tracepoint_registers): New.
16969 * server.c (handle_query): Handle qXfer:statictrace:read.
16970 <qSupported>: Report support for StaticTracepoints, and
16971 qXfer:statictrace:read features.
16972 * server.h (traceframe_read_sdata)
16973 (supply_static_tracepoint_registers): Declare.
16974 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16975 (unpack_varlen_hex): Include in IPA build.
16976 * Makefile.in (ustlibs, ustinc): New.
16977 (IPA_OBJS): Add remote-utils-ipa.o.
16978 ($(IPA_LIB)): Link -ldl and -lpthread.
16979 (UST_CFLAGS): New.
16980 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16981 * config.in, configure: Regenerate.
16982
9e4344e5
PA
169832010-06-20 Ian Lance Taylor <iant@google.com>
16984 Pedro Alves <pedro@codesourcery.com>
16985
16986 * linux-x86-low.c (always_true): Delete.
16987 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16988 trying to fool the compiler with always_true.
16989
c6beb2cb
PA
169902010-06-20 Pedro Alves <pedro@codesourcery.com>
16991
16992 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16993 conditions in gdbserver.
16994
d2ed6730
UW
169952010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16996
16997 * spu-low.c (spu_read_memory): Wrap around local store limit.
16998 (spu_write_memory): Likewise.
16999
4e29fb54
PA
170002010-06-15 Pedro Alves <pedro@codesourcery.com>
17001
17002 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17003 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17004 LONGEST uses.
17005 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17006 uses.
17007 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17008 uses with LONGEST uses.
17009
6a271cae
PA
170102010-06-14 Stan Shebs <stan@codesourcery.com>
17011 Pedro Alves <pedro@codesourcery.com>
17012
17013 Bytecode compiler.
17014
17015 * linux-x86-low.c: Include limits.h.
17016 (add_insns): New.
17017 (always_true): New.
17018 (EMIT_ASM): New.
17019 (EMIT_ASM32): New.
17020 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17021 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17022 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17023 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17024 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17025 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17026 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17027 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17028 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17029 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17030 (amd64_emit_void_call_2): New.
17031 (amd64_emit_ops): New.
17032 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17033 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17034 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17035 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17036 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17037 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17038 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17039 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17040 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17041 (i386_emit_stack_adjust, i386_emit_int_call_1)
17042 (i386_emit_void_call_2): New.
17043 (i386_emit_ops): New.
17044 (x86_emit_ops): New.
17045 (the_low_target): Install x86_emit_ops.
17046 * server.h (struct emit_ops): New.
17047 (get_raw_reg_func_addr): Declare.
17048 (current_insn_ptr, emit_error): Declare.
17049 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17050 (set_trace_state_variable_value): New defines.
17051 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17052 addr_get_trace_state_variable_value and
17053 addr_set_trace_state_variable_value.
17054 (symbol_list): New fields for get_raw_reg,
17055 get_trace_state_variable_value and set_trace_state_variable_value.
17056 (condfn): New typedef.
17057 (struct tracepoint): New field `compiled_cond'.
17058 (do_action_at_tracepoint): Clear compiled_cond.
17059 (get_trace_state_variable_value, set_trace_state_variable_value):
17060 Export in the IPA.
17061 (condition_true_at_tracepoint): If there's a compiled condition,
17062 run that.
17063 (current_insn_ptr, emit_error): New globals.
17064 (struct bytecode_address): New.
17065 (get_raw_reg_func_addr): New.
17066 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17067 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17068 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17069 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17070 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17071 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17072 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17073 (compile_tracepoint_condition, compile_bytecodes): New.
17074 * target.h (emit_ops): Forward declare.
17075 (struct target_ops): New field emit_ops.
17076 (target_emit_ops): New.
17077 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17078 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17079 * linux-low.c (linux_emit_ops): New.
17080 (linux_target_ops): Install it.
17081 * linux-low.h (struct linux_target_ops): New field emit_ops.
17082
92b72907
UW
170832010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17084
17085 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17086 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17087
fa593d66
PA
170882010-06-01 Pedro Alves <pedro@codesourcery.com>
17089 Stan Shebs <stan@codesourcery.com>
17090
17091 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17092 (all): Depend on $(extra_libraries).
17093 (install-only): Install the IPA.
17094 (IPA_OBJS, IPA_LIB): New.
17095 (clean): Remove the IPA lib.
17096 (IPAGENT_CFLAGS): New.
17097 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17098 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17099 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17100 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17101 * configure.ac: Check for atomic builtins support in the compiler.
17102 (IPA_DEPFILES, extra_libraries): Define.
17103 * configure.srv (ipa_obj): Add description.
17104 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17105 (i[34567]86-*-linux*): Set ipa_obj.
17106 (x86_64-*-linux*): Set ipa_obj.
17107 * linux-low.c (stabilizing_threads): New.
17108 (supports_fast_tracepoints): New.
17109 (linux_detach): Stabilize threads before detaching.
17110 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17111 the lwp is either not stabilizing, or is moving out of a jump pad.
17112 (linux_fast_tracepoint_collecting): New.
17113 (maybe_move_out_of_jump_pad): New.
17114 (enqueue_one_deferred_signal): New.
17115 (dequeue_one_deferred_signal): New.
17116 (linux_wait_for_event_1): If moving out of a jump pad, defer
17117 pending signals to later.
17118 (linux_stabilize_threads): New.
17119 (linux_wait_1): Check if threads need moving out of jump pads, and
17120 do it if so.
17121 (stuck_in_jump_pad_callback): New.
17122 (move_out_of_jump_pad_callback): New.
17123 (lwp_running): New.
17124 (linux_resume_one_lwp): Handle moving out of jump pads.
17125 (linux_set_resume_request): Dequeue deferred signals.
17126 (need_step_over_p): Also step over fast tracepoint jumps.
17127 (start_step_over): Also uninsert fast tracepoint jumps.
17128 (finish_step_over): Also reinsert fast tracepoint jumps.
17129 (linux_install_fast_tracepoint_jump): New.
17130 (linux_target_ops): Install linux_stabilize_threads and
17131 linux_install_fast_tracepoint_jump_pad.
17132 * linux-low.h (linux_target_ops) <get_thread_area,
17133 install_fast_tracepoint_jump_pad>: New fields.
17134 (struct lwp_info) <collecting_fast_tracepoint,
17135 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17136 (linux_get_thread_area): Declare.
17137 * linux-x86-low.c (jump_insn): New.
17138 (x86_get_thread_area): New.
17139 (append_insns): New.
17140 (push_opcode): New.
17141 (amd64_install_fast_tracepoint_jump_pad): New.
17142 (i386_install_fast_tracepoint_jump_pad): New.
17143 (x86_install_fast_tracepoint_jump_pad): New.
17144 (the_low_target): Install x86_get_thread_area and
17145 x86_install_fast_tracepoint_jump_pad.
17146 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17147 (struct fast_tracepoint_jump): New.
17148 (fast_tracepoint_jump_insn): New.
17149 (fast_tracepoint_jump_shadow): New.
17150 (find_fast_tracepoint_jump_at): New.
17151 (fast_tracepoint_jump_here): New.
17152 (delete_fast_tracepoint_jump): New.
17153 (set_fast_tracepoint_jump): New.
17154 (uninsert_fast_tracepoint_jumps_at): New.
17155 (reinsert_fast_tracepoint_jumps_at): New.
17156 (set_breakpoint_at): Use write_inferior_memory.
17157 (uninsert_raw_breakpoint): Use write_inferior_memory.
17158 (check_mem_read): Mask out fast tracepoint jumps.
17159 (check_mem_write): Mask out fast tracepoint jumps.
17160 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17161 (set_fast_tracepoint_jump): Declare.
17162 (delete_fast_tracepoint_jump)
17163 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17164 (reinsert_fast_tracepoint_jumps_at): Declare.
17165 * regcache.c: Don't compile many functions when building the
17166 in-process agent library.
17167 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17168 the register buffer in the heap.
17169 (free_register_cache): If the register buffer isn't owned by the
17170 regcache, don't free it.
17171 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17172 pre-existing register caches.
17173 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17174 type.
17175 (convert_ascii_to_int): : Constify `from' parameter type.
17176 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17177 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17178 the needed buffer in-place.
17179 (relocate_instruction): New.
17180 * server.c (handle_query) <qSymbols>: If the target supports
17181 tracepoints, give it a chance of looking up symbols. Report
17182 support for fast tracepoints.
17183 (handle_status): Stabilize threads.
17184 (process_serial_event): Adjust.
17185 * server.h (struct fast_tracepoint_jump): Forward declare.
17186 (struct process_info) <fast_tracepoint_jumps>: New field.
17187 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17188 (decode_X_packet, decode_M_packet): Adjust.
17189 (relocate_instruction): Declare.
17190 (in_process_agent_loaded): Declare.
17191 (tracepoint_look_up_symbols): Declare.
17192 (struct fast_tpoint_collect_status): Declare.
17193 (fast_tracepoint_collecting): Declare.
17194 (force_unlock_trace_buffer): Declare.
17195 (handle_tracepoint_bkpts): Declare.
17196 (initialize_low_tracepoint)
17197 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17198 * target.h (struct target_ops) <stabilize_threads,
17199 install_fast_tracepoint_jump_pad>: New fields.
17200 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17201 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17202 [HAVE_STDINT_H]: Include stdint.h.
17203 (trace_debug_1): Rename to ...
17204 (trace_vdebug): ... this.
17205 (trace_debug): Rename to ...
17206 (trace_debug_1): ... this. Add `level' parameter.
17207 (trace_debug): New.
17208 (ATTR_USED, ATTR_NOINLINE): New.
17209 (IP_AGENT_EXPORT): New.
17210 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17211 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17212 (about_to_request_buffer_space, trace_buffer_is_full)
17213 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17214 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17215 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17216 (traceframe_write_count, traceframes_created)
17217 (trace_state_variables)
17218 New renaming defines.
17219 (struct ipa_sym_addresses): New.
17220 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17221 (symbol_list): New.
17222 (ipa_sym_addrs): New.
17223 (all_tracepoint_symbols_looked_up): New.
17224 (in_process_agent_loaded): New.
17225 (write_e_ipa_not_loaded): New.
17226 (maybe_write_ipa_not_loaded): New.
17227 (tracepoint_look_up_symbols): New.
17228 (debug_threads) [IN_PROCESS_AGENT]: New.
17229 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17230 (UNKNOWN_SIDE_EFFECTS): New.
17231 (stop_tracing): New.
17232 (flush_trace_buffer): New.
17233 (stop_tracing_bkpt): New.
17234 (flush_trace_buffer_bkpt): New.
17235 (read_inferior_integer): New.
17236 (read_inferior_uinteger): New.
17237 (read_inferior_data_pointer): New.
17238 (write_inferior_data_pointer): New.
17239 (write_inferior_integer): New.
17240 (write_inferior_uinteger): New.
17241 (struct collect_static_trace_data_action): Delete.
17242 (enum tracepoint_type): New.
17243 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17244 <actions_str, step_actions, step_actions_str>: Only include in
17245 GDBserver.
fa593d66
PA
17246 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17247 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17248 (tracepoints): Use IP_AGENT_EXPORT.
17249 (last_tracepoint): Don't include in the IPA.
17250 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17251 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17252 (alloced_trace_state_variables): New.
17253 (trace_state_variables): Use IP_AGENT_EXPORT.
17254 (traceframe_t): Delete unused variable.
17255 (circular_trace_buffer): Don't include in the IPA.
17256 (trace_buffer_start): Delete.
17257 (struct trace_buffer_control): New.
17258 (trace_buffer_free): Delete.
17259 (struct ipa_trace_buffer_control): New.
17260 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17261 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17262 New.
17263 (trace_buffer_ctrl): New.
17264 (TRACE_BUFFER_CTRL_CURR): New.
17265 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17266 Reimplement as macros.
17267 (trace_buffer_wrap): Delete.
17268 (traceframe_write_count, traceframe_read_count)
17269 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17270 (struct tracepoint_hit_ctx) <type>: New field.
17271 (struct fast_tracepoint_ctx): New.
17272 (memory_barrier): New.
17273 (cmpxchg): New.
17274 (record_tracepoint_error): Update atomically in the IPA.
17275 (clear_inferior_trace_buffer): New.
17276 (about_to_request_buffer_space): New.
17277 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17278 updating the same buffer.
17279 (add_tracepoint): Default the tracepoint's type to trap
17280 tracepoint, and orig_size to -1.
17281 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17282 internal variables.
17283 (create_trace_state_variable): New parameter `gdb'. Handle it.
17284 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17285 (cmd_qtdp): Handle fast tracepoints.
17286 (cmd_qtdv): Adjust.
17287 (max_jump_pad_size): New.
17288 (gdb_jump_pad_head): New.
17289 (get_jump_space_head): New.
17290 (claim_jump_space): New.
17291 (sort_tracepoints): New.
17292 (MAX_JUMP_SIZE): New.
17293 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17294 IPA.
17295 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17296 support. Upload fast traceframes, and delete internal IPA
17297 breakpoints.
17298 (stop_tracing_handler): New.
17299 (flush_trace_buffer_handler): New.
17300 (cmd_qtstop): Upload fast tracepoints.
17301 (response_tracepoint): Handle fast tracepoints.
17302 (tracepoint_finished_step): Upload fast traceframes. Set the
17303 tracepoint hit context's tracepoint type.
17304 (handle_tracepoint_bkpts): New.
17305 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17306 type. Add comment about fast tracepoints.
17307 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17308 non-existing action_str field.
17309 (get_context_regcache): Handle fast tracepoints.
17310 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17311 to the regcache.
17312 (fast_tracepoint_from_jump_pad_address): New.
17313 (fast_tracepoint_from_ipa_tpoint_address): New.
17314 (collecting_t): New.
17315 (force_unlock_trace_buffer): New.
17316 (fast_tracepoint_collecting): New.
17317 (collecting): New.
17318 (gdb_collect): New.
17319 (write_inferior_data_ptr): New.
17320 (target_tp_heap): New.
17321 (target_malloc): New.
17322 (download_agent_expr): New.
17323 (UALIGN): New.
17324 (download_tracepoints): New.
17325 (download_trace_state_variables): New.
17326 (upload_fast_traceframes): New.
17327 (IPA_FIRST_TRACEFRAME): New.
17328 (IPA_NEXT_TRACEFRAME_1): New.
17329 (IPA_NEXT_TRACEFRAME): New.
17330 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17331 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17332 (gdb_jump_pad_buffer_end): New.
17333 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17334 (initialize_tracepoint): Adjust.
17335 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17336 buffer. Initialize the low module.
17337 * utils.c (PREFIX, TOOLNAME): New.
17338 (malloc_failure): Use PREFIX.
17339 (error): In the IPA, an error causes an exit.
17340 (fatal, warning): Use PREFIX.
17341 (internal_error): Use TOOLNAME.
17342 (NUMCELLS): Increase to 10.
17343 * configure, config.in: Regenerate.
17344
d149dd1d
PA
173452010-06-01 Pedro Alves <pedro@codesourcery.com>
17346
17347 * server.c (handle_query) <qSupported>: Do two passes over the
17348 qSupported string to avoid nesting strtok.
17349
f6528abd
JK
173502010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17351
17352 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17353 (CDEPS): New.
17354 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17355 -Wl,--dynamic-list.
17356 * configure: Regenerate.
17357 * proc-service.list: New.
17358
ca2a87a0
JK
173592010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17360
17361 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17362 New comment.
17363
363a6e9f
OS
173642010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17365
17366 * gdbreplay.c (remote_open): Check error return from socket() call by
17367 its equality to -1 not by it being negative.
17368 * remote-utils.c (remote_open): Likewise.
17369
d23b6cb1
PA
173702010-05-23 Pedro Alves <pedro@codesourcery.com>
17371
17372 * config.h: Regenerate.
17373
28d3cf85
MK
173742010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17375
17376 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17377 doesn't provide PTRACE_GET_THREAD_AREA.
17378
fea36a59
MK
173792010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17380
17381 * linux-m68k-low.c: Include <asm/ptrace.h>
17382 (ps_get_thread_area): Implement.
17383
24b066ba
DE
173842010-05-03 Doug Evans <dje@google.com>
17385
17386 * event-loop.c (struct callback_event): New struct.
17387 (callback_list): New global.
17388 (append_callback_event, delete_callback_event): New functions.
17389 (process_callback): New function.
17390 (start_event_loop): Call it.
17391 * remote-utils.c (NOT_SCHEDULED): Define.
17392 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17393 moved out of readchar.
17394 (readchar): Rewrite. Call reschedule before returning.
17395 (reset_readchar): New function.
17396 (remote_close): Call it.
17397 (process_remaining, reschedule): New functions.
17398 * server.h (callback_handler_func): New typedef.
17399 (append_callback_event, delete_callback_event): Declare.
17400
9836d6ea
PA
174012010-05-03 Pedro Alves <pedro@codesourcery.com>
17402
17403 * proc-service.c (ps_pglobal_lookup): Use
17404 thread_db_look_up_one_symbol.
17405 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17406 parameter. Use it instead of all_symbols_looked_up.
17407 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17408 field.
17409 (all_symbols_looked_up): Don't declare.
17410 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17411 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17412 field.
17413 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17414 Set all_symbols_looked_up here.
17415 (thread_db_look_up_one_symbol): New.
17416 (thread_db_get_tls_address): Adjust.
17417 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17418 thread_db object on the heap, and tentatively set it in the
17419 process structure.
17420 (thread_db_init): Don't set all_symbols_looked_up here.
17421 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17422
7984d532
PA
174232010-05-03 Pedro Alves <pedro@codesourcery.com>
17424
17425 * linux-low.c (linux_kill, linux_detach): Adjust.
17426 (status_pending_p_callback): Remove redundant statement. Check
17427 for !TARGET_WAITIKIND_IGNORE, instead of
17428 TARGET_WAITKIND_STOPPED.
17429 (handle_tracepoints): Make sure LWP is locked. Adjust.
17430 (linux_wait_for_event_1): Adjust.
17431 (linux_cancel_breakpoints): New.
17432 (unsuspend_one_lwp): New.
17433 (unsuspend_all_lwps): New.
17434 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17435 (send_sigstop_callback): Change return type to int, add new
17436 `except' parameter and handle it.
17437 (suspend_and_send_sigstop_callback): New.
17438 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17439 pass them down. If SUSPEND, also increment the lwp's suspend
17440 count.
17441 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17442 (need_step_over_p): Don't consider suspended LWPs.
17443 (start_step_over): Adjust.
17444 (proceed_one_lwp): Change return type to int, add new `except'
17445 parameter and handle it.
17446 (unsuspend_and_proceed_one_lwp): New.
17447 (proceed_all_lwps): Use find_inferior instead of
17448 for_each_inferior.
17449 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17450 also decrement the suspend count of LWPs. Pass `except' down,
17451 instead of hacking its suspend count.
17452 (linux_pause_all): Add `freeze' parameter. Adjust.
17453 (linux_unpause_all): New.
17454 (linux_target_ops): Install linux_unpause_all.
17455 * server.c (handle_status): Adjust.
17456 * target.h (struct target_ops): New fields `unpause_all' and
17457 `cancel_breakpoints'. Add new parameter to `pause_all'.
17458 (pause_all): Add new `freeze' parameter.
17459 (unpause_all): New.
17460 (cancel_breakpoints): New.
17461 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17462 cancel breakpoints.
17463 (cmd_qtstart): Pause threads.
17464 (stop_tracing): Pause threads, and cancel breakpoints.
17465 * win32-low.c (win32_target_ops): Adjust.
17466
e471f25b
PA
174672010-05-03 Pedro Alves <pedro@codesourcery.com>
17468
17469 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17470 the inferior right away from here...
17471 (linux_wait_1): ... to here, and adjust to check the thread's
17472 last_resume_kind instead of the lwp's step or stop_expected flags.
17473
1915ef4f
PA
174742010-05-02 Pedro Alves <pedro@codesourcery.com>
17475
17476 * README: Use consistent `GDB' and `GDBserver' spellings.
17477
f9e39928
PA
174782010-05-02 Pedro Alves <pedro@codesourcery.com>
17479
17480 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17481 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17482 (linux_detach_one_lwp): Assume the lwp is stopped.
17483 (any_thread_of): Delete.
17484 (linux_detach): Stop all lwps here. Don't blindly delete all
17485 breakpoints.
17486 (delete_lwp_callback): New.
17487 (linux_mourn): Delete all lwps of the process that is gone.
17488 (linux_wait_1): Don't delete the last lwp of the process here.
17489 * mem-break.h (mark_breakpoints_out): Declare.
17490 * mem-break.c (mark_breakpoints_out): New.
17491 (free_all_breakpoints): Use it.
17492 * server.c (handle_target_event): If the process is gone, mark
17493 breakpoints out.
17494 * thread-db.c (struct thread_db) <create_bp>: New field.
17495 (thread_db_enable_reporting): Fix prototype. Store a thread event
17496 breakpoint reference in the thread_db struct.
17497 (thread_db_load_search): Clear the thread_db object.
17498 (try_thread_db_load_1): Ditto.
17499 (switch_to_process): New.
17500 (disable_thread_event_reporting): Use it.
17501 (remove_thread_event_breakpoints): New.
17502 (thread_db_detach, thread_db_mourn): Use it.
17503
1e7fc18c
PA
175042010-05-01 Pedro Alves <pedro@codesourcery.com>
17505
17506 * linux-low.c (linux_enable_event_reporting): New.
17507 (linux_wait_for_event_1, handle_extended_wait): Use it.
17508
02fc4de7
PA
175092010-04-30 Pedro Alves <pedro@codesourcery.com>
17510
17511 * linux-low.c (linux_kill_one_lwp, linux_kill)
17512 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17513 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17514 SIGSTOP even if the LWP is stopped.
17515 (send_sigstop_callback): New.
17516 (stop_all_lwps): Use send_sigstop_callback instead.
17517 (linux_resume_one_thread): Adjust.
17518 (proceed_one_lwp): Still proceed an LWP that the client has
17519 requested to stop, if we haven't reported it as stopped yet. Make
17520 sure that LWPs the client want stopped, have a pending SIGSTOP.
17521
bc3b5632
DE
175222010-04-26 Doug Evans <dje@google.com>
17523
ae1ada35
DE
17524 * server.c (handle_general_set): Make static.
17525
bc3b5632
DE
17526 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17527 Print received char after testing for error/eof instead of before.
17528 (input_interrupt): Tweak comment.
17529
65730243
DE
175302010-04-23 Doug Evans <dje@google.com>
17531
17532 * server.c (start_inferior): Print inferior argv if --debug.
17533
a8ae7dc0
AR
175342010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17535
17536 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17537 * nto-x86-low.c: Include server.h
17538
1c07cc19
PM
175392010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17540
17541 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17542 be consistent with other sources of this directory.
17543 (init_registers_amd64): Correct name of source file of this function
17544 in the comment.
17545
e0a61e09
PM
175462010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17547
17548 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17549 64-bit executables.
17550
54709339
PM
175512010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17552
17553 * win32-i386-low.c: Add 64-bit support.
17554 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17555 (init_registers_amd64): Declare.
17556 (mappings): Add 64-bit version of array.
17557 (init_windows_x86): New function.
17558 (the_low_target): Change init_arch field to init_windows_x86.
17559
e8f0053d
PM
175602010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17561
17562 * win32-low.c: Adapt to support also 64-bit architecture.
17563 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17564 (get_image_name): Use SIZE_T type for local variable `done'.
17565 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17566 (toolhelp_get_dll_name): Idem.
17567 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17568 Use uintptr_t typecast to avoid warning.
17569 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17570 (handle_exception): Use phex_nz to avoid warning.
17571 (win32_wait): Remove unused local variable `process'.
17572
c481e77e
PM
175732010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17574
17575 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17576 `amd64-avx.o'.
17577
12ea4b69
PM
175782010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17579
17580 * configure.ac: Use `ws2_32' library for srv_mingw.
17581 * configure: Regenerate.
17582 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17583 * remote-utils.c: Likewise.
17584
f6d1620c
L
175852010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17586
17587 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17588 if __x86_64__ is defined.
17589
8e642873
PM
175902010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17591
17592 * configure: Regenerate.
17593
711e434b
PM
175942010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17595
17596 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17597 * target.h (target_ops): New get_tib_address field.
17598 * win32-low.h (win32_thread_info): Add thread_local_base field.
17599 * win32-low.c (child_add_thread): Add tlb argument.
17600 Set thread_local_base field to TLB.
17601 (get_child_debug_event): Adapt to child_add_thread change.
17602 (win32_get_tib_address): New function.
17603 (win32_target_ops): Set get_tib_address field to
17604 win32_get_tib_address.
17605 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17606
505106cd
PA
176072010-04-12 Pedro Alves <pedro@codesourcery.com>
17608
505106cd
PA
17609 * linux-low.c (linux_mourn): Also remove the process.
17610 * server.c (handle_target_event): Don't remove the process here.
17611 * nto-low.c (nto_mourn): New.
17612 (nto_target_ops): Install it.
17613 * spu-low.c (spu_mourn): New.
17614 (spu_target_ops): Install it.
17615 * win32-low.c (win32_mourn): New.
17616 (win32_target_ops): Install it.
17617
e8470a06
PA
176182010-04-12 Pedro Alves <pedro@codesourcery.com>
17619
17620 * server.h (buffer_xml_printf): Remove redundant `;'.
17621
45ba0d02
PA
176222010-04-12 Pedro Alves <pedro@codesourcery.com>
17623
17624 * regcache.c (set_register_cache): Invalidate regcaches before
17625 changing the register cache layout.
17626 (regcache_invalidate_one): Allow a NULL regcache.
17627 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17628 regcaches before changing the register cache layout or the target
17629 regsets.
17630
59e04013
L
176312010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17632
17633 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17634 variable warning on Linux/x86-64.
17635
8336d594
PA
176362010-04-11 Pedro Alves <pedro@codesourcery.com>
17637
17638 GDBserver disconnected tracing support.
17639
17640 * linux-low.c (linux_remove_process): Delete.
17641 (add_lwp): Don't set last_resume_kind here.
17642 (linux_kill): Use `mourn'.
17643 (linux_detach): Use `thread_db_detach', and `mourn'.
17644 (linux_mourn): New.
17645 (linux_attach_lwp_1): Adjust comment.
17646 (linux_attach): last_resume_kind moved the thread_info; adjust.
17647 (status_pending_p_callback): Adjust.
17648 (linux_wait_for_event_1): Adjust.
17649 (count_events_callback, select_singlestep_lwp_callback)
17650 (select_event_lwp_callback, cancel_breakpoints_callback)
17651 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17652 (proceed_one_lwp): Adjust.
17653 (linux_async): Add debug output.
17654 (linux_thread_stopped): New.
17655 (linux_pause_all): New.
17656 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17657 linux_pause_all.
17658 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17659 (thread_db_free): Delete declaration.
17660 (thread_db_detach, thread_db_mourn): Declare.
17661 * thread-db.c (thread_db_init): Use thread_db_mourn.
17662 (thread_db_free): Delete, split in two.
17663 (disable_thread_event_reporting): New.
17664 (thread_db_detach): New.
17665 (thread_db_mourn): New.
17666
17667 * server.h (struct thread_info) <last_resume_kind>: New field.
17668 <attached>: Add comment.
17669 <gdb_detached>: New field.
17670 (handler_func): Change return type to int.
17671 (handle_serial_event, handle_target_event): Ditto.
17672 (gdb_connected): Declare.
17673 (tracing): Delete.
17674 (disconnected_tracing): Declare.
17675 (stop_tracing): Declare.
17676
17677 * server.c (handle_query) <qSupported>: Report support for
17678 disconnected tracing.
17679 (queue_stop_reply_callback): Account for running threads.
17680 (gdb_wants_thread_stopped): New.
17681 (gdb_wants_all_threads_stopped): New.
17682 (gdb_reattached_process): New.
17683 (handle_status): Clear the `gdb_detached' flag of all processes.
17684 In all-stop, stop all threads.
17685 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17686 (process_serial_event): If the remote connection breaks, or if an
17687 exit was forced with "monitor exit", force an event loop exit.
17688 Handle disconnected tracing on detach.
17689 (handle_serial_event): Adjust.
17690 (handle_target_event): If GDB isn't connected, forward events back
17691 to the inferior, unless the last process exited, in which case,
17692 exit gdbserver. Adjust interface.
17693
17694 * remote-utils.c (remote_open): Don't block in accept. Instead
17695 register an event loop source on the listen socket file
17696 descriptor. Refactor bits into ...
17697 (listen_desc): ... this new global.
17698 (gdb_connected): ... this new function.
17699 (enable_async_notification): ... this new function.
17700 (handle_accept_event): ... this new function.
17701 (remote_close): Clear remote_desc.
17702
17703 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17704
17705 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17706 New fields.
17707 (mourn_inferior): Define.
17708 (target_process_qsupported): Avoid the dangling else problem.
17709 (thread_stopped): Define.
17710 (pause_all): Define.
17711 (target_waitstatus_to_string): Declare.
17712 * target.c (target_waitstatus_to_string): New.
17713
17714 * tracepoint.c (tracing): Make extern.
17715 (disconnected_tracing): New.
17716 (stop_tracing): Make extern. Handle tracing stops due to GDB
17717 disconnecting.
17718 (cmd_qtdisconnected): New.
17719 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17720 (handle_tracepoint_general_set): Handle QTDisconnected.
17721
17722 * event-loop.c (event_handler_func): Change return type to int.
17723 (process_event): Bail out if the event handler wants the event
17724 loop to stop.
17725 (handle_file_event): Ditto.
17726 (start_event_loop): Bail out if the event handler wants the event
17727 loop to stop.
17728
17729 * nto-low.c (nto_target_ops): Adjust.
17730 * spu-low.c (spu_wait): Don't remove the process here.
17731 (spu_target_ops): Adjust.
17732 * win32-low.c (win32_wait): Don't remove the process here.
17733 (win32_target_ops): Adjust.
17734
5d267c4c
PA
177352010-04-11 Pedro Alves <pedro@codesourcery.com>
17736
17737 * regcache.c (realloc_register_cache): Invalidate inferior's
17738 regcache before recreating it.
17739
623ccd72
PA
177402010-04-09 Pedro Alves <pedro@codesourcery.com>
17741
17742 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17743
219f2f23
PA
177442010-04-09 Stan Shebs <stan@codesourcery.com>
17745 Pedro Alves <pedro@codesourcery.com>
17746
17747 * server.h (LONGEST): New.
17748 (struct thread_info) <while_stepping>: New field.
17749 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17750 Declare.
17751 (initialize_tracepoint, handle_tracepoint_general_set)
17752 (handle_tracepoint_query, tracepoint_finished_step)
17753 (tracepoint_was_hit, release_while_stepping_state_list):
17754 (current_traceframe): Declare.
17755 * server.c (handle_general_set): Handle tracepoint packets.
17756 (read_memory): New.
17757 (write_memory): New.
17758 (handle_search_memory_1): Use read_memory.
17759 (handle_query): Report support for conditional tracepoints, trace
17760 state variables, and tracepoint sources. Handle tracepoint
17761 queries.
17762 (main): Initialize the tracepoints module.
17763 (process_serial_event): Handle traceframe reads/writes.
17764
17765 * linux-low.c (handle_tracepoints): New.
17766 (linux_wait_1): Call it.
17767 (linux_resume_one_lwp): Handle while-stepping.
17768 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17769 (linux_target_ops): Install them.
17770 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17771 New field.
17772 * linux-x86-low.c (x86_supports_tracepoints): New.
17773 (the_low_target). Install it.
17774
17775 * mem-break.h (delete_breakpoint): Declare.
17776 * mem-break.c (delete_breakpoint): Make external.
17777
17778 * target.h (struct target_ops): Add `supports_tracepoints',
17779 `read_pc', and `write_pc' fields.
17780 (target_supports_tracepoints): Define.
17781 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17782 (phex_nz): New.
17783
17784 * regcache.h (struct regcache) <registers_owned>: New field.
17785 (init_register_cache, regcache_cpy): Declare.
17786 (regcache_read_pc, regcache_write_pc): Declare.
17787 (register_cache_size): Declare.
17788 (supply_regblock): Declare.
17789 * regcache.c (init_register_cache): New.
17790 (new_register_cache): Use it.
17791 (regcache_cpy): New.
17792 (register_cache_size): New.
17793 (supply_regblock): New.
17794 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17795
219f2f23
PA
17796 * tracepoint.c: New.
17797
17798 * Makefile.in (OBS): Add tracepoint.o.
17799 (tracepoint.o): New rule.
17800
3a13a53b
L
178012010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17802
17803 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17804 (i386-mmx.o): New.
17805 (i386-mmx.c): Likewise.
17806 (i386-mmx-linux.o): Likewise.
17807 (i386-mmx-linux.c): Likewise.
17808
17809 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17810 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17811 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17812 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17813
17814 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17815 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17816 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17817
1570b33e
L
178182010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17819
17820 * Makefile.in (clean): Updated.
17821 (i386-avx.o): New.
17822 (i386-avx.c): Likewise.
17823 (i386-avx-linux.o): Likewise.
17824 (i386-avx-linux.c): Likewise.
17825 (amd64-avx.o): Likewise.
17826 (amd64-avx.c): Likewise.
17827 (amd64-avx-linux.o): Likewise.
17828 (amd64-avx-linux.c): Likewise.
17829
17830 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17831 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17832 (srv_amd64_regobj): Add amd64-avx.o.
17833 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17834 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17835 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17836 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17837 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17838 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17839 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17840
17841 * i387-fp.c: Include "i386-xstate.h".
17842 (i387_xsave): New.
17843 (i387_cache_to_xsave): Likewise.
17844 (i387_xsave_to_cache): Likewise.
17845 (x86_xcr0): Likewise.
17846
17847 * i387-fp.h (i387_cache_to_xsave): Likewise.
17848 (i387_xsave_to_cache): Likewise.
17849 (x86_xcr0): Likewise.
17850
17851 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17852 * linux-crisv32-low.c (target_regsets): Likewise.
17853 * linux-m68k-low.c (target_regsets): Likewise.
17854 * linux-mips-low.c (target_regsets): Likewise.
17855 * linux-ppc-low.c (target_regsets): Likewise.
17856 * linux-s390-low.c (target_regsets): Likewise.
17857 * linux-sh-low.c (target_regsets): Likewise.
17858 * linux-sparc-low.c (target_regsets): Likewise.
17859 * linux-xtensa-low.c (target_regsets): Likewise.
17860
17861 * linux-low.c: Include <sys/uio.h>.
17862 (regsets_fetch_inferior_registers): Support nt_type.
17863 (regsets_store_inferior_registers): Likewise.
17864 (linux_process_qsupported): New.
17865 (linux_target_ops): Add linux_process_qsupported.
17866
17867 * linux-low.h (regset_info): Add nt_type.
17868 (linux_target_ops): Add process_qsupported.
17869
17870 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17871 and <sys/uio.h>.
17872 (init_registers_i386_avx_linux): New.
17873 (init_registers_amd64_avx_linux): Likewise.
17874 (xmltarget_i386_linux_no_xml): Likewise.
17875 (xmltarget_amd64_linux_no_xml): Likewise.
17876 (PTRACE_GETREGSET): Likewise.
17877 (PTRACE_SETREGSET): Likewise.
17878 (x86_fill_xstateregset): Likewise.
17879 (x86_store_xstateregset): Likewise.
17880 (use_xml): Likewise.
17881 (x86_linux_update_xmltarget): Likewise.
17882 (x86_linux_process_qsupported): Likewise.
17883 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17884 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17885 init_registers_i386_linux here. Call
17886 x86_linux_update_xmltarget.
17887 (the_low_target): Add x86_linux_process_qsupported.
17888
17889 * server.c (handle_query): Call target_process_qsupported.
17890
17891 * target.h (target_ops): Add process_qsupported.
17892 (target_process_qsupported): New.
17893
fc7238bb
PA
178942010-04-03 Pedro Alves <pedro@codesourcery.com>
17895
17896 * inferiors.c (add_thread): Set last_status kind to
17897 TARGET_WAITKIND_IGNORE.
17898 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17899 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17900 (linux_wait_1): Move `thread' local definition to block that uses
17901 it. Don't NULL initialize `event_child'.
17902 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17903 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17904 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17905
bdabb078
PA
179062010-04-01 Pedro Alves <pedro@codesourcery.com>
17907
17908 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17909 an extended waitstatus, or by a watchpoint.
17910 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17911 thread was stepping or has been stopped by a watchpoint.
17912
d3bbe7a0
PA
179132010-04-01 Pedro Alves <pedro@codesourcery.com>
17914
17915 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17916 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17917 of another, then delete the previous, and validate all
17918 breakpoints.
17919 (validate_inserted_breakpoint): New.
17920 (delete_disabled_breakpoints): New.
17921 (validate_breakpoints): New.
17922 (check_mem_read): Validate breakpoints before trusting their
17923 shadow. Delete disabled breakpoints.
17924 (check_mem_write): Validate breakpoints before trusting they
17925 should be inserted. Delete disabled breakpoints.
17926 * mem-break.h (validate_breakpoints):
17927 * server.c (handle_query): Validate breakpoints when we see a
17928 qSymbol query.
17929
8b07ae33
PA
179302010-04-01 Pedro Alves <pedro@codesourcery.com>
17931
17932 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17933 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17934 if we could tell there's a GDB breakpoint at stop_pc.
17935 (need_step_over_p): Don't do a step over if we find a GDB
17936 breakpoint at the resume PC.
17937
17938 * mem-break.c (struct raw_breakpoint): New.
17939 (enum bkpt_type): New type `gdb_breakpoint'.
17940 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17941 fields. New field `raw'.
17942 (find_raw_breakpoint_at): New.
17943 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17944 breakpoint instead.
17945 (set_breakpoint_at): Adjust.
17946 (delete_raw_breakpoint): New.
17947 (release_breakpoint): New.
17948 (delete_breakpoint): Rename to...
17949 (delete_breakpoint_1): ... this. Add proc parameter. Use
17950 release_breakpoint. Return ENOENT.
17951 (delete_breakpoint): Reimplement.
17952 (find_breakpoint_at): Delete.
17953 (find_gdb_breakpoint_at): New.
17954 (delete_breakpoint_at): Delete.
17955 (set_gdb_breakpoint_at): New.
17956 (delete_gdb_breakpoint_at): New.
17957 (gdb_breakpoint_here): New.
17958 (set_reinsert_breakpoint): Use release_breakpoint.
17959 (uninsert_breakpoint): Rename to ...
17960 (uninsert_raw_breakpoint): ... this.
17961 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17962 (reinsert_raw_breakpoint): Change parameter type to
17963 raw_breakpoint.
17964 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17965 instead.
17966 (check_breakpoints): Adjust. Use release_breakpoint.
17967 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17968 (breakpoint_inserted_here): Ditto.
17969 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17970 Don't trust the breakpoint's shadow if it is not inserted.
17971 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17972 (delete_all_breakpoints): Adjust.
17973 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17974 use delete_breakpoint_1.
17975
17976 * mem-break.h (breakpoints_supported): Delete declaration.
17977 (set_gdb_breakpoint_at): Declare.
17978 (gdb_breakpoint_here): Declare.
17979 (delete_breakpoint_at): Delete.
17980 (delete_gdb_breakpoint_at): Declare.
17981
17982 * server.h (struct raw_breakpoint): Forward declare.
17983 (struct process_info): New field `raw_breakpoints'.
17984
17985 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17986 breakpoints.
17987
6bf5e0ba
PA
179882010-03-24 Pedro Alves <pedro@codesourcery.com>
17989
17990 * linux-low.c (status_pending_p_callback): Fix comment.
17991 (linux_wait_for_event_1): Move most of the internal breakpoint
17992 handling from here...
17993 (linux_wait_1): ... to here.
17994 (count_events_callback): New.
17995 (select_singlestep_lwp_callback): New.
17996 (select_event_lwp_callback): New.
17997 (cancel_breakpoints_callback): New.
17998 (select_event_lwp): New.
17999 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18000 priority to all LWPs that have had events that should be reported
18001 to the client. Cancel breakpoints when about to reporting the
18002 event to the client, not while stopping lwps. No longer cancel
18003 finished single-steps here.
18004 (cancel_finished_single_step): Delete.
18005 (cancel_finished_single_steps): Delete.
18006
414a389f
PA
180072010-03-24 Pedro Alves <pedro@codesourcery.com>
18008
18009 * mem-break.c (enum bkpt_type): New.
18010 (struct breakpoint): New field `type'.
18011 (set_breakpoint_at): Change return type to struct breakpoint
18012 pointer. Set type to `other_breakpoint' by default.
18013 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18014 in the breakpoint list.
18015 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18016 (reinsert_breakpoint): Rename to ...
18017 (reinsert_raw_breakpoint): ... this.
18018 (reinsert_breakpoints_at): Adjust.
18019 * mem-break.h (struct breakpoint): Declare.
18020 (set_breakpoint_at): Change return type to struct breakpoint
18021 pointer.
18022
2280c721
PA
180232010-03-24 Pedro Alves <pedro@codesourcery.com>
18024
18025 * server.c (handle_query): Assign, not compare.
18026
d50171e4
PA
180272010-03-24 Pedro Alves <pedro@codesourcery.com>
18028
18029 Teach linux gdbserver to step-over-breakpoints.
18030
18031 * linux-low.c (can_hardware_single_step): New.
18032 (supports_breakpoints): New.
18033 (handle_extended_wait): If stopping threads, read the stop pc of
18034 the new cloned LWP.
18035 (get_pc): New.
18036 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18037 low target doesn't support retrieving the PC.
18038 (add_lwp): Set last_resume_kind to resume_continue.
18039 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18040 (linux_attach): Don't clear stop_expected. Set the lwp's
18041 last_resume_kind to resume_stop.
18042 (linux_detach_one_lwp): Don't check for removed breakpoints.
18043 (check_removed_breakpoint): Delete.
18044 (status_pending_p): Rename to ...
18045 (status_pending_p_callback): ... this. Don't check for removed
18046 breakpoints. Don't consider threads that are stopped from GDB's
18047 perspective.
18048 (linux_wait_for_lwp): Always read the stop_pc here.
18049 (cancel_breakpoint): New.
18050 (step_over_bkpt): New global.
18051 (linux_wait_for_event_1): Implement stepping over breakpoints.
18052 (gdb_wants_lwp_stopped): New.
18053 (gdb_wants_all_stopped): New.
18054 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18055 single-step traps here. Store the thread's last reported target
18056 wait status.
18057 (send_sigstop): Don't clear stop_expected. Always set it,
18058 instead.
18059 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18060 (cancel_finished_single_step): New.
18061 (cancel_finished_single_steps): New.
18062 (wait_for_sigstop): Don't cancel finished single-step traps here.
18063 (linux_resume_one_lwp): Don't check for removed breakpoints.
18064 Don't set `step' on non-hardware step archs.
18065 (linux_set_resume_request): Ignore resume_stop requests if already
18066 stopping or stopped. Set the lwp's last_resume_kind.
18067 (resume_status_pending_p): Don't check for removed breakpoints.
18068 (need_step_over_p): New.
18069 (start_step_over): New.
18070 (finish_step_over): New.
18071 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18072 requests. Clear the thread's last reported target waitstatus.
18073 Don't use the `suspended' flag. Don't consider pending breakpoints.
18074 (linux_resume): Start a step-over if necessary.
18075 (proceed_one_lwp): New.
18076 (proceed_all_lwps): New.
18077 (unstop_all_lwps): New.
18078 * linux-low.h (struct lwp_info): Rewrite comment for the
18079 `suspended' flag. Add the `stop_pc' field. Delete the
18080 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18081 Add `'last_resume_kind' and `need_step_over' fields.
18082 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18083 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18084 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18085 (set_raw_breakpoint_at): New.
18086 (set_breakpoint_at): Rewrite to use it.
18087 (reinsert_breakpoint_handler): Delete.
18088 (set_reinsert_breakpoint): New.
18089 (reinsert_breakpoint_by_bp): Delete.
18090 (delete_reinsert_breakpoints): New.
18091 (uninsert_breakpoint): Rewrite.
18092 (uninsert_breakpoints_at): New.
18093 (reinsert_breakpoint): Rewrite.
18094 (reinsert_breakpoints_at): New.
18095 (check_breakpoints): Rewrite.
18096 (breakpoint_here): New.
18097 (breakpoint_inserted_here): New.
18098 (check_mem_read): Adjust.
18099 * mem-break.h (breakpoints_supported, breakpoint_here)
18100 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18101 (reinsert_breakpoint_by_bp): Delete declaration.
18102 (delete_reinsert_breakpoints): Declare.
18103 (reinsert_breakpoint): Delete declaration.
18104 (reinsert_breakpoints_at): Declare.
18105 (uninsert_breakpoint): Delete declaration.
18106 (uninsert_breakpoints_at): Declare.
18107 (check_breakpoints): Adjust prototype.
18108 * server.h: Adjust include order.
18109 (struct thread_info): Declare here. Add a `last_status' field.
18110
30ba68cb
MS
181112010-03-23 Michael Snyder <msnyder@vmware.com>
18112
18113 * server.c (crc32): New function.
18114 (handle_query): Add handling for 'qCRC:' request.
18115
b9a881c2
PA
181162010-03-23 Pedro Alves <pedro@codesourcery.com>
18117
18118 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18119 lwp had been stopped by a watchpoint.
18120
e92d13d5
PA
181212010-03-16 Pedro Alves <pedro@codesourcery.com>
18122
18123 * server.h (internal_error): Declare.
18124 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18125 * utils.c (internal_error): New function.
18126
64daa791
AS
181272010-03-15 Andreas Schwab <schwab@redhat.com>
18128
18129 * configure.srv: Fix typo setting srv_regobj.
18130
f52cd8cd
PA
181312010-03-15 Pedro Alves <pedro@codesourcery.com>
18132
18133 * linux-low.c (fetch_register): Avoid passing a non string literal
18134 format to `error'.
18135 (usr_store_inferior_registers): Ditto.
18136
93ae6fdc
PA
181372010-03-14 Pedro Alves <pedro@codesourcery.com>
18138
18139 * linux-low.c (linux_write_memory): Bail out early if peeking
18140 memory failed.
18141
c3adc08c
PA
181422010-03-14 Pedro Alves <pedro@codesourcery.com>
18143
18144 * linux-low.h (struct lwp_info): New fields
18145 `stopped_by_watchpoint' and `stopped_data_address'.
18146 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18147 here, and cache them in the lwp object.
18148 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18149 directly.
18150 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18151 field.
18152 (linux_stopped_by_watchpoint): Rewrite.
18153 (linux_stopped_data_address): Rewrite.
18154
bce522a2
PA
181552010-03-06 Simo Melenius <simo.melenius@iki.fi>
18156
18157 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18158 switching the current inferior, not before.
18159
90884b2b
L
181602010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18161
18162 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18163 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18164 i386-linux.c and amd64-linux.c.
18165 (reg-i386.o): Removed.
18166 (reg-i386.c): Likewise.
18167 (reg-i386-linux.o): Likewise.
18168 (reg-i386-linux.c): Likewise.
18169 (reg-x86-64.o): Likewise.
18170 (reg-x86-64.c): Likewise.
18171 (reg-x86-64-linux.o): Likewise.
18172 (reg-x86-64-linux.c): Likewise.
18173 (i386.o): New.
18174 (i386.c): Likewise.
18175 (i386-linux.o): Likewise.
18176 (i386-linux.c): Likewise.
18177 (amd64.o): Likewise.
18178 (amd64.c): Likewise.
18179 (amd64-linux.o): Likewise.
18180 (amd64-linux.c): Likewise.
18181
18182 * configure.srv (srv_i386_regobj): New.
18183 (srv_i386_linux_regobj): Likewise.
18184 (srv_amd64_regobj): Likewise.
18185 (srv_amd64_linux_regobj): Likewise.
18186 (srv_i386_32bit_xmlfiles): Likewise.
18187 (srv_i386_64bit_xmlfiles): Likewise.
18188 (srv_i386_xmlfiles): Likewise.
18189 (srv_amd64_xmlfiles): Likewise.
18190 (srv_i386_linux_xmlfiles): Likewise.
18191 (srv_amd64_linux_xmlfiles): Likewise.
18192 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18193 srv_xmlfiles to $srv_i386_xmlfiles.
18194 (i[34567]86-*-mingw32ce*): Likewise.
18195 (i[34567]86-*-mingw*): Likewise.
18196 (i[34567]86-*-nto*): Likewise.
18197 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18198 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18199 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18200 (x86_64-*-linux*): Likewise.
18201
18202 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18203 (init_registers_amd64_linux): New.
18204 (x86_arch_setup): Replace init_registers_x86_64_linux with
18205 init_registers_amd64_linux.
18206
193f13e6
MK
182072010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18208
18209 * configure.ac: Check for libdl. If it is not available link against
18210 static libthread_db.
18211 * configure: Regenerate.
18212
85d721b8
PA
182132010-02-22 Pedro Alves <pedro@codesourcery.com>
18214
18215 PR9605
18216
18217 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18218 handing a read watchpoint.
18219 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18220
6076632b
DE
182212010-02-12 Doug Evans <dje@google.com>
18222
18223 * linux-low.c (linux_supports_tracefork_flag): Document.
18224 (linux_look_up_symbols): Add comment.
18225
3327ccf7
L
182262010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18227
18228 * regcache.c (supply_register): Clear regcache if buf is NULL.
18229
0718675c 182302010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18231 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18232
18233 * inferiors.c (find_inferior): Add function documentation.
18234 (unloaded_dll): Handle the case where the unloaded dll has not
18235 been previously registered in the dll list.
18236
177321bd
DJ
182372010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18238
18239 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18240 (thumb2_breakpoint): New.
18241 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18242
2b009048
DJ
182432010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18244
18245 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18246 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18247 breakpoints.
18248
3be029c7
PA
182492010-01-21 Pedro Alves <pedro@codesourcery.com>
18250
18251 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18252
18f5de3b
JK
182532010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18254
18255 * linux-s390-low.c (s390_collect_ptrace_register)
18256 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18257
3743bb4f
DE
182582010-01-21 Doug Evans <dje@google.com>
18259
14ce3065
DE
18260 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18261 (PTRACE_ARG4_TYPE): New macro.
18262 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18263 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18264 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18265 (usr_store_inferior_registers): Ditto.
18266 (linux_read_memory, linux_write_memory): Ditto.
18267 (linux_test_for_tracefork): Ditto.
18268
3743bb4f
DE
18269 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18270 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18271
8b315be5
PA
182722010-01-21 Pedro Alves <pedro@codesourcery.com>
18273
18274 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18275 target.
18276
85492558
PA
182772010-01-21 Pedro Alves <pedro@codesourcery.com>
18278
18279 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18280 prototype to take a regcache. Adjust.
18281
442ea881
PA
182822010-01-20 Pedro Alves <pedro@codesourcery.com>
18283
18284 * regcache.h (struct thread_info): Forward declare.
18285 (struct regcache): New.
18286 (new_register_cache): Adjust prototype.
18287 (get_thread_regcache): Declare.
18288 (free_register_cache): Adjust prototype.
18289 (registers_to_string, registers_from_string): Ditto.
18290 (supply_register, supply_register_by_name, collect_register)
18291 (collect_register_as_string, collect_register_by_name): Ditto.
18292 * regcache.c (struct inferior_regcache_data): Delete.
18293 (get_regcache): Rename to ...
18294 (get_thread_regcache): ... this. Adjust. Switch inferior before
18295 fetching registers.
18296 (regcache_invalidate_one): Adjust.
18297 (regcache_invalidate): Fix prototype.
18298 (new_register_cache): Return the new register cache.
18299 (free_register_cache): Change prototype.
18300 (realloc_register_cache): Adjust.
18301 (registers_to_string): Change prototype to take a regcache. Adjust.
18302 (registers_from_string): Ditto.
18303 (register_data): Ditto.
18304 (supply_register): Ditto.
18305 (supply_register_by_name): Ditto.
18306 (collect_register): Ditto.
18307 (collect_register_as_string): Ditto.
18308 (collect_register_by_name): Ditto.
18309 * server.c (process_serial_event): Adjust.
18310 * linux-low.h (regset_fill_func, regset_store_func): Change
18311 prototype.
18312 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18313 Change prototype.
18314 * linux-low.c (get_stop_pc): Adjust.
18315 (check_removed_breakpoint): Adjust.
18316 (linux_wait_for_event): Adjust.
18317 (linux_resume_one_lwp): Adjust.
18318 (fetch_register): Add regcache parameter. Adjust.
18319 (usr_store_inferior_registers): Ditto.
18320 (regsets_fetch_inferior_registers): Ditto.
18321 (regsets_store_inferior_registers): Ditto.
18322 (linux_fetch_registers, linux_store_registers): Ditto.
18323 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18324 regcache. Adjust.
43aaf8b6
PA
18325 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18326 Ditto.
442ea881
PA
18327 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18328 prototype to take a regcache.
18329 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18330 * remote-utils.c (convert_ascii_to_int, outreg)
18331 (prepare_resume_reply): Change prototype to take a regcache.
18332 Adjust.
18333 * target.h (struct target_ops) <fetch_registers, store_registers>:
18334 Change prototype to take a regcache.
18335 (fetch_inferior_registers, store_inferior_registers): Change
18336 prototype to take a regcache. Adjust.
18337 * proc-service.c (ps_lgetregs): Adjust.
18338 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18339 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18340 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18341 take a regcache. Adjust.
18342 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18343 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18344 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18345 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18346 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18347 (cris_cannot_fetch_register):
18348 (cris_breakpoint_at): Change prototype to take a regcache.
18349 Adjust.
18350 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18351 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18352 to take a regcache. Adjust.
18353 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18354 Adjust.
18355 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18356 take a regcache. Adjust.
18357 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18358 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18359 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18360 * linux-mips-low.c (mips_get_pc):
18361 (mips_set_pc): Change prototype to take a regcache. Adjust.
18362 (mips_reinsert_addr): Adjust.
18363 (mips_collect_register): Change prototype to take a regcache.
18364 Adjust.
18365 (mips_supply_register):
18366 (mips_collect_register_32bit, mips_supply_register_32bit)
18367 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18368 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18369 * linux-ppc-low.c (ppc_supply_ptrace_register)
18370 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18371 (parse_spufs_run): Adjust.
18372 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18373 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18374 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18375 take a regcache. Adjust.
18376 * linux-s390-low.c (s390_collect_ptrace_register)
18377 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18378 (s390_set_pc): Change prototype to take a regcache. Adjust.
18379 (s390_arch_setup): Adjust.
18380 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18381 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18382 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18383 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18384 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18385 regcache. Adjust.
18386 (sparc_breakpoint_at): Adjust.
18387 * linux-xtensa-low.c (xtensa_fill_gregset):
18388 (xtensa_store_gregset):
18389 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18390 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18391 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18392 prototype to take a regcache. Adjust.
18393 * win32-arm-low.c (arm_fetch_inferior_register)
18394 (arm_store_inferior_register): Change prototype to take a
18395 regcache. Adjust.
18396 * win32-i386-low.c (i386_fetch_inferior_register)
18397 (i386_store_inferior_register): Change prototype to take a
18398 regcache. Adjust.
18399 * win32-low.c (child_fetch_inferior_registers)
18400 (child_store_inferior_registers): Change prototype to take a
18401 regcache. Adjust.
18402 (win32_wait): Adjust.
18403 (win32_fetch_inferior_registers): Change prototype to take a
18404 regcache. Adjust.
18405 (win32_store_inferior_registers): Adjust.
18406 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18407 store_inferior_register>: Change prototype to take a regcache.
18408
60c3d7b0
DE
184092010-01-20 Doug Evans <dje@google.com>
18410
18411 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18412 #ifdef.
18413 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18414 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18415
dc146f7c
VP
184162010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18417
18418 * linux-low.c (linux_core_of_thread): New.
18419 (compare_ints, show_process, list_threads): New.
18420 (linux_qxfer_osdata): Report threads and cores.
18421 (linux_target_op): Register linux_core_of_thread.
18422 * remote-utils.c (prepare_resume_reply): Report the core.
18423 (buffer_xml_printf): Support %d specifier.
18424 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18425 New.
18426 (handle_query): Handle qXfer:threads. Announce availability
18427 thereof.
18428 * target.h (struct target_ops): New field core_of_thread.
18429
7803799a
UW
184302010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18431
18432 * Makefile.in (clean): Remove new generated files.
18433 (reg-s390.o, reg-s390.c): Remove rules.
18434 (reg-s390x.o, reg-s390x.c): Likewise.
18435 (s390-linux32.o, s390-linux32.c): Add rules.
18436 (s390-linux64.o, s390-linux64.c): Likewise.
18437 (s390x-linux64.o, s390x-linux64.c): Likewise.
18438 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18439 * linux-s390-low.c: Include <elf.h>.
18440 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18441 (init_registers_s390): Remove prototype.
18442 (init_registers_s390x): Likewise.
18443 (init_registers_s390_linux32): Add prototype.
18444 (init_registers_s390_linux64): Likewise.
18445 (init_registers_s390x_linux64): Likewise.
18446 (s390_num_regs_3264): New define.
18447 (s390_regmap_3264): New global variable.
18448 (s390_cannot_fetch_register): Remove obsolete check.
18449 (s390_cannot_store_register): Likewise.
18450 (s390_collect_ptrace_register): Handle upper/lower register halves.
18451 (s390_supply_ptrace_register): Likewise.
18452 (s390_fill_gregset): Update to register number changes.
18453 (s390_get_hwcap): New routine.
18454 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18455 Install appropriate regmap and register set.
18456
6e7ffa39
JB
184572010-01-01 Joel Brobecker <brobecker@adacore.com>
18458
18459 * server.c (gdbserver_version): Update copyright year to 2010.
18460 * gdbreplay.c (gdbreplay_version): Likewise.
18461
957f3f49
DE
184622009-12-28 Doug Evans <dje@google.com>
18463
18464 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18465 elf/external.h. Include <elf.h> instead but only if necessary.
18466
ca5c370d
PA
184672009-12-28 Pedro Alves <pedro@codesourcery.com>
18468
18469 * linux-low.c (linux_remove_process): Remove `detaching'
18470 parameter. Don't release/detach from thread_db here.
18471 (linux_kill): Release/detach from thread_db here, ...
18472 (linux_detach): ... and here, before actually detaching.
18473 (linux_wait_1): ... and here, when a process exits.
18474 * thread-db.c (any_thread_of): New.
18475 (thread_db_free): Switch the current inferior to a thread of the
18476 passed in process.
18477
4ee62156
DE
184782009-12-21 Doug Evans <dje@google.com>
18479
d90e6a88
DE
18480 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18481
c5f62d5f
DE
18482 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18483 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18484 warning ifndef __NR_tkill. Move setting of errno there too.
18485 Delete unnecessary resetting of errno after syscall.
18486 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18487
10e86dd7
DE
18488 * configure.ac: Check for dladdr.
18489 * config.in: Regenerate.
18490 * configure: Regenerate.
18491 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18492 (try_thread_db_load): Update.
18493
4ee62156
DE
18494 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18495
00f515da
DE
184962009-12-18 Doug Evans <dje@google.com>
18497
e9464885
DE
18498 * event-loop.c: Include unistd.h if it exists.
18499
07d4f67e
DE
18500 * linux-low.c (my_waitpid): Move definition away from being in
18501 between linux_tracefork_child/linux_test_for_tracefork.
18502
00f515da
DE
18503 * gdb_proc_service.h (psaddr_t): Fix type.
18504 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18505 signature to match glibc.
18506
1de1badb
DE
185072009-12-16 Doug Evans <dje@google.com>
18508
18509 * linux-low.c (linux_read_memory): Fix argument to read.
18510
aeeb81d1
PA
185112009-11-26 Pedro Alves <pedro@codesourcery.com>
18512
18513 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18514 events, don't leave current_inferior pointing at null.
18515
10357975
PA
185162009-11-26 Pedro Alves <pedro@codesourcery.com>
18517
18518 * win32-low.c (LOG): Delete.
18519 (OUTMSG): Output to stderr.
18520 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18521 on compile time LOG macro.
18522 (win32_wait): Fix debug output.
18523
cf6e3471
PA
185242009-11-26 Pedro Alves <pedro@codesourcery.com>
18525
18526 * win32-low.c (win32_add_one_solib): If the dll name is
18527 "ntdll.dll", prepend the system directory to the dll path.
18528
0c85e18e
MK
185292009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18530
18531 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18532
9ac544ce 185332009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18534 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18535
18536 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18537 * configure.ac: Check for __mcoldfire__ and set
18538 gdb_cv_m68k_is_coldfire.
18539 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18540 reg-cf.o and reg-m68k.o.
18541 * configure: Regenerated.
18542
fd7dd3e6
PA
185432009-11-16 Pedro Alves <pedro@codesourcery.com>
18544
18545 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18546 Pass it to thread_db_free.
18547 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18548 proper `detaching' argument to linux_remove_process.
18549 * linux-low.h (thread_db_free): Add `detaching' parameter.
18550 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18551 to thread_db_free.
18552 (thread_db_free): Add `detaching' parameter. Only
18553 call td_ta_clear_event if detaching from process.
18554
75aa492e
MK
185552009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18556
18557 * thread-db.c (thread_db_free): Fix typo.
18558
21e1bee4
PP
185592009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18560
18561 PR gdb/10838
18562 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18563
8838b45e
NS
185642009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18565
18566 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18567 with an i686 compiler.
18568 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18569 needed.
18570 * configure: Rebuilt.
18571
8a35fb51
SL
185722009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18573
18574 PR gdb/10783
18575
18576 * server.c (handle_search_memory_1): Correct read_addr initialization
18577 in loop for searching subsequent chunks.
18578
96f15937
PP
185792009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18580
18581 * configure.ac: New --with-libthread-db option.
18582 * thread-db.c: Allow direct dependence on libthread_db.
18583 (thread_db_free): Adjust.
18584 * config.in: Regenerate.
18585 * configure: Likewise.
889bf7c5 18586
5f7d1694
PP
185872009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18588
18589 PR gdb/10757
18590 * thread-db.c (attach_thread): New function.
18591 (maybe_attach_thread): Return success/failure.
18592 (find_new_threads_callback): Adjust.
889bf7c5
PA
18593 (thread_db_find_new_threads): Loop until no new threads.
18594
88e3b899
PA
185952009-10-13 Pedro Alves <pedro@codesourcery.com>
18596
18597 * proc-service.c (ps_lgetregs): Formatting.
18598
cdbfd419
PP
185992009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18600
18601 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18602 * configure.ac: Adjust.
18603 * linux-low.h (struct process_info_private): Move members to struct
18604 thread_db.
18605 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18606 * linux-low.c (linux_remove_process): Adjust.
18607 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18608 * server.c (handle_query): Move code ...
18609 (handle_monitor_command): ... here. New function.
18610 * target.h (struct target_ops): New member.
18611 * thread-db.c (struct thread_db): New.
18612 (libthread_db_search_path): New variable.
18613 (thread_db_create_event, thread_db_enable_reporting)
18614 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18615 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18616 (try_thread_db_load_1, dladdr_to_soname): New functions.
18617 (try_thread_db_load, thread_db_load_search): New functions.
18618 (thread_db_init): Search for libthread_db.
18619 (thread_db_free): New function.
18620 (thread_db_handle_monitor_command): Likewise.
18621 * config.in: Regenerate.
18622 * configure: Regenerate.
889bf7c5 18623
4168d2d6
UW
186242009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18625
18626 * spu-low.c (spu_kill): Wait for inferior to terminate.
18627 Call clear_inferiors.
18628 (spu_detach): Call clear_inferiors.
18629
81ecdfbb
RW
186302009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18631
18632 * aclocal.m4: Regenerate.
18633 * config.in: Likewise.
18634 * configure: Likewise.
18635
0b9ff2c0
UW
186362009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18637
18638 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18639 (parse_spufs_run): New function.
18640 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18641 (ppc_breakpoint_at): Handle SPU breakpoints.
18642
efcbbd14
UW
186432009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18644
18645 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18646 (SPUFS_MAGIC): Define.
18647 (spu_enumerate_spu_ids): New function.
18648 (linux_qxfer_spu): New function.
18649 (linux_target_ops): Install linux_qxfer_spu.
18650
f4d9bade
UW
186512009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18652
18653 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18654 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18655 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18656 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18657 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18658 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18659 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18660 (init_registers_powerpc_cell32l): Add prototype.
18661 (init_registers_powerpc_cell64l): Likewise.
18662 (ppc_arch_setup): Detect Cell/B.E. architecture.
18663
96e946ca
RW
186642009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18665
18666 * Makefile.in (datarootdir): New variable.
18667
58d6951d
DJ
186682009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18669
18670 * linux-low.c (linux_write_memory): Update debugging output.
18671 * Makefile.in (clean): Add new descriptions.
18672 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18673 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18674 * configure.srv: Add new files for arm*-*-linux*.
18675 * linux-arm-low.c: Add new declarations.
18676 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18677 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18678 (HWCAP_VFPv3D16): New.
18679 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18680 instead of __IWMMXT__.
18681 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18682 (arm_arch_setup): New.
18683 (target_regsets): Remove #ifdef. Add VFP regset.
18684 (the_low_target): Use arm_arch_setup.
18685
12b42a12
DJ
186862009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18687
18688 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18689 the main thread again.
18690
ac8c974e
AR
186912009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18692
18693 Adding Neutrino gdbserver.
18694 * configure: Regenerated.
18695 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18696 * configure.srv (i[34567]86-*-nto*): New target.
18697 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18698 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18699 (nto_comctrl) [__QNX__]: New function.
18700 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18701
4424e0c3 187022009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18703
18704 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18705 srv_tgtobj.
18706
912cf4ba
PA
187072009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18708 Pedro Alves <pedro@codesourcery.com>
18709
18710 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18711 don't support CONTEXT_EXTENDED_REGISTERS.
18712 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18713 (the_low_target): Install them.
18714 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18715 failing with ERROR_PIPE_NOT_CONNECTED.
18716
aa5ca48f
DE
187172009-06-30 Doug Evans <dje@google.com>
18718 Pierre Muller <muller@ics.u-strasbg.fr>
18719
18720 Add h/w watchpoint support to x86-linux, win32-i386.
18721 * Makefile.in (SFILES): Add i386-low.c
18722 (i386_low_h): Define.
18723 (i386-low.o): Add dependencies.
18724 (linux-x86-low.o): Add i386-low.h dependency.
18725 (win32-i386-low.o): Ditto.
18726 * i386-low.c: New file.
18727 * i386-low.h: New file.
18728 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18729 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18730 * linux-low.c (linux_add_process): Initialize arch_private.
18731 (linux_remove_process): Free arch_private.
18732 (add_lwp): Initialize arch_private.
18733 (delete_lwp): Free arch_private.
18734 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18735 provided.
18736 * linux-low.h (process_info_private): New member arch_private.
18737 (lwp_info): New member arch_private.
18738 (linux_target_ops): New members new_process, new_thread,
18739 prepare_to_resume.
18740 (ptid_of): New macro.
18741 * linux-x86-low.c: Include stddef.h, i386-low.h.
18742 (arch_process_info): New struct.
18743 (arch_lwp_info): New struct.
18744 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18745 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18746 (i386_dr_low_get_status): New function.
18747 (x86_insert_point, x86_remove_point): New functions.
18748 (x86_stopped_by_watchpoint): New function.
18749 (x86_stopped_data_address): New function.
18750 (x86_linux_new_process, x86_linux_new_thread): New functions.
18751 (x86_linux_prepare_to_resume): New function.
18752 (the_low_target): Add entries for insert_point, remove_point,
18753 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18754 prepare_to_resume.
18755 * server.c (debug_hw_points): New global.
18756 (monitor_show_help): Document set debug-hw-points.
18757 (handle_query): Process "set debug-hw-points".
18758 * server.h (debug_hw_points): Declare.
18759 (paddress): Declare.
18760 * utils.c (NUMCELLS, CELLSIZE): New macros.
18761 (get_sell, xsnprintf, paddress): New functions.
18762 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18763 remove_point, stopped_by_watchpoint, stopped_data_address.
18764 * win32-i386-low.c: Include i386-low.h.
18765 (debug_reg_state): Replaces dr.
18766 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18767 (i386_dr_low_get_status): New function.
18768 (i386_insert_point, i386_remove_point): New functions.
18769 (i386_stopped_by_watchpoint): New function.
18770 (i386_stopped_data_address): New function.
18771 (i386_initial_stuff): Update.
18772 (get_thread_context,set_thread_context,i386_thread_added): Update.
18773 (the_low_target): Add entries for insert_point,
18774 remove_point, stopped_by_watchpoint, stopped_data_address.
18775 * win32-low.c (win32_insert_watchpoint): New function.
18776 (win32_remove_watchpoint): New function.
18777 (win32_stopped_by_watchpoint): New function.
18778 (win32_stopped_data_address): New function.
18779 (win32_target_ops): Add entries for insert_watchpoint,
18780 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18781 * win32-low.h (win32_target_ops): New members insert_point,
18782 remove_point, stopped_by_watchpoint, stopped_data_address.
18783
d993e290
PA
187842009-06-25 Pedro Alves <pedro@codesourcery.com>
18785
18786 * server.c (process_serial_event): Re-return unsupported, not
18787 error, if the type isn't recognized. Re-allow supporting only
18788 insert or remove packets. Also call require_running for
18789 breakpoints. Add missing break statement to default case. Tidy.
18790 * target.h (struct target_ops): Rename insert_watchpoint to
18791 insert_point, and remove_watchpoint to remove_point.
18792
18793 * linux-low.h (struct linux_target_ops): Likewise.
18794 * linux-low.c (linux_insert_watchpoint): Rename to ...
18795 (linux_insert_point): ... this. Adjust.
18796 (linux_remove_watchpoint): Rename to ...
18797 (linux_remove_point): ... this. Adjust.
18798 (linux_target_ops): Adjust.
18799 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18800 (cris_insert_point): ... this.
18801 (cris_remove_watchpoint): Rename to ...
18802 (cris_remove_point): ... this.
18803 (the_low_target): Adjust.
18804
0f54c268
PM
188052009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18806
18807 * server.c (handle_v_kill): Pass signal_pid to
18808 kill_inferior if multi_process is zero.
18809
c6314022
AR
188102009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18811
18812 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18813 * target.h (target_ops): Comment for *_watchpoint to make it clear
18814 the functions can get types '0' and '1'.
18815
4463ce24
AR
188162009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18817
18818 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18819 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18820 * regcache.c (get_regcache): Likewise.
18821 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18822 * win32-low.c (child_fetch_inferior_registers): Remove check for
18823 regno 0.
18824
cf8fd78b
PA
188252009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18826 Pedro Alves <pedro@codesourcery.com>
18827
18828 * target.h (struct target_ops) <supports_multi_process>: New
18829 callback.
18830 (target_supports_multi_process): New.
18831 * server.c (handle_query): Even if GDB reports support, only
18832 enable multi-process if the target also supports it. Report
18833 multi-process support only if the target backend supports it.
18834 * linux-low.c (linux_supports_multi_process): New function.
18835 (linux_target_ops): Install it as target_supports_multi_process
18836 callback.
18837
47c0c975
DE
188382009-05-24 Doug Evans <dje@google.com>
18839
e09875d4
DE
18840 Global renaming of find_thread_pid to find_thread_ptid.
18841 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18842 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18843 All callers updated.
18844
e27d73f6
DE
18845 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18846 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18847 directly.
18848
47c0c975
DE
18849 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18850 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18851 (linux_resume_one_lwp): Ditto.
18852
2acc282a
DE
188532009-05-23 Doug Evans <dje@google.com>
18854
18855 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18856 from struct inferior_list_entry * to struct lwp_info *.
18857 All callers updated.
18858
9f1036c1
DE
188592009-05-13 Doug Evans <dje@google.com>
18860
18861 * linux-x86-low.c: Don't include assert.h.
18862 (x86_siginfo_fixup): Use fatal, not assert.
18863 (x86_arch_setup): Fix comment.
18864
d0722149
DE
188652009-05-12 Doug Evans <dje@google.com>
18866
18867 Biarch support for i386/amd64 gdbserver.
18868 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18869 Add linux-x86-low.c.
18870 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18871 (linux-x86-low.o): Add.
18872 * linux-x86-64-low.c: Delete.
18873 * linux-i386-low.c: Delete.
18874 * linux-x86-low.c: New file.
18875 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18876 linux-x86-low.o.
18877 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18878 linux-x86-low.o.
18879 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18880 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18881 (linux_child_pid_to_exec_file): New function.
18882 (elf_64_header_p, elf_64_file_p): New functions.
18883 (siginfo_fixup): New function.
18884 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18885 give target a chance to convert layout.
18886 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18887 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18888
fdeb2a12
DE
188892009-05-07 Doug Evans <dje@google.com>
18890
18891 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18892 (regsets_store_inferior_registers): Ditto.
18893
a6dbe5df
PA
188942009-05-06 Pedro Alves <pedro@codesourcery.com>
18895
18896 PR server/10048
18897
18898 * linux-low.c (must_set_ptrace_flags): Delete.
18899 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18900 of the global.
18901 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18902 `lwp->must_set_ptrace_flags' instead.
ba42693b 18903 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18904 (linux_wait_1): ... not here.
18905
5091eb23
DE
189062009-04-30 Doug Evans <dje@google.com>
18907
9f767825
DE
18908 * inferiors.c (started_inferior_callback): New function.
18909 (attached_inferior_callback): New function.
18910 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18911 * server.c (print_started_pid, print_attached_pid): New functions.
18912 (detach_or_kill_for_exit): New function.
18913 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18914 * server.h (have_started_inferiors_p): Declare.
18915 (have_attached_inferiors_p): Declare.
18916
5091eb23
DE
18917 * inferiors.c (remove_process): Fix memory leak, free process.
18918 * linux-low.c (linux_remove_process): New function.
18919 (linux_kill): Call it instead of remove_process.
18920 (linux_detach, linux_wait_1): Ditto.
18921
155c8968
PA
189222009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18923
18924 * configure.srv: Add x86 Windows CE target.
18925
7fe519cb
UW
189262009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18927
18928 * inferiors.c (get_thread_process): Make global.
18929 * server.h (get_thread_process): Add prototype.
18930 * thread-db.c (find_one_thread): Use get_thread_process
18931 instead of current_process.
18932 (thread_db_get_tls_address): Do not crash if called when
18933 thread layer is not yet initialized.
18934
5472f405
UW
189352009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18936
18937 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18938 * spu-low.c (current_tid): Rename to ...
18939 (current_ptid): ... this.
18940 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18941 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18942 ptid_get_lwp (current_ptid) instead of current_tid.
18943 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18944 instead of current_tid. Use find_process_pid to verify pid
18945 argument is valid. Pass proper argument to remove_process.
18946 (spu_thread_alive): Compare current_ptid instead of current_tid.
18947 (spu_resume): Likewise.
18948
55ac2b99
PA
189492009-04-02 Pedro Alves <pedro@codesourcery.com>
18950
18951 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18952 variable.
18953
95954743
PA
189542009-04-01 Pedro Alves <pedro@codesourcery.com>
18955
18956 Implement the multiprocess extensions, and add linux multiprocess
18957 support.
18958
18959 * server.h (ULONGEST): Declare.
18960 (struct ptid, ptid_t): New.
18961 (minus_one_ptid, null_ptid): Declare.
18962 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18963 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18964 (struct inferior_list_entry): Change `id' type from unsigned from
18965 to ptid_t.
18966 (struct sym_cache, struct breakpoint, struct
18967 process_info_private): Forward declare.
18968 (struct process_info): Declare.
18969 (current_process): Declare.
18970 (all_processes): Declare.
18971 (initialize_inferiors): Declare.
18972 (add_thread): Adjust to use ptid_t.
18973 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18974 (add_process, remove_process, find_thread_pid): Declare.
18975 (find_inferior_id): Adjust to use ptid_t.
18976 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18977 (multi_process): Declare.
18978 (push_event): Adjust to use ptid_t.
18979 (read_ptid, write_ptid): Declare.
18980 (prepare_resume_reply): Adjust to use ptid_t.
18981 (clear_symbol_cache): Declare.
18982 * inferiors.c (all_processes): New.
18983 (null_ptid, minus_one_ptid): New.
18984 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18985 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18986 (add_thread): Change unsigned long to ptid. Remove gdb_id
18987 parameter. Adjust.
18988 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18989 (gdb_id_to_thread): Rename to ...
18990 (find_thread_pid): ... this. Change unsigned long to ptid.
18991 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18992 (loaded_dll, pull_pid_from_list): Adjust.
18993 (add_process, remove_process, find_process_pid)
18994 (get_thread_process, current_process, initialize_inferiors): New.
18995 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18996 (struct target_waitstatus) <related_pid>: Ditto.
18997 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18998 return type to int.
18999 (struct target_ops) <join>: Add `pid' argument.
19000 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19001 (struct target_ops) <wait>: Add `ptid' field. Change return type
19002 to ptid.
19003 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19004 (mywait): Add `ptid' argument. Change return type to ptid_t.
19005 (target_pid_to_str): Declare.
19006 * target.c (set_desired_inferior): Adjust to use ptids.
19007 (mywait): Add new `ptid' argument. Adjust.
19008 (target_pid_to_str): New.
19009 * mem-break.h (free_all_breakpoints): Declare.
19010 * mem-break.c (breakpoints): Delelete.
19011 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19012 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19013 to use per-process breakpoint list.
19014 (free_all_breakpoints): New.
19015 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19016 (symbol_cache, all_symbols_looked_up): Delete.
19017 (hexchars): New.
19018 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19019 read_ptid): New.
19020 (prepare_resume_reply): Change ptid argument's type from unsigned
19021 long to ptid_t. Adjust. Implement W;process and X;process.
19022 (free_sym_cache, clear_symbol_cache): New.
19023 (look_up_one_symbol): Adjust to per-process symbol cache. *
19024 * server.c (cont_thread, general_thread, step_thread): Change type
19025 to ptid_t.
19026 (attached): Delete.
19027 (multi_process): New.
19028 (last_ptid): Change type to ptid_t.
19029 (struct vstop_notif) <ptid>: Change type to ptid_t.
19030 (queue_stop_reply, push_event): Change `ptid' argument's type to
19031 ptid_t.
19032 (discard_queued_stop_replies): Add `pid' argument.
19033 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19034 changes. Don't reference the `attached' global.
19035 (attach_inferior): Adjust to mywait interface changes.
19036 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19037 features. Handle and report "multiprocess+". Handle
19038 "qAttached:PID".
19039 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19040 changes.
19041 (handle_v_kill): New.
19042 (handle_v_stopped): Adjust to use target_pid_to_str.
19043 (handle_v_requests): Allow multiple attaches and runs when
19044 multiprocess extensions are in effect. Handle "vKill".
19045 (myresume): Adjust to use ptids.
19046 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19047 (handle_status): Adjust to discard_queued_stop_replies interface
19048 change.
19049 (first_thread_of, kill_inferior_callback)
19050 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19051 (main): Call initialize_inferiors. Adjust to use ptids, killing
19052 and detaching from all inferiors. Handle multiprocess packet
19053 variants.
19054 * linux-low.h: Include gdb_proc_service.h.
19055 (struct process_info_private): New.
19056 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19057 <lwpid_of>: Use ptid_get_lwp.
19058 (get_lwp_thread): Adjust.
19059 (struct lwp_info): Add `dead' member.
19060 (find_lwp_pid): Declare.
19061 * linux-low.c (thread_db_active): Delete.
19062 (new_inferior): Adjust comment.
19063 (inferior_pid): Delete.
19064 (linux_add_process): New.
19065 (handle_extended_wait): Adjust.
19066 (add_lwp): Change unsigned long to ptid.
19067 (linux_create_inferior): Add process to processes table. Adjust
19068 to use ptids. Don't set new_inferior here.
19069 (linux_attach_lwp): Rename to ...
19070 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19071 it. Adjust to use ptids.
19072 (linux_attach_lwp): New.
19073 (linux_attach): Add process to processes table. Don't set
19074 new_inferior here.
19075 (struct counter): New.
19076 (second_thread_of_pid_p, last_thread_of_process_p): New.
19077 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19078 multiple processes.
19079 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19080 processes. Remove process from process table.
19081 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19082 to multiple processes.
19083 (any_thread_of): New.
19084 (linux_detach): Add `pid' argument, and handle it. Remove process
19085 from processes table.
19086 (linux_join): Add `pid' argument. Handle it.
19087 (linux_thread_alive): Change unsighed long argument to ptid_t.
19088 Consider dead lwps as not being alive.
19089 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19090 threads we're not interested in.
19091 (same_lwp, find_lwp_pid): New.
19092 (linux_wait_for_lwp): Change `pid' argument's type from int to
19093 ptid_t. Adjust.
19094 (linux_wait_for_event): Rename to ...
19095 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19096 from int to ptid_t. Adjust.
19097 (linux_wait_for_event): New.
19098 (linux_wait_1): Add `ptid' argument. Change return type to
19099 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19100 that exit from the process table.
19101 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19102 Adjust.
19103 (mark_lwp_dead): New.
19104 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19105 stopping all threads, mark its main lwp as dead.
19106 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19107 ptids.
19108 (fetch_register, usr_store_inferior_registers)
19109 (regsets_fetch_inferior_registers)
19110 (regsets_store_inferior_registers, linux_read_memory)
19111 (linux_write_memory): Inline `inferior_pid'.
19112 (linux_look_up_symbols): Adjust to use per-process
19113 `thread_db_active'.
19114 (linux_request_interrupt): Adjust to use ptids.
19115 (linux_read_auxv): Inline `inferior_pid'.
19116 (initialize_low): Don't reference thread_db_active.
19117 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19118 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19119 (ps_getpid): Return the pid of the current inferior.
19120 * thread-db.c (proc_handle, thread_agent): Delete.
19121 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19122 per-process data.
19123 (find_one_thread): Change argument type to ptid_t. Adjust to
19124 per-process data.
19125 (maybe_attach_thread): Adjust to per-process data and ptids.
19126 (thread_db_find_new_threads): Ditto.
19127 (thread_db_init): Ditto.
19128 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19129 processes table. Adjust to use ptids.
19130 (spu_kill, spu_detach): Adjust interface. Remove process from
19131 processes table.
19132 (spu_join, spu_thread_alive): Adjust interface.
19133 (spu_wait): Adjust interface. Remove process from processes
19134 table. Adjust to use ptids.
19135 * win32-low.c (current_inferior_tid): Delete.
19136 (current_inferior_ptid): New.
19137 (debug_event_ptid): New.
19138 (thread_rec): Take a ptid. Adjust.
19139 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19140 (child_delete_thread): Ditto.
19141 (do_initial_child_stuff): Add `attached' argument. Add process to
19142 processes table.
19143 (child_fetch_inferior_registers, child_store_inferior_registers):
19144 Adjust.
19145 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19146 (win32_attach): Pass 1 to do_initial_child_stuff.
19147 (win32_kill): Adjust interface. Remove process from processes
19148 table.
19149 (win32_detach): Ditto.
19150 (win32_join): Adjust interface.
19151 (win32_thread_alive): Take a ptid.
19152 (win32_resume): Adjust to use ptids.
19153 (get_child_debug_event): Ditto.
19154 (win32_wait): Adjust interface. Remove exiting process from
19155 processes table.
19156
bd99dc85
PA
191572009-04-01 Pedro Alves <pedro@codesourcery.com>
19158
19159 Non-stop mode support.
19160
19161 * server.h (non_stop): Declare.
19162 (gdb_client_data, handler_func): Declare.
19163 (delete_file_handler, add_file_handler, start_event_loop):
19164 Declare.
19165 (handle_serial_event, handle_target_event, push_event)
19166 (putpkt_notif): Declare.
19167 * target.h (enum resume_kind): New.
19168 (struct thread_resume): Replace `step' field by `kind' field.
19169 (TARGET_WNOHANG): Define.
19170 (struct target_ops) <wait>: Add `options' argument.
19171 <supports_non_stop, async, start_non_stop>: New fields.
19172 (target_supports_non_stop, target_async): New.
19173 (start_non_stop): Declare.
19174 (mywait): Add `options' argument.
19175 * target.c (mywait): Add `options' argument. Print child exit
19176 notifications here.
19177 (start_non_stop): New.
19178 * server.c (non_stop, own_buf, mem_buf): New globals.
19179 (struct vstop_notif): New.
19180 (notif_queue): New global.
19181 (queue_stop_reply, push_event, discard_queued_stop_replies)
19182 (send_next_stop_reply): New.
19183 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19184 interface changes.
19185 (attach_inferior): In non-stop mode, don't wait for the target
19186 here.
19187 (handle_general_set): Handle QNonStop.
19188 (handle_query): When handling qC, return the current general
19189 thread, instead of the first thread of the list.
19190 (handle_query): If the backend supports non-stop mode, include
19191 QNonStop+ in the qSupported query response.
19192 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19193 and non-stop mode.
19194 (handle_v_attach, handle_v_run): Handle non-stop mode.
19195 (handle_v_stopped): New.
19196 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19197 (myresume): Adjust to use resume_kind. Handle non-stop.
19198 (queue_stop_reply_callback): New.
19199 (handle_status): Handle non-stop mode.
19200 (main): Clear non_stop flag on reconnection. Use the event-loop.
19201 Refactor serial protocol handling from here ...
19202 (process_serial_event): ... to this new function. When GDB
19203 selects any thread, select one here. In non-stop mode, wait until
19204 GDB acks all pending events before exiting.
19205 (handle_serial_event, handle_target_event): New.
19206 * remote-utils.c (remote_open): Install remote_desc in the event
19207 loop.
19208 (remote_close): Remove remote_desc from the event loop.
19209 (putpkt_binary): Rename to...
19210 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19211 (putpkt_binary): New as wrapper around putpkt_binary_1.
19212 (putpkt_notif): New.
19213 (prepare_resume_reply): In non-stop mode, don't change the
19214 general_thread.
19215 * event-loop.c: New.
19216 * Makefile.in (OBJ): Add event-loop.o.
19217 (event-loop.o): New rule.
19218
19219 * linux-low.h (pid_of): Moved here.
19220 (lwpid_of): New.
19221 (get_lwp_thread): Use lwpid_of.
19222 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19223 * linux-low.c (pid_of): Delete.
19224 (inferior_pid): Use lwpid_of.
19225 (linux_event_pipe): New.
19226 (target_is_async_p): New.
19227 (delete_lwp): New.
19228 (handle_extended_wait): Use lwpid_of.
19229 (add_lwp): Don't set lwpid field.
19230 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19231 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19232 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19233 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19234 first. Adjust to linux_wait_for_event interface changes. Use
19235 lwpid_of.
19236 (linux_detach): Don't delete the main lwp here.
19237 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19238 (status_pending_p): Don't consider explicitly suspended lwps.
19239 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19240 pointer. Add OPTIONS argument. Change return type to int. Use
19241 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19242 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19243 pointer. Add status pointer argument. Return a pid instead of a
19244 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19245 changes. In non-stop mode, don't switch to a random thread.
19246 (linux_wait): Rename to...
19247 (linux_wait_1): ... this. Add target_options argument, and handle
19248 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19249 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19250 clean exit and signal exit code. Don't stop all threads in
19251 non-stop mode. In all-stop mode, only stop all threads when
19252 reporting a stop to GDB. Handle explicit thread stop requests.
19253 (async_file_flush, async_file_mark): New.
19254 (linux_wait): New.
19255 (send_sigstop): Use lwpid_of.
19256 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19257 interface changes. In non-stop mode, don't switch to a random
19258 thread.
19259 (linux_resume_one_lwp): Use lwpid_of.
19260 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19261 (linux_resume_one_thread): ... this. Handle resume_stop. In
19262 non-stop mode, don't look for pending flag in all threads.
19263 (resume_status_pending_p): Don't consider explicitly suspended
19264 threads.
19265 (my_waitpid): Reimplement. Emulate __WALL.
19266 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19267 Use lwpid_of.
19268 (sigchld_handler, linux_supports_non_stop, linux_async)
19269 (linux_start_non_stop): New.
19270 (linux_target_ops): Register linux_supports_non_stop, linux_async
19271 and linux_start_non_stop.
19272 (initialize_low): Install SIGCHLD handler.
19273 * thread-db.c (thread_db_create_event, find_one_thread)
19274 (thread_db_get_tls_address): Use lwpid_of.
19275 * win32-low.c (win32_detach): Adjust to use resume_kind.
19276 (win32_wait): Add `options' argument.
19277 * spu-low.c (spu_resume): Adjust to use resume_kind.
19278 (spu_wait): Add `options' argument.
19279
5b1c542e
PA
192802009-04-01 Pedro Alves <pedro@codesourcery.com>
19281
19282 Decouple target code from remote protocol.
19283
19284 * target.h (enum target_waitkind): New.
19285 (struct target_waitstatus): New.
19286 (struct target_ops) <wait>: Return an unsigned long. Take a
19287 target_waitstatus pointer instead of a char pointer.
19288 (mywait): Likewise.
19289 * target.c (mywait): Change prototype to return an unsigned long.
19290 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19291 * server.h (thread_from_wait, old_thread_from_wait): Delete
19292 declarations.
19293 (prepare_resume_reply): Change prototype to take a
19294 target_waitstatus.
19295 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19296 (last_status, last_ptid): New.
19297 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19298 pid instead of a signal.
19299 (attach_inferior): Remove "status" and "signal" parameters.
19300 Adjust.
19301 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19302 not as an address.
19303 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19304 (handle_v_requests, myresume): Remove "status" and "signal"
19305 parameters. Adjust.
19306 (handle_status): New.
19307 (main): Delete local `status'. Adjust.
19308 * remote-utils.c: Include target.h.
19309 (prepare_resume_reply): Change prototype to take a
19310 target_waitstatus. Adjust.
19311
19312 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19313 interface.
19314 * spu-low.c (spu_wait): Adjust.
19315 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19316 Delete.
19317 (win32_wait): Adjust.
19318
2bd7c093
PA
193192009-04-01 Pedro Alves <pedro@codesourcery.com>
19320
19321 * target.h (struct thread_resume): Delete leave_stopped member.
19322 (struct target_ops): Add a `n' argument to the `resume' callback.
19323 * server.c (start_inferior): Adjust.
19324 (handle_v_cont, myresume): Adjust.
19325 * linux-low.c (check_removed_breakpoint): Adjust to resume
19326 interface change, and to removed leave_stopped field.
19327 (resume_ptr): Delete.
19328 (struct thread_resume_array): New.
19329 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19330 resume interface change.
19331 (linux_continue_one_thread, linux_queue_one_thread)
19332 (resume_status_pending_p): Check if the resume field is NULL
19333 instead of checking the leave_stopped member.
19334 (linux_resume): Adjust to the target resume interface change.
19335 * spu-low.c (spu_resume): Adjust to the target resume interface
19336 change.
19337 * win32-low.c (win32_detach, win32_resume): Ditto.
19338
c35fafde
PA
193392009-04-01 Pedro Alves <pedro@codesourcery.com>
19340
19341 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19342 flag.
19343 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19344 pending.
19345 (linux_continue_one_thread): Only preserve the stepping flag if
19346 there's a pending breakpoint.
19347
0a59d50b
PA
193482009-03-31 Pedro Alves <pedro@codesourcery.com>
19349
19350 * server.c (main): After the inferior having exited, call
19351 remote_close before exiting gdbserver.
19352
f04c6d38
TJB
193532009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19354
19355 Fix size of FPSCR in Power 7 processors.
19356 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19357 (PPC_FEATURE_HAS_DFP): New #define.
19358 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19359 size of the FPSCR.
19360
78e5cee6
PA
193612009-03-23 Pedro Alves <pedro@codesourcery.com>
19362
19363 * server.c (handle_query) Whitespace and formatting.
19364
1b3f6016
PA
193652009-03-22 Pedro Alves <pedro@codesourcery.com>
19366
19367 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19368 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19369 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19370 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19371 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19372 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19373 Makefile.in, configure.ac: Fix whitespace throughout.
19374 * configure: Regenerate.
19375
a07b2135
PA
193762009-03-22 Pedro Alves <pedro@codesourcery.com>
19377
19378 * inferiors.c (find_inferior): Make it safe for the callback
19379 function to delete the currently iterated inferior.
19380
67cc2626
PA
193812009-03-22 Pedro Alves <pedro@codesourcery.com>
19382
19383 * Makefile.in (linuw_low_h): Move higher.
19384 (thread-db.o): Depend on $(linux_low_h).
19385
54a0b537
PA
193862009-03-17 Pedro Alves <pedro@codesourcery.com>
19387
19388 Rename "process" to "lwp" throughout.
19389
19390 * linux-low.c (all_processes): Rename to...
19391 (all_lwps): ... this.
19392 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19393 (add_process): Rename to ...
19394 (add_lwp): ... this. Adjust.
19395 (linux_create_inferior): Adjust.
19396 (linux_attach_lwp): Adjust.
19397 (linux_attach): Adjust.
19398 (linux_kill_one_process): Rename to ...
19399 (linux_kill_one_lwp): ... this. Adjust.
19400 (linux_kill): Adjust.
19401 (linux_detach_one_process): Rename to ...
19402 (linux_detach_one_lwp): ... this. Adjust.
19403 (linux_detach): Adjust.
19404 (check_removed_breakpoint): Adjust.
19405 (status_pending_p): Adjust.
19406 (linux_wait_for_process): Rename to ...
19407 (linux_wait_for_lwp): ... this. Adjust.
19408 (linux_wait_for_event): Adjust.
19409 (send_sigstop): Adjust.
19410 (wait_for_sigstop): Adjust.
19411 (stop_all_processes): Rename to ...
19412 (stop_all_lwps): ... this.
19413 (linux_resume_one_process): Rename to ...
19414 (linux_resume_one_lwp): ... this. Adjust.
19415 (linux_set_resume_request, linux_continue_one_thread)
19416 (linux_queue_one_thread, resume_status_pending_p)
19417 (usr_store_inferior_registers, regsets_store_inferior_registers)
19418 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19419 Adjust.
19420 * linux-low.h (get_process): Rename to ...
19421 (get_lwp): ... this. Adjust.
19422 (get_thread_process): Rename to ...
19423 (get_thread_lwp): ... this. Adjust.
19424 (get_process_thread): Rename to ...
19425 (get_lwp_thread): ... this. Adjust.
19426 (struct process_info): Rename to ...
19427 (struct lwp_info): ... this.
19428 (all_processes): Rename to ...
19429 (all_lwps): ... this.
19430 * proc-service.c (ps_lgetregs): Adjust.
19431 * thread-db.c (thread_db_create_event, find_one_thread)
19432 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19433
0b16c5cf
PA
194342009-03-14 Pedro Alves <pedro@codesourcery.com>
19435
19436 * server.c (handle_query): Handle "qAttached".
19437
32de4b9d
NS
194382009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19439
19440 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19441 GPLv3, update license URL.
19442
2aecd87f
DE
194432009-03-01 Doug Evans <dje@google.com>
19444
93efd302 19445 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19446 (server_h): Add gdb_signals.h.
19447 (signals.o): Update.
19448 * server.h (target_signal_from_host,target_signal_to_host_p)
19449 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19450
86b1f9c5
PM
194512009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19452
19453 * remote-utils.c (getpkt): Also generate remote-debug
19454 information if noack_mode is set.
19455
4aa995e1
PA
194562009-02-06 Pedro Alves <pedro@codesourcery.com>
19457
19458 * server.c (handle_query): Report qXfer:siginfo:read and
19459 qXfer:siginfo:write as supported and handle them.
19460 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19461 * linux-low.c (linux_xfer_siginfo): New.
19462 (linux_target_ops): Set it.
19463
62709adf
PA
194642009-01-26 Pedro Alves <pedro@codesourcery.com>
19465
19466 * server.c (gdbserver_usage): Mention --remote-debug.
19467 (main): Accept '--remote-debug' switch.
19468
aef93bd7
DE
194692009-01-18 Doug Evans <dje@google.com>
19470
19471 * regcache.c (new_register_cache): No need to check result of xcalloc.
19472 * server.c (handle_search_memory): Back out calls to xmalloc,
19473 result is checked and error is returned to user upon failure.
19474 (handle_query): Ditto. Add more checks for result of malloc.
19475 (handle_v_cont): Check result of malloc, report error back to
19476 user upon failure.
19477 (handle_v_run): Ditto. Call freeargv.
19478 * server.h (freeargv): Declare.
19479 * utils.c (freeargv): New fn.
19480
54363045
DE
194812009-01-15 Doug Evans <dje@google.com>
19482
f626972c
DE
19483 * gdbreplay.c (perror_with_name): Make arg const char *.
19484 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19485 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19486 * utils.c (perror_with_name): Make arg const char *.
54363045 19487
18aae699
PA
194882009-01-14 Pedro Alves <pedro@codesourcery.com>
19489
19490 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19491 when handling a EXIT_PROCESS_DEBUG_EVENT.
19492
ff703abe
JB
194932009-01-06 Joel Brobecker <brobecker@adacore.com>
19494
19495 * gdbreplay.c (gdbreplay_version): Update copyright year.
19496 * server.c (gdbserver_version): Likewise.
19497
f21cc1a2 194982009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19499
19500 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19501 (handle_extended_wait): Improve comment.
0e21c1ec 19502
bca929d3
DE
195032008-12-13 Doug Evans <dje@google.com>
19504
19505 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19506 * server.h (ATTR_MALLOC): New macro.
19507 (xmalloc,xcalloc,xstrdup): Declare.
19508 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19509 * inferiors.c: Ditto.
19510 * linux-low.c: Ditto.
19511 * mem-break.c: Ditto.
19512 * regcache.c: Ditto.
19513 * remote-utils.c: Ditto.
19514 * server.c: Ditto.
19515 * target.c: Ditto.
19516 * win32-low.c: Ditto.
19517
97438e3f
DE
195182008-12-12 Doug Evans <dje@google.com>
19519
896c7fbb
DE
19520 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19521 in debugging printf.
19522
97438e3f
DE
19523 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19524
e3b886f8
DE
195252008-12-09 Doug Evans <dje@google.com>
19526
19527 * linux-low.h (struct process_info): Delete member tid, unused.
19528 * thread-db.c (find_one_thread): Update.
19529 (maybe_attach_thread): Update.
19530
07e059b5
VP
195312008-12-02 Pedro Alves <pedro@codesourcery.com>
19532
889bf7c5
PA
19533 * target.h (struct target_ops): Add qxfer_osdata member.
19534 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19535 and dirent.h.
19536 (linux_qxfer_osdata): New functions.
19537 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19538 callback.
19539 * server.c (handle_query): Handle "qXfer:osdata:read:".
19540 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19541 (buffer_xml_printf): New functions.
19542 * server.h (struct buffer): New.
19543 (buffer_grow_str, buffer_grow_str0): New macros.
19544 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19545 (buffer_xml_printf): Declare.
07e059b5 19546
4cab47ab
DE
195472008-11-24 Doug Evans <dje@google.com>
19548
19549 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19550
f142445f
DJ
195512008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19552
19553 * server.c (handle_v_run): Always use the supplied argument list.
19554
d0107bb6 195552008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19556
d0107bb6
BW
19557 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19558 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19559
2c4ad781
TJB
195602008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19561
19562 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19563 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19564 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19565 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19566 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19567 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19568 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19569 XML target descriptions.
19570 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19571 when inferior is running on an ISA 2.05 or later processor. Add
19572 special case to return offset for full 64-bit slot of FPSCR when
19573 in 32-bits.
19574
dfb64f85
DJ
195752008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19576
19577 * Makefile.in (SFILES, clean): Added sparc64 files.
19578 (reg-sparc64.o, reg-sparc64.c): New.
19579 * configure.srv (sparc*-*-linux*): New configuration.
19580 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19581 syscall arguments for SPARC.
19582 (regsets_store_inferior_registers): Likewise.
19583 * linux-sparc-low.c: New file.
19584
66b6e1dd
DE
195852008-10-21 Doug Evans <dje@google.com>
19586
19587 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19588 (READLINE_DIR,READLINE_DEP): Delete.
19589 (INTERNAL_CFLAGS): Update.
19590 (LINTFLAGS): Update.
19591
9b710a42
PA
195922008-10-10 Pedro Alves <pedro@codesourcery.com>
19593
19594 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19595 whole argv from the last run, not just argv[0].
19596
5822d809
PA
195972008-09-08 Pedro Alves <pedro@codesourcery.com>
19598
19599 * regcache.c (new_register_cache): Return NULL if the register
19600 cache size isn't known yet.
19601 (free_register_cache): Avoid dereferencing a NULL regcache.
19602
74aac56f
DJ
196032008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19604
19605 * configure.srv: Merge MIPS and MIPS64.
19606
400b20f5
MR
196072008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19608
19609 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19610
677c5bb1
LM
196112008-08-18 Luis Machado <luisgpm@br.ibm.com>
19612
19613 * Makefile.in: Add required vsx dependencies.
19614
19615 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19616 Declare init_registers_powerpc_vsx32l.
19617 Declare init_registers_powerpc_vsx64l.
19618 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19619 (ppc_arch_setup): Check for VSX in hwcap.
19620 (ppc_fill_vsxregset): New function.
19621 (ppc_store_vsxregset): New function.
19622 Add new VSX entry in regset_info target_regsets.
19623
19624 * configure.srv: Add new VSX dependencies.
19625
a6f3e723
SL
196262008-08-12 Pedro Alves <pedro@codesourcery.com>
19627
19628 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19629 (remote_open): Set or clear transport_is_reliable.
19630 (putpkt_binary): Don't expect acks in noack mode.
19631 (getpkt): Don't send ack/nac in noack mode.
19632 * server.c (handle_general_set): Handle QStartNoAckMode.
19633 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19634 qSupported.
19635 (main): Reset noack_mode on every connection.
19636 * server.h (noack_mode): Declare.
19637
a417dc56
RW
196382008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19639
19640 * Makefile.in (GDBREPLAY_OBS): New variable.
19641 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19642
3221518c
UW
196432008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19644 Daniel Jacobowitz <dan@codesourcery.com>
19645
19646 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19647 (usr_store_inferior_registers): Likewise.
19648 (regsets_store_inferior_registers): Likewise.
19649
ec56be1b
PA
196502008-07-31 Rolf Jansen <rj@surtec.com>
19651 Pedro Alves <pedro@codesourcery.com>
19652
19653 * configure.ac: Check for memmem declaration.
19654 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19655 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19656 (disable_packet_qfThreadInfo): Unconditionally compile.
19657 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19658 * configure, config.in: Regenerate.
19659
2fe5e3ff
DE
196602008-07-28 Doug Kwan <dougkwan@google.com>
19661
19662 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19663 (linux_write_memory): Remove declaration of errno.
19664
836acd6d
UW
196652008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19666
19667 * linux-low.c (handle_extended_wait): Do not use "status"
19668 variable uninitialized.
19669
aeba519e
PA
196702008-07-07 Pedro Alves <pedro@codesourcery.com>
19671
19672 * server.c (handle_v_attach): Inhibit reporting dll changes.
19673
db42f210
PA
196742008-06-27 Pedro Alves <pedro@codesourcery.com>
19675
19676 * remote-utils.c (prepare_resume_reply): If requested, don't
19677 output "thread:TID" in the T stop reply.
19678
19679 * server.c (disable_packet_vCont, disable_packet_Tthread)
19680 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19681 (handle_query): If requested, disable support for qC, qfThreadInfo
19682 and qsThreadInfo.
19683 (handle_v_requests): If requested, disable support for vCont.
19684 (gdbserver_show_disableable): New.
19685 (main): Handle --disable-packet and --disable-packet=LIST.
19686
19687 * server.h (disable_packet_vCont, disable_packet_Tthread)
19688 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19689
8e4c5421
CD
196902008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19691
19692 * server.c (gdbserver_usage): Mention --version.
19693
6e23a804
DJ
196942008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19695
19696 * Makefile.in (gdbreplay.o): New rule.
19697
90aa6a40
JM
196982008-06-06 Joseph Myers <joseph@codesourcery.com>
19699
19700 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19701 message, not gdbserver.
19702
c16158bc 197032008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19704 Nathan Sidwell <nathan@codesourcery.com>
19705 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19706
19707 * acinclude.m4: Include ../../config/acx.m4.
19708 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19709 * configure, config.in: Regenerate.
19710 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19711 * server.c (gdbserver_version): Print PKGVERSION.
19712 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19713 (main): Adjust gdbserver_usage calls.
19714 * gdbreplay.c (version, host_name): Add declarations.
19715 (gdbreplay_version, gdbreplay_usage): New.
19716 (main): Accept --version and --help options.
19717
aeb75bf5
DJ
197182008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19719
19720 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19721 (arm_breakpoint_at): Handle Thumb.
19722 (the_low_target): Add comment.
19723
76b233dd
UW
197242008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19725
19726 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19727
08388c79
DE
197282008-05-09 Doug Evans <dje@google.com>
19729
a3c83fae
DE
19730 * server.h (decode_search_memory_packet): Declare.
19731 * remote-utils.c (decode_search_memory_packet): New fn.
19732 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19733 (handle_search_memory): New fn.
19734 (handle_query): Process qSearch:memory packets.
19735
bb9c3d36
UW
197362008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19737
19738 * regcache.c (registers_length): Remove.
19739 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19740 full register packet.
19741 * regcache.h (registers_length): Remove prototype.
19742 * server.h (PBUFSIZ): Define to 16384.
19743
7284e1be
UW
197442008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19745
19746 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19747 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19748 powerpc-64l.o, and powerpc-altivec64l.o.
19749 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19750 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19751 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19752 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19753 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19754 to srv_xmlfiles.
19755
19756 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19757 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19758 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19759 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19760 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19761 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19762 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19763 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19764 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19765 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19766 (clean): Update.
19767
19768 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19769 (init_registers_powerpc_32l): ... this new prototype.
19770 (init_registers_powerpc_32): Remove, replace by ...
19771 (init_registers_powerpc_altivec32l): ... this new prototype.
19772 (init_registers_powerpc_e500): Remove, replace by ...
19773 (init_registers_powerpc_e500l): ... this new prototype.
19774 (init_registers_ppc64): Remove, replace by ...
19775 (init_registers_powerpc_64l): ... this new prototype.
19776 (init_registers_powerpc_64): Remove, replace by ...
19777 (init_registers_powerpc_altivec64l): ... this new prototype.
19778 (ppc_num_regs): Set to 73.
19779 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19780 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19781 (ppc_cannot_store_register): Handle orig_r3 and trap.
19782 (ppc_arch_setup): Update init_registers_... calls.
19783 (ppc_fill_gregset): Handle orig_r3 and trap.
19784
19785 * inferiors.c (clear_inferiors): Reset current_inferior.
19786
fdc59709
PB
197872008-04-23 Paolo Bonzini <bonzini@gnu.org>
19788
889bf7c5
PA
19789 * acinclude.m4: Add override.m4.
19790 * configure: Regenerate.
fdc59709 19791
c9b2f845
UW
197922008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19793
19794 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19795 initial call to init_register_ppc64.
19796
550512b8
UW
197972008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19798
43aaf8b6
PA
19799 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19800 single powerpc*-*-linux* case.
550512b8
UW
19801 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19802
b6430ec3
UW
198032008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19804
19805 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19806 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19807 from reg_xmlfiles.
19808 * linux-ppc-low.c: Include <elf.h>.
19809 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19810 (ppc_hwcap): New global variable.
19811 (ppc_regmap): Remove __SPE__ #ifdef sections.
19812 (ppc_regmap_e500): New global variable.
19813 (ppc_cannot_store_register): Update __SPE__ special case.
19814 (ppc_get_hwcap): New function.
19815 (ppc_arch_setup): Use it to determine whether inferior supports
19816 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19817 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19818 Do not access registers if target does not support AltiVec.
19819 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19820 Do not access registers if target does not support SPE.
19821 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19822
52fa2412
UW
198232008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19824
19825 * linux-low.c (disabled_regsets, num_regsets): New.
19826 (use_regsets_p): Delete.
19827 (linux_wait_for_process): Clear disabled_regsets.
19828 (regsets_fetch_inferior_registers): Check and set it.
19829 (regsets_store_inferior_registers): Likewise.
19830 (linux_fetch_registers, linux_store_registers): Do not use
19831 use_regsets_p.
19832 (initialize_low): Allocate disabled_regsets.
19833
e28b3332
DJ
198342008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19835
19836 * Makefile.in (LIBOBJS): New.
19837 (OBS): Use LIBOBJS.
19838 (memmem.o): New rule.
19839 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19840 * configure: Regenerated.
19841
4536995d
UW
198422008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19843
19844 * server.c (handle_query): Never return "unsupported" for
19845 qXfer:features:read queries.
19846
221c031f
UW
198472008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19848
19849 * server.c (get_features_xml): Fix inverted condition.
19850 (handle_query): Always support qXfer:feature:read.
19851
ccd213ac
DJ
198522008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19853
19854 * server.c (wrapper_argv): New.
19855 (start_inferior): Handle wrapper_argv. If set, expect an extra
19856 trap.
19857 (gdbserver_usage): Document --wrapper.
19858 (main): Parse --wrapper.
19859
6fe305f7
UW
198602008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19861
19862 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19863 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19864 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19865 (ppc_set_pc): Likewise.
19866 (ppc_arch_setup): New function.
19867 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19868 of collect_register.
889bf7c5 19869 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19870
5b0a002e
UW
198712008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19872
19873 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19874 instead of linux-ppc64-low.o.
19875 * linux-ppc64-low.c: Remove file.
19876 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19877 (linux-ppc64-low.o): Remove rule.
19878
19879 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19880 (init_registers_powerpc_64): Likewise.
19881 (ppc_regmap): Conditionally define depending on __powerpc64__.
19882 (ppc_cannot_store_register): Do not special-case "fpscr" when
19883 compiled on __powerpc64__.
19884 (ppc_collect_ptrace_register): New function.
19885 (ppc_supply_ptrace_register): New function.
19886 (ppc_breakpoint): Change type to "unsigned int".
19887 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19888 (the_low_target): Conditionally provide initializers for the
889bf7c5 19889 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19890 collect_ptrace_register and supply_ptrace_register members.
19891
9b4b61c8
UW
198922008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19893
19894 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19895 * server.c (gdbserver_xmltarget): Define.
19896 (get_features_xml): Use it to replace "target.xml" and arch_string.
19897
19898 * configure.srv: Remove srv_xmltarget. Add XML files that were
19899 mentioned there to srv_xmlfiles instead. Remove conditional tests
19900 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19901 srv_xmlfiles and srv_regobj to include all possible choices.
19902 * configure.ac (srv_xmltarget): Remove.
19903 (srv_xmlfiles): Do not add "target.xml".
19904 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19905 checks for supplementary target information.
19906 * configure: Regenerate.
19907 * Makefile.in (XML_TARGET): Remove.
19908 (target.xml): Remove rule.
19909 (clean): Do not clean up target.xml.
19910 (.PRECIOUS): Do not mention target.xml.
19911
19912 * target.h (struct target_ops): Remove arch_string member.
19913 * linux-low.c (linux_arch_string): Remove.
19914 (linux_target_ops): Remove arch_string initializer.
19915 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19916 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19917 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19918 * spu-low.c (spu_arch_string): Remove.
19919 (spu_target_ops): Remove arch_string initializer.
19920 * win32-low.c (win32_arch_string): Remove.
19921 (win32_target_ops): Remove arch_string initializer.
19922 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19923 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19924 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19925
ee1a7ae4
UW
199262008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19927
19928 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19929 by collect_ptrace_register and supply_ptrace_register hooks.
19930 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19931 instead of checking for the_low_target.left_pad_xfer.
19932 (usr_store_inferior_registers): Use collect_ptrace_register callback
19933 instead of checking for the_low_target.left_pad_xfer.
19934
19935 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19936 (s390_supply_ptrace_register): Likewise.
19937 (s390_fill_gregset): Call s390_collect_ptrace_register.
19938 (the_low_target): Update.
19939
19940 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19941 (ppc_supply_ptrace_register): Likewise.
19942 (the_low_target): Update.
19943
19944 * linux-i386-low.c (the_low_target): Update.
19945 * linux-x86-64-low.c (the_low_target): Update.
19946
d61ddec4
UW
199472008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19948
19949 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19950 reg-s390.o and reg-s390x.o.
19951
19952 * linux-low.c (new_inferior): New global variable.
19953 (linux_create_inferior, linux_attach): Set it.
19954 (linux_wait_for_process): Call the_low_target.arch_setup after the
19955 target has stopped for the first time.
19956 (initialize_low): Do not call the_low_target.arch_setup.
19957
19958 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19959 (s390_set_pc): Likewise.
19960 (s390_arch_setup): New function.
19961 (the_low_target): Use s390_arch_setup as arch_setup routine.
19962
19963 * regcache.c (realloc_register_cache): New function.
19964 (set_register_cache): Call it for each existing regcache.
19965
d05b4ac3
UW
199662008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19967
19968 * server.h (init_registers): Remove prototype.
19969
19970 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19971 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19972 instead of init_registers ().
19973 * linux-arm-low.c (init_registers_arm): Add prototype.
19974 (init_registers_arm_with_iwmmxt): Likewise.
19975 (the_low_target): Add initializer for arch_setup field.
19976 * linux-cris-low.c (init_registers_cris): Add prototype.
19977 (the_low_target): Add initializer for arch_setup field.
19978 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19979 (the_low_target): Add initializer for arch_setup field.
19980 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19981 (the_low_target): Add initializer for arch_setup field.
19982 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19983 (the_low_target): Add initializer for arch_setup field.
19984 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19985 (the_low_target): Add initializer for arch_setup field.
19986 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19987 (the_low_target): Add initializer for arch_setup field.
19988 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19989 (init_registers_mips64_linux): Likewise.
19990 (the_low_target): Add initializer for arch_setup field.
19991 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19992 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19993 (the_low_target): Add initializer for arch_setup field.
19994 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19995 (init_registers_powerpc_64): Likewise.
19996 (the_low_target): Add initializer for arch_setup field.
19997 * linux-s390-low.c (init_registers_s390): Add prototype.
19998 (init_registers_s390x): Likewise.
19999 (the_low_target): Add initializer for arch_setup field.
20000 * linux-sh-low.c (init_registers_sh): Add prototype.
20001 (the_low_target): Add initializer for arch_setup field.
20002 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20003 (the_low_target): Add initializer for arch_setup field.
20004 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20005 (the_low_target): Add initializer for arch_setup field.
20006
20007 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20008 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20009 instead of init_registers ().
20010 * win32-arm-low.c (init_registers_arm): Add prototype.
20011 (the_low_target): Add initializer for arch_setup field.
20012 * win32-i386-low.c (init_registers_i386): Add prototype.
20013 (the_low_target): Add initializer for arch_setup field.
20014
20015 * spu-low.c (init_registers_spu): Add prototype.
20016 (initialize_low): Call initialie_registers_spu () instead of
20017 initialize_registers ().
20018
fd96d250
PA
200192008-02-19 Pedro Alves <pedro@codesourcery.com>
20020
20021 * server.c (handle_v_requests): When handling the vRun and vAttach
20022 packets, if already debugging a process, don't kill it. Return an
20023 error instead.
20024
d41b6bb4
DJ
200252008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20026
20027 * server.c (handle_query): Correct length check.
20028
5ac588cf
PA
200292008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20030
20031 * win32-low.c (do_initial_child_stuff): Add process handle
20032 parameter. Set current_process_handle and current_process_id from the
20033 parameters. Clear globals.
20034 (win32_create_inferior): Don't set current_process_handle and
20035 current_process_id here. Instead pass them on the call to
20036 do_initial_child_stuff.
20037 (win32_attach): Likewise.
20038 (win32_clear_inferiors): New.
20039 (win32_kill): Don't close the current process handle or the
20040 current thread handle here. Instead call win32_clear_inferiors.
20041 (win32_detach): Don't open a new handle to the process. Call
20042 win32_clear_inferiors.
20043 (win32_join): Don't rely on current_process_handle; open a new
20044 handle using the process id.
20045 (win32_wait): Call win32_clear_inferiors when the inferior process
20046 has exited.
20047
ecd7ecbc
DJ
200482008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20049
20050 * server.c (monitor_show_help): Add "exit".
20051
1525d545
MG
200522008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20053
ecd7ecbc 20054 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20055 (clean): Add reg-xtensa.c.
20056 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20057 * configure.srv (xtensa*-*-linux*) New target.
20058 * linux-xtensa-low.c: New.
20059 * xtensa-xtregs.c: New.
1525d545 20060
59a016f0
PA
200612008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20062
20063 * hostio.c: Don't include errno.h.
20064 (errno_to_fileio_errno): Move to hostio-errno.
20065 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20066 error number outputting to the target->hostio_last_error callback.
20067 (hostio_packet_error): Use FILEIO_EINVAL directly.
20068 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20069 calls to hostio_error.
20070 * hostio-errno.c: New.
20071 * server.h (hostio_last_error_from_errno): Declare.
20072 * target.h (target_ops): Add hostio_last_error member.
20073 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20074 as hostio_last_error handler.
889bf7c5 20075 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20076 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20077 (wince_hostio_last_error): New functions.
20078 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20079 as hostio_last_error handler.
20080 (win32_target_ops) [!_WIN32_WCE]: Register
20081 hostio_last_error_from_errno as hostio_last_error handler.
20082 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20083 (hostio-errno.o): New rule.
20084 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20085 * configure.srv (srv_hostio_err_objs): New variable. Default to
20086 hostio-errno.o.
20087 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20088 * configure: Regenerate.
20089
2d717e4f
DJ
200902008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20091
20092 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20093 (linux_kill, linux_detach): Clean up the process list.
20094 * remote-utils.c (remote_open): Improve port number parsing.
20095 (putpkt_binary, input_interrupt): Only send interrupts if the target
20096 is running.
20097 * server.c (extended_protocol): Make static.
20098 (attached): Define earlier.
20099 (exit_requested, response_needed, program_argv): New variables.
20100 (target_running): New.
20101 (start_inferior): Clear attached here.
20102 (attach_inferior): Set attached here.
20103 (require_running): Define.
20104 (handle_query): Use require_running and target_running. Implement
20105 "monitor exit".
20106 (handle_v_attach, handle_v_run): New.
20107 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20108 (gdbserver_usage): Update.
20109 (main): Redo argument parsing. Handle --debug and --multi. Handle
20110 --attach along with other options or after the port. Save
20111 program_argv. Support no initial program. Resynchronize
20112 communication with GDB after an error. Handle "monitor exit".
20113 Use require_running and target_running. Always allow the extended
20114 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20115 restart in extended mode.
20116 * README: Refer to the GDB manual. Update --attach usage.
20117
7407e2de
AS
201182007-12-20 Andreas Schwab <schwab@suse.de>
20119
20120 * linux-low.c (STACK_SIZE): Define.
20121 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20122 (linux_test_for_tracefork): Likewise.
20123
b65d95c5
DJ
201242007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20125
20126 * linux-low.c (linux_wait_for_event): Update messages. Do not
20127 reinsert auto-delete breakpoints.
20128 * mem-break.c (struct breakpoint): Change return type of handler to
20129 int.
20130 (set_breakpoint_at): Update handler type.
20131 (reinsert_breakpoint_handler): Return 1 instead of calling
20132 delete_breakpoint.
20133 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20134 setting a new one.
20135 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20136 * mem-break.h (set_breakpoint_at): Update handler type.
20137 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20138 * win32-low.c (auto_delete_breakpoint): New.
20139 (get_child_debug_event): Use it.
20140
4e799345
DJ
201412007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20142
20143 * configure.ac: Check for pread and pwrite.
20144 * hostio.c (handle_pread): Fall back to lseek and read.
20145 (handle_pwrite): Fall back to lseek and write.
20146 * config.in, configure: Regenerated.
20147
27524b67
DJ
201482007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20149
20150 * server.c (myresume): Add own_buf argument.
20151 (main): Update calls.
20152
a20d5e98
DJ
201532007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20154
20155 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20156 * remote-utils.c (remote_open): Do not call disable_async_io.
20157 (block_async_io): Delete.
20158 (unblock_async_io): Make static.
20159 (initialize_async_io): New.
20160 * server.c (handle_v_cont): Handle async I/O here.
20161 (myresume): Likewise. Move other common resume tasks here...
20162 (main): ... from here. Call initialize_async_io. Disable async
20163 I/O before the main loop.
20164 * server.h (initialize_async_io): Declare.
20165 (block_async_io, unblock_async_io): Delete prototypes.
20166 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20167
b79d787e
DJ
201682007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20169
20170 * remote-utils.c (readchar): Allow binary data in received messages.
20171
d97903b2
PA
201722007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20173
20174 * win32-low.c (attaching): New global.
20175 (win32_create_inferior): Clear the `attaching' global.
20176 (win32_attach): Set the `attaching' global.
20177 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20178 attaching. Only set a breakpoint at the entry point if not
20179 attaching.
20180
311de423
PA
201812007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20182
20183 * server.c (main): Don't report dll events on the initial
20184 connection on attaches.
20185
6c2d16d2
PA
201862007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20187
20188 * server.c (main): Relax numerical bases supported for the pid of
20189 the --attach command line argument.
20190
5ca906e6
PA
201912007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20192
20193 * win32-low.c (win32_attach): Call OpenProcess before
20194 DebugActiveProcess, not after. Add last error output to error
20195 call.
20196
9c6c8194
PA
201972007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20198
20199 * win32-low.c (win32_get_thread_context)
20200 (win32_set_thread_context): New functions.
20201 (thread_rec): Use win32_get_thread_context.
20202 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20203 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20204 field.
20205
4d5d1aaa
PA
202062007-12-03 Leo Zayas
20207 Pedro Alves <pedro_alves@portugalmail.pt>
20208
20209 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20210 global variables.
20211 (child_add_thread): Minor cleanup.
20212 (child_continue): Resume artificially suspended threads before
20213 calling ContinueDebugEvent.
20214 (suspend_one_thread): New.
20215 (fake_breakpoint_event): New.
20216 (get_child_debug_event): Change return type to int. Check here if
20217 gdb sent an interrupt request. If a soft interrupt was requested,
20218 fake a breakpoint event. Return 0 if there is no event to handle,
20219 and 1 otherwise.
20220 (win32_wait): Don't check here if gdb sent an interrupt request.
20221 Ensure there is a valid event to handle.
20222 (win32_request_interrupt): Add soft interruption method as last
20223 resort.
20224
c436e841
PA
202252007-12-03 Leo Zayas
20226 Pedro Alves <pedro_alves@portugalmail.pt>
20227
20228 * win32-low.h (win32_thread_info): Add descriptions to the
20229 structure members. Replace `suspend_count' counter by a
20230 `suspended' flag.
20231 * win32-low.c (thread_rec): Update condition of when to get the
20232 context from the inferior. Rely on ContextFlags being set if it
20233 has already been retrieved. Only suspend the inferior thread if
20234 we haven't already. Warn if that fails.
20235 (continue_one_thread): s/suspend_count/suspended/. Only call
20236 ResumeThread once. Warn if that fails.
20237
e7b5fa67
PA
202382007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20239
20240 * win32-low.c (win32_wait): Don't read from the inferior when it
20241 has already exited.
20242
a385171d
PA
202432007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20244
20245 * Makefile.in (win32_low_h): New variable.
20246 (win32-low.o): Add dependency on $(win32_low_h).
20247 (win32-arm-low.o, win32-i386-low.o): New rules.
20248
f80c84b3
DJ
202492007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20250
20251 * hostio.c: Correct copyright year.
20252
a6b151f1
DJ
202532007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20254
20255 * Makefile.in (OBS): Add hostio.o.
20256 (hostio.o): New rule.
20257 * server.h (handle_vFile): Declare.
20258 * hostio.c: New file.
20259 * server.c (handle_v_requests): Take packet_len and new_packet_len
20260 for binary packets. Call handle_vFile.
20261 (main): Update call to handle_v_requests.
20262
f9387fc3
DJ
202632007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20264
20265 * linux-low.c: Include <sched.h>.
20266
51c2684e
DJ
202672007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20268
20269 * linux-low.c (linux_tracefork_grandchild): New.
20270 (linux_tracefork_child): Use clone.
20271 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20272
75f83163
JB
202732007-10-31 Joel Brobecker <brobecker@adacore.com>
20274
20275 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20276
da5898ce
DJ
202772007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20278
20279 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20280
24a09b5f
DJ
202812007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20282
20283 * inferiors.c (change_inferior_id): Delete.
20284 (add_pid_to_list, pull_pid_from_list): New.
20285 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20286 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20287 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20288 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20289 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20290 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20291 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20292 (using_threads): Always set to 1.
20293 (handle_extended_wait): New.
20294 (add_process): Do not set TID.
20295 (linux_create_inferior): Set must_set_ptrace_flags.
20296 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20297 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20298 (linux_thread_alive): Rename TID argument to LWPID.
20299 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20300 (linux_wait_for_event): Do not use TID or check using_threads. Update
20301 call to dead_thread_notify. Call handle_extended_wait.
20302 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20303 (send_sigstop): Delete sigstop_sent.
20304 (wait_for_sigstop): Avoid TID.
20305 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20306 (linux_test_for_tracefork): New.
20307 (linux_lookup_signals): Use thread_db_active and
20308 linux_supports_tracefork_flag.
20309 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20310 * linux-low.h (get_process_thread): Avoid TID.
20311 (struct process_ifo): Move thread_known and tid to the end. Remove
20312 sigstop_sent.
20313 (linux_attach_lwp, thread_db_init): Update prototypes.
20314 * server.h (change_inferior_id): Delete prototype.
20315 (add_pid_to_list, pull_pid_from_list): New prototypes.
20316 * thread-db.c (thread_db_use_events): New.
20317 (find_first_thread): Rename to...
20318 (find_one_thread): ...this. Update callers and messages. Do not
20319 call fatal. Check thread_db_use_events. Do not call
20320 change_inferior_id or new_thread_notify.
20321 (maybe_attach_thread): Update. Do not call new_thread_notify.
20322 (thread_db_init): Set thread_db_use_events. Check use_events.
20323 * utils.c (fatal, warning): Correct message prefix.
20324
30ed0a8f
DJ
203252007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20326
20327 * Makefile.in (clean): Remove new files.
20328 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20329 (powerpc-64.o, powerpc-64.c): New rules.
20330 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20331 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20332 with SPE.
20333 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20334 SPE targets.
20335 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20336 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20337 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20338 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20339 (target_regsets): Add AltiVec and SPE register sets.
20340 * configure.ac: Check for AltiVec and SPE.
20341 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20342 (ppc_fill_vrregset, ppc_store_vrregset): New.
20343 (target_regsets): Add AltiVec register set.
20344 * configure: Regenerated.
20345
fd462a61
DJ
203462007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20347
20348 * linux-low.c (O_LARGEFILE): Define.
20349 (linux_read_memory): Use /proc/PID/mem.
20350 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20351 * configure, config.in: Regenerated.
20352
69f223ed
DJ
203532007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20354
20355 * linux-low.c (linux_wait_for_event): Do not pass signals while
20356 single-stepping.
20357
aec18585
PA
203582007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20359
20360 * win32-low.c (create_process): New.
20361 (win32_create_inferior): Use create_process instead of
20362 CreateProcess. If create_process failed retry appending an ".exe"
20363 suffix. Store the GetLastError result immediatelly after
20364 create_process calls and use it on the call to error.
20365
34d86ddd
PA
203662007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20367
20368 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20369
5a0e3bd0
JB
203702007-08-23 Joel Brobecker <brobecker@adacore.com>
20371
20372 * configure.ac: Switch license to GPLv3.
20373
f88c79e6
MS
203742007-08-01 Michael Snyder <msnyder@access-company.com>
20375
20376 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20377
6b3d9b83
PA
203782007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20379
20380 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20381 typedef.
20382 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20383 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20384 CloseToolhelp32Snapshot.
20385 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20386 CloseToolhelp32Snapshot.
20387
c588c53c
MS
203882007-07-27 Michael Snyder <michael.snyder@access-company.com>
20389
20390 * server.c (main): Check for inferior exit before main loop.
20391
aa0403d9
PA
203922007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20393
20394 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20395 instead of on tmp_desc.
20396
255e7678
DJ
203972007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20398 Daniel Jacobowitz <dan@codesourcery.com>
20399
20400 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20401 (add_thread): Minor cleanups.
20402 (clear_inferiors): Move lower in the file. Clear the DLL
20403 list.
20404 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20405 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20406 (xml_escape_text): New.
20407 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20408 for qSupported.
20409 (handle_v_cont): Report errors.
20410 (gdbserver_version): Update.
20411 (main): Correct size of own_buf. Do not report initial DLL events.
20412 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20413 (unloaded_dll, xml_escape_text): New.
20414 * win32-low.c (enum target_waitkind): Update comments.
20415 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20416 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20417 (win32_EnumProcessModules, win32_GetModuleInformation)
20418 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20419 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20420 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20421 (win32_Module32First, win32_Module32Next, load_toolhelp)
20422 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20423 (get_child_debug_event): Handle DLL events.
20424 (win32_wait): Likewise.
20425
0d37add9
DJ
204262007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20427
20428 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20429 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20430
45e2715e
PA
204312007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20432
20433 * win32-low.c (handle_output_debug_string): Ignore event if not
20434 waiting.
20435
c5674cf1
PA
204362007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20437
20438 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20439
2bbe3cc1
DJ
204402007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20441
20442 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20443
ae13219e
DJ
204442007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20445
20446 * inferiors.c (change_inferior_id): Add comment.
20447 * linux-low.c (check_removed_breakpoint): Add an early
20448 prototype. Improve debug output.
20449 (linux_attach): Doc update.
20450 (linux_detach_one_process, linux_detach): Clean up before releasing
20451 each process.
20452 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20453 * linux-low.h (struct process_info): Doc improvement.
20454 * mem-break.c (delete_all_breakpoints): New.
20455 * mem-break.h (delete_all_breakpoints): New prototype.
20456 * thread-db.c (find_first_thread): New.
20457 (thread_db_create_event): Call it instead of
20458 thread_db_find_new_threads. Clean up unused variables.
20459 (maybe_attach_thread): Remove first thread handling.
20460 (thread_db_find_new_threads): Use find_first_thread.
20461 (thread_db_get_tls_address): Likewise.
20462
4105de34
DJ
204632007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20464
20465 * thread-db.c (thread_db_find_new_threads): Add prototype.
20466 (thread_db_create_event): Check for the main thread before adding
20467 a new thread.
20468 (maybe_attach_thread): Only enable event reporting if TID == 0.
20469 (thread_db_get_tls_address): Check for new threads.
20470
2b876972
DJ
204712007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20472
20473 * linux-low.c (linux_create_inferior): Try execv before execvp.
20474 * spu-low.c (spu_create_inferior): Likewise.
20475
7a245884
DJ
204762007-06-13 Mike Frysinger <vapier@gentoo.org>
20477
20478 * linux-low.c (linux_create_inferior): Change execv to execvp.
20479 * spu-low.c (spu_create_inferior): Likewies.
20480
117ce543
DJ
204812007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20482
20483 * Makefile.in (clean): Clean new files instead of deleted ones.
20484 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20485 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20486 rules.
20487 * configure.srv: Specify XML files and new regformats for MIPS and
20488 MIPS64 GNU/Linux.
20489 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20490 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20491 an entry for the restart register.
20492 (mips_cannot_fetch_register, mips_cannot_store_register)
20493 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20494 register names to match the XML descriptions.
20495 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20496 restart register instead of $0.
20497
0e7f50da
UW
204982007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20499 Markus Deuling <deuling@de.ibm.com>
20500
20501 * remote-utils.c (decode_xfer_write): New function.
20502 * server.h (decode_xfer_write): Add prototype.
20503 * server.c (handle_query): Add PACKET_LEN argument. Support
20504 qXfer:spu:read and qXfer:spu:write packets.
20505 (main): Pass packet_len to handle_query.
20506 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20507 * target.h (target_ops): Add qxfer_spu.
20508
374c1d38
UW
205092007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20510
20511 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20512 accessing non-seekable spufs files.
20513
bb63802a
UW
205142007-05-16 Markus Deuling <deuling@de.ibm.com>
20515
889bf7c5 20516 * server.c (handle_query): Add reply for qC packet.
bb63802a 20517
7390519e
PA
205182007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20519 Leo Zayas <lerele@champenstudios@com>
20520
20521 * server.h (check_remote_input_interrupt_request): New function.
20522 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20523 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20524 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20525 (check_remote_input_interrupt_request): New function.
20526 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20527 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20528 winapi_GenerateConsoleCtrlEvent): New typedefs.
20529 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20530 to 250 ms.
20531 (win32_wait): Check for remote interrupt request
20532 with check_remote_input_interrupt_request.
20533 (win32_request_interrupt): New function.
20534 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20535
34b34921
PA
205362007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20537
20538 * win32-low.c (debug_registers_changed,
20539 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20540 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20541 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20542 (thread_rec): Get context using the low target.
20543 (child_add_thread): Call thread_added on the low target,
20544 which does the same thing.
20545 (regptr): Delete.
20546 (do_initial_child_stuff): Remove debug registers references.
20547 Set context using the low target. Resume threads after
20548 setting the contexts.
20549 (child_continue): Remove dead variable. Remove debug
20550 registers references.
20551 (child_fetch_inferior_registers): Go through the low target.
20552 (do_child_store_inferior_registers): Remove.
20553 (child_store_inferior_registers): Go through the low target.
20554 (win32_resume): Remove debug registers references.
20555 Set context using the low target.
20556 (handle_exception): Change return type to void. Don't record
20557 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20558 first chance exception.
889bf7c5 20559 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20560 goto loop. Always return after waiting for debug event.
20561 (win32_wait): Convert to switch statement. Handle spurious
20562 events.
20563
20564 * win32-i386-low.c (debug_registers_changed,
20565 debug_registers_used): New.
20566 (initial_stuff): Rename to ...
20567 (i386_initial_stuff): ... this. Clear debug registers
20568 state variables.
20569 (store_debug_registers): Delete.
20570 (i386_get_thread_context): New.
20571 (load_debug_registers): Delete.
20572 (i386_set_thread_context): New.
20573 (i386_thread_added): New.
20574 (single_step): Rename to ...
20575 (i386_single_step): ... this.
20576 (do_fetch_inferior_registers): Rename to ...
20577 (i386_fetch_inferior_register): ... this.
20578 (i386_store_inferior_register): New.
20579 (the_low_target): Adapt to new interface.
20580
20581 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20582 (arm_get_thread_context): New.
20583 (arm_set_thread_context): New.
20584 (regptr): New.
20585 (do_fetch_inferior_registers): Rename to ...
20586 (arm_fetch_inferior_register): ... this.
20587 (arm_store_inferior_register): New.
20588 (arm_wince_breakpoint): Reimplement as unsigned long.
20589 (arm_wince_breakpoint_len): Define.
20590 (the_low_target): Adapt to new interface.
20591
20592 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20593 load_debug_registers. Add get_thread_context, set_thread_context,
20594 thread_added and store_inferior_register. Rename
20595 fetch_inferior_registers to fetch_inferior_register.
20596 (regptr): Remove declaration.
20597
dd6953e1
PA
205982007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20599
20600 * linux-low.c (linux_detach): Change return type to int. Return 0.
20601 * spu-low.c (spu_detach): Likewise.
20602
444d6139
PA
206032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20604
20605 * target.h (target_ops): Change return type of detach to int.
20606 Add join.
20607 (join_inferior): New.
20608 * server.c (main): Don't skip detach support on mingw32.
20609 If the inferior doesn't support detaching return error.
20610 Call join_inferior instead of using waitpid.
20611 * linux-low.c (linux_join): New.
20612 (linux_target_op): Add linux_join.
20613 * spu-low.c (spu_join): New.
20614 (spu_target_ops): Add spu_join.
20615 * win32-low.c (win32_detach): Adapt to new interface.
20616 Reopen current_process_handle before detaching. Issue a child
20617 resume before detaching.
20618 (win32_join): New.
20619 (win32_target_op): Add win32_join.
20620
1d5315fe
PA
206212007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20622
20623 * win32-low.c (win32-attach): Fix return value.
20624 * target.h (target_ops): Describe ATTACH return values.
20625
bf914831
PA
206262007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20627
20628 * win32-low.c (GETPROCADDRESS): Define.
20629 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20630 (winapi_DebugSetProcessKillOnExit): Likewise.
20631 (win32_create_inferior): Force usage of ansi CreateProcessA.
20632 (win32_attach): Use GETPROCADDRESS.
20633 (win32_detach): Likewise.
20634
f72f3e60
PA
206352007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20636
20637 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20638
ed50f18f
PA
206392007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20640
20641 * win32-low.c: Commit leftover changes from 2007-03-29.
20642
0c2ead7e
DJ
206432007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20644
20645 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20646 fields short instead of int. Add explicit padding.
20647 (i387_cache_to_fsave): Remove unnecessary casts.
20648 (i387_fsave_to_cache): Doc fix.
20649 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20650
73725ff3
DJ
206512007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20652
20653 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20654 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20655
d99f33d8
PA
206562007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20657
20658 * configure.srv (arm*-*-mingw32ce*): Move near the other
20659 arm targets.
20660
68070c10
PA
206612007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20662
2482afc6 20663 * configure.ac: Add errno checking.
68070c10
PA
20664 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20665 sys/file.h and malloc.h.
20666 (AC_CHECK_DECLS): Add perror.
20667 (srv_mingwce): Handle.
2482afc6 20668 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20669 win32-i386-low.o to srv_tgtobj.
20670 (i[34567]86-*-mingw*): Likewise.
20671 (arm*-*-mingw32ce*): Add case.
20672 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20673 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20674 [__MINGW32CE__] (strerror): New function.
20675 [__MINGW32CE__] (errno): Define to GetLastError.
20676 [__MINGW32CE__] (COUNTOF): New macro.
20677 (remote_open): Remove extra close call.
20678 * mem-break.c (delete_breakpoint_at): New function.
20679 * mem-break.h (delete_breakpoint_at): Declare.
20680 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20681 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20682 [USE_WIN32API] (read, write): Add char* casts.
20683 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20684 * server.h: Include wincecompat.h on Windows CE.
20685 [HAVE_ERRNO_H]: Check.
20686 (perror): Declare if not declared.
20687 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20688 (perror_with_name): Remove errno declaration.
20689 * wincecompat.h: New.
20690 * wincecompat.c: New.
20691 * win32-low.h: New.
20692 * win32-arm-low.c: New.
20693 * win32-i386-low.c: New.
20694 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20695 (OUTMSG2): Make it safe.
20696 (_T): New macro.
20697 (COUNTOF): New macro.
20698 (NUM_REGS): Get it from the low target.
20699 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20700 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20701 (thread_rec): Let low target handle debug registers.
20702 (child_add_thread): Likewise.
20703 (child_init_thread_list): Likewise.
20704 (continue_one_thread): Likewise.
20705 (regptr): New.
20706 (do_child_fetch_inferior_registers): Move to ...
20707 * win32-i386-low.c: ... here, and rename to ...
20708 (do_fetch_inferior_registers): ... this.
889bf7c5 20709 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20710 Go through the low target.
20711 (do_child_store_inferior_registers): Use regptr.
20712 (strwinerror): New function.
20713 (win32_create_inferior): Handle Windows CE.
20714 Use strwinerror instead of strerror on Windows error
20715 codes. Add program to the error output.
20716 Don't close the main thread handle on Windows CE.
20717 (win32_attach): Use coredll.dll on Windows CE.
20718 (win32_kill): Close current process and current
20719 thread handles.
20720 (win32_detach): Use coredll.dll on Windows CE.
20721 (win32_resume): Let low target handle debug registers, and
20722 step request.
20723 (handle_exception): Add/Remove initial breakpoint. Avoid
20724 non-existant WSTOPSIG on Windows CE.
20725 (win32_read_inferior_memory): Cast to remove warning.
20726 (win32_arch_string): Go through the low target.
20727 (initialize_low): Call set_breakpoint_data with the low
20728 target's breakpoint.
20729 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20730 FOP_REGNUM, mappings): Move to ...
20731 * win32-i386-low.c: ... here.
20732 * win32-low.c (win32_thread_info): Move to ...
20733 * win32-low.h: ... here.
20734 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20735 win32-arm-low.c and wincecompat.c.
20736 (all:): Add $EXEEXT.
20737 (install-only:): Likewise.
20738 (gdbserver:): Likewise.
20739 (gdbreplay:): Likewise.
20740 * config.in: Regenerate.
20741 * configure: Regenerate.
20742
41093d81
PA
207432007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20744
20745 * win32-low.c: Rename typedef thread_info to
20746 win32_thread_info throughout.
20747
544afa54
PA
207482007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20749
20750 * win32-i386-low.c: Rename to ...
20751 * win32-low.c: ... this.
20752 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20753 * Makefile.in: Likewise.
20754
bce7165d
PA
207552007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20756
20757 * remote-utils.c (monitor_output): Constify msg parameter.
20758 * server.h (monitor_output): Likewise.
20759 * win32-i386-low.c (handle_output_debug_string): New.
20760 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20761 handle_output_debug_string.
20762 (get_child_debug_event): Likewise.
20763
506c7aa0
DJ
207642007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20765
20766 * server.c (main): Correct strtoul check.
20767
42c81e2a
DJ
207682007-03-27 Jon Ringle <jon@ringle.org>
20769
20770 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20771
9453113a
DJ
207722007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20773
20774 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20775
64a69107
DJ
207762007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20777
20778 * terminal.h: Check HAVE_SGTTY_H.
20779
207802007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20781
20782 * remote-utils.c (remote_open): Print out the assigned port number.
20783
c74d0ad8
DJ
207842007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20785
20786 * remote-utils.c (monitor_output): New function.
20787 * server.c (debug_threads): Define here.
20788 (monitor_show_help): New function.
20789 (handle_query): Handle qRcmd.
20790 (main): Do not handle 'd' packet.
20791 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20792 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20793 of debug_threads.
20794
de7c3b4a
PA
207952007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20796
20797 * Makefile.in (EXEEXT): New.
20798 (clean): Use $(EXEEXT).
20799
ef57601b
PA
208002007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20801
20802 * target.h (target_ops): Rename send_signal to request_interrupt,
20803 and remove enum target_signal parameter.
20804 * linux-low.c (linux_request_interrupt): Rename from
20805 linux_send_signal, and always send SIGINT.
20806 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20807 and always send SIGINT.
20808 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20809 of send_signal.
20810 (input_interrupt): Likewise.
20811
820f2bda
PA
208122007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20813
20814 * server.c (get_features_xml): Check if target implemented
20815 arch_string.
20816 * win32-i386-low.c (win32_arch_string): New.
20817 (win32_target_ops): Add win32_arch_string as arch_string member.
20818
ab39bf24
UW
208192007-02-22 Markus Deuling <deuling@de.ibm.com>
20820
20821 * spu-low.c (spu_arch_string): New.
20822 (spu_target_ops): Add spu_arch_string.
20823
61ff6e04
DJ
208242007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20825
20826 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20827 * configure.ac: Do not check for terminal.h.
20828 * configure, config.in: Regenerated.
20829
fb1e4ffc
DJ
208302007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20831
20832 * Makefile.in (OBS): Add $(XML_BUILTIN).
20833 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20834 (clean): Update.
20835 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20836 (arm-with-iwmmxt.c): New.
20837 * config.in, configure: Regenerate.
20838 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20839 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20840 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20841 (arm*-*-linux*): Add iWMMXt and regset support.
20842 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20843 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20844 (arm_store_wmmxregset, target_regsets): New.
20845 * server.c (get_features_xml): Take annex argument. Check builtin
20846 XML documents.
20847 (handle_query): Handle multiple annexes.
20848
0f48aa01
DJ
208492007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20850
20851 * remote-utils.c [USE_WIN32API] (read, write): Define.
20852 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20853 write.
20854
23181151
DJ
208552007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20856
20857 * linux-i386-low.c (the_low_target): Set arch_string.
20858 * linux-x86-64-low.c (the_low_target): Likewise.
20859 * linux-low.c (linux_arch_string): New.
20860 (linux_target_ops): Add it.
20861 * linux-low.h (struct linux_target_ops): Add arch_string.
20862 * server.c (write_qxfer_response): Use const void * for DATA.
20863 (get_features_xml): New.
20864 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20865 * target.h (struct target_ops): Add arch_string method.
20866
9d606399
DJ
208672007-01-03 Denis Pilat <denis.pilat@st.com>
20868 Daniel Jacobowitz <dan@codesourcery.com>
20869
20870 * linux-low.c (linux_kill): Handle being called with no threads.
20871 * win32-i386-low.c (win32_kill): Likewise.
20872 (get_child_debug_event): Clear current_process_handle.
20873
208742006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20875 Daniel Jacobowitz <dan@codesourcery.com>
20876
20877 * remote-utils.c (remote_open): Check the type of specified
20878 serial port devices before opening them.
20879 * server.c (main): Kill the inferior if an error occurs during
20880 the first remote_open.
20881
a5e13d24
DJ
208822006-12-05 Markus Deuling <deuling@de.ibm.com>
20883
20884 * README: Update supported targets.
20885
186947f7
DJ
208862006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20887
20888 * Makefile.in (clean): Remove reg-mips64.c.
20889 (reg-mips64.c, reg-mips64.o): New rules.
20890 * configure.srv: Handle mips64. Include regset support for mips.
20891 * linux-mips-low.c (union mips_register): New.
20892 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20893 (mips_breakpoint, mips_breakpoint_at): Use int.
20894 (mips_collect_register, mips_supply_register)
20895 (mips_collect_register_32bit, mips_supply_register_32bit)
20896 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20897 (mips_store_fpregset, target_regsets): New.
20898 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20899
a13e2c95
UW
209002006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20901
20902 * configure.srv: Add target "spu*-*-*".
20903 * Makefile.in (clean): Remove reg-spu.c.
20904 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20905 * spu-low.c: New file.
20906
cb7283db
DJ
209072006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20908
20909 * configure.ac: Correct td_thr_tls_get_addr test.
20910 * configure: Regenerated.
20911
89be2091
DJ
209122006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20913
20914 * linux-low.c (linux_wait_for_event): Reformat. Use the
20915 pass_signals array.
20916 * remote-utils.c (decode_address_to_semicolon): New.
20917 * server.c (pass_signals, handle_general_set): New.
20918 (handle_query): Mention QPassSignals for qSupported.
20919 (main): Call handle_general_set.
20920 * server.h (pass_signals, decode_address_to_semicolon): New.
20921
000ef4f0
DJ
209222006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20923
20924 * server.c (handle_query): Correct error handling for read_auxv.
20925
b7149293
UW
209262005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20927
20928 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20929 and srv_linux_thread_db to yes.
20930 * linux-s390-low.c (s390_fill_gregset): New function.
20931 (target_regsets): Define data structure.
20932
dae5f5cf
DJ
209332006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20934
20935 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20936 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20937 * config.in, configure: Regenerated.
20938 * inferiors.c (gdb_id_to_thread): New function.
20939 (gdb_id_to_thread_id): Use it.
20940 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20941 * linux-low.h (struct process_info): Add th member.
20942 (thread_db_get_tls_address): New prototype.
20943 * remote-utils.c (decode_address): Make non-static.
20944 * server.c (handle_query): Handle qGetTLSAddr.
20945 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20946 * target.h (struct target_ops): Add get_tls_address.
20947 * thread-db.c (maybe_attach_thread): Save the thread handle.
20948 (thread_db_get_tls_address): New.
20949
32ca6d61
DJ
209502006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20951
20952 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20953 (linux_resume_one_process): Take a siginfo_t *. Update all
20954 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20955 (struct pending_signals): Add a siginfo_t.
20956 (linux_wait_for_process): Always set last_status.
20957 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20958 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20959 * linux-low.h (struct process_info): Add last_status.
20960
5ffff7c1
DJ
209612006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20962
20963 * remote-utils.c (try_rle): New function.
20964 (putpkt_binary): Use it.
20965
8695c747
DJ
209662006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20967
20968 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20969 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20970 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20971 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20972 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20973 point registers.
20974
290fadea
RS
209752006-08-08 Richard Sandiford <richard@codesourcery.com>
20976
20977 * server.c (terminal_fd): New variable.
20978 (old_foreground_pgrp): Likewise.
20979 (restore_old_foreground_pgrp): New function.
20980 (start_inferior): Record the terminal file descriptor in terminal_fd
20981 and its original foreground group in old_foreground_pgrp. Register
20982 restore_old_foreground_pgrp with atexit().
20983
9f2e1e63
DJ
209842006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20985
20986 * server.c (handle_query): Correct qPart to qXfer.
20987
b80864fb
DJ
209882006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20989
20990 * configure.ac: Check for more headers which are missing on
20991 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20992 * configure.srv: Add Cygwin and mingw32.
20993 * remote-utils.c: Don't include headers unconditionally which
20994 are missing on mingw32. Include <winsock.h> for mingw32.
20995 (remote_open): Adjust for mingw32 support. Flush
20996 standard error after writing to it.
20997 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20998 (unblock_async_io, enable_async_io, disable_async_io)
20999 (readchar, getpkt): Update for Winsock support.
21000 (prepare_resume_reply): Expect a protocol signal number.
21001 * server.c: Disable <sys/wait.h> on mingw32.
21002 (start_inferior): Adjust for mingw32 support. Flush
21003 standard error after writing to it.
21004 (attach_inferior): Likewise. Use protocol signal
21005 numbers.
21006 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21007 and names.
21008 * win32-i386-low.c: New file.
21009 * Makefile.in (XM_CLIBS): Set.
21010 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21011 (win32-i386-low.o): New dependency rule.
21012 * linux-low.c (linux_wait): Use target signal numbers.
21013 * target.h (struct target_ops): Doc fix.
21014 * server.h (target_signal_to_name): New prototype.
21015 * gdbreplay.c: Don't include headers unconditionally which
21016 are missing on mingw32. Include <winsock.h> for mingw32.
21017 (remote_close, remote_open): Adjust for Winsock support.
21018 * configure, config.in: Regenerated.
21019
0876f84a
DJ
210202006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21021
21022 * server.c (decode_xfer_read, write_qxfer_response): New.
21023 (handle_query): Take a packet length argument. Handle
21024 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21025 the qSupported response.
21026 (main): Update call to handle_query.
21027
01f9e8fa
DJ
210282006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21029
21030 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21031 (putpkt_binary): Renamed from putpkt and adjusted for binary
21032 data.
21033 (putpkt): New wrapper for putpkt_binary.
21034 (readchar): Don't mask off the high bit.
21035 (decode_X_packet): New function.
21036 * server.c (main): Call putpkt_binary if a handler sets the packet
21037 length. Save the length of the incoming packet. Handle 'X'.
21038 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21039
be2a5f71
DJ
210402006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21041
21042 * server.c (handle_query): Handle qSupported.
21043
ea025f5f
DJ
210442006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21045
21046 * remote-utils.c (all_symbols_looked_up): New variable.
21047 (look_up_one_symbol): Check it.
21048 * server.h (look_up_one_symbol): New declaration.
21049 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21050
9308fc88
DJ
210512006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21052
21053 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21054 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21055 (PTRACE_GET_THREAD_AREA): Define.
21056 (ps_get_thread_area): New function.
21057
52fb6437
NS
210582006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21059
21060 * configure.srv (m68k*-*-uclinux*): New target.
21061 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21062 (linux_resume_one_process): Remove extraneous cast.
21063 (linux_read_offsets): New.
21064 (linux_target_op): Add linux_read_offsets on mmuless systems.
21065 * server.c (handle_query): Add qOffsets logic.
21066 * target.h (struct target_ops): Add read_offsets.
21067
21b0f40c
DJ
210682006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21069
21070 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21071 (PTRACE_GET_THREAD_AREA): Define.
21072 (ps_get_thread_area): New function.
21073 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21074 (linux-x86-64-low.o): Update.
21075
0050a760
DJ
210762006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21077
21078 * configure.ac: Remove checks for prfpregset_t.
21079 * gdb_proc_service.h: New file.
21080 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21081 new "gdb_proc_service.h".
21082 * proc-service.c: Likewise.
21083 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21084 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21085 * Makefile.in (gdb_proc_service_h): Updated.
21086 * configure, config.in: Regenerated.
21087
b92a518e
DJ
210882006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * remote-utils.c (prepare_resume_reply): Move declaration
21091 of gdb_id_from_wait to the top of the block.
21092
545587ee
DJ
210932006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21094
21095 * linux-low.c (regsets_store_inferior_registers): Read the regset
21096 from the target before filling it.
21097
9db87ebd
DJ
210982006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21099
21100 * server.c (attach_inferior): Return SIGTRAP for a successful
21101 attach.
21102
dd24457d
DJ
211032006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21104
21105 * Makefile.in (OBS): Add version.o.
21106 (STAGESTUFF): Delete.
21107 (version.o): Add dependencies.
21108 (version.c): Replace rule.
21109 (clean): Remove version.c.
21110 * server.c (gdbserver_version): New.
21111 (gdbserver_usage): Use printf.
21112 (main): Handle --version and --help.
21113 * server.h (version, host_name): Add declarations.
21114
6f0f660e
EZ
211152005-12-23 Eli Zaretskii <eliz@gnu.org>
21116
889bf7c5
PA
21117 * linux-arm-low.c:
21118 * linux-arm-low.c:
21119 * inferiors.c:
21120 * i387-fp.h:
21121 * i387-fp.c:
21122 * gdbreplay.c:
21123 * regcache.c:
21124 * proc-service.c:
21125 * mem-break.h:
21126 * mem-break.c:
21127 * linux-x86-64-low.c:
21128 * linux-sh-low.c:
21129 * linux-s390-low.c:
21130 * linux-ppc64-low.c:
21131 * linux-ppc-low.c:
21132 * linux-mips-low.c:
21133 * linux-m68k-low.c:
21134 * linux-m32r-low.c:
21135 * linux-low.h:
21136 * linux-low.c:
21137 * linux-ia64-low.c:
21138 * linux-i386-low.c:
21139 * linux-crisv32-low.c:
21140 * thread-db.c:
21141 * terminal.h:
21142 * target.h:
21143 * target.c:
21144 * server.h:
21145 * server.c:
21146 * remote-utils.c:
21147 * regcache.h:
21148 * utils.c:
21149 * Makefile.in:
21150 * configure.ac:
6f0f660e
EZ
21151 * gdbserver.1: Add (C) after Copyright. Update the FSF
21152 address.
21153
9d1fb177
DJ
211542005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21155
21156 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21157 (arm_breakpoint_at): Recognize both breakpoints.
21158 (the_low_target): Use the correct breakpoint instruction.
21159
011a70c2
DJ
211602005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21161
21162 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21163 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21164 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21165 (the_low_target): Update.
21166
7fb85e41
AS
211672005-10-25 Andreas Schwab <schwab@suse.de>
21168
21169 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21170
21171 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21172 (ia64_num_regs): Reduce to 462.
21173
3db0444b
DJ
211742005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21175
21176 * acinclude.m4: Correct quoting.
21177 * aclocal.m4: Regenerated.
21178
21179 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21180 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21181 (thread_db_init): Call thread_db_err_str.
21182 * configure.ac: Check for TD_VERSION.
21183 * config.in, configure: Regenerated.
21184
bee0189a
DJ
211852005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21186
21187 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21188
e9d25b98
DJ
211892005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21190
21191 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21192 is not available. Define HAVE_PTRACE_GETREGS if it is.
21193 * config.in, configure: Regenerated.
21194 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21195 * linux-i386-low.c, linux-m68k-low.c: Update to use
21196 HAVE_PTRACE_GETREGS.
21197 * linux-low.c (regsets_fetch_inferior_registers)
21198 (regsets_store_inferior_registers): Only return 0 if we processed
21199 GENERAL_REGS.
21200 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21201 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21202
a06660f7
DJ
212032005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21204
21205 * inferiors.c (struct thread_info): Add gdb_id.
21206 (add_thread): Add gdb_id argument.
21207 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21208 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21209 calls to add_thread.
21210 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21211 * server.c (handle_query): Use thread_to_gdb_id.
21212 (handle_v_cont, main): Use gdb_id_to_thread_id.
21213 * server.h (add_thread): Update prototype.
21214 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21215 prototypes.
21216
5a1f5858
DJ
212172005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21218
21219 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21220 left-padded registers.
21221 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21222 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21223
e122f1f5
SE
212242005-07-01 Steve Ellcey <sje@cup.hp.com>
21225
21226 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21227 * configure: Regenerate.
21228 * config.in: Regenerate.
21229 * server.h (NEED_DECLARATION_STRERROR):
21230 Replace with !HAVE_DECL_STRERROR.
21231
d592fa2f
DJ
212322005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21233
21234 * linux-low.c (linux_wait, linux_send_signal): Don't test
21235 an unsigned long variable for > 0 if it could be MAX_ULONG.
21236 * server.c (myresume): Likewise.
21237 * target.c (set_desired_inferior): Likewise.
21238
ccbd4912
MK
212392005-06-13 Mark Kettenis <kettenis@gnu.org>
21240
21241 * configure.ac: Simplify and improve check for socklen_t.
21242 * configure, config.in: Regenerate.
21243
f450004a
DJ
212442005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21245
21246 * acconfig.h: Remove.
21247 * configure.ac: Add a test for socklen_t. Use three-argument
21248 AC_DEFINE throughout.
21249 * config.in: Regenerated using autoheader 2.59.
21250 * configure: Regenerated.
21251
21252 * gdbreplay.c (socklen_t): Provide a default.
21253 (remote_open): Use socklen_t.
21254 * remote-utils.c (socklen_t): Provide a default.
21255 (remote_open): Use socklen_t.
21256 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21257 unsigned char.
21258
21259 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21260 char for buffers.
21261 * linux-low.c (linux_read_memory, linux_write_memory)
21262 (linux_read_auxv): Likewise.
21263 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21264 (check_mem_write): Likewise.
21265 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21266 Likewise.
21267 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21268 (registers_from_string, register_data): Likewise.
21269 * server.c (handle_query, main): Likewise.
21270 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21271 (decode_M_packet): Likewise.
21272 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21273 * target.h (struct target_ops): Update read_memory, write_memory,
21274 and read_auxv.
21275 (read_inferior_memory, write_inferior_memory): Update.
21276 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21277 to unsigned char *.
21278 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21279 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21280 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21281 linux-s390-low.c, linux-sh-low.c: Update for changes in
21282 read_inferior_memory and the_low_target->breakpoint.
21283
eee84df1
DJ
212842005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21285
21286 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21287 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21288 * configure.srv: Add powerpc64-*-linux*.
21289 * linux-ppc64-low.c: New file.
21290
45b134e5
OF
212912005-05-23 Orjan Friberg <orjanf@axis.com>
21292
21293 * linux-cris-low.c: New file with support for CRIS.
21294 * linux-crisv32-low.c: Ditto for CRISv32.
21295 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21296 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21297 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21298 reg-crisv32.o, and reg-crisv32.c to make rules.
21299 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21300 recognized targets.
21301
48d93c75
UW
213022005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21303
21304 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21305 of sizeof (PTRACE_XFER_TYPE).
21306 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21307
e013ee27
OF
213082005-05-12 Orjan Friberg <orjanf@axis.com>
21309
889bf7c5 21310 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21311 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21312 pointers for hardware watchpoint support.
21313 * linux-low.h (struct linux_target_ops): Ditto.
21314 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21315 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21316 to linux_target_ops.
21317 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21318 reply packet.
21319 * server.c (main): Recognize 'Z' and 'z' packets.
21320
b0ded00b
UW
213212005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21322
21323 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21324 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21325 (the_low_target): Add new members.
21326
8643e2ad
DJ
213272005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21328
21329 * proc-service.c (ps_lgetregs): Search all_processes instead of
21330 all_threads.
21331
fc620387
DJ
213322005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21333
21334 * server.c (start_inferior): Change return type to int.
21335 (attach_inferior): Change sigptr to int *.
21336 (handle_v_cont, handle_v_requests): Change signal to int *.
21337 (main): Change signal to int.
21338
213392005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21340
21341 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21342 * configure.srv: Add m32r*-*-linux*.
21343 * linux-m32r-low.c: New file.
21344
e0e76420
DJ
213452005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21346
21347 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21348
a1928bad
DJ
213492005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21350
21351 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21352 Take unsigned long arguments for PIDs.
21353 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21354 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21355 (wait_for_sigstop, linux_resume_one_process)
21356 (regsets_fetch_inferior_registers, linux_send_signal)
21357 (linux_read_auxv): Likewise. Update the types of variables holding
21358 PIDs. Update format string specifiers.
21359 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21360 * remote-utils.c (prepare_resume_reply): Likewise.
21361 * server.c (cont_thread, general_thread, step_thread)
21362 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21363 unsigned long.
21364 (handle_query): Update format specifiers.
21365 (handle_v_cont, main): Use strtoul for thread IDs.
21366 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21367 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21368 (general_thread, step_thread, thread_from_wait)
21369 (old_thread_from_wait): Update.
21370 * target.h (struct thread_resume): Use unsigned long for THREAD.
21371 (struct target_ops): Use unsigned long for arguments to attach and
21372 thread_alive.
21373
dcdb98d2
DJ
213742005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * acinclude.m4: Include bfd/bfd.m4 directly.
21377 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21378 <agriffis@toolchain.org>.
21379 * aclocal.m4, configure: Regenerated.
21380
bec39cab
AC
213812005-01-07 Andrew Cagney <cagney@gnu.org>
21382
21383 * configure.ac: Rename configure.in, require autoconf 2.59.
21384 * configure: Re-generate.
21385
434c4c77
DJ
213862004-12-08 Daniel Jacobowitz <dan@debian.org>
21387
21388 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21389 LIBS when finished.
21390 * aclocal.m4: Regenerated.
21391 * configure: Regenerated.
21392
db1d3e1b
AS
213932004-11-21 Andreas Schwab <schwab@suse.de>
21394
21395 * linux-m68k-low.c (m68k_num_gregs): Define.
21396 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21397 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21398 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21399 (m68k_breakpoint_at): New. Add to the_low_target.
21400
21401 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21402 srv_linux_thread_db to yes.
21403
43360365
JB
214042004-10-20 Joel Brobecker <brobecker@gnat.com>
21405
21406 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21407 (ARCH_SET_FS): Likewise.
21408 (ARCH_GET_FS): Likewise.
21409 (ARCH_GET_GS): Likewise.
21410
fd500816
DJ
214112004-10-16 Daniel Jacobowitz <dan@debian.org>
21412
21413 * linux-i386-low.c (ps_get_thread_area): New.
21414 * linux-x86-64-low.c (ps_get_thread_area): New.
21415 * linux-low.c: Include <sys/syscall.h>.
21416 (linux_kill_one_process): Don't kill the first thread here.
21417 (linux_kill): Kill the first thread here.
21418 (kill_lwp): New function.
21419 (send_sigstop, linux_send_signal): Use it.
21420 * proc-service.c: Clean up #ifdefs.
21421 (fpregset_info): Delete.
21422 (ps_lgetregs): Update and enable implementation.
21423 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21424 implementations.
21425 * remote-utils.c (struct sym_cache, symbol_cache): New.
21426 (input_interrupt): Print a clearer message.
21427 (async_io_enabled): New variable.
21428 (enable_async_io, disable_async_io): Use it. Update comments.
21429 (look_up_one_symbol): Use the symbol cache.
21430 * thread-db.c (thread_db_look_up_symbols): New function.
21431 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21432
f6de3c42
DJ
214332004-10-16 Daniel Jacobowitz <dan@debian.org>
21434
21435 * configure.in: Test for -rdynamic.
21436 * configure: Regenerated.
21437 * Makefile (INTERNAL_LDFLAGS): New.
21438 (gdbserver, gdbreplay): Use it.
21439
2c0fc042
AC
214402004-09-02 Andrew Cagney <cagney@gnu.org>
21441
21442 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21443
075b3282
DJ
214442004-03-23 Daniel Jacobowitz <drow@mvista.com>
21445
21446 * linux-low.c (linux_wait): Clear all_processes list also.
21447
fa6a77dc
DJ
214482004-03-12 Daniel Jacobowitz <drow@mvista.com>
21449
21450 * linux-low.c: Include <errno.h>. Remove extern declaration of
21451 errno.
21452
6d782a97
DJ
214532004-03-12 Daniel Jacobowitz <drow@mvista.com>
21454
21455 * gdbreplay.c, server.h, utils.c: Update copyright years.
21456
3a7fb99b
DJ
214572004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21458
21459 * server.c (main): Print child status or termination signal from
21460 variable 'signal', not 'sig'.
21461
c3e735a6
DJ
214622004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21463
21464 * linux-low.c (linux_read_memory): Change return type to
21465 int. Check for and return error from ptrace().
21466 * target.c (read_inferior_memory): Change return type to int. Pass
21467 back return status from the_target->read_memory().
21468 * target.h (struct target_ops): Adapt *read_memory() prototype.
21469 Update comment.
21470 (read_inferior_memory): Adapt prototype.
21471 * server.c (main): Return an error packet if
21472 read_inferior_memory() returns an error.
21473
a59d1c82
DJ
214742004-03-04 Daniel Jacobowitz <drow@mvista.com>
21475
21476 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21477 Unify with other clean targets.
21478
dc3f8883
DJ
214792004-02-29 Daniel Jacobowitz <drow@mvista.com>
21480
21481 * server.c (handle_v_cont): Call set_desired_inferior.
21482
89a208da
DJ
214832004-02-29 Daniel Jacobowitz <drow@mvista.com>
21484
21485 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21486
62ea82f5
DJ
214872004-02-29 Daniel Jacobowitz <drow@mvista.com>
21488
21489 * linux-low.c (linux_wait): Unblock async I/O.
21490 (linux_resume): Block and enable async I/O.
21491 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21492 * server.h (block_async_io, unblock_async_io): Add prototypes.
21493
6910d122
DJ
214942004-02-29 Daniel Jacobowitz <drow@mvista.com>
21495
21496 * remote-utils.c (remote_open): Print a status notice after
21497 opening a TCP port.
21498 * server.c (attach_inferior): Print a status notice after
21499 attaching.
21500
215012004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21502
21503 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21504
c89dc5d4
DJ
215052004-02-26 Daniel Jacobowitz <drow@mvista.com>
21506
21507 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21508 error packet.
21509 * server.c, target.h: Update copyright years.
21510
4b8dad4a
RM
215112004-02-25 Roland McGrath <roland@redhat.com>
21512
21513 * target.h (struct target_ops): New member `read_auxv'.
21514 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21515 * linux-low.c (linux_read_auxv): New function.
21516 (linux_target_ops): Initialize `read_auxv' member to that.
21517
d7446758
JB
215182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21519
21520 Committed by Jim Blandy <jimb@redhat.com>.
21521
21522 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21523 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21524 instead of GPR_SIZE to distiguish s390 and s390x targets.
21525
5544ad89
DJ
215262004-01-31 Daniel Jacobowitz <drow@mvista.com>
21527
21528 * linux-low.c: Update copyright year.
21529 (check_removed_breakpoint): Clear pending_is_breakpoint.
21530 (linux_set_resume_request, linux_queue_one_thread)
21531 (resume_status_pending_p): New functions.
21532 (linux_continue_one_thread): Use process->resume.
21533 (linux_resume): Only resume threads if there are no pending events.
21534 * linux-low.h (struct process_info): Add resume request
21535 pointer.
21536
2a68b70e
DJ
215372004-01-30 Daniel Jacobowitz <drow@mvista.com>
21538
21539 * regcache.c (new_register_cache): Clear the allocated register
21540 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21541
64386c31
DJ
215422003-10-13 Daniel Jacobowitz <drow@mvista.com>
21543
21544 * linux-low.c (linux_resume): Take a struct thread_resume *
21545 argument.
21546 (linux_wait): Update call.
21547 (resume_ptr): New static variable.
21548 (linux_continue_one_thread): Renamed from
21549 linux_continue_one_process. Use resume_ptr.
21550 (linux_resume): Use linux_continue_one_thread.
21551 * server.c (handle_v_cont, handle_v_requests): New functions.
21552 (myresume): New function.
21553 (main): Handle 'v' case.
21554 * target.h (struct thread_resume): New type.
21555 (struct target_ops): Change argument of "resume" to struct
21556 thread_resume *.
21557 (myresume): Delete macro.
21558
c938e9b0
L
215592003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21560
21561 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21562 (uninstall): Support DESTDIR.
21563
7f313d07
BC
21564Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21565
21566 * configure.srv: Add xscale*linux copy of arm*linux entry.
21567
3b2fc2ea
DJ
215682003-07-24 Daniel Jacobowitz <drow@mvista.com>
21569
21570 * linux-arm-low.c (arm_reinsert_addr): New function.
21571 (the_low_target): Add arm_reinsert_addr.
21572
1c0a559e
MK
215732003-07-08 Mark Kettenis <kettenis@gnu.org>
21574
21575 * mem-break.c: Remove whitespace at end of file.
21576
43d5792c
DJ
215772003-06-28 Daniel Jacobowitz <drow@mvista.com>
21578
21579 * configure.in: Check whether we need to prototype strerror.
21580 * server.h: Optionally prototype strerror.
21581 * gdbreplay.c (perror_with_name): Use strerror.
21582 * linux-low.c (linux_attach_lwp): Use strerror.
21583 * utils.c (perror_with_name): Use strerror.
21584 * config.in, configure: Regenerated.
21585
c8a86edf
DJ
215862003-06-28 Daniel Jacobowitz <drow@mvista.com>
21587
21588 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21589 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21590
73d37363
DJ
215912003-06-20 Daniel Jacobowitz <drow@mvista.com>
21592
21593 * Makefile.in (SFILES): Update.
21594 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21595 low-sun3.c: Remove files.
21596
6ad8ae5c
DJ
215972003-06-17 Daniel Jacobowitz <drow@mvista.com>
21598
21599 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21600 (linux_detach_one_process, linux_detach): New functions.
21601 (linux_target_ops): Add linux_detach.
21602 * server.c (main): Handle 'D' packet.
21603 * target.h (struct target_ops): Add "detach" member.
21604 (detach_inferior): Define.
21605
1581182a
MK
216062003-06-13 Mark Kettenis <kettenis@gnu.org>
21607
21608 From Kelley Cook <kelleycook@wideopenwest.com>:
21609 * configure.srv: Accept i[34567]86 variants.
21610
e5379b03
DJ
216112003-06-05 Daniel Jacobowitz <drow@mvista.com>
21612
21613 * linux-low.c (linux_wait_for_event): Correct comment typos.
21614 (linux_resume_one_process): Call check_removed_breakpoint.
21615 (linux_send_signal): New function.
21616 (linux_target_ops): Add linux_send_signal.
21617 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21618 of kill.
21619 * target.h (struct target_ops): Add send_signal.
21620
2ff29de4
JB
216212003-05-29 Jim Blandy <jimb@redhat.com>
21622
21623 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21624 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21625 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21626 away part of the register's value.
21627
254787d4
DJ
216282003-03-26 Daniel Jacobowitz <drow@mvista.com>
21629
21630 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21631 (linux_wait_for_event, linux_init_signals): Likewise.
21632
94e10508
DJ
216332003-03-17 Daniel Jacobowitz <drow@mvista.com>
21634
21635 * configure.in: Check for stdlib.h.
21636 * configure: Regenerated.
21637 * config.in: Regenerated.
21638
4c0711e0
DJ
216392003-01-04 Andreas Schwab <schwab@suse.de>
21640
21641 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21642
ef66e766
AC
216432003-01-02 Andrew Cagney <ac131313@redhat.com>
21644
21645 * Makefile.in: Remove obsolete code.
21646
a1358604
DJ
216472002-11-20 Daniel Jacobowitz <drow@mvista.com>
21648
21649 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21650 defined(PT_FPR0_HI).
21651
23ce3b1c
DJ
216522002-11-17 Stuart Hughes <seh@zee2.com>
21653
21654 * linux-arm-low.c (arm_num_regs): Increase.
21655 (arm_regmap): Include status register.
21656
216572002-11-17 Daniel Jacobowitz <drow@mvista.com>
21658
21659 * linux-low.c (register_addr): Remove incorrect -1 check.
21660
a9fa9f7d
DJ
216612002-08-29 Daniel Jacobowitz <drow@mvista.com>
21662
21663 * linux-low.c (linux_create_inferior): Call setpgid. Return
21664 the new PID.
21665 (unstopped_p, linux_signal_pid): Remove.
21666 (linux_target_ops): Remove linux_signal_pid.
21667 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21668 global instead of target method.
21669 * target.h (struct target_ops): Remove signal_pid. Update comment
21670 for create_inferior.
21671 * server.c (signal_pid): New variable.
21672 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21673 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21674 (attach_inferior): Set signal_pid.
21675
17574093
DJ
216762002-08-23 Daniel Jacobowitz <drow@mvista.com>
21677
21678 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21679
216802002-08-20 Jim Blandy <jimb@redhat.com>
21681
21682 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21683 default for this.
21684
216852002-08-01 Andrew Cagney <cagney@redhat.com>
21686
21687 * Makefile.in: Make chill references obsolete.
21688
216892002-07-24 Kevin Buettner <kevinb@redhat.com>
21690
21691 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21692 * configure: Regenerate.
21693 * config.in: Regenerate.
21694
216952002-07-09 David O'Brien <obrien@FreeBSD.org>
21696
21697 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21698 (perror_with_name, remote_close, remote_open, expect, play): Static.
21699
217002002-07-04 Michal Ludvig <mludvig@suse.cz>
21701
4b8dad4a 21702 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21703 byte offsets instead of an array of indexes.
21704 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21705
217062002-06-13 Daniel Jacobowitz <drow@mvista.com>
21707
21708 * regcache.c: Add comment.
21709
217102002-06-11 Daniel Jacobowitz <drow@mvista.com>
21711
21712 * thread-db.c: New file.
21713 * proc-service.c: New file.
21714 * acinclude.m4: New file.
21715 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21716 proc-service.o, and thread-db.o.
21717 (linux-low.o): Add USE_THREAD_DB.
21718 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21719 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21720 * aclocal.m4: Regenerated.
21721 * config.in: Regenerated.
21722 * configure: Regenerated.
21723 * configure.in: Check for proc_service.h, sys/procfs.h,
21724 thread_db.h, and linux/elf.h headrs.
21725 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21726 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21727 Check for -lthread_db and thread support.
21728 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21729 PowerPC, and SuperH.
21730 * i387-fp.c: Constify arguments.
21731 * i387-fp.h: Likewise.
21732 * inferiors.c: (struct thread_info): Renamed from
21733 `struct inferior_info'. Remove PID member. Use generic inferior
21734 list header. All uses updated.
21735 (inferiors, signal_pid): Removed.
21736 (all_threads): New variable.
21737 (get_thread): Define.
21738 (add_inferior_to_list): New function.
21739 (for_each_inferior): New function.
21740 (change_inferior_id): New function.
21741 (add_inferior): Removed.
21742 (remove_inferior): New function.
21743 (add_thread): New function.
21744 (free_one_thread): New function.
21745 (remove_thread): New function.
21746 (clear_inferiors): Use for_each_inferior and free_one_thread.
21747 (find_inferior): New function.
21748 (find_inferior_id): New function.
21749 (inferior_target_data): Update argument type.
21750 (set_inferior_target_data): Likewise.
21751 (inferior_regcache_data): Likewise.
21752 (set_inferior_regcache_data): Likewise.
21753 * linux-low.c (linux_bp_reinsert): Remove.
21754 (all_processes, stopping_threads, using_thrads)
21755 (struct pending_signals, debug_threads, pid_of): New.
21756 (inferior_pid): Replace with macro.
21757 (struct inferior_linux_data): Remove.
21758 (get_stop_pc, add_process): New functions.
21759 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21760 Use add_process and add_thread.
21761 (linux_attach_lwp): New function, based on old linux_attach. Use
21762 add_process and add_thread. Set stop_expected for new threads.
21763 (linux_attach): New function.
21764 (linux_kill_one_process): New function.
21765 (linux_kill): Kill all LWPs.
21766 (linux_thread_alive): Use find_inferior_id.
21767 (check_removed_breakpoints, status_pending_p): New functions.
21768 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21769 Update. Use WNOHANG. Wait for cloned processes also. Update process
21770 struct for the found process.
21771 (linux_wait_for_event): New function.
21772 (linux_wait): Use it. Support LWPs.
21773 (send_sigstop, wait_for_sigstop, stop_all_processes)
21774 (linux_resume_one_process, linux_continue_one_process): New functions.
21775 (linux_resume): Support LWPs.
21776 (REGISTER_RAW_SIZE): Remove.
21777 (fetch_register): Use register_size instead. Call supply_register.
21778 (usr_store_inferior_registers): Likewise. Call collect_register.
21779 Fix recursive case.
21780 (regsets_fetch_inferior_registers): Improve error message.
21781 (regsets_store_inferior_registers): Add debugging.
21782 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21783 (unstopped_p, linux_signal_pid): New functions.
21784 (linux_target_ops): Add linux_signal_pid.
21785 (linux_init_signals): New function.
21786 (initialize_low): Call it. Initialize using_threads.
21787 * regcache.c (inferior_regcache_data): Add valid
21788 flag.
21789 (get_regcache): Fetch registers lazily. Add fetch argument
21790 and update all callers.
21791 (regcache_invalidate_one, regcache_invalidate): New
21792 functions.
21793 (new_register_cache): Renamed from create_register_cache.
21794 Return the new regcache.
21795 (free_register_cache): Change argument to a void *.
21796 (registers_to_string, registers_from_string): Call get_regcache
21797 with fetch flag set.
21798 (register_data): Make static. Pass fetch flag to get_regcache.
21799 (supply_register): Call get_regcache with fetch flag clear.
21800 (collect_register): Call get_regcache with fetch flag set.
21801 (collect_register_as_string): New function.
21802 * regcache.h: Update.
21803 * remote-utils.c (putpkt): Flush after debug output and use
21804 stderr.
21805 Handle input interrupts while waiting for an ACK.
21806 (input_interrupt): Use signal_pid method.
21807 (getpkt): Flush after debug output and use stderr.
21808 (outreg): Use collect_register_as_string.
21809 (new_thread_notify, dead_thread_notify): New functions.
21810 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21811 and general_thread.
21812 (look_up_one_symbol): Flush after debug output.
21813 * server.c (step_thread, server_waiting): New variables.
21814 (start_inferior): Don't use signal_pid. Update call to mywait.
21815 (attach_inferior): Update call to mywait.
21816 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21817 (main): Don't fetch/store registers explicitly. Use
21818 set_desired_inferior. Support proposed ``Hs'' packet. Update
21819 calls to mywait.
21820 * server.h: Update.
21821 (struct inferior_list, struct_inferior_list_entry): New.
21822 * target.c (set_desired_inferior): New.
21823 (write_inferior_memory): Constify.
21824 (mywait): New function.
21825 * target.h: Update.
21826 (struct target_ops): New signal_pid method.
21827 (mywait): Removed macro, added prototype.
21828
21829 * linux-low.h (regset_func): Removed.
21830 (regset_fill_func, regset_store_func): New.
21831 (enum regset_type): New.
21832 (struct regset_info): Add type field. Use new operation types.
21833 (struct linux_target_ops): stop_pc renamed to get_pc.
21834 Add decr_pc_after_break and breakpoint_at.
21835 (get_process, get_thread_proess, get_process_thread)
21836 (strut process_info, all_processes, linux_attach_lwp)
21837 (thread_db_init): New.
21838
21839 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21840 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21841 (the_low_target): Add new members.
21842 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21843 (i386_store_fpxregset): Constify.
21844 (target_regsets): Add new kind identifier.
21845 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21846 (i386_set_pc): Add debugging.
21847 (i386_breakpoint_at): New function.
21848 (the_low_target): Add new members.
21849 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21850 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21851 (mips_breakpoint_at): New.
21852 (the_low_target): Add new members.
21853 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21854 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21855 (the_low_target): Add new members.
21856 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21857 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21858 (the_low_target): Add new members.
21859 * linux-x86-64-low.c (target_regsets): Add new kind
21860 identifier.
21861
218622002-05-15 Daniel Jacobowitz <drow@mvista.com>
21863
21864 From Martin Pool <mbp@samba.org>:
21865 * server.c (gdbserver_usage): New function.
21866 (main): Call it.
21867
218682002-05-14 Daniel Jacobowitz <drow@mvista.com>
21869
21870 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21871 stop_at -> stop_pc.
21872
218732002-05-04 Andrew Cagney <ac131313@redhat.com>
21874
21875 * Makefile.in: Remove obsolete code.
21876
218772002-04-24 Michal Ludvig <mludvig@suse.cz>
21878
21879 * linux-low.c (regsets_fetch_inferior_registers),
21880 (regsets_store_inferior_registers): Removed cast to int from
21881 ptrace() calls.
21882 * regcache.h: Added declaration of struct inferior_info.
21883
218842002-04-20 Daniel Jacobowitz <drow@mvista.com>
21885
21886 * inferiors.c (struct inferior_info): Add regcache_data.
21887 (add_inferior): Call create_register_cache.
21888 (clear_inferiors): Call free_register_cache.
21889 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21890 * regcache.c (struct inferior_regcache_data): New.
21891 (registers): Remove.
21892 (get_regcache): New function.
21893 (create_register_cache, free_register_cache): New functions.
21894 (set_register_cache): Don't initialize the register cache here.
21895 (registers_to_string, registers_from_string, register_data): Call
21896 get_regcache.
21897 * regcache.h: Add prototypes.
21898 * server.h: Likewise.
21899
219002002-04-20 Daniel Jacobowitz <drow@mvista.com>
21901
21902 * mem-break.c: New file.
21903 * mem-break.h: New file.
21904 * Makefile.in: Add mem-break.o rule; update server.h
21905 dependencies.
21906 * inferiors.c (struct inferior_info): Add target_data
21907 member.
21908 (clear_inferiors): Free target_data member if set.
21909 (inferior_target_data, set_inferior_target_data): New functions.
21910 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21911 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21912 * linux-low.c (linux_bp_reinsert): New variable.
21913 (struct inferior_linux_data): New.
21914 (linux_create_inferior): Use set_inferior_target_data.
21915 (linux_attach): Likewise. Call add_inferior.
21916 (linux_wait_for_one_inferior): New function.
21917 (linux_wait): Call it.
21918 (linux_write_memory): Add const.
21919 (initialize_low): Call set_breakpoint_data.
21920 * linux-low.h (struct linux_target_ops): Add breakpoint
21921 handling members.
21922 * server.c (attach_inferior): Remove extra add_inferior
21923 call.
21924 * server.h: Include mem-break.h. Update inferior.c
21925 prototypes.
21926 * target.c (read_inferior_memory)
21927 (write_inferior_memory): New functions.
21928 * target.h (read_inferior_memory)
21929 (write_inferior_memory): Change macros to prototypes.
21930 (struct target_ops): Update comments. Add const to write_memory
21931 definition.
21932
219332002-04-11 Daniel Jacobowitz <drow@mvista.com>
21934
21935 * linux-low.c (usr_store_inferior_registers): Support
21936 registers which are allowed to fail to store.
21937 * linux-low.h (linux_target_ops): Likewise.
21938 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21939 (ppc_cannot_store_register): FPSCR may not be storable.
21940
219412002-04-09 Daniel Jacobowitz <drow@mvista.com>
21942
21943 * server.h: Include <string.h> if HAVE_STRING_H.
21944 * ChangeLog: Correct paths in last ChangeLog entry.
21945
219462002-04-09 Daniel Jacobowitz <drow@mvista.com>
21947
21948 * linux-low.h: Remove obsolete prototypes.
21949 (struct linux_target_ops): New.
21950 (extern the_low_target): New.
21951 * linux-low.c (num_regs, regmap): Remove declarations.
21952 (register_addr): Use the_low_target explicitly.
21953 (fetch_register): Likewise.
21954 (usr_fetch_inferior_registers): Likewise.
21955 (usr_store_inferior_registers): Likewise.
21956 * linux-arm-low.c (num_regs): Remove.
21957 (arm_num_regs): Define.
21958 (arm_regmap): Renamed from regmap, made static.
21959 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21960 made static.
21961 (arm_cannot_store_register): Renamed from cannot_store_register,
21962 made static.
21963 (the_low_target): New.
21964 * linux-i386-low.c (num_regs): Remove.
21965 (i386_num_regs): Define.
21966 (i386_regmap): Renamed from regmap, made static.
21967 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21968 made static.
21969 (i386_cannot_store_register): Renamed from cannot_store_register,
21970 made static.
21971 (the_low_target): New.
21972 * linux-ia64-low.c (num_regs): Remove.
21973 (ia64_num_regs): Define.
21974 (ia64_regmap): Renamed from regmap, made static.
21975 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21976 made static.
21977 (ia64_cannot_store_register): Renamed from cannot_store_register,
21978 made static.
21979 (the_low_target): New.
21980 * linux-m68k-low.c (num_regs): Remove.
21981 (m68k_num_regs): Define.
21982 (m68k_regmap): Renamed from regmap, made static.
21983 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21984 made static.
21985 (m68k_cannot_store_register): Renamed from cannot_store_register,
21986 made static.
21987 (the_low_target): New.
21988 * linux-mips-low.c (num_regs): Remove.
21989 (mips_num_regs): Define.
21990 (mips_regmap): Renamed from regmap, made static.
21991 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21992 made static.
21993 (mips_cannot_store_register): Renamed from cannot_store_register,
21994 made static.
21995 (the_low_target): New.
21996 * linux-ppc-low.c (num_regs): Remove.
21997 (ppc_num_regs): Define.
21998 (ppc_regmap): Renamed from regmap, made static.
21999 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22000 made static.
22001 (ppc_cannot_store_register): Renamed from cannot_store_register,
22002 made static.
22003 (the_low_target): New.
22004 * linux-s390-low.c (num_regs): Remove.
22005 (s390_num_regs): Define.
22006 (s390_regmap): Renamed from regmap, made static.
22007 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22008 made static.
22009 (s390_cannot_store_register): Renamed from cannot_store_register,
22010 made static.
22011 (the_low_target): New.
22012 * linux-sh-low.c (num_regs): Remove.
22013 (sh_num_regs): Define.
22014 (sh_regmap): Renamed from regmap, made static.
22015 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22016 made static.
22017 (sh_cannot_store_register): Renamed from cannot_store_register,
22018 made static.
22019 (the_low_target): New.
22020 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22021 (the_low_target): New.
22022
220232002-04-09 Daniel Jacobowitz <drow@mvista.com>
22024
22025 * Makefile.in: Add stamp-h target.
22026 * configure.in: Create stamp-h.
22027 * configure: Regenerated.
22028
220292002-04-09 Daniel Jacobowitz <drow@mvista.com>
22030
22031 * inferiors.c: New file.
22032 * target.c: New file.
22033 * target.h: New file.
22034 * Makefile.in: Add target.o and inferiors.o. Update
22035 dependencies.
22036 * linux-low.c (inferior_pid): New static variable,
22037 moved from server.c.
22038 (linux_create_inferior): Renamed from create_inferior.
22039 Call add_inferior. Return 0 on success instead of a PID.
22040 (linux_attach): Renamed from myattach.
22041 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22042 (linux_thread_alive): Renamed from mythread_alive.
22043 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22044 child dies.
22045 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22046 (regsets_store_inferior_registers): Correct error message.
22047 Add missing ``return 0''.
22048 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22049 (linux_store_registers): Renamed from store_inferior_registers.
22050 (linux_read_memory): Renamed from read_inferior_memory.
22051 (linux_write_memory): Renamed from write_inferior_memory.
22052 (linux_target_ops): New structure.
22053 (initialize_low): Call set_target_ops ().
22054 * remote-utils.c (unhexify): New function.
22055 (hexify): New function.
22056 (input_interrupt): Send signals to ``signal_pid''.
22057 * server.c (inferior_pid): Remove.
22058 (start_inferior): Update create_inferior call.
22059 (attach_inferior): Call add_inferior.
22060 (handle_query): New function.
22061 (main): Call handle_query for `q' packets.
22062 * server.h: Include "target.h". Remove obsolete prototypes.
22063 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22064
220652002-04-09 Daniel Jacobowitz <drow@mvista.com>
22066
22067 * Makefile.in: Add WARN_CFLAGS. Update configury
22068 dependencies.
22069 * configure.in: Check for <string.h>
22070 * configure: Regenerate.
22071 * config.in: Regenerate.
22072 * gdbreplay.c: Include needed system headers.
22073 (remote_open): Remove strchr prototype.
22074 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22075 * regcache.c (supply_register): Change buf argument to const void *.
22076 (supply_register_by_name): Likewise.
22077 (collect_register): Change buf argument to void *.
22078 (collect_register_by_name): Likewise.
22079 * regcache.h: Add missing prototypes.
22080 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22081 * server.c (handle_query): New function.
22082 (attached): New static variable, moved out of main.
22083 (main): Quiet longjmp clobber warnings.
22084 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22085 * utils.c (error): Remove NORETURN.
22086 (fatal): Likewise.
This page took 3.696562 seconds and 4 git commands to generate.